radeon_atpx_switch_start(9)
π 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 capmux_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:
radeon_atpx_call(9)radeon_atpx_parse_functions(9)radeon_atpx_validate(9)radeon_atpx_verify_interface(9)radeon_atpx_set_discrete_state(9)radeon_atpx_switch_disp_mux(9)radeon_atpx_switch_i2c_mux(9)radeon_atpx_switch_end(9)radeon_atpx_switchto(9)radeon_atpx_power_state(9)radeon_atpx_pci_probe_handle(9)radeon_atpx_init(9)radeon_atpx_get_client_id(9)radeon_atpx_detect(9)radeon_register_atpx_handler(9)radeon_unregister_atpx_handler(9)
β 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
- 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