diff options
| author | Vinay Belgaumkar <[email protected]> | 2021-11-02 01:26:07 +0000 |
|---|---|---|
| committer | John Harrison <[email protected]> | 2021-11-04 00:44:13 +0000 |
| commit | 493043feed006f75f43a1990ae2ae1178f277628 (patch) | |
| tree | c172029d6ccd591887dbf7e5fc74627a919a36a5 /drivers/gpu/drm/i915/i915_request.c | |
| parent | drm/i915/guc/slpc: Define and initialize boost frequency (diff) | |
| download | kernel-493043feed006f75f43a1990ae2ae1178f277628.tar.gz kernel-493043feed006f75f43a1990ae2ae1178f277628.zip | |
drm/i915/guc/slpc: Add waitboost functionality for SLPC
Add helper in RPS code for handling SLPC and non-SLPC paths.
When boost is requested in the SLPC path, we can ask GuC to ramp
up the frequency req by setting the minimum frequency to boost freq.
Reset freq back to the min softlimit when there are no more waiters.
v2: Schedule a worker thread which can boost freq from within
an interrupt context as well.
v3: No need to check against requested freq before scheduling boost
work (Ashutosh)
Cc: Ashutosh Dixit <[email protected]>
Signed-off-by: Vinay Belgaumkar <[email protected]>
Reviewed-by: Ashutosh Dixit <[email protected]>
Signed-off-by: John Harrison <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
| -rw-r--r-- | drivers/gpu/drm/i915/i915_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index 2c3cd6e635b5..08f38e86231d 100644 --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c @@ -339,7 +339,7 @@ bool i915_request_retire(struct i915_request *rq) } if (test_and_set_bit(I915_FENCE_FLAG_BOOST, &rq->fence.flags)) - atomic_dec(&rq->engine->gt->rps.num_waiters); + intel_rps_dec_waiters(&rq->engine->gt->rps); /* * We only loosely track inflight requests across preemption, |
