diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-10-25 15:15:44 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-11 17:51:35 -0500 |
commit | 2d809570c8d72b9529ebb72c9d35fa0bf08c033c (patch) | |
tree | 774944f0fdefef783d4cb47f55a464088ec7cf46 /drivers/gpu/drm/i915/intel_pm.c | |
parent | 5c9664d75a65adcdb9763a6df1da1d8d3f417c0c (diff) |
drm/i915: implement WaDisableVLVClockGating_VBIIssue on VLV
This allows us to get the right vblank interrupt frequency.
v2: pull in register definition
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Antti Koskipää <antti.koskipaa@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 871bfe49b91..10e6d6c2196 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -3755,6 +3755,13 @@ static void valleyview_init_clock_gating(struct drm_device *dev) | |||
3755 | PIPEA_HLINE_INT_EN | PIPEA_VBLANK_INT_EN | | 3755 | PIPEA_HLINE_INT_EN | PIPEA_VBLANK_INT_EN | |
3756 | SPRITEB_FLIPDONE_INT_EN | SPRITEA_FLIPDONE_INT_EN | | 3756 | SPRITEB_FLIPDONE_INT_EN | SPRITEA_FLIPDONE_INT_EN | |
3757 | PLANEA_FLIPDONE_INT_EN); | 3757 | PLANEA_FLIPDONE_INT_EN); |
3758 | |||
3759 | /* | ||
3760 | * WaDisableVLVClockGating_VBIIssue | ||
3761 | * Disable clock gating on th GCFG unit to prevent a delay | ||
3762 | * in the reporting of vblank events. | ||
3763 | */ | ||
3764 | I915_WRITE(VLV_GUNIT_CLOCK_GATE, GCFG_DIS); | ||
3758 | } | 3765 | } |
3759 | 3766 | ||
3760 | static void g4x_init_clock_gating(struct drm_device *dev) | 3767 | static void g4x_init_clock_gating(struct drm_device *dev) |