From: Christian König Date: Mon, 15 Feb 2016 16:36:22 +0000 (+0100) Subject: drm/amdgpu: print the GPU offset as well in gem_info X-Git-Tag: next-20160301~70^2~4^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ebb36d19a0f71b246df9a15590e3b34256b0f1d8;p=karo-tx-linux.git drm/amdgpu: print the GPU offset as well in gem_info To easily find which memory is used. Signed-off-by: Christian König Reviewed-by: Alex Deucher --- 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) 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)