From: Christian König Date: Mon, 23 Nov 2020 13:53:05 +0000 (+0100) Subject: drm/vmwgfx: switch to ttm_sg_tt_init X-Git-Tag: v5.15~303^2~28^2~1273 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c515bb187ee3cc4c75a9d4a413b97d719f15f29;p=platform%2Fkernel%2Flinux-starfive.git drm/vmwgfx: switch to ttm_sg_tt_init According to Daniel VMWGFX doesn't support DMA-buf anyway. Signed-off-by: Christian König Acked-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/403834/ --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c index 6a04261ce760..1c75f73538c0 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c @@ -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);