]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit9880b7a527ffbb52f65c2de0a8d4eea86e24775e
tree5c41b544a86c04de609c4dad245bb93cd2e000e7
parent14d200c5e5bd19219d930bbb9a5a22758c8f5bec
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