drm/amdgpu/gfx12: Implement cleaner shader support for GFX12 hardware
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 2 Oct 2024 04:28:15 +0000 (09:58 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:09:28 +0000 (14:09 -0400)
commite7cee5459517e49a540240b03d207d0f81625109
tree32842894d9ac3c614d917dd0f2005d60696786c8
parentdafc87dcdc3bc50ac72c59156d64ed5267ad28e2
drm/amdgpu/gfx12: Implement cleaner shader support for GFX12 hardware

This patch adds support for the PACKET3_RUN_CLEANER_SHADER packet in the
gfx_v12_0 module. This packet is used to emit the cleaner shader, which
is used to clear GPU memory before it's reused, helping to prevent data
leakage between different processes.

Finally, the patch updates the ring function structures to include the
new gfx_v12_0_ring_emit_cleaner_shader function. This allows the
cleaner shader to be emitted as part of the ring's operations.

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c