drm/i915/guc: Drop pin count check trick between sched_disable and re-pin
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Sep 2021 16:47:40 +0000 (09:47 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 13 Sep 2021 18:30:50 +0000 (11:30 -0700)
commit5b116c17e6babc6de2e26714bc66228c74038b71
treede9d075a164886a410901adeda64c73840f01da1
parent1424ba81a2d056008adebab21bf633c420235e3c
drm/i915/guc: Drop pin count check trick between sched_disable and re-pin

Drop pin count check trick between a sched_disable and re-pin, now rely
on the lock and counter of the number of committed requests to determine
if scheduling should be disabled on the context.

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/20210909164744.31249-20-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_context_types.h
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c