OSDN Git Service

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)
commit422cda4f50091bdfa114c7d19fce31919c920fe1
tree4b7d995e23db6fb5f99a5e7f5704959cca40cbe0
parentd2420c2ed8f1bae5f36f681aad73b3d4c5a57d39
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: 62eaf0ae217d ("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