aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1059-drm-amdgpu-print-the-BO-size-only-once-in-amdgpu_gem.patch
blob: bf53c0469f4d03fba28a10f3c21bffab1cf7d2df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 96c58a408f81ac63d6aa29ab729e35b58ee806d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
Date: Mon, 15 Feb 2016 13:01:23 +0100
Subject: [PATCH 1059/1565] drm/amdgpu: print the BO size only once in
 amdgpu_gem_info
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Splitting it into KB/MB is just confusing.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index 28ed259..b83d6bc 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -721,9 +721,8 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data)
 			placement = " CPU";
 			break;
 		}
-		seq_printf(m, "bo[0x%08x] %8ldkB %8ldMB %s pid %8d\n",
-			   i, amdgpu_bo_size(rbo) >> 10, amdgpu_bo_size(rbo) >> 20,
-			   placement, rbo->pid);
+		seq_printf(m, "bo[0x%08x] %12ld %s pid %8d\n",
+			   i, amdgpu_bo_size(rbo), placement, rbo->pid);
 		i++;
 	}
 	mutex_unlock(&adev->gem.mutex);
-- 
1.9.1