drm/radeon: report the real offset in radeon_sa_bo_dump_debug_info
authorChristian König <christian.koenig@amd.com>
Thu, 12 Dec 2013 08:42:38 +0000 (09:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Dec 2013 21:12:29 +0000 (16:12 -0500)
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_sa.c

index f0bac68254b79a5dd31cfdc14ce80a98bca91065..c0625805cdd769b826d0605141f6cc80ce80ad72 100644 (file)
@@ -402,13 +402,15 @@ void radeon_sa_bo_dump_debug_info(struct radeon_sa_manager *sa_manager,
 
        spin_lock(&sa_manager->wq.lock);
        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) {
                        seq_printf(m, ">");
                } else {
                        seq_printf(m, " ");
                }
-               seq_printf(m, "[0x%08x 0x%08x] size %8d",
-                          i->soffset, i->eoffset, i->eoffset - i->soffset);
+               seq_printf(m, "[0x%010llx 0x%010llx] size %8lld",
+                          soffset, eoffset, eoffset - soffset);
                if (i->fence) {
                        seq_printf(m, " protected by 0x%016llx on ring %d",
                                   i->fence->seq, i->fence->ring);