amdgpu_acpi...hift_control(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_acpi_power_shift_control πŸ’–

okay bestie, so this page lives in the Kernel API Manual (that's the manual name, consider it folded in πŸŽ€) and it's all about one very specific little function. let's get into it ✨


🌸 NAME 🌸

amdgpu_acpi_power_shift_control β€” yes that's literally the whole name section, the original gave us a dash and nothing else and honestly? mysterious. iconic. we move. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int amdgpu_acpi_power_shift_control (struct amdgpu_device *adev , u8
dev_state , bool drv_state );

that's it, that's the whole vibe check. a return type of int, and three lil params 🫢


✨ ARGUMENTS ✨

  • adev β€” an amdgpu_device pointer. the main character of the whole struct world πŸ’œ
  • dev_state β€” the device acpi state, typed u8. ngl it's small but it matters.
  • drv_state β€” the driver state, a bool. literally just true or false, no cap πŸ™ˆ

🌈 DESCRIPTION 🌈

okay so here's the tea: this function executes the POWER_SHIFT_CONTROL method πŸ”₯ and what that does is communicate the current dGPU device state and the driver state over to APU/SBIOS. like it's the group chat messenger between your GPU and the firmware, fr fr.

and the receipts? returns 0 on success, error on failure. periodt. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file that houses all this magic:

./drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c

and the whole friend group of related functions β€” go say hi, they're all (9) and they all slay in their own way:


okay that's the whole page bestie, you ate that reading session πŸ’–βœ¨

sign-off time πŸŽ€ this one came from ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β€” yes, the future. we're early. we're ahead of the trend. iykyk πŸ’…πŸ¦‹

πŸ“¦ where this page comes from