]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Track the pinned kernel contexts on each engine
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Mar 2019 13:25:21 +0000 (13:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Mar 2019 14:00:02 +0000 (14:00 +0000)
commit9dbfea98d70ba83c3a824b470447b8d452ae2540
treeb5971189ff25a1c248edc157fdfe8a54cddfff45
parent95f697eb024d7def7f9050cd5eba9502034dd94d
drm/i915: Track the pinned kernel contexts on each engine

Each engine acquires a pin on the kernel contexts (normal and preempt)
so that the logical state is always available on demand. Keep track of
each engines pin by storing the returned pointer on the engine for quick
access.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190308132522.21573-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_engine_types.h
drivers/gpu/drm/i915/intel_guc_ads.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/selftests/mock_engine.c