]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Request the kernel context be pinned high
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Dec 2016 15:37:23 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Dec 2016 16:18:55 +0000 (16:18 +0000)
commitee84dcafed5d2b9f6648087e796752371ebf865d
tree00a5942f0ab1ae4713ec788bf9535152a9477894
parentea267a02e1566cf4924ad92f749162392c020eab
drm/i915/execlists: Request the kernel context be pinned high

PIN_HIGH is an expensive operation (in comparison to allocating from the
hole stack) unsuitable for frequent use (such as switching between
contexts). However, the kernel context should be pinned just once for
the lifetime of the driver, and here it is appropriate to keep it out of
the mappable range (in order to maximise mappable space for users).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161218153724.8439-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c