amdgpu_atpx_switch_i2c_mux(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 mysterious
  • mux_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 πŸ‘‘


🫢 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