]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: proper use of forcewake
authorBen Widawsky <ben@bwidawsk.net>
Mon, 25 Apr 2011 18:22:22 +0000 (11:22 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 May 2011 20:56:45 +0000 (13:56 -0700)
commitec78d5ba10f7965fb0daa3fdf0cb67f6b3004f9b
tree95f92a64acbeafd1846d3378551c69f3e7ea150f
parent7faa849129824b7a350d073a463a0f5c4e2990ce
drm/i915: proper use of forcewake

Moved the macros around to properly do reads and writes for the given
GPU. This is to address special requirements for gen6 (SNB) reads and
writes.

Registers in the range 0-0x40000 on gen6 platforms require special
handling. Instead of relying on the callers to pick the registers
correctly, move the logic into the read and write functions.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_ringbuffer.h