AMDGPU XGMI SUPPORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– AMDGPU XGMI Support πŸ’–

okay so this is the Kernel API Manual page for AMDGPU XGMI Support(9) β€” and bestie, it’s giving β€œGPUs holding hands in a shared memory hive” energy. 🐝✨

XGMI is a high speed interconnect that joins multiple GPU cards into a homogeneous memory space. That space is organized by a collective hive ID and individual node IDs, and both of those are 64-bit numbers. no cap. πŸ”₯

The file xgmi_device_id contains the unique per GPU device ID, and it lives in the /sys/class/drm/card${cardno}/device/ directory. πŸŽ€

Inside the device directory there’s a sub-directory called 'xgmi_hive_info' β€” it gets created and contains the hive ID plus the list of nodes. πŸ’…

The hive ID is stored in: /sys/class/drm/card${cardno}/device/xgmi_hive_info/xgmi_hive_id

The node info is stored in numbered directories: /sys/class/drm/card${cardno}/device/xgmi_hive_info/node${nodeno}/xgmi_device_id

Each device has their own xgmi_hive_info direction β€” yes, the original literally says β€œdirection” 😭 β€” with a mirror set of node sub-directories. πŸͺž

The XGMI memory space is built by contiguously adding the power of two padded VRAM space from each node to each other. periodt. 🧚


πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c β€” go read it, iykyk. πŸ“šπŸ’–


mwah πŸ’‹ this cutie came from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it’s the AMDGPU XGMI Support(9) manual page. slay. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from