[Intel-gfx] [RFC] drm/i915/rc6: Access RC6 regs with forcewake

Badal Nilawar badal.nilawar at intel.com
Fri Apr 22 13:37:52 UTC 2022


To access RC6 related MMIO regs use intel_uncore_write(), which grabs
forcewake if reg requires a forcewake.

Signed-off-by: Badal Nilawar <badal.nilawar at intel.com>
---
 drivers/gpu/drm/i915/gt/intel_rc6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_rc6.c b/drivers/gpu/drm/i915/gt/intel_rc6.c
index b4770690e794..9edaad3f19b5 100644
--- a/drivers/gpu/drm/i915/gt/intel_rc6.c
+++ b/drivers/gpu/drm/i915/gt/intel_rc6.c
@@ -55,7 +55,7 @@ static struct drm_i915_private *rc6_to_i915(struct intel_rc6 *rc)
 
 static void set(struct intel_uncore *uncore, i915_reg_t reg, u32 val)
 {
-	intel_uncore_write_fw(uncore, reg, val);
+	intel_uncore_write(uncore, reg, val);
 }
 
 static void gen11_rc6_enable(struct intel_rc6 *rc6)
-- 
2.25.1



More information about the Intel-gfx mailing list