Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebb36d19 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: print the GPU offset as well in gem_info



To easily find which memory is used.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b22e3ce8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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)