]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/gt: Teach veng to defer the context allocation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Dec 2019 23:29:32 +0000 (23:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Dec 2019 01:33:17 +0000 (01:33 +0000)
commitd5e1935381a156be1e79b4229172bee7ff550ded
treeb6e19b7b73a97d7f43477883f7b59f00c6833a0b
parent7d1ff0d9faf66f630c104a6ca6b8a3c6091ba3a3
drm/i915/gt: Teach veng to defer the context allocation

Since we added the context_alloc callback to intel_context_ops, we can
safely install a custom hook for the deferred virtual context allocation.
This means that all new contexts behave the same upon creation,
simplifying later code.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191219232932.189197-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c