]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Take context ref when cancelling request
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Sep 2021 16:47:33 +0000 (09:47 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 13 Sep 2021 18:30:41 +0000 (11:30 -0700)
commit725661c5e10bade8ef6e52f04d88d2dccd2bca12
tree4b7d995e23db6fb5f99a5e7f5704959cca40cbe0
parent0b8ab30c57d5d19337734530ca7f9fe40b7fa151
drm/i915/guc: Take context ref when cancelling request

A context can get destroyed after cancelling a request, if a context or
GT reset occurs, so take a reference to context when cancelling a
request.

Fixes: d8d2ee02d17f ("drm/i915/guc: Support request cancellation")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210909164744.31249-13-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c