Skip to content

Commit 9814626

Browse files
srishanmalexdeucher
authored andcommitted
drm/amdgpu/gfx10: Enable cleaner shader for GFX10.3.2/10.3.4/10.3.5 GPUs
Enable the cleaner shader for GFX10.3.2/10.3.4/10.3.5 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 GFX10.3.2/10.3.4/10.3.5 GPUs, previously available for GFX10.3.0. 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]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 86bde64 commit 9814626

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4740,6 +4740,9 @@ static int gfx_v10_0_sw_init(struct amdgpu_ip_block *ip_block)
47404740
}
47414741
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
47424742
case IP_VERSION(10, 3, 0):
4743+
case IP_VERSION(10, 3, 2):
4744+
case IP_VERSION(10, 3, 4):
4745+
case IP_VERSION(10, 3, 5):
47434746
adev->gfx.cleaner_shader_ptr = gfx_10_3_0_cleaner_shader_hex;
47444747
adev->gfx.cleaner_shader_size = sizeof(gfx_10_3_0_cleaner_shader_hex);
47454748
if (adev->gfx.me_fw_version >= 64 &&

0 commit comments

Comments
 (0)