amdgpu_gmc_gart_location(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_gmc_gart_location(9) β€” a Kernel API Manual moment

okay bestie, welcome to the Kernel API Manual, this is amdgpu_gmc_gart_location(9) and she is lowkey the friend who always figures out where everyone's sitting at lunch πŸ“


✨ NAME ✨

amdgmc_gmc_gart_location β€” nope, sorry, not that πŸ’€ it's amdgpu_gmc_gart_location β€” try to find GART location. that's the whole vibe. she's a locator. a placement girlie. πŸŽ€


🌸 SYNOPSIS 🌸

void amdgpu_gmc_gart_location (struct amdgpu_device *adev , struct
amdgpu_gmc *mc , enum amdgpu_gart_placement gart_placement );

look at her signature, so clean, so iconic ✨ returns void β€” she literally cannot fail, no cap (we'll get to that).


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” the amdgpu device structure, and she is carrying all necessary information in her little bag πŸ‘œ like, everything this function could possibly need lives in here.
  • mc β€” the memory controller structure, holding all the memory information. memory info queen πŸ‘‘
  • gart_placement β€” the GART placement policy with respect to VRAM. this is the preference argument, the one that's like "okay but where do you WANT her to go tho" πŸ’­

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do. Function will try to place GART before or after VRAM β€” that's it, that's the whole job, she's picking a lane πŸ›£οΈ

if the GART size is bigger than the space that's left over? no worries bestie, we just adjust the GART size πŸͺ„ she shrinks to fit, adaptable main character energy fr fr.

and therefore β€” this is the important part β€” the function will never fail. literally never. no error code, no sad return value, no -ENOMEM heartbreak 😭 she always comes through πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c β€” that's where she lives, go say hi 🫢

and her whole friend group, the extended gmc cinematic universe:

go read them all, i'll wait πŸ’…


anyway that's the whole page, mwah πŸ’‹ this one came from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and she answers to amdgpu_gmc_gart_location(9) β€” periodt. ⭐

πŸ“¦ where this page comes from