amdgpu_gart_map_gfx9_mqd(9)
π amdgpu_gart_map_gfx9_mqd(9) π
okay bestie, welcome to the Kernel API Manual β this one's all about amdgpu_gart_map_gfx9_mqd, and honestly? It's giving βsmall function, very specific jobβ energy. π
β¨ NAME β¨
amdgpu_gart_map_gfx9_mqd β maps the mqd and ctrl_stack dma_addresses into GART entries π¦
πΈ SYNOPSIS πΈ
void amdgpu_gart_map_gfx9_mqd (struct amdgpu_device *adev , uint64_t
offset , int pages , dma_addr_t *dma_addr , uint64_t flags );
π ARGUMENTS π
adevβ anamdgpu_devicepointer, aka the main character device reference πoffsetβ the offset into the GPU's gart aperture, so like... where in the aperture we're putting things πpagesβ the number of pages to bind, count βem π’dma_addrβ the DMA addresses of pages, plural, she's got a list πflagsβ page table entry flags, the little extra settings β¨
π§ DESCRIPTION π§
So what this does is map the MQD and control stack addresses into GART entries with the correct memory types on gfxv9. Periodt. π
The MQD takes up the first 4KB and is followed by the control stack. The MQD is using UC (uncached) memory, while the control stack is using NC (non-coherent) memory. Different vibes, different memory types, both handled. π«Ά
π SEE ALSO π
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
amdgpu_gart_dummy_page_init(9)amdgpu_gart_dummy_page_fini(9)amdgpu_gart_table_ram_alloc(9)amdgpu_gart_table_ram_free(9)amdgpu_gart_table_vram_alloc(9)amdgpu_gart_table_vram_free(9)amdgpu_gart_unbind(9)amdgpu_gart_map(9)amdgpu_gart_map_vram_range(9)amdgpu_gart_bind(9)amdgpu_gart_invalidate_tlb(9)amdgpu_gart_init(9)
and thatβs the whole page, bestie β bye from the Kernel API Manual, brought to you by ./drivers/gpu/drm/amd/amdgpu, dated October 2026. slay, mwah ππβ¨
π¦ 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