]> 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)
commit993518ca839b3933427627fb9ce00fb6e5518873
tree43539f5b87365c5573b6cabbfaa3a90e897c16fa
parent283bd2be29750aa55ed3306e62f2300acae4bbd7
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