]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix compute queue priority if num_kcq is less than 4
authorNirmoy Das <nirmoy.das@amd.com>
Mon, 9 Nov 2020 16:04:51 +0000 (17:04 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 05:13:59 +0000 (00:13 -0500)
commit3a7f98d43f44c29d3b689e29fcbc7788dfd47aae
tree2e871786e9e2353dbf99d47d9108151fd13577c8
parent0733cbef733e22d1ff5cc428bb78955e34a4307f
drm/amdgpu: fix compute queue priority if num_kcq is less than 4

Compute queues are configurable with module param, num_kcq.
amdgpu_gfx_is_high_priority_compute_queue was setting 1st 4 queues to
high priority queue leaving a null drm scheduler in
adev->gpu_sched[hw_ip]["normal_prio"].sched if num_kcq < 5.

This patch tries to fix it by alternating compute queue priority between
normal and high priority.

Fixes: d6268e1a2ca8071b9 (drm/amdgpu: set compute queue priority at mqd_init)
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c