[Intel-xe] [PATCH v2 4/4] fixup! drm/xe/display: Implement display support

Jouni Högander jouni.hogander at intel.com
Thu Sep 21 11:14:34 UTC 2023


Add xe_runtime_pm struct pointer to xe_device for runtime related macros.

v2: Add xe_runtime_pm struct pointer to xe_device

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h | 2 ++
 drivers/gpu/drm/xe/xe_device_types.h                      | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h
index ce2b9bf3918d..89da3cc62f39 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h
@@ -5,6 +5,8 @@
 
 #include "intel_wakeref.h"
 
+#define intel_runtime_pm xe_runtime_pm
+
 static inline void disable_rpm_wakeref_asserts(void *rpm)
 {
 }
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index c0d5ca62df7b..a82f28c6a3a0 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -401,6 +401,9 @@ struct xe_device {
 	 */
 	u32 edram_size_mb;
 
+	/* To shut up runtime pm macros.. */
+	struct xe_runtime_pm {} runtime_pm;
+
 	/* For pcode */
 	struct mutex sb_lock;
 
-- 
2.34.1



More information about the Intel-xe mailing list