]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: handle PCIe root ports with addressing limitations
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Aug 2019 07:27:01 +0000 (09:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:51:00 +0000 (10:51 -0500)
commit90489ce18c3a504c781c8cfcec013258c3459328
tree5bf1e8a6f580834b23a3c71a126acc67502cd950
parent33b3ad3788aba846fc8b9a065fe2685a0b64f713
drm/amdgpu: handle PCIe root ports with addressing limitations

amdgpu uses a need_dma32 flag to indicate to the drm core that some
allocations need to be done using GFP_DMA32, but it only checks the
device addressing capabilities to make that decision.  Unfortunately
PCIe root ports that have limited addressing exist as well.  Use the
dma_addressing_limited instead to also take those into account.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c