Re: [PATCH 5/8] drm/msm: Fix sched_prio inversion within a ring
From: Konrad Dybcio
Date: Mon Oct 26 2026 - 06:01:58 EST
On 10/24/26 12:30 PM, Akhil P Oommen wrote:
> From: Jie Zhang <jie.zhang@xxxxxxxxxxxxxxxx>
>
> Commit 38f922a563aa ("drm/sched: Reverse run-queue priority enumeration")
> reversed the values of each sched priority. But it didn't update
> msm_gpu_convert_priority() to match the new order. This results in
> incorrect sched priorities within a ring.
>
> To fix this, remove the inversion logic and add an offset of
> DRM_SCHED_PRIORITY_HIGH to keep the range within [HIGH..LOW], reserving
> KERNEL for internal submissions.
>
> Fixes: 38f922a563aa ("drm/sched: Reverse run-queue priority enumeration")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jie Zhang <jie.zhang@xxxxxxxxxxxxxxxx>
> Signed-off-by: Akhil P Oommen <akhilpo@xxxxxxxxxxxxxxxx>
> ---
Acked-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad