]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/radeon: simplify and cleanup setting the dma mask
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Aug 2019 07:27:02 +0000 (09:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:51:00 +0000 (10:51 -0500)
commit03127c58b93d7da5edb53118bdafabdcae3581ef
tree494582a0ba9bdbf227e748e5193bad48196a18da
parent90489ce18c3a504c781c8cfcec013258c3459328
drm/radeon: simplify and cleanup setting the dma mask

Use dma_set_mask_and_coherent to set both masks in one go, and remove
the no longer required fallback, as the kernel now always accepts
larger than required DMA masks.  Fail the driver probe if we can't
set the DMA mask, as that means the system can only support a larger
mask.

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/radeon/radeon_device.c