Skip to content

Commit eae672a

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/gfx11: look at the right prop for gfx queue priority
[ Upstream commit f9a4e81 ] 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: 2e216b1 ("drm/amdgpu/gfx11: handle priority setup for gfx pipe1") 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 0cd9d58 commit eae672a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4080,7 +4080,7 @@ static void gfx_v11_0_gfx_mqd_set_priority(struct amdgpu_device *adev,
40804080
/* set up default queue priority level
40814081
* 0x0 = low priority, 0x1 = high priority
40824082
*/
4083-
if (prop->hqd_pipe_priority == AMDGPU_GFX_PIPE_PRIO_HIGH)
4083+
if (prop->hqd_queue_priority == AMDGPU_GFX_QUEUE_PRIORITY_MAXIMUM)
40844084
priority = 1;
40854085

40864086
tmp = regCP_GFX_HQD_QUEUE_PRIORITY_DEFAULT;

0 commit comments

Comments
 (0)