amdgpu_devic...u_direct_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_devic...u_direct_map(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual entry for amdgpu_devic...u_direct_map(9). yes the title is truncated, no that's not a you problem, that's just how the man page tooling renders it. we move. 🫢


🌸 NAME 🌸

amdgpu_device_check_iommu_direct_map β€” literally just checks if RAM is direct mapped to the GPU πŸ”₯


πŸŽ€ SYNOPSIS πŸŽ€

void amdgpu_device_check_iommu_direct_map (struct amdgpu_device *adev );

that's it. one function, one argument, void return, she's lowkey minimal and I respect it. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” an amdgpu_device pointer. that's the whole personality description. it's the device struct, bestie, you already know. πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: RAM is direct mapped to the GPU if IOMMU is not enabled, or if IOMMU is in pass through mode. that's the entire condition. no cap. 🧚

like, that's what this function is checking for, periodt. two vibes and only two vibes get you a direct map: IOMMU off, or IOMMU in pass through mode. 🎯


🌈 SEE ALSO 🌈

the source file lives at ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c β€” go read it, it's giving main character energy. πŸ“–

and here's the entire friend group, no one left out, I would never do that to you:

like, that's the whole squad. ate and left no crumbs. πŸ’…


reminder bestie: the IOMMU condition is the whole point of this page, don't overthink it, just remember β€” no IOMMU or pass through mode equals RAM direct mapped to the GPU. iykyk. πŸ“

mwah πŸ’‹ this page lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” that's the source and the version date, and yes I memorized both, obsessed with me honestly. ⭐

πŸ“¦ where this page comes from