aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2025-07-04 07:55:47 +0000
committerChristian König <[email protected]>2025-07-04 14:00:06 +0000
commit719b378d371899c8bbaf0ce5f42bf7db4be819f9 (patch)
treea98ff862f61fefd328b7de68cc5126b71e444da2 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
parentdrm: add debugfs support on per client-id basis (diff)
downloadkernel-719b378d371899c8bbaf0ce5f42bf7db4be819f9.tar.gz
kernel-719b378d371899c8bbaf0ce5f42bf7db4be819f9.zip
drm/amdgpu: add debugfs support for VM pagetable per client
Add a debugfs file under the client directory which shares the root page table base address of the VM. This address could be used to dump the pagetable for debug memory issues. Signed-off-by: Sunil Khatri <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index d2ce7d86dbc8..d555853c5717 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
@@ -1395,6 +1395,8 @@ int amdgpu_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
if (r)
goto error_pasid;
+ amdgpu_debugfs_vm_init(file_priv);
+
r = amdgpu_vm_init(adev, &fpriv->vm, fpriv->xcp_id);
if (r)
goto error_pasid;