]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Leave resetting ring to intel_ring
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jan 2020 17:58:29 +0000 (17:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 16 Jan 2020 12:39:44 +0000 (12:39 +0000)
commitbded6da1dde972ead7812834fd82868b806a7a56
treeaca5f05158567ae1dc5df1a405cd367d5d516146
parentdc6a3ddcfe54d5eb167a20d182b855790acf4445
drm/i915/execlists: Leave resetting ring to intel_ring

We need to allow concurrent intel_context_unpin, which means avoiding
doing destructive operations like intel_ring_reset(). This was already
fixed for intel_ring_unpin() in commit f868dbe8f13d ("drm/i915/gt: Make
intel_ring_unpin() safe for concurrent pint"), but I overlooked that
execlists_context_unpin() also made the same mistake.

Reported-by: Matthew Brost <matthew.brost@intel.com>
Fixes: 243f5ed4c03e ("drm/i915/gt: Drop mutex serialisation between context pin/unpin")
References: f868dbe8f13d ("drm/i915/gt: Make intel_ring_unpin() safe for concurrent pint")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115175829.2761329-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c