]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: handle PCIe root ports with addressing limitations
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Aug 2019 07:27:00 +0000 (09:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:51:00 +0000 (10:51 -0500)
commit1eef0ac96fa69aa101f208742d6ac608c3c7449a
treeda8753e92081d2a541240f4ce56dc7a30a58927f
parent5dadce653d6048473586bbd5fc6b85e5f23d3e43
drm/radeon: handle PCIe root ports with addressing limitations

radeon 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>
Reported-by: Atish Patra <Atish.Patra@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_ttm.c