gmc_v8_0_gart_enable(9)
π gmc_v8_0_gart_enable(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β this is the page for gmc_v8_0_gart_enable, and honestly? it's giving "the setup queen of the graphics memory controller" and I'm obsessed. let's get into it β¨
πΈ NAME πΈ
gmc_v8_0_gart_enable β gart enable. that's it. that's the whole name. short, sweet, and lowkey iconic π
π¦ SYNOPSIS π¦
int gmc_v8_0_gart_enable (struct amdgpu_device *adev );
so it takes one thing and gives you back an int. no cap, that's the whole signature π«Ά
π ARGUMENTS π
adevβ anamdgpu_devicepointer. literally just the device handle you're passing in, bestie. that's the vibe π
β¨ DESCRIPTION β¨
okay so here's what this function actually does, and it does a LOT, main character energy fr fr π
it sets up the TLBs. it programs the page tables for VMID0. it sets up the hardware for VMIDs 1-15 β and those ones are allocated on demand, iykyk, they show up when they're needed π§
then it sets up the global locations for the LDS, the GDS, and the GPUVM for FSA64 clients (VI). all of that. in one function. slay π
as for what you get back: it returns 0 for success, and errors for failure. so like, if you see a 0 you're thriving, and if you see anything else... you're not π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/amd/amdgpu/gmc_v8_0.cβ that's where the actual code lives, go look at her π gmc_v8_0_init_microcode(9)gmc_v8_0_tonga_mc_load_microcode(9)gmc_v8_0_mc_program(9)gmc_v8_0_mc_init(9)gmc_v8_0_flush_gpu_tlb_pasid(9)gmc_v8_0_flush_gpu_tlb(9)gmc_v8_0_set_fault_enable_default(9)gmc_v8_0_set_prt(9)gmc_v8_0_gart_disable(9)β the girlies who undo what we just did, we respect her πgmc_v8_0_vm_decode_fault(9)
bestie reminder: all of these live in ./drivers/gpu/drm/amd/amdgpu, so like... go read them, they're right there π
and that's the page!! sign-off time: this lil beauty comes to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β take care of her, she's doing a lot of hardware setup for you πππ¦
π¦ 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