]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: enable only one high prio compute queue
authorNirmoy Das <nirmoy.das@amd.com>
Mon, 1 Feb 2021 11:12:34 +0000 (12:12 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Feb 2021 20:26:56 +0000 (15:26 -0500)
commitef0d5907c8086d6f0974376fd79991de107b49ba
treed48ffacb39796428e2acf556f0c20cd5e8752845
parent9eb7336971e35b59c034c996de12ae152cf42f45
drm/amdgpu: enable only one high prio compute queue

For high priority compute to work properly we need to enable
wave limiting on gfx pipe. Wave limiting is done through writing
into mmSPI_WCL_PIPE_PERCENT_GFX register. Enable only one high
priority compute queue to avoid race condition between multiple
high priority compute queues writing that register simultaneously.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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