AMDGPU RAP DEBUGFS TEST INTERFACE(9)
π AMDGPU RAP debugfs test interface
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil baby page but it's still iconic, so pay attention π«Ά
πΈ NAME
AMDGPU RAP debugfs test interface β literally the whole vibe of this page, no notes π
β¨ DESCRIPTION β¨
so you wanna know how to use it? it's giving one-liner energy, honestly π
echo opcode > <debugfs_dir>/dri/xxx/rap_test
that's it. that's the whole ritual π you echo an opcode into <debugfs_dir>/dri/xxx/rap_test and the kernel handles the rest, slay β¨
π₯ the opcode tea
opcodeβ currently, only2is supported by the Linux host driver π (yes, just the one. she's exclusive π )
and what does 2 mean, you ask? so glad you did π§
2β stands forTA_CMD_RAP__VALIDATE_L0β it's the one that's used to trigger L0 policy validation. main character behaviour, fr fr π
want more deets? you can refer to more detail from the header file ta_rap_if.h π iykyk π
ngl bestie, don't go inventing new opcodes β only 2 is supported by the Linux host driver, and that's the whole menu π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_rap.cβ go read the source, it's lowkey the real lore π¦
alright that's the page!! π source/version vibes live in ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and this whole thing is the Kernel API Manual β ok bye, go validate some L0 policy, periodt ππ
π¦ 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