diff options
author | Christian König <christian.koenig@amd.com> | 2020-10-09 16:44:48 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-11-30 17:00:02 +0300 |
commit | 470cfe71b420698ab3715d27021a34d45872f554 (patch) | |
tree | ab5614db5b4c043d2e102e45339b22ba63eb9d3c /drivers/gpu/drm/nouveau/nouveau_bo.c | |
parent | 4e7b9000b6d8ec609d5bff1a1eb4bf6cece35dcd (diff) | |
download | linux-470cfe71b420698ab3715d27021a34d45872f554.tar.xz |
drm/nouveau: stop using pages with drm_prime_sg_to_page_addr_arrays v2
This is deprecated, also drop the comment about faults.
v2: also use ttm_sg_tt_init to avoid allocating the page array.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/403835/
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 7aa4286784ae..c30f088cefcc 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1235,9 +1235,9 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, return 0; if (slave && ttm->sg) { - /* make userspace faulting work */ - drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages, - ttm_dma->dma_address, ttm->num_pages); + drm_prime_sg_to_page_addr_arrays(ttm->sg, NULL, + ttm_dma->dma_address, + ttm->num_pages); return 0; } |