Skip to content

Commit 8ebaa3d

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/gfx10: look at the right prop for gfx queue priority
[ Upstream commit 355d96c ] Look at hqd_queue_priority rather than hqd_pipe_priority. In practice, it didn't matter as both were always set for kernel queues, but that will change in the future. Fixes: b07d1d7 ("drm/amd/amdgpu: Enable high priority gfx queue") Reviewed-by:Jesse Zhang <jesse.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a6d44f4 commit 8ebaa3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6338,7 +6338,7 @@ static void gfx_v10_0_gfx_mqd_set_priority(struct amdgpu_device *adev,
63386338
/* set up default queue priority level
63396339
* 0x0 = low priority, 0x1 = high priority
63406340
*/
6341-
if (prop->hqd_pipe_priority == AMDGPU_GFX_PIPE_PRIO_HIGH)
6341+
if (prop->hqd_queue_priority == AMDGPU_GFX_QUEUE_PRIORITY_MAXIMUM)
63426342
priority = 1;
63436343

63446344
tmp = RREG32_SOC15(GC, 0, mmCP_GFX_HQD_QUEUE_PRIORITY);

0 commit comments

Comments
 (0)