amdgpu_atpx_switch_end(9)
π 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) π
amdgpu_atpx_call(9)amdgpu_atpx_parse_functions(9)amdgpu_atpx_validate(9)amdgpu_atpx_verify_interface(9)amdgpu_atpx_set_discrete_state(9)amdgpu_atpx_switch_disp_mux(9)amdgpu_atpx_switch_i2c_mux(9)amdgpu_atpx_switch_start(9)amdgpu_atpx_switchto(9)amdgpu_atpx_power_state(9)amdgpu_atpx_pci_probe_handle(9)amdgpu_atpx_init(9)amdgpu_atpx_get_client_id(9)amdgpu_atpx_detect(9)amdgpu_register_atpx_handler(9)amdgpu_unregister_atpx_handler(9)
π lowkey a note to future me: this page came from./drivers/gpu/drm/amd/amdgpu, dated October 2026, and its manual name isamdgpu_atpx_switch_end(9). screenshot it, save it, slay π β¨
π¦ 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