drm/amdgpu: stop using pages with drm_prime_sg_to_page_addr_arrays
authorChristian König <christian.koenig@amd.com>
Thu, 8 Oct 2020 11:02:06 +0000 (13:02 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 30 Nov 2020 13:59:51 +0000 (14:59 +0100)
This is deprecated.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/403836/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c

index c438d290a6dbec2aa4860ec65911efac1d05dbd2..02748e030322489449d465d2322240b139730fe9 100644 (file)
@@ -918,8 +918,8 @@ static int amdgpu_ttm_tt_pin_userptr(struct ttm_bo_device *bdev,
                goto release_sg;
 
        /* convert SG to linear array of pages and dma addresses */
-       drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages,
-                                        gtt->ttm.dma_address, ttm->num_pages);
+       drm_prime_sg_to_page_addr_arrays(ttm->sg, NULL, gtt->ttm.dma_address,
+                                        ttm->num_pages);
 
        return 0;
 
@@ -1264,7 +1264,7 @@ static int amdgpu_ttm_tt_populate(struct ttm_bo_device *bdev,
                        ttm->sg = sgt;
                }
 
-               drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages,
+               drm_prime_sg_to_page_addr_arrays(ttm->sg, NULL,
                                                 gtt->ttm.dma_address,
                                                 ttm->num_pages);
                return 0;