amdgpu_acpi...hift_control(9)
π 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β anamdgpu_devicepointer. the main character of the whole struct world πdev_stateβ the device acpi state, typedu8. ngl it's small but it matters.drv_stateβ the driver state, abool. 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:
amdgpu_atif_call(9)amdgpu_atif_parse_notification(9)amdgpu_atif_parse_functions(9)amdgpu_atif_verify_interface(9)amdgpu_atif_get_notification_params(9)amdgpu_atif_query_backlight_caps(9)amdgpu_atif_get_sbios_requests(9)amdgpu_atif_handler(9)amdgpu_atcs_call(9)amdgpu_atcs_parse_functions(9)amdgpu_atcs_verify_interface(9)amdgpu_acpi_is_pcie_performance_request_supported(9)amdgpu_acpi_is_power_shift_control_supported(9)amdgpu_acpi_pcie_notify_device_ready(9)amdgpu_acpi_pcie_performance_request(9)amdgpu_acpi_smart_shift_update(9)amdgpu_acpi_set_uma_allocation_size(9)amdgpu_acpi_get_node_id(9)amdgpu_acpi_event(9)amdgpu_acpi_init(9)amdgpu_acpi_fini(9)amdgpu_atif_pci_probe_handle(9)amdgpu_atcs_pci_probe_handle(9)amdgpu_acpi_should_gpu_reset(9)amdgpu_acpi_is_s3_active(9)amdgpu_acpi_is_s0ix_active(9)
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
- 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