summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2022-03-11 16:10:13 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-04-01 06:05:54 +0300
commit4499c90e902f399d69248cb887b222fb3d342d20 (patch)
tree1a71e5c1195bd55fd9e582b8b8112adc0b395d01 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent55a2d21bba3db088f25d124c76d8bbaa2f4f5771 (diff)
downloadlinux-4499c90e902f399d69248cb887b222fb3d342d20.tar.xz
drm/amdgpu: fix incorrect size printing in error msg
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 940752488330..a00022b6ee5b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -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;
}