Skip to content

Commit 19b7f7c

Browse files
srishanmalexdeucher
authored andcommitted
drm/amdgpu/gfx12: Add Cleaner Shader Support for GFX12.0 GPUs
This commit enables the cleaner shader feature for GFX12.0 and GFX12.0.1 GPUs. The cleaner shader is important for clearing GPU resources such as Local Data Share (LDS), Vector General Purpose Registers (VGPRs), and Scalar General Purpose Registers (SGPRs) between workloads. - This feature ensures that GPU resources are reset between workloads, preventing data leaks and ensuring accurate computation. By enabling the cleaner shader, this update enhances the security and reliability of GPU operations on GFX12.0 hardware. Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f2935a3 commit 19b7f7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,14 @@ static int gfx_v12_0_sw_init(struct amdgpu_ip_block *ip_block)
13521352
}
13531353

13541354
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
1355+
case IP_VERSION(12, 0, 0):
1356+
case IP_VERSION(12, 0, 1):
1357+
if (adev->gfx.me_fw_version >= 2480 &&
1358+
adev->gfx.pfp_fw_version >= 2530 &&
1359+
adev->gfx.mec_fw_version >= 2680 &&
1360+
adev->mes.fw_version[0] >= 100)
1361+
adev->gfx.enable_cleaner_shader = true;
1362+
break;
13551363
default:
13561364
adev->gfx.enable_cleaner_shader = false;
13571365
break;

0 commit comments

Comments
 (0)