AMDGPU RAP DEBUGFS TEST INTERFACE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, only 2 is 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 for TA_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