amdgpu_devic...gating_state(9)
β¨ NAME β¨
okay so bestie, this is a page from the Kernel API Manual (yes, that's the manual name, we're being fancy today π
) and it's all about amdgpu_device_ip_set_clockgating_state β which is literally the function that sets the CG state π₯
πΈ SYNOPSIS πΈ
int amdgpu_device_ip_set_clockgating_state (struct amdgpu_device *adev ,
enum amd_ip_block_type block_type , enum amd_clockgating_state state );
like, that's the whole signature, no cap β copy it exactly, she's iconic π
π¦ ARGUMENTS π¦
adevβ it's anamdgpu_devicepointer. that's it, that's the whole vibe π«Άblock_typeβ the type of hardware IP you're dealing with (SMU, GFX, UVD, etc.) β the "etc." is doing so much work here nglstateβ the clockgating state, and your two moods are gate or ungate ππ
β DESCRIPTION β
So what does she actually do? She sets the requested clockgating state for all instances of the hardware IP you specified. every single one. she's thorough like that π β¨
And the return value? It's the error code from the last instance. not the first, not the best one β the last one. main character energy honestly π
π SEE ALSO π
- Kernel file:
./drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c
and the whole friend group, fr fr:
amdgpu_device_ip_get_ip_block(9)amdgpu_device_ip_block_version_cmp(9)amdgpu_device_ip_block_add(9)amdgpu_device_ip_set_powergating_state(9)amdgpu_device_ip_get_clockgating_state(9)amdgpu_device_ip_wait_for_idle(9)amdgpu_device_ip_is_valid(9)amdgpu_ip_from_ring(9)amdgpu_ring_mask_from_ip(9)amdgpu_device_ip_soft_reset(9)
lowkey a whole squad of amdgpu_device_ip_* functions and you're telling me you only clicked on this one? go read the rest bestie, they're all in that same file π
and that's the page!! π§π it came from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β slay, see you in the future, mwah ππβ¨
π¦ 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