drm/radeon: remove extra TT unpopulated check
authorChristian König <christian.koenig@amd.com>
Thu, 1 Feb 2018 13:41:37 +0000 (14:41 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:53 +0000 (14:19 -0500)
The subsystem should check that, not the driver.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ttm.c

index c1e3862a48a4a9fbe860947fdc463b07ad603e75..c50620aadbd0a327269fb5a6ac5660b93fa12771 100644 (file)
@@ -728,9 +728,6 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm,
        struct radeon_device *rdev;
        bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG);
 
-       if (ttm->state != tt_unpopulated)
-               return 0;
-
        if (gtt && gtt->userptr) {
                ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
                if (!ttm->sg)