amdgpu_atpx_switch_end(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_atpx_switch_end β€” notify the sbios of a GPU switch

okay bestie so this is amdgpu_atpx_switch_end(9) from the Kernel API Manual, and it is literally the "we're done here" text you send to the sbios after your GPU has finished switching. no cap, that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

int amdgpu_atpx_switch_end (struct amdgpu_atpx *atpx , u16 mux_id );

that's the whole signature, copy it exactly, don't be cute with the spacing πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • atpx β€” the atpx info struct. it's giving "your little passport of ATPX data", hand it over and we're good 🫢
  • mux_id β€” the mux state, and the values are very specific: 0 = integrated GPU, 1 = discrete GPU. no in-between, no vibes-based guessing ✨

🌸 DESCRIPTION 🌸

so what this icon does is run the ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION ATPX function, and its whole job is to notify the sbios that a switch between the discrete GPU and the integrated GPU has ended. that's it. that's the main character moment. πŸ”₯

and yes, it applies to all asics β€” every single one, no exceptions, we love an inclusive king πŸ‘‘

return value tea β˜•: it returns 0 on success, and an error on failure. that's the deal. simple, iconic, periodt.


πŸ”— SEE ALSO πŸ”—

the kernel file lives right here, go say hi:

  • ./drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c

and here's the whole friend group, all 16 of them, no one left out (iykyk) πŸ’œ


🌈 lowkey a note to future me: this page came from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and its manual name is amdgpu_atpx_switch_end(9). screenshot it, save it, slay πŸ’…βœ¨
πŸ“¦ where this page comes from