[PATCH 1/4] drm/amdgpu: fix ring priority assignment
Nirmoy Das
nirmoy.das at amd.com
Mon Feb 1 14:37:57 UTC 2021
Assign correct ring priority.
Fixes: 33abcb1f5a17 ("drm/amdgpu: set compute queue priority at mqd_init")
Signed-off-by: Nirmoy Das <nirmoy.das at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
index 1a612f51ecd9..b3d064383807 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
@@ -258,7 +258,8 @@ int amdgpu_ring_init(struct amdgpu_device *adev, struct amdgpu_ring *ring,
}
ring->max_dw = max_dw;
- ring->priority = DRM_SCHED_PRIORITY_NORMAL;
+ ring->priority = (hw_prio == AMDGPU_GFX_PIPE_PRIO_HIGH) ?
+ DRM_SCHED_PRIORITY_HIGH : DRM_SCHED_PRIORITY_NORMAL;
mutex_init(&ring->priority_mutex);
if (!ring->no_scheduler) {
--
2.30.0
More information about the amd-gfx
mailing list