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_sgdma.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_sgdma.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_sgdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c b/drivers/gpu/drm/nouveau/nouveau_sgdma.c index a2e23fd4906c..1cf52635ea74 100644 --- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c +++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c @@ -84,7 +84,7 @@ nouveau_sgdma_create_ttm(struct ttm_buffer_object *bo, uint32_t page_flags) if (!nvbe) return NULL; - if (ttm_dma_tt_init(&nvbe->ttm, bo, page_flags, caching)) { + if (ttm_sg_tt_init(&nvbe->ttm, bo, page_flags, caching)) { kfree(nvbe); return NULL; } |