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 a00e59abda629c81c2581e09a5b55afef882248d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
Date: Mon, 15 Feb 2016 17:36:22 +0100
Subject: [PATCH 0324/1110] drm/amdgpu: print the GPU offset as well in
gem_info
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
To easily find which memory is used.
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, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index cb7806a..86ce4f3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -722,8 +722,9 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data)
placement = " CPU";
break;
}
- seq_printf(m, "bo[0x%08x] %12ld %s pid %8d",
- i, amdgpu_bo_size(rbo), placement, rbo->pid);
+ seq_printf(m, "bo[0x%08x] %12ld %s @ 0x%010Lx pid %8d",
+ i, amdgpu_bo_size(rbo), placement,
+ amdgpu_bo_gpu_offset(rbo), rbo->pid);
pin_count = ACCESS_ONCE(rbo->pin_count);
if (pin_count)
--
2.7.4
|