]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: add get_vblank_counter function for GM45
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 Feb 2009 18:22:41 +0000 (10:22 -0800)
committerDave Airlie <airlied@linux.ie>
Sun, 8 Feb 2009 11:43:04 +0000 (21:43 +1000)
commit6456f11b17cdcbe1196313e699fc8435d74eb01d
tree5c41b544a86c04de609c4dad245bb93cd2e000e7
parent218bc2a41874af843ec7bc88a614723c6751af86
drm/i915: add get_vblank_counter function for GM45

As discussed in the long thread about vblank related timeouts, it turns out
GM45 has different frame count registers than previous chips.  This patch
adds support for them, which prevents us from waiting on really stale
sequence values in drm_wait_vblank (which rather than returning immediately
ends up timing out or getting interrupted).

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h