drm/amdgpu: fix incorrect size printing in error msg
authorChristian König <christian.koenig@amd.com>
Fri, 11 Mar 2022 13:10:13 +0000 (14:10 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2022 03:05:54 +0000 (23:05 -0400)
That are bytes not pages.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index 9407524..a00022b 100644 (file)
@@ -472,7 +472,7 @@ static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
 
 fail:
        DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size,
-                 man->size << PAGE_SHIFT);
+                 man->size);
        return false;
 }