drm/i915: Re-enable FBC WM if the watermark is good on gen6+
Subsystems (2)
PATCH 1/1 drm/i915: Re-enable FBC WM if the watermark is good on gen6+
From: Ville Syrjälä <[email protected]>
If the calculated FBC watermark is no good, we simply disable FBC watermarks. But we fail to re-enable them later if the calculated watermark becomes good again. Fix that, but remember to leave FBC watermarks disabled on ILK since that's required by some workarounds.
--- drivers/gpu/drm/i915/intel_pm.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_pm.c +4 -0
@@ -1633,6 +1633,10 @@ static bool ironlake_check_srwm(struct drm_device *dev, int level,I915_WRITE (DISP_ARB_CTL ,I915_READ (DISP_ARB_CTL ) |DISP_FBC_WM_DIS );return false; + }if (INTEL_INFO (dev)->gen >=6 ) { +/* enable FBC WM (except on ILK, where it must remain off) */ +I915_WRITE (DISP_ARB_CTL , +I915_READ (DISP_ARB_CTL ) & ~DISP_FBC_WM_DIS ); }if (display_wm > display->max_wm) {
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/1 drm/i915: Re-enable FBC WM if the watermark is good on gen6+
From: Ville Syrjälä <[email protected]>
If the calculated FBC watermark is no good, we simply disable FBC watermarks. But we fail to re-enable them later if the calculated watermark becomes good again. Fix that, but remember to leave FBC watermarks disabled on ILK since that's required by some workarounds.
v2: Fix checkpatch complaint
--- drivers/gpu/drm/i915/intel_pm.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_pm.c +4 -0
@@ -1633,6 +1633,10 @@ static bool ironlake_check_srwm(struct drm_device *dev, int level,I915_WRITE (DISP_ARB_CTL ,I915_READ (DISP_ARB_CTL ) |DISP_FBC_WM_DIS );return false; + }else if (INTEL_INFO (dev)->gen >=6 ) { +/* enable FBC WM (except on ILK, where it must remain off) */ +I915_WRITE (DISP_ARB_CTL , +I915_READ (DISP_ARB_CTL ) & ~DISP_FBC_WM_DIS ); }if (display_wm > display->max_wm) {
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
2013/4/24 <[email protected]>:
Quoted 10 lines
From: Ville Syrjälä <[email protected]>
If the calculated FBC watermark is no good, we simply disable FBC watermarks. But we fail to re-enable them later if the calculated watermark becomes good again. Fix that, but remember to leave FBC watermarks disabled on ILK since that's required by some workarounds.
v2: Fix checkpatch complaint
Signed-off-by Ville Syrjälä <[email protected]>
Looks correct...
Quoted 26 lines
--- drivers/gpu/drm/i915/intel_pm.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/i915/intel_pm.c +4
-1@@ -1633,6 +1633,10 @@ static bool ironlake_check_srwm(struct drm_device *dev, int level,I915_WRITE (DISP_ARB_CTL ,I915_READ (DISP_ARB_CTL ) |DISP_FBC_WM_DIS );return false; + }else if (INTEL_INFO (dev)->gen >=6 ) { +/* enable FBC WM (except on ILK, where it must remain off) */ +I915_WRITE (DISP_ARB_CTL , +I915_READ (DISP_ARB_CTL ) & ~DISP_FBC_WM_DIS ); }if (display_wm > display->max_wm) { --1.8.1.5
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 1 line
Paulo Zanoni
Daniel Vetter
AppliedQuoted 8 lines · Paulo Zanoni
2013/4/24 <[email protected]>:
Quoted 7 lines
From: Ville Syrjälä <[email protected]>
If the calculated FBC watermark is no good, we simply disable FBC watermarks. But we fail to re-enable them later if the calculated watermark becomes good again. Fix that, but remember to leave FBC watermarks disabled on ILK since that's required by some workarounds.
Quoted 6 lines
Quoted 3 lines
v2: Fix checkpatch complaint
Signed-off-by Ville Syrjälä <[email protected]>Looks correct...
Reviewed-by Paulo Zanoni <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch