]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Remove racey GEM_BUG_ON
authorMatthew Brost <matthew.brost@intel.com>
Tue, 14 Dec 2021 17:04:56 +0000 (09:04 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 16 Dec 2021 03:09:22 +0000 (19:09 -0800)
commit27674dd76fec62e24ae56ab886ca4148af0cd0e1
tree9fb5cbd16bdea177f89de90c7c215aa7d47dc7d5
parent523fca107e7835a72b5321d269863a2e59bbc2a8
drm/i915/guc: Remove racey GEM_BUG_ON

A full GT reset can race with the last context put resulting in the
context ref count being zero but the destroyed bit not yet being set.
Remove GEM_BUG_ON in scrub_guc_desc_for_outstanding_g2h that asserts the
destroyed bit must be set in ref count is zero.

Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211214170500.28569-4-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c