]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Allow DMA pagetables to use highmem
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Aug 2016 07:44:31 +0000 (08:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Aug 2016 11:19:52 +0000 (12:19 +0100)
commit9a063a50ac8afb463ce7650691bdfeb97922e5d7
treea87221a635f713f9abdcc9142f6e4f8b880cf62b
parent88ef8bd4cb97e95956e25070960e6a79cab07cd4
drm/i915: Allow DMA pagetables to use highmem

As we never need to directly access the pages we allocate for scratch and
the pagetables, and always remap them into the GTT through the dma
remapper, we do not need to limit the allocations to lowmem i.e. we can
pass in the __GFP_HIGHMEM flag to the page allocation.

For backwards compatibility, e.g. certain old GPUs not liking highmem
for certain functions that may be accidentally mapped to the scratch
page by userspace, keep the GMCH probe as only allocating from DMA32.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20160822074431.26872-3-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c