drm/vmwgfx: switch to ttm_sg_tt_init
authorChristian König <christian.koenig@amd.com>
Mon, 23 Nov 2020 13:53:05 +0000 (14:53 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 30 Nov 2020 14:00:12 +0000 (15:00 +0100)
According to Daniel VMWGFX doesn't support DMA-buf anyway.

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

index 6a04261ce760e4fb191f8fe6026d1969b17c1d43..1c75f73538c05fab2607a356cd5558f606c56ade 100644 (file)
@@ -611,8 +611,8 @@ static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo,
        vmw_be->mob = NULL;
 
        if (vmw_be->dev_priv->map_mode == vmw_dma_alloc_coherent)
-               ret = ttm_dma_tt_init(&vmw_be->dma_ttm, bo, page_flags,
-                                     ttm_cached);
+               ret = ttm_sg_tt_init(&vmw_be->dma_ttm, bo, page_flags,
+                                    ttm_cached);
        else
                ret = ttm_tt_init(&vmw_be->dma_ttm, bo, page_flags,
                                  ttm_cached);