Skip to contentSkip to conversation

drm/amdgpu: print root PD address in PDE format instead of GPU

PATCH In review Sunil Khatri 3 participants 4 messages Aug 18, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 drm/amdgpu: print root PD address in PDE format instead of GPU

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.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +1 -1
index 127091de0f34..a70651050acf 100644
@@ -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);
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 3/3
#1 lore raw
Quoted 5 lines · Sunil Khatri

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.

Quoted 17 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +1 -1
index 127091de0f34..a70651050acf 100644
@@ -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);
Reviewed-by on v1 3/3
#2 lore raw
In reply to Sunil Khatri
Quoted 6 lines · Sunil Khatri

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.

Please add a Fixes tag. With that fixed:

Quoted 20 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +1 -2
index 127091de0f34..a70651050acf 100644
@@ -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);
--

2.34.1

author Reviewed-by Alex Deucher
#3 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Sure Alex.

Thanks

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Monday, August 18, 2025 7:20 PM
To: Khatri, Sunil <[email protected]>
Cc: Koenig, Christian <[email protected]>; [email protected]; StDenis, Tom <[email protected]>
Subject: Re: [PATCH 3/3] drm/amdgpu: print root PD address in PDE format instead of GPU

Quoted 6 lines · Sunil Khatri

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.

Please add a Fixes tag. With that fixed:

Quoted 23 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +2 -1
index 127091de0f34..a70651050acf 100644
@@ -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);
--
2.34.1