[RFC v2 4/4] drm/i915/display: use wakelock in the last write function
Luca Coelho
luciano.coelho at intel.com
Thu Jan 11 09:16:22 UTC 2024
Finally, add the wakelock mechanism to the write functions.
Signed-off-by: Luca Coelho <luciano.coelho at intel.com>
---
drivers/gpu/drm/i915/display/intel_de.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_de.h b/drivers/gpu/drm/i915/display/intel_de.h
index 220907442bad..e815ccff0a7e 100644
--- a/drivers/gpu/drm/i915/display/intel_de.h
+++ b/drivers/gpu/drm/i915/display/intel_de.h
@@ -70,7 +70,11 @@ intel_de_posting_read(struct drm_i915_private *i915, i915_reg_t reg)
static inline void
intel_de_write(struct drm_i915_private *i915, i915_reg_t reg, u32 val)
{
+ intel_display_wl_get(i915, reg);
+
intel_uncore_write(&i915->uncore, reg, val);
+
+ intel_display_wl_put(i915, reg);
}
static inline u32
--
2.39.2
More information about the Intel-xe
mailing list