diff options
author | Christian König <christian.koenig@amd.com> | 2016-02-15 11:36:22 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-16 17:44:43 -0500 |
commit | ebb36d19a0f71b246df9a15590e3b34256b0f1d8 (patch) | |
tree | 241b11a354617eef72294955ec7af991ec5d0e80 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | b22e3ce8a63fc950f7e77c3b422d2b4cf469be4d (diff) |
drm/amdgpu: print the GPU offset as well in gem_info
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 |
1 files 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 d7f1e49ab6ce..fae8bf7fcf1a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -721,8 +721,9 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data) | |||
721 | placement = " CPU"; | 721 | placement = " CPU"; |
722 | break; | 722 | break; |
723 | } | 723 | } |
724 | seq_printf(m, "bo[0x%08x] %12ld %s pid %8d", | 724 | seq_printf(m, "bo[0x%08x] %12ld %s @ 0x%010Lx pid %8d", |
725 | i, amdgpu_bo_size(rbo), placement, rbo->pid); | 725 | i, amdgpu_bo_size(rbo), placement, |
726 | amdgpu_bo_gpu_offset(rbo), rbo->pid); | ||
726 | 727 | ||
727 | pin_count = ACCESS_ONCE(rbo->pin_count); | 728 | pin_count = ACCESS_ONCE(rbo->pin_count); |
728 | if (pin_count) | 729 | if (pin_count) |