drm/i915: VLV clock gating fixes
Subsystems (2)
cover drm/i915: VLV clock gating fixes
I spotted a few invalid register accesses in valleyview_init_clock_gating() while trawling through the clock gating code. This series tries to fix them.
Compile tested only.
PATCH 1/2 drm/i915: VLV doesn't have the ILK+ style LP watermark registers
From: Ville Syrjälä <[email protected]>
The LP watermark registers don't exist on VLV, so don't touch them.
--- drivers/gpu/drm/i915/intel_pm.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +0 -4
@@ -4284,10 +4284,6 @@ static void valleyview_init_clock_gating(struct drm_device *dev)struct drm_i915_private *dev_priv = dev->dev_private;int pipe; -I915_WRITE (WM3_LP_ILK ,0 ); -I915_WRITE (WM2_LP_ILK ,0 ); -I915_WRITE (WM1_LP_ILK ,0 ); -I915_WRITE (ILK_DSPCLK_GATE_D ,ILK_VRHUNIT_CLOCK_GATE_DISABLE );/* WaDisableEarlyCull:vlv */
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/2] drm/i915: VLV doesn't have the ILK+ style LP watermark registers
Quoted 3 lines · On Tue, 21 May 2013, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
The LP watermark registers don't exist on VLV, so don't touch them.
Quoted 27 lines
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/intel_pm.c | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/i915/intel_pm.c +0
-4@@ -4284,10 +4284,6 @@ static void valleyview_init_clock_gating(struct drm_device *dev)struct drm_i915_private *dev_priv = dev->dev_private;int pipe; -I915_WRITE (WM3_LP_ILK ,0 ); -I915_WRITE (WM2_LP_ILK ,0 ); -I915_WRITE (WM1_LP_ILK ,0 ); -I915_WRITE (ILK_DSPCLK_GATE_D ,ILK_VRHUNIT_CLOCK_GATE_DISABLE );/* WaDisableEarlyCull:vlv */ Signature · 6 lines
1.8.1.5 _______________________________________________ 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
PATCH 2/2 drm/i915: Fix DSPCLK_GATE_D for VLV
In reply to [email protected]From: Ville Syrjälä <[email protected]>
Fix the DSPCLK_GATE_D access for VLV. The code incorrectly tried to poke at the ILK+ version of the register which is at the wrong offset.
--- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +1 -1
@@ -1208,7 +1208,7 @@#define DSTATE_PLL_D3_OFF (1<<3)#define DSTATE_GFX_CLOCK_GATING (1<<1)#define DSTATE_DOT_CLOCK_GATING (1<<0) -#define DSPCLK_GATE_D 0x6200 +#define DSPCLK_GATE_D (dev_priv->info->display_mmio_offset + 0x6200)# define DPUNIT_B_CLOCK_GATE_DISABLE (1 << 30)/* 965 */ # define VSUNIT_CLOCK_GATE_DISABLE (1 << 29)/* 965 */ # define VRHUNIT_CLOCK_GATE_DISABLE (1 << 28)/* 965 */
drivers/gpu/drm/i915/intel_pm.c +1 -1
@@ -4284,7 +4284,7 @@ static void valleyview_init_clock_gating(struct drm_device *dev)struct drm_i915_private *dev_priv = dev->dev_private;int pipe; -I915_WRITE (ILK_DSPCLK_GATE_D ,ILK_VRHUNIT_CLOCK_GATE_DISABLE ); +I915_WRITE (DSPCLK_GATE_D ,VRHUNIT_CLOCK_GATE_DISABLE );/* WaDisableEarlyCull:vlv */ I915_WRITE(_3D_CHICKEN3,
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Fix DSPCLK_GATE_D for VLV
Quoted 4 lines · On Tue, 21 May 2013, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Fix the
DSPCLK_GATE_Daccess for VLV. The code incorrectly tried to poke at the ILK+ version of the register which is at the wrong offset.
Quoted 39 lines
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_reg.h +1
-1@@ -1208,7 +1208,7 @@#define DSTATE_PLL_D3_OFF (1<<3)#define DSTATE_GFX_CLOCK_GATING (1<<1)#define DSTATE_DOT_CLOCK_GATING (1<<0) -#define DSPCLK_GATE_D 0x6200 +#define DSPCLK_GATE_D (dev_priv->info->display_mmio_offset + 0x6200)# define DPUNIT_B_CLOCK_GATE_DISABLE (1 << 30)/* 965 */ # define VSUNIT_CLOCK_GATE_DISABLE (1 << 29)/* 965 */ # define VRHUNIT_CLOCK_GATE_DISABLE (1 << 28)/* 965 */ drivers/gpu/drm/i915/intel_pm.c +1
-1@@ -4284,7 +4284,7 @@ static void valleyview_init_clock_gating(struct drm_device *dev)struct drm_i915_private *dev_priv = dev->dev_private;int pipe; -I915_WRITE (ILK_DSPCLK_GATE_D ,ILK_VRHUNIT_CLOCK_GATE_DISABLE ); +I915_WRITE (DSPCLK_GATE_D ,VRHUNIT_CLOCK_GATE_DISABLE );/* WaDisableEarlyCull:vlv */ I915_WRITE(_3D_CHICKEN3,Signature · 6 lines
1.8.1.5 _______________________________________________ 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
Re: [PATCH 2/2] drm/i915: Fix DSPCLK_GATE_D for VLV
Quoted 7 lines · Jani Nikula
Quoted 4 lines · On Tue, 21 May 2013, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Fix the
DSPCLK_GATE_Daccess for VLV. The code incorrectly tried to poke at the ILK+ version of the register which is at the wrong offset.Reviewed-by Jani Nikula <[email protected]>
Both merged, thanks.
-Daniel
Quoted 47 lines
Quoted 40 lines
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_reg.h +1
-1@@ -1208,7 +1208,7 @@#define DSTATE_PLL_D3_OFF (1<<3)#define DSTATE_GFX_CLOCK_GATING (1<<1)#define DSTATE_DOT_CLOCK_GATING (1<<0) -#define DSPCLK_GATE_D 0x6200 +#define DSPCLK_GATE_D (dev_priv->info->display_mmio_offset + 0x6200)# define DPUNIT_B_CLOCK_GATE_DISABLE (1 << 30)/* 965 */ # define VSUNIT_CLOCK_GATE_DISABLE (1 << 29)/* 965 */ # define VRHUNIT_CLOCK_GATE_DISABLE (1 << 28)/* 965 */ drivers/gpu/drm/i915/intel_pm.c +1
-1@@ -4284,7 +4284,7 @@ static void valleyview_init_clock_gating(struct drm_device *dev)struct drm_i915_private *dev_priv = dev->dev_private;int pipe; -I915_WRITE (ILK_DSPCLK_GATE_D ,ILK_VRHUNIT_CLOCK_GATE_DISABLE ); +I915_WRITE (DSPCLK_GATE_D ,VRHUNIT_CLOCK_GATE_DISABLE );/* WaDisableEarlyCull:vlv */ I915_WRITE(_3D_CHICKEN3,Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch