diff options
author | Christian König <christian.koenig@amd.com> | 2018-05-11 11:13:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:44:26 -0400 |
commit | c7535379f660b721998ad6ab397809b0cbeb66d7 (patch) | |
tree | 3a44ca81ba121d1e01c540da830f41dcaeb0505e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 959a2091fae0fa498c79e095a4f6cbbb202a1194 (diff) |
drm/amdgpu: drop printing the BO offset in the gem debugfs (v2)
It is meaningless anyway.
v2: remove unused variable (Alex)
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-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_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 7d3dc229fa47..f79bbf81a088 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -785,7 +785,6 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) | |||
785 | unsigned domain; | 785 | unsigned domain; |
786 | const char *placement; | 786 | const char *placement; |
787 | unsigned pin_count; | 787 | unsigned pin_count; |
788 | uint64_t offset; | ||
789 | 788 | ||
790 | domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); | 789 | domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); |
791 | switch (domain) { | 790 | switch (domain) { |
@@ -803,10 +802,6 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) | |||
803 | seq_printf(m, "\t0x%08x: %12ld byte %s", | 802 | seq_printf(m, "\t0x%08x: %12ld byte %s", |
804 | id, amdgpu_bo_size(bo), placement); | 803 | id, amdgpu_bo_size(bo), placement); |
805 | 804 | ||
806 | offset = READ_ONCE(bo->tbo.mem.start); | ||
807 | if (offset != AMDGPU_BO_INVALID_OFFSET) | ||
808 | seq_printf(m, " @ 0x%010Lx", offset); | ||
809 | |||
810 | pin_count = READ_ONCE(bo->pin_count); | 805 | pin_count = READ_ONCE(bo->pin_count); |
811 | if (pin_count) | 806 | if (pin_count) |
812 | seq_printf(m, " pin count %d", pin_count); | 807 | seq_printf(m, " pin count %d", pin_count); |