Re: [PATCH] drm/i915: Remove gen check before calling intel_rps_boost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> writes:

> It's been a while since gen6_rps_boost() [that only worked on gen6+] was
> replaced by intel_rps_boost() that understood itself when rps was
> active. Since the intel_rps_boost() is gen-agnostic, just call it.
>
> Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

Reviewed-by: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx>

> ---
>  drivers/gpu/drm/i915/i915_request.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
> index 679a915e9a63..e48daeef6882 100644
> --- a/drivers/gpu/drm/i915/i915_request.c
> +++ b/drivers/gpu/drm/i915/i915_request.c
> @@ -1823,11 +1823,8 @@ long i915_request_wait(struct i915_request *rq,
>  	 * but at a cost of spending more power processing the workload
>  	 * (bad for battery).
>  	 */
> -	if (flags & I915_WAIT_PRIORITY) {
> -		if (!i915_request_started(rq) &&
> -		    INTEL_GEN(rq->engine->i915) >= 6)
> -			intel_rps_boost(rq);
> -	}
> +	if (flags & I915_WAIT_PRIORITY && !i915_request_started(rq))
> +		intel_rps_boost(rq);
>  
>  	wait.tsk = current;
>  	if (dma_fence_add_callback(&rq->fence, &wait.cb, request_wait_wake))
> -- 
> 2.20.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux