diff options
author | 2021-07-21 14:50:51 -0700 | |
---|---|---|
committer | 2021-07-22 10:07:13 -0700 | |
commit | e0717063ccb446c820317b3376c5dfafb3624502 (patch) | |
tree | 092ff06549e5791683698a5c983d58e00ec7b1ed /drivers/gpu/drm/i915/i915_request.c | |
parent | drm/i915/guc: Insert fence on context when deregistering (diff) | |
download | wireguard-linux-e0717063ccb446c820317b3376c5dfafb3624502.tar.xz wireguard-linux-e0717063ccb446c820317b3376c5dfafb3624502.zip |
drm/i915/guc: Defer context unpin until scheduling is disabled
With GuC scheduling, it isn't safe to unpin a context while scheduling
is enabled for that context as the GuC may touch some of the pinned
state (e.g. LRC). To ensure scheduling isn't enabled when an unpin is
done, a call back is added to intel_context_unpin when pin count == 1
to disable scheduling for that context. When the response CTB is
received it is safe to do the final unpin.
Future patches may add a heuristic / delay to schedule the disable
call back to avoid thrashing on schedule enable / disable.
v2:
(John H)
- s/drm_dbg/drm_err
(Daneiel)
- Clean up sched state function
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-9-matthew.brost@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
0 files changed, 0 insertions, 0 deletions