amdgpu_gart_map_gfx9_mqd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” an amdgpu_device pointer, 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


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