sdma_v5_0_ctx_switch_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v5_0_ctx_switch_enable(9) β€” like, the kernel API manual, but make it make sense

okay bestie, so this is a page straight out of the Kernel API Manual, and it's about one very specific little function in the AMDGPU SDMA world. Buckle up πŸŽ€


✨ NAME ✨

sdma_v5_0_ctx_switch_enable β€” stop the async dma engines context switch πŸ›‘

no cap, that's literally what the NAME section says: stop the async dma engines context switch. She's a stopper. An icon. πŸ’…

🌸 SYNOPSIS 🌸

void sdma_v5_0_ctx_switch_enable (struct amdgpu_device *adev , bool
enable );

so she takes an amdgpu_device pointer and a bool, and she returns void β€” no little return value to obsess over, she just does the thing and leaves. main character energy honestly ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” an amdgpu_device pointer. that's your device bestie, the whole AMDGPU situation in one struct pointer 🫢
  • enable β€” enable/disable the DMA MEs context switch. yes it's a bool named enable and yes it also disables, that's just how she rolls 😭

πŸ’– DESCRIPTION πŸ’–

Halt or unhalt the async dma engines context switch, specifically for NAVI10. πŸ”₯

that's it. that's the whole vibe. you either halt it or you unhalt it, and enable tells her which one you're feeling today. NAVI10 only, iykyk ⭐


🌈 SEE ALSO 🌈

the kernel file where all the magic lives, plus her entire friend group (she does not go anywhere without them):


and that's the whole page, bestie πŸ’œ this little gem lives in ./drivers/gpu/drm/amd/amdgpu, and the source/version + date situation is October 2026 β€” so mark your calendar, she's dated, she's documented, she's done. mwah πŸ“πŸ§š

πŸ“¦ where this page comes from