From: Keith Packard Date: Mon, 22 Nov 2010 09:24:22 +0000 (+0000) Subject: drm/i915: Fix restore of 965 fence regs since the register tracing change. X-Git-Tag: v2.6.38-rc1~419^2~23^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f75377db4d8d81ca4465b54d3c339c70c6a0fa2;p=pandora-kernel.git 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 Signed-off-by: Eric Anholt Signed-off-by: Keith Packard [ickle: use a macro to create the various read/write routines] Signed-off-by: Chris Wilson --- Reading git-diff-tree failed