drm/i915/guc: Remove intel_context:number_committed_requests counter
authorAlan Previn <alan.previn.teres.alexis@intel.com>
Thu, 6 Oct 2022 22:51:21 +0000 (15:51 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 27 Oct 2022 00:29:47 +0000 (17:29 -0700)
commita7ac9d84b82c74c50eb11ed5eba7496291aebf6a
tree0831d17957ab2f951de1adf0df74f4ba3ced3f9c
parent833210943099f5cfd9bd054ce9c5ec2e971bcc89
drm/i915/guc: Remove intel_context:number_committed_requests counter

With the introduction of the delayed disable-sched behavior,
we use the GuC's xarray of valid guc-id's as a way to
identify if new requests had been added to a context
when the said context is being checked for closure.

Additionally that prior change also closes the race for when
a new incoming request fails to cancel the pending
delayed disable-sched worker.

With these two complementary checks, we see no more
use for intel_context:guc_state:number_committed_requests.

Signed-off-by: Alan Previn <alan.previn.teres.alexis@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/20221006225121.826257-3-alan.previn.teres.alexis@intel.com
drivers/gpu/drm/i915/gt/intel_context_types.h
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c