aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lrc.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-10-03 21:34:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-10-04 17:52:45 +0100
commite7af3116836fb7feb985497f2c7776751fb27ef3 (patch)
treea9044c9a587ee6a840d3d67cb337355f5f5f8456 /drivers/gpu/drm/i915/intel_lrc.c
parentdrm/i915/execlists: Distinguish the incomplete context notifies (diff)
downloadlinux-dev-e7af3116836fb7feb985497f2c7776751fb27ef3.tar.xz
linux-dev-e7af3116836fb7feb985497f2c7776751fb27ef3.zip
drm/i915: Introduce a preempt context
Add another perma-pinned context for using for preemption at any time. We cannot just reuse the existing kernel context, as first and foremost we need to ensure that we can preempt the kernel context itself, so require a distinct context id. Similar to the kernel context, we may want to interrupt execution and switch to the preempt context at any time, and so it needs to be permanently pinned and available. To compensate for yet another permanent allocation, we shrink the existing context and the new context by reducing their ringbuffer to the minimum. v2: Assert that we never allocate a request from the preemption context. v3: Limit perma-pin to engines that may preempt. v4: Onion cleanup for early driver death v5: Onion ordering in main driver cleanup as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171003203453.15692-4-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lrc.c')
0 files changed, 0 insertions, 0 deletions