OSDN Git Service

drm/vram_helper: call explicit mm takedown
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:56:02 +0000 (12:56 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:32:03 +0000 (12:32 +1000)
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-30-airlied@gmail.com
drivers/gpu/drm/drm_gem_vram_helper.c

index d7c0fdf..2099851 100644 (file)
@@ -1127,6 +1127,7 @@ static int drm_vram_mm_init(struct drm_vram_mm *vmm, struct drm_device *dev,
 
 static void drm_vram_mm_cleanup(struct drm_vram_mm *vmm)
 {
+       ttm_range_man_fini(&vmm->bdev, &vmm->bdev.man[TTM_PL_VRAM]);
        ttm_bo_device_release(&vmm->bdev);
 }