]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Limit the ioremap of the PCI bar to the registers
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Sep 2012 10:57:46 +0000 (11:57 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Sep 2012 12:23:07 +0000 (14:23 +0200)
commit80c8714449037c81fb147ad74b69f7968f042db0
tree43539f5b87365c5573b6cabbfaa3a90e897c16fa
parentd9ff51ef92eb17c6b9094c497c209ea5892dc3d8
drm/i915: Limit the ioremap of the PCI bar to the registers

In the future we may like to experiment with using a WC map of the GTT
portion. However, that will conflict with i915.ko mapping the entire bar
as UC in order to access the GPU registers. Instead we can shrink the
register ioremap to only map the register block.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by (IVB): Ben Widawsky <ben@bwidawsk.net>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: Squashed-in follow-up fix for gen2/3 registers file size from
Chris Wilson.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c