]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Use allowed_domains for pinning dmabufs
authorFelix Kuehling <felix.kuehling@amd.com>
Thu, 17 Apr 2025 14:23:15 +0000 (10:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Apr 2025 20:44:02 +0000 (16:44 -0400)
commit5cf3c602df88b471178a5717b17e529d09acad84
treeb86940d03bb68587f4dd0df80500813348cfd40f
parent0467145fab3b3a7a1efd221722310fe32329b3da
drm/amdgpu: Use allowed_domains for pinning dmabufs

When determining the domains for pinning DMABufs, filter allowed_domains
and fail with a warning if VRAM is forbidden and GTT is not an allowed
domain.

Fixes: f5e7fabd1f5c ("drm/amdgpu: allow pinning DMA-bufs into VRAM if all importers can do P2P")
Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 3940796a6eefa555fec688a4adee5659ef9fa431)
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c