amdgpu_atpx_switch_i2c_mux(9)
π amdgpu_atpx_switch_i2c_mux(9) β from the Kernel API Manual, bestie β¨
okay so welcome to the <pink>amdgpu_atpx_switch_i2c_mux</pink> page β yes the whole name, we're not abbreviating, the function deserves her full government name π this one's a kernel API manual entry and honestly? she's short, she's sweet, she flips a mux. iconic behavior.
β¨ NAME β¨
amdgpu_atpx_switch_i2c_mux β literally just switches the i2c/hpd mux, that's the whole job, no cap π
π¦ SYNOPSIS π¦
int amdgpu_atpx_switch_i2c_mux (struct amdgpu_atpx *atpx , u16 mux_id );
πΈ ARGUMENTS πΈ
atpxβ the atpx info struct π«Ά that's it, that's the description, she's lowkey mysteriousmux_idβ the mux state:0= integrated GPU,1= discrete GPU. two options, pick your fighter β
π₯ DESCRIPTION π₯
so what she actually does: she executes the ATPX_FUNCTION_I2C_MUX_CONTROL ATPX function to switch the i2c/hpd mux between the discrete GPU and the integrated GPU β and yes, all asics, every single one, no exceptions bestie πβ¨
Return value check, because we always check: returns 0 on success, error on failure. that's the vibe check. 0 = slay, error = not slay π
π§ SEE ALSO π§
the kernel file in question, main character energy only:
./drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
and the whole friend group, fr fr β these are all <purple>(9)</purple> pages so you know they're the real ones π
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_start(9)amdgpu_atpx_switch_end(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)
π«Ά tiny reminder: this page lives in the kernel source tree at./drivers/gpu/drm/amd/amdgpu, and it's dated<yellow>October 2026</yellow>β yes, the future. she's ahead of her time. anyway bestie go switch that mux, mwah ππ¦πβ
π amdgpu_atpx_switch_i2c_mux(9) π
π¦ 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