]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: print root PD address in PDE format instead of GPU
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 18 Aug 2025 07:21:25 +0000 (12:51 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:38:41 +0000 (17:38 -0400)
Print PD address of VM root instead of GPU address in the debugfs.
On modern GPU's this is what UMR tool expects in the registers
as well.

Fixes: 719b378d3718 ("drm/amdgpu: add debugfs support for VM pagetable per client")
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c

index 127091de0f34bf28fec43253cc38a0b916bf24b7..a70651050acff05bcb7c091fe7f425cf3bbd3864 100644 (file)
@@ -2155,7 +2155,7 @@ static int amdgpu_pt_info_read(struct seq_file *m, void *unused)
                return -EINVAL;
        }
 
-       seq_printf(m, "gpu_address: 0x%llx\n", amdgpu_bo_gpu_offset(fpriv->vm.root.bo));
+       seq_printf(m, "pd_address: 0x%llx\n", amdgpu_gmc_pd_addr(fpriv->vm.root.bo));
        seq_printf(m, "max_pfn: 0x%llx\n", adev->vm_manager.max_pfn);
        seq_printf(m, "num_level: 0x%x\n", adev->vm_manager.num_level);
        seq_printf(m, "block_size: 0x%x\n", adev->vm_manager.block_size);