diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-06-20 13:53:12 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-06-20 16:52:42 -0400 |
commit | 7983117f0ba2cec585f1c643297de5ea15ed9920 (patch) | |
tree | a85f93035255b6de8975967c5bc708073604ffe5 /drivers/gpu/drm/i915/intel_pm.c | |
parent | 31acc7f59aac34477423a7dde654ae998b48d666 (diff) |
drm/i915: enable display messages to GT on ValleyView
Enable the on-chip messaging between the display engine and the GT.
v2: use bit definitions for DPFLIPSTAT reg
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
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 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 17c16f026244..7504fbce05cc 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -3528,6 +3528,19 @@ static void valleyview_init_clock_gating(struct drm_device *dev) | |||
3528 | 3528 | ||
3529 | I915_WRITE(CACHE_MODE_1, | 3529 | I915_WRITE(CACHE_MODE_1, |
3530 | _MASKED_BIT_ENABLE(PIXEL_SUBSPAN_COLLECT_OPT_DISABLE)); | 3530 | _MASKED_BIT_ENABLE(PIXEL_SUBSPAN_COLLECT_OPT_DISABLE)); |
3531 | |||
3532 | /* | ||
3533 | * On ValleyView, the GUnit needs to signal the GT | ||
3534 | * when flip and other events complete. So enable | ||
3535 | * all the GUnit->GT interrupts here | ||
3536 | */ | ||
3537 | I915_WRITE(VLV_DPFLIPSTAT, PIPEB_LINE_COMPARE_INT_EN | | ||
3538 | PIPEB_HLINE_INT_EN | PIPEB_VBLANK_INT_EN | | ||
3539 | SPRITED_FLIPDONE_INT_EN | SPRITEC_FLIPDONE_INT_EN | | ||
3540 | PLANEB_FLIPDONE_INT_EN | PIPEA_LINE_COMPARE_INT_EN | | ||
3541 | PIPEA_HLINE_INT_EN | PIPEA_VBLANK_INT_EN | | ||
3542 | SPRITEB_FLIPDONE_INT_EN | SPRITEA_FLIPDONE_INT_EN | | ||
3543 | PLANEA_FLIPDONE_INT_EN); | ||
3531 | } | 3544 | } |
3532 | 3545 | ||
3533 | static void g4x_init_clock_gating(struct drm_device *dev) | 3546 | static void g4x_init_clock_gating(struct drm_device *dev) |