amdgpu_gmc_gart_location(9)
π 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:
amdgpu_gmc_pdb0_alloc(9)amdgpu_gmc_get_pde_for_bo(9)amdgpu_gmc_set_pte_pde(9)amdgpu_gmc_agp_addr(9)amdgpu_gmc_vram_location(9)amdgpu_gmc_agp_location(9)amdgpu_gmc_set_agp_default(9)amdgpu_gmc_fault_key(9)amdgpu_gmc_filter_faults(9)amdgpu_gmc_filter_faults_remove(9)amdgpu_gmc_tmz_set(9)amdgpu_gmc_noretry_set(9)amdgpu_gmc_init_pdb0(9)amdgpu_gmc_vram_mc2pa(9)amdgpu_gmc_vram_pa(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms