diff mbox series

[3/8] drm/i915/gt: Reuse the tasklet priority for virtual as their siblings

Message ID 20200518081440.17948-3-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show
Series [1/8] drm/i915: Move saturated workload detection back to the context | expand

Commit Message

Chris Wilson May 18, 2020, 8:14 a.m. UTC
In order to keep all the tasklets in the same execution lists and so
fifo ordered, be consistent and use the same priority for all.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/gt/intel_lrc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tvrtko Ursulin May 18, 2020, 10:13 a.m. UTC | #1
On 18/05/2020 09:14, Chris Wilson wrote:
> In order to keep all the tasklets in the same execution lists and so
> fifo ordered, be consistent and use the same priority for all.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>   drivers/gpu/drm/i915/gt/intel_lrc.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
> index e597325d04f1..80885ba87db5 100644
> --- a/drivers/gpu/drm/i915/gt/intel_lrc.c
> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
> @@ -1403,7 +1403,7 @@ static void kick_siblings(struct i915_request *rq, struct intel_context *ce)
>   	struct i915_request *next = READ_ONCE(ve->request);
>   
>   	if (next && next->execution_mask & ~rq->execution_mask)
> -		tasklet_schedule(&ve->base.execlists.tasklet);
> +		tasklet_hi_schedule(&ve->base.execlists.tasklet);
>   }
>   
>   static inline void
> @@ -5560,7 +5560,7 @@ static void virtual_submit_request(struct i915_request *rq)
>   		GEM_BUG_ON(!list_empty(virtual_queue(ve)));
>   		list_move_tail(&rq->sched.link, virtual_queue(ve));
>   
> -		tasklet_schedule(&ve->base.execlists.tasklet);
> +		tasklet_hi_schedule(&ve->base.execlists.tasklet);
>   	}
>   
>   	spin_unlock_irqrestore(&ve->base.active.lock, flags);
> 

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Regards,

Tvrtko
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
index e597325d04f1..80885ba87db5 100644
--- a/drivers/gpu/drm/i915/gt/intel_lrc.c
+++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
@@ -1403,7 +1403,7 @@  static void kick_siblings(struct i915_request *rq, struct intel_context *ce)
 	struct i915_request *next = READ_ONCE(ve->request);
 
 	if (next && next->execution_mask & ~rq->execution_mask)
-		tasklet_schedule(&ve->base.execlists.tasklet);
+		tasklet_hi_schedule(&ve->base.execlists.tasklet);
 }
 
 static inline void
@@ -5560,7 +5560,7 @@  static void virtual_submit_request(struct i915_request *rq)
 		GEM_BUG_ON(!list_empty(virtual_queue(ve)));
 		list_move_tail(&rq->sched.link, virtual_queue(ve));
 
-		tasklet_schedule(&ve->base.execlists.tasklet);
+		tasklet_hi_schedule(&ve->base.execlists.tasklet);
 	}
 
 	spin_unlock_irqrestore(&ve->base.active.lock, flags);