From: Michel Dänzer Date: Fri, 15 Jun 2018 14:37:03 +0000 (+0200) Subject: drm/amdgpu: Use gmc_vram_full_visible in vram_mgr_bo_invisible_size X-Git-Tag: v4.19~298^2~34^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9735bf1930e658b074d72ea46bb317ad12483692;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: Use gmc_vram_full_visible in vram_mgr_bo_invisible_size Signed-off-by: Michel Dänzer Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c index b6333f9..f7a4bd5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c @@ -112,7 +112,7 @@ u64 amdgpu_vram_mgr_bo_invisible_size(struct amdgpu_bo *bo) unsigned pages = mem->num_pages; u64 usage = 0; - if (adev->gmc.visible_vram_size == adev->gmc.real_vram_size) + if (amdgpu_gmc_vram_full_visible(&adev->gmc)) return 0; if (mem->start >= adev->gmc.visible_vram_size >> PAGE_SHIFT)