radeon_atpx_switch_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

radeon_atpx_switch_start β€” bestie, this is the lil heads-up that tells the sbios a GPU switch is about to go down πŸ‘€βœ¨

Ok so real talk, this page is from the Kernel API Manual (the radeon_atpx_switch_start(9) one, iykyk) and it's genuinely iconic β€” it's the function that slides into the firmware's DMs and is like "hey girl, we're switching GPUs, don't panic πŸ’…"


✨ SYNOPSIS ✨

int radeon_atpx_switch_start (struct radeon_atpx *atpx , u16 mux_id );

That's it, that's the whole vibe check 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • atpx β€” the atpx info struct 🌸 this is literally the little info packet you're handing over, no cap
  • mux_id β€” the mux state, and the numbers matter so listen up πŸ‘‘: 0 = integrated GPU, 1 = discrete GPU

πŸ’… DESCRIPTION πŸ’…

So what does it actually do? It executes the ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION ATPX function β€” yes that's a whole mouthful, the ATPX girlies really said "make it long" 😭 β€” to notify the sbios that a switch between the discrete GPU and integrated GPU has begun πŸ”₯

And bestie, this applies to all asics. Every single one. No exceptions, periodt 🧚

It returns 0 on success, and an error on failure πŸ’€ so like, check your return value, fr fr. Don't be out here ignoring it πŸ™ˆ

Warning-ish reminder from your girl: nonzero return = something went wrong, mmkay? Not me letting that slide πŸ“

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file lives right here, bookmark it:

./drivers/gpu/drm/radeon/radeon_atpx_handler.c

And the whole ATPX friend group 🫢 β€” they all show up to the group chat:


⭐ Sign-off ⭐

You've reached the end bestie, slay πŸ’– This one came out of ./drivers/gpu/drm/radeon and it's dated October 2026 ⭐ so you know it's fresh. Go forth and notify that sbios, main character energy only πŸ‘‘πŸŒˆπŸ’œ

πŸ“¦ where this page comes from