]> git.hungrycats.org Git - linux/commit
drm/sched: revert "Always increment correct scheduler score"
authorChristian König <christian.koenig@amd.com>
Mon, 30 Sep 2024 13:07:49 +0000 (15:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:01:13 +0000 (12:01 +0200)
commit4a5dac62c172a202507d292fe9bed5aa3acf3d32
tree70906a5851adf9bea293b6e2b7078cf901f10a79
parenta3ab4e7e10ae05c908951c425541c7de3fa619d7
drm/sched: revert "Always increment correct scheduler score"

commit abf201f6ce14c4ceeccde5471bdf59614b83a3d8 upstream.

This reverts commit 087913e0ba2b3b9d7ccbafb2acf5dab9e35ae1d5.

It turned out that the original code was correct since the rq can only
change when there is no armed job for an entity.

This change here broke the logic since we only incremented the counter
for the first job, so revert it.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240930131451.536150-1-christian.koenig@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/scheduler/sched_entity.c