drm/amdgpu: add wave limit functionality for gfx8,9
authorNirmoy Das <nirmoy.das@amd.com>
Wed, 27 Jan 2021 10:35:54 +0000 (11:35 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Feb 2021 20:27:04 +0000 (15:27 -0500)
commit0a52a6cacca6030374fca7087e8556b382cca0e3
tree733da3806d50d8266fd1a5d576acb07defbd6dd5
parent8c0225d79273968a65e73a4204fba023ae02714d
drm/amdgpu: add wave limit functionality for gfx8,9

Wave limiting can be use to load balance high priority
compute jobs along with gfx jobs. When enabled, this will reserve
~75% of waves for compute jobs.

We do not need this from gfx10 onwards because >=gfx10 has
asynchronous compute tunneling to replace wave limit requirement.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-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_ring.h
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c