drm/i915/skl: Disable coarse power gating up until F0
Subsystems (2)
PATCH 1/2 drm/i915/skl: Disable coarse power gating up until F0
There is conflicting info between E0 and F0 steppings for this workarounds. Trust more authoritative source and be conservative and extend also for F0.
This prevents numerous (>50) gpu hangs with SKL GT4e during piglit run.
References: HSD: gen9lp/2134184
--- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +1 -1
@@ -4717,7 +4717,7 @@ static void gen9_enable_rc6(struct drm_device *dev)*/ if (IS_BXT_REVID (dev,0 ,BXT_REVID_A1 ) || ((IS_SKL_GT3 (dev) ||IS_SKL_GT4 (dev)) && -IS_SKL_REVID (dev,0 ,SKL_REVID_E0 ))) +IS_SKL_REVID (dev,0 ,SKL_REVID_F0 )))I915_WRITE (GEN9_PG_ENABLE ,0 );else I915_WRITE(GEN9_PG_ENABLE, (rc6_mask & GEN6_RC_CTL_RC6_ENABLE) ?
Signature · 6 lines
2.5.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915/skl: Double RC6 WRL always on
WaRsDoubleRc6WrlWithCoarsePowerGating should
be enabled for all Skylakes. Make it so.
--- drivers/gpu/drm/i915/intel_pm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +1 -2
@@ -4673,8 +4673,7 @@ static void gen9_enable_rc6(struct drm_device *dev)/* 2b: Program RC6 thresholds.*/ /* WaRsDoubleRc6WrlWithCoarsePowerGating: Doubling WRL only when CPG is enabled */ -if (IS_SKYLAKE (dev) && !((IS_SKL_GT3 (dev) ||IS_SKL_GT4 (dev)) && -IS_SKL_REVID (dev,0 ,SKL_REVID_E0 ))) +if (IS_SKYLAKE (dev))I915_WRITE (GEN6_RC6_WAKE_RATE_LIMIT ,108 <<16 );else I915_WRITE (GEN6_RC6_WAKE_RATE_LIMIT ,54 <<16 );
Signature · 6 lines
2.5.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915/skl: Double RC6 WRL always on
Quoted 14 lines · Mika Kuoppala
WaRsDoubleRc6WrlWithCoarsePowerGating should
be enabled for all Skylakes. Make it so.Cc Sagar Arun Kamble <[email protected]>Signed-off-by Mika Kuoppala <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/i915/intel_pm.c +0
-0
drivers/gpu/drm/i915/intel_pm.c static void gen9_enable_rc6(struct drm_device *dev) · line 4679
Quoted 9 lines
drivers/gpu/drm/i915/intel_pm.c +1
-2@@ -4673,8 +4673,7 @@ static void gen9_enable_rc6(struct drm_device *dev)/* 2b: Program RC6 thresholds.*/ /* WaRsDoubleRc6WrlWithCoarsePowerGating: Doubling WRL only when CPG is enabled */ -if (IS_SKYLAKE (dev) && !((IS_SKL_GT3 (dev) ||IS_SKL_GT4 (dev)) && -IS_SKL_REVID (dev,0 ,SKL_REVID_E0 ))) +if (IS_SKYLAKE (dev))I915_WRITE (GEN6_RC6_WAKE_RATE_LIMIT ,108 <<16 );else I915_WRITE (GEN6_RC6_WAKE_RATE_LIMIT ,54 <<16 );
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 19 lines · Mika Kuoppala
There is conflicting info between E0 and F0 steppings for this workarounds. Trust more authoritative source and be conservative and extend also for F0.
This prevents numerous (>50) gpu hangs with SKL GT4e during piglit run.
References: HSD: gen9lp/2134184
Cc Sagar Arun Kamble <[email protected]>Signed-off-by Mika Kuoppala <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_pm.c +0
-0
drivers/gpu/drm/i915/intel_pm.c static void gen9_enable_rc6(struct drm_device *dev) · line 4723
Quoted 8 lines
drivers/gpu/drm/i915/intel_pm.c +1
-1@@ -4717,7 +4717,7 @@ static void gen9_enable_rc6(struct drm_device *dev)*/ if (IS_BXT_REVID (dev,0 ,BXT_REVID_A1 ) || ((IS_SKL_GT3 (dev) ||IS_SKL_GT4 (dev)) && -IS_SKL_REVID (dev,0 ,SKL_REVID_E0 ))) +IS_SKL_REVID (dev,0 ,SKL_REVID_F0 )))I915_WRITE (GEN9_PG_ENABLE ,0 );else I915_WRITE(GEN9_PG_ENABLE, (rc6_mask & GEN6_RC_CTL_RC6_ENABLE) ?
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerBoth patches pushed to drm-intel-next-queued, and then backported to drm-intel-fixes with cc: stable. Thanks for the patches and review.
BR,
Jani.
Quoted 35 lines · Sagar A
Reviewed-by Sagar Arun Kamble <[email protected]>Quoted 19 lines · Mika Kuoppala
There is conflicting info between E0 and F0 steppings for this workarounds. Trust more authoritative source and be conservative and extend also for F0.
This prevents numerous (>50) gpu hangs with SKL GT4e during piglit run.
References: HSD: gen9lp/2134184
Cc Sagar Arun Kamble <[email protected]>Signed-off-by Mika Kuoppala <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_pm.c +0
-0drivers/gpu/drm/i915/intel_pm.c static void gen9_enable_rc6(struct drm_device *dev) · line 4723
Quoted 8 lines
drivers/gpu/drm/i915/intel_pm.c +1
-1@@ -4717,7 +4717,7 @@ static void gen9_enable_rc6(struct drm_device *dev)*/ if (IS_BXT_REVID (dev,0 ,BXT_REVID_A1 ) || ((IS_SKL_GT3 (dev) ||IS_SKL_GT4 (dev)) && -IS_SKL_REVID (dev,0 ,SKL_REVID_E0 ))) +IS_SKL_REVID (dev,0 ,SKL_REVID_F0 )))I915_WRITE (GEN9_PG_ENABLE ,0 );else I915_WRITE(GEN9_PG_ENABLE, (rc6_mask & GEN6_RC_CTL_RC6_ENABLE) ?_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx