]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/radeon: stop re-init the TTM page pool
authorChristian König <christian.koenig@amd.com>
Tue, 5 Jan 2021 17:55:47 +0000 (18:55 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 7 Jan 2021 13:24:54 +0000 (14:24 +0100)
Drivers are not supposed to init the page pool directly any more.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/412153/
drivers/gpu/drm/radeon/radeon_ttm.c

index d59ef6e92a40276abc69e51adbfcaa0ab0f08869..23195d5d4e9191bce05d2eeeded4ed1196f6684b 100644 (file)
@@ -730,9 +730,6 @@ int radeon_ttm_init(struct radeon_device *rdev)
        }
        rdev->mman.initialized = true;
 
-       ttm_pool_init(&rdev->mman.bdev.pool, rdev->dev, rdev->need_swiotlb,
-                     dma_addressing_limited(&rdev->pdev->dev));
-
        r = radeon_ttm_init_vram(rdev);
        if (r) {
                DRM_ERROR("Failed initializing VRAM heap.\n");