[Intel-gfx] [PATCH 03/10] drm/i915: Strip out internal priorities

Andi Shyti andi at etezian.org
Thu Jan 21 15:23:51 UTC 2021


Hi Chris,

> -static void __bump_priority(struct i915_sched_node *node, unsigned int bump)
> -{
> -	struct i915_sched_attr attr = node->attr;
> -
> -	if (attr.priority & bump)
> -		return;
> -
> -	attr.priority |= bump;
> -	__i915_schedule(node, &attr);
> -}
> -
> -void i915_schedule_bump_priority(struct i915_request *rq, unsigned int bump)
> -{
> -	unsigned long flags;
> -
> -	GEM_BUG_ON(bump & ~I915_PRIORITY_MASK);
> -	if (READ_ONCE(rq->sched.attr.priority) & bump)
> -		return;
> -
> -	spin_lock_irqsave(&schedule_lock, flags);
> -	__bump_priority(&rq->sched, bump);
> -	spin_unlock_irqrestore(&schedule_lock, flags);
> -}

was, indeed, this function used anywhere else?

Reviewed-by: Andi Shyti <andi.shyti at intel.com>

Andi


More information about the Intel-gfx mailing list