Skip to content

Commit dfb214e

Browse files
srishanmalexdeucher
authored andcommitted
drm/amdgpu/gfx11: Enable cleaner shader for GFX11.0.0/11.0.2 GPUs
Enable the cleaner shader for GFX11.0.0/11.0.2 GPUs to provide data isolation between GPU workloads. The cleaner shader is responsible for clearing the Local Data Store (LDS), Vector General Purpose Registers (VGPRs), and Scalar General Purpose Registers (SGPRs), which helps prevent data leakage and ensures accurate computation results. This update extends cleaner shader support to GFX11.0.0/11.0.2 GPUs, previously available for GFX11.0.3. It enhances security by clearing GPU memory between processes and maintains a consistent GPU state across KGD and KFD workloads. Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Suggested-by: Alex Deucher <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 5954cfa commit dfb214e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,8 @@ static int gfx_v11_0_sw_init(struct amdgpu_ip_block *ip_block)
15801580
}
15811581

15821582
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
1583+
case IP_VERSION(11, 0, 0):
1584+
case IP_VERSION(11, 0, 2):
15831585
case IP_VERSION(11, 0, 3):
15841586
adev->gfx.cleaner_shader_ptr = gfx_11_0_3_cleaner_shader_hex;
15851587
adev->gfx.cleaner_shader_size = sizeof(gfx_11_0_3_cleaner_shader_hex);

0 commit comments

Comments
 (0)