radeon_atpx_switch_i2c_mux(9)
π radeon_atpx_switch_i2c_mux(9)
okay so picture this: you're deep in the kernel API manual (section 9, bestie, the big-kid section) and you stumble onto radeon_atpx_switch_i2c_mux. Yeah. That one. Let's get into it π«Ά
β¨ NAME β¨
radeon_atpx_switch_i2c_mux β the little function that flips the i2c/hpd mux. that's it. that's the whole job. iconic behavior, honestly π
πΈ SYNOPSIS πΈ
int radeon_atpx_switch_i2c_mux (struct radeon_atpx *atpx , u16 mux_id );
π¦ DESCRIPTION π¦
so what does it actually do? it executes the ATPX_FUNCTION_I2C_MUX_CONTROL ATPX function, which switches the i2c/hpd mux back and forth between the discrete GPU and the integrated GPU β and yes, this works on all asics, no gatekeeping π
It returns 0 on success, and an error on failure. that's the whole vibe check: zero means slay, anything else means something went wrong π
π ARGUMENTS π
atpxβ the atpx info struct. the main character of this whole operation πmux_idβ the mux state.0= integrated GPU,1= discrete GPU. pick your fighter π
β SEE ALSO β
first up, the kernel file where all this lives, no cap:
./drivers/gpu/drm/radeon/radeon_atpx_handler.c
and the whole friend group of related calls, because they literally all roll together:
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_start(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)
and that's the page, bestie π§ sourced straight from ./drivers/gpu/drm/radeon, dated October 2026, and it's the radeon_atpx_switch_i2c_mux(9) manual page β go switch some muxes, you've got this π
β¨π
π¦ 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