[PATCH] drm/vmwgfx/ttm: fix the non-THP cleanup path.
Daniel Vetter
daniel at ffwll.ch
Mon Aug 10 13:45:41 UTC 2020
On Mon, Aug 10, 2020 at 03:41:10PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> I fixed the init path, but missed the cleanup path.
>
> Fixes: e0830704de7c ("drm/vmwgfx: takedown vram manager")
> Signed-off-by: Dave Airlie <airlied at redhat.com>
Oopsies.
Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> index a68ae0204bf5..2c4858ea89b1 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> @@ -639,7 +639,7 @@ static void vmw_vram_manager_fini(struct vmw_private *dev_priv)
> #ifdef CONFIG_TRANSPARENT_HUGEPAGE
> vmw_thp_fini(dev_priv);
> #else
> - ttm_bo_man_fini(&dev_priv->bdev, TTM_PL_VRAM);
> + ttm_range_man_fini(&dev_priv->bdev, TTM_PL_VRAM);
> #endif
> }
>
> --
> 2.27.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the dri-devel
mailing list