[RFC PATCH 3/5] drm/i915/xe: plug the pme_capability query for xe

Vinod Govindapillai <[email protected]>
Newsgroups org.freedesktop.lists.intel-gfx,org.freedesktop.lists.intel-xe
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
Plug the xe's pme_capability query into the parent interface

Assisted-by: GitHub_Copilot:claude-opus-5
Signed-off-by: Vinod Govindapillai <[email protected]>
---
 drivers/gpu/drm/xe/display/xe_display_rpm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/xe/display/xe_display_rpm.c b/drivers/gpu/drm/xe/display/xe_display_rpm.c
index 548b503aa024..3ef6559eaa17 100644
--- a/drivers/gpu/drm/xe/display/xe_display_rpm.c
+++ b/drivers/gpu/drm/xe/display/xe_display_rpm.c
@@ -60,6 +60,11 @@ static void xe_display_rpm_assert_unblock(const struct drm_device *drm)
 	/* FIXME */
 }
 
+static bool xe_display_rpm_pme_capable(const struct drm_device *drm)
+{
+	return xe_pm_pme_supported(to_xe_device(drm));
+}
+
 const struct intel_display_rpm_interface xe_display_rpm_interface = {
 	.get = xe_display_rpm_get,
 	.get_raw = xe_display_rpm_get,
@@ -69,6 +74,7 @@ const struct intel_display_rpm_interface xe_display_rpm_interface = {
 	.put_raw = xe_display_rpm_put,
 	.put_unchecked = xe_display_rpm_put_unchecked,
 	.suspended = xe_display_rpm_suspended,
+	.pme_capable = xe_display_rpm_pme_capable,
 	.assert_held = xe_display_rpm_assert_held,
 	.assert_block = xe_display_rpm_assert_block,
 	.assert_unblock = xe_display_rpm_assert_unblock
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.