amdgpu_pci_error_detected(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_pci_error_detected β€” like, the kernel API manual page, but make it make sense

okay so bestie, welcome to amdgpu_pci_error_detected(9) from the Kernel API Manual ✨ this one's short and sweet β€” it's the little function that gets ping-ponged into existence the moment a PCI error shows up, and it's giving "first responder energy" fr fr 🚨


✨ NAME ✨

amdgpu_pci_error_detected β€” bestie, this is the one that gets called when a PCI error is detected. that's it. that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

pci_ers_result_t amdgpu_pci_error_detected (struct pci_dev *pdev ,
       pci_channel_state_t state );

like, it takes two things and hands you back a pci_ers_result_t. iconic signature, no notes πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the PCI device struct πŸ–₯️ literally the GPU's little ID card in PCI-land. you know, the device itself.
  • state β€” the PCI channel state 🌑️ aka "how bad is it" β€” the current mood of the channel, and not in a cute way.

πŸ’– DESCRIPTION πŸ’–

Called when a PCI error is detected πŸ’€ that's the whole thing. the kernel detects a PCI error, and this function is the main character that gets the call. no cap, that's the entire description β€” short, blunt, and honestly? respect πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

it returns one of these two:

  • PCI_ERS_RESULT_NEED_RESET β€” "she's not okay but she can be fixed, hit her with a reset" πŸ”„
  • PCI_ERS_RESULT_DISCONNECT β€” "yeah no, cut her loose" βœ‚οΈ

🌈 SEE ALSO 🌈

okay so this list is long and honestly kind of a flex πŸ’… β€” first, the kernel file this all lives in:

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

and then, in order, the whole friend group πŸ‘―:


like, seriously bestie, that SEE ALSO list is a whole roll call 😭 go read a few, they're lowkey all part of the same amdgpu_device.c saga.

okay that's the page!! mwah πŸ’‹ this lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and yes it's literally titled amdgpu_pci_error_detected(9) β€” slay, go handle your PCI errors responsibly πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from