amdgpu_gmc_set_agp_default(9)
β¨ amdgpu_gmc_set_agp_default(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for amdgpu_gmc_set_agp_default β yes it's a mouthful, yes you'll be saying it in your sleep, and yes it's lowkey iconic π
πΈ NAME πΈ
amdgpu_gmc_set_agp_default β sets the default AGP aperture value. that's it, that's the whole job, and she does it flawlessly π
β SYNOPSIS β
void amdgpu_gmc_set_agp_default (struct amdgpu_device *adev , struct
amdgpu_gmc *mc );
literally just hand her two structs and she handles the rest, no cap π«Ά
π¦ ARGUMENTS π¦
adevβ the amdgpu device structure, and she is holding all the necessary information for you. main character energy fr fr πmcβ the memory controller structure, keeping all the memory information safe and cozy. she knows things π
π₯ DESCRIPTION π₯
okay so here's the tea β β to disable the AGP aperture, you have to set the start to a larger value than the end. that's the trick, that's the whole vibe check, and it's giving "backwards but make it work" π
this function sets the default value β which you can then override using amdgpu_gmc_agp_location if you wanna enable the AGP aperture on a specific chip. so think of it as setting the baseline and then doing whatever you want afterwards, obsessed honestly β¨
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c 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_gart_location(9)amdgpu_gmc_agp_location(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)
like, go read the whole friend group, they all slay in their own way π
ngl bestie, this one's short and sweet β set the default, let the chip-specific override do its thing, and remember: start bigger than end means AGP aperture is off. periodt π
and that's the page!! brought to you by the fine folks over at ./drivers/gpu/drm/amd/amdgpu, dated October 2026, living under the amdgpu_gmc_set_agp_default(9) header π§π bye bestie, go read some kernel source π
π¦ 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