diff options
| author | Nirmoy Das <[email protected]> | 2020-11-20 15:29:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-11-24 17:06:10 +0000 |
| commit | 7dc7b65a1f3f9f0f24ce5cc52811cfbad4c6b9d3 (patch) | |
| tree | d36a463c45d11babd26eabe02d949af47b3391c2 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |
| parent | drm/amdgpu: update GC golden setting for navy_flounder (diff) | |
| download | kernel-7dc7b65a1f3f9f0f24ce5cc52811cfbad4c6b9d3.tar.gz kernel-7dc7b65a1f3f9f0f24ce5cc52811cfbad4c6b9d3.zip | |
drm/amdgpu: use generic DMA API
Use generic DMA api instead of bus-specific API.
Signed-off-by: Nirmoy Das <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c index e01e681d2a60..0db933026722 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c @@ -75,9 +75,9 @@ static int amdgpu_gart_dummy_page_init(struct amdgpu_device *adev) if (adev->dummy_page_addr) return 0; - adev->dummy_page_addr = pci_map_page(adev->pdev, dummy_page, 0, + adev->dummy_page_addr = dma_map_page(&adev->pdev->dev, dummy_page, 0, PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); - if (pci_dma_mapping_error(adev->pdev, adev->dummy_page_addr)) { + if (dma_mapping_error(&adev->pdev->dev, adev->dummy_page_addr)) { dev_err(&adev->pdev->dev, "Failed to DMA MAP the dummy page\n"); adev->dummy_page_addr = 0; return -ENOMEM; |
