]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Insert fence on context when deregistering
authorMatthew Brost <matthew.brost@intel.com>
Wed, 21 Jul 2021 21:50:50 +0000 (14:50 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 22 Jul 2021 17:07:11 +0000 (10:07 -0700)
commitf2f045ebdef6c6aff22b14df67d2edb10e456f1d
tree9e29733e1d0f03098e79e2b6be7959482c09bf07
parent750a049f8ce3b5e5dc8f800cb7a1fdd8ae0cd9de
drm/i915/guc: Insert fence on context when deregistering

Sometimes during context pinning a context with the same guc_id is
registered with the GuC. In this a case deregister must be done before
the context can be registered. A fence is inserted on all requests while
the deregister is in flight. Once the G2H is received indicating the
deregistration is complete the context is registered and the fence is
released.

v2:
 (John H)
  - Fix commit message

Cc: John Harrison <john.c.harrison@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: John Harrison <john.c.harrison@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210721215101.139794-8-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/gt/intel_context_types.h
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/i915_request.h