]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: simplify and cleanup setting the dma mask
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Aug 2019 07:27:03 +0000 (09:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:51:01 +0000 (10:51 -0500)
commita2d7e47da69f335c1b765b48c0537114ca3d9cb3
tree8fe585cc2b155327fe77856b095965ef58dbfcba
parent07db3c85c944dbc24e000ae1791cec34d53b2bfb
drm/amdgpu: 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/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c