amdgpu_gfx_...eaner_shader(9)
πΈ NAME πΈ
okay bestie, welcome to the Kernel API Manual β this page is amdgpu_gfx_...eaner_shader(9). The function we're hyping up is amdgpu_gfx_set_run_cleaner_shader, and its whole gig is: Execute the AMDGPU GFX Cleaner Shader. Periodt. π
β¨ SYNOPSIS β¨
hereβs the exact signature, no cap β donβt let the line wrapping gaslight you:
ssize_t amdgpu_gfx_set_run_cleaner_shader (struct device *dev , struct device_attribute *attr , const char *buf , size_t count );
π«Ά ARGUMENTS π«Ά
devβ the device structure. The main character device situation.attrβ the device attribute structure. The sysfs attribute vibe check.bufβ the buffer containing the input data. Thatβs where your value lives.countβ the size of the input data. Respect the byte count, bestie.
π DESCRIPTION π
okay so this is the sysfs interface for manually running a cleaner shader. The cleaner shader is the thing that clears the GPU state between different tasks β itβs giving reset-energy, but make it data isolation. β¨
Writing a value to this sysfs file: the value written corresponds to the partition index on multi-partition devices. On single-partition devices, the value should be '0'. No cap.
And what does the cleaner shader actually clear? The Local Data Store (LDS) and General Purpose Registers (GPRs), so that data isolation between GPU workloads stays intact. Itβs iconic, itβs necessary, itβs literally the vibe check between jobs, fr fr. π«Ά
π RETURN π
The return value is the number of bytes written to the sysfs file. Thatβs it β thatβs the whole return. Highkey slay. π
π¦ SEE ALSO π¦
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
the whole friend group:
amdgpu_gfx_parse_disable_cu(9)amdgpu_gfx_handle_priv_fault(9)amdgpu_gfx_get_enforce_isolation(9)amdgpu_gfx_set_enforce_isolation(9)amdgpu_gfx_kfd_sch_ctrl(9)amdgpu_gfx_enforce_isolation_handler(9)amdgpu_gfx_enforce_isolation_wait_for_kfd(9)amdgpu_gfx_enforce_isolation_ring_begin_use(9)amdgpu_gfx_enforce_isolation_ring_end_use(9)amdgpu_gfx_csb_preamble_start(9)amdgpu_gfx_csb_data_parser(9)amdgpu_gfx_csb_preamble_end(9)
bye bestie! this page is from the source path ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and itβs the amdgpu_gfx_...eaner_shader(9) manual page signing off. π
πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms