amdgpu_devic...gating_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 an amdgpu_device pointer. 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 ngl
  • state β€” 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:


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