amdgpu_devi...spend_phase1(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_device_ip_suspend_phase1 β€” NAME 🌸

okay so this is amdgpu_device_ip_suspend_phase1 β€” the Kernel API Manual's very own "run suspend for hardware IPs (phase 1)" girlie. yes that's literally her whole job and she ate πŸ’–


✨ SYNOPSIS ✨

int amdgpu_device_ip_suspend_phase1 (struct amdgpu_device *adev );

like, that's it. one function, one argument, zero drama (well, okay, a little drama, see the return value below 😭)


πŸŽ€ ARGUMENTS πŸŽ€

  • adev β€” an amdgpu_device pointer. that's the whole description bestie, the manpage didn't elaborate, and honestly? iconic minimalism. it's your GPU's whole personality in one struct 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: this is the main suspend function for hardware IPs. like the headliner. the main character energy 🌟

the list of all the hardware IPs that make up the asic gets walked β€” yes, walked, she's doing a little tour πŸ‘‘ β€” and during that stroll, clockgating is disabled and the suspend callbacks are run. no cap, that's the entire vibe.

what suspend actually does: it puts the hardware and the software state in each IP into a state suitable for suspend. every single IP gets tucked in for its nap 😴

and the return? it returns 0 on success, or a negative error code on failure πŸ’€ so if you get a negative number back, something did NOT slay and you should go look at it.


πŸ”₯ SEE ALSO πŸ”₯

first up, the kernel file itself, go read the source, it's giving lore:

  • ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

and then the whole ENTIRE extended friend group, iykyk β€” actual full list, no gatekeeping, every single one:

like, that's the whole group chat and they ALL showed up to the hangout πŸŒˆπŸ’œ


lowkey a lil PSA: phase 1 is only part of the suspend pipeline β€” her sister amdgpu_device_ip_suspend_phase2(9) exists for a reason, so don't expect her to do everything solo πŸ™ˆ

and that's the page bestie!! πŸŽ€ source lives over in ./drivers/gpu/drm/amd/amdgpu and this whole thing is dated October 2026 β€” mwah, stan, amdgpu_devi...spend_phase1(9) out πŸ’…βœ¨

πŸ“¦ where this page comes from