amdgpu_devic...gating_state(9)
π amdgpu_device_ip_get_clockgating_state β the kernel API manual, but make it make sense
okay so bestie, welcome to the glow-up edition of amdgpu_devic...gating_state(9) from the Kernel API Manual. yes the title is truncated with dots in the header, that's just how the manpage stylists do it, don't come for them π
β¨ NAME β¨
amdgpu_device_ip_get_clockgating_state β get the CG state π«Ά
like, literally just fetch the clockgating state. that's the whole vibe.
πΈ SYNOPSIS πΈ
void amdgpu_device_ip_get_clockgating_state (struct amdgpu_device *adev
, u64 *flags );
it returns void, so don't go looking for a return value, bestie, there isn't one π
π¦ ARGUMENTS π¦
adevβ anamdgpu_devicepointer. yeah. the device. the main character of this whole situation πflagsβ the clockgating feature flags. you hand it over and it gets updated, iykyk.
π₯ DESCRIPTION π₯
so what actually happens? it walks the list of IPs on the device and updates the clockgating flags for each IP. that's it, that's the plot β¨
more specifically, it updates flags with the feature flags for each hardware IP where clockgating is enabled. so the ones that aren't clockgated? not invited to the party π the ones that are? they're getting their flags written in, periodt π
ngl this one's a getter with side effects on your flags pointer, so be chill about that and make sure you actually want it written to. no cap.
π SEE ALSO π
starting with the kernel file, iconic behaviour:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c amdgpu_device_ip_get_ip_block(9)amdgpu_device_ip_block_version_cmp(9)amdgpu_device_ip_block_add(9)amdgpu_device_ip_set_clockgating_state(9)amdgpu_device_ip_set_powergating_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)
the whole friend group fr fr π§π
π that's the page!! sourced from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and yes it's filed under amdgpu_devic...gating_state(9) β go read it again if you forgot anything, slay πβ
π¦ 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