]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Add PACKET3_RUN_CLEANER_SHADER for cleaner shader execution
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Sun, 7 Jul 2024 03:24:04 +0000 (08:54 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Aug 2024 02:07:02 +0000 (22:07 -0400)
commit22ff907d4f0457b2800f4c6d4f40d4d4d31f7de1
tree494fccdf3811c7e1947383198b5a6cb036c12e79
parentd361ad5d2fc0e4d59d5d538092c9b37889756642
drm/amdgpu: Add PACKET3_RUN_CLEANER_SHADER for cleaner shader execution

This commit adds the PACKET3_RUN_CLEANER_SHADER definition. This packet
is a command packet used to instruct the GPU to execute the cleaner
shader.

The cleaner shader is a piece of GPU code that is used to clear or
initialize certain GPU resources, such as Local Data Share (LDS), Vector
General Purpose Registers (VGPRs), and Scalar General Purpose Registers
(SGPRs). Clearing these resources is important for ensuring data
isolation between different workloads running on the GPU.

The PACKET3_RUN_CLEANER_SHADER packet is used to trigger the execution
of the cleaner shader on the GPU. The packet consists of a header
followed by a RESERVED field, which is programmed to zero. When the GPU
receives this packet, it fetches and executes the cleaner shader
instructions from the location specified in the packet.

The cleaner shader feature helps to enhances security and reliability by
preventing data leaks between workloads.

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