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)
commit934d6086ea6b165af9218e8dcc2a9e69e1850743
tree43539f5b87365c5573b6cabbfaa3a90e897c16fa
parentac6ae347a50bfb4667438272c0d48f4fd41154db
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