Skip to contentSkip to conversation

drm/amdgpu: fix incorrect size printing in error msg

PATCH In review Christian König 2 participants 2 messages Mar 28, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: fix incorrect size printing in error msg

That are bytes not pages.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -1
index ea0cde4904f0..f4a148917520 100644
@@ -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;
 }
 
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Christian König

That are bytes not pages.

Quoted 20 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -2
index ea0cde4904f0..f4a148917520 100644
@@ -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;
 }
 
--

2.25.1