]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/intel_ringbuffer.c
drm/i915: Allocate rings from stolen
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:57 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:49 +0000 (22:36 +0100)
commitc58b735fc762e891481e92af7124b85cb0a51fce
tree89f78c3243909e8be7f0679627f9007a6a0f1b0c
parent9d80841ea4c9df420da3f9a61a819d09a03f2161
drm/i915: Allocate rings from stolen

If we have stolen available, make use of it for ringbuffer allocation.
Previously this was restricted to !llc platforms, as writing to stolen
requires a GGTT mapping - but now that we have partial mappable support,
the mappable aperture isn't quite so precious so we can use it more
freely and ringbuffers are a good user for the otherwise wasted stolen.

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