drm/i915: Fix restore of 965 fence regs since the register tracing change.
authorKeith Packard <keithp@keithp.com>
Mon, 22 Nov 2010 09:24:22 +0000 (09:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Nov 2010 09:26:22 +0000 (09:26 +0000)
commit5f75377db4d8d81ca4465b54d3c339c70c6a0fa2
tree2549b235627ccc1010e1c4dca26505c7f552a461
parentcff458c21063de960bde0e39770a0f4cd0477d95
drm/i915: Fix restore of 965 fence regs since the register tracing change.

We were reading our 64-bit value in I915_READ64 and returning 32 bits
of it.  The restoration of fence regs at resume then had a zero end
value, and the fence had no effect.

Version 2: Split register access functions into per-size versions

Sharing code between different sizes seemed reasonable when we only
needed a single copy, but as 64-bit access requires its own version,
it makes sense to just split them out for each size.

Reported-by: Peter Clifton <pcjc2@cam.ac.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
[ickle: use a macro to create the various read/write routines]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h