drm/radeon: report the real offset in radeon_sa_bo_dump_debug_info
Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
df893a2548
commit
931dc3a456
1 changed files with 4 additions and 2 deletions
|
@ -402,13 +402,15 @@ void radeon_sa_bo_dump_debug_info(struct radeon_sa_manager *sa_manager,
|
||||||
|
|
||||||
spin_lock(&sa_manager->wq.lock);
|
spin_lock(&sa_manager->wq.lock);
|
||||||
list_for_each_entry(i, &sa_manager->olist, olist) {
|
list_for_each_entry(i, &sa_manager->olist, olist) {
|
||||||
|
uint64_t soffset = i->soffset + sa_manager->gpu_addr;
|
||||||
|
uint64_t eoffset = i->eoffset + sa_manager->gpu_addr;
|
||||||
if (&i->olist == sa_manager->hole) {
|
if (&i->olist == sa_manager->hole) {
|
||||||
seq_printf(m, ">");
|
seq_printf(m, ">");
|
||||||
} else {
|
} else {
|
||||||
seq_printf(m, " ");
|
seq_printf(m, " ");
|
||||||
}
|
}
|
||||||
seq_printf(m, "[0x%08x 0x%08x] size %8d",
|
seq_printf(m, "[0x%010llx 0x%010llx] size %8lld",
|
||||||
i->soffset, i->eoffset, i->eoffset - i->soffset);
|
soffset, eoffset, eoffset - soffset);
|
||||||
if (i->fence) {
|
if (i->fence) {
|
||||||
seq_printf(m, " protected by 0x%016llx on ring %d",
|
seq_printf(m, " protected by 0x%016llx on ring %d",
|
||||||
i->fence->seq, i->fence->ring);
|
i->fence->seq, i->fence->ring);
|
||||||
|
|
Loading…
Add table
Reference in a new issue