Commit 4d9c5d5a authored by Dheeraj Kumar Srivastava's avatar Dheeraj Kumar Srivastava Committed by Will Deacon
Browse files

iommu/amd: Add debugfs support to dump IOMMU Capability registers



IOMMU Capability registers defines capabilities of IOMMU and information
needed for initialising MMIO registers and device table. This is useful
to dump these registers for debugging IOMMU related issues.

e.g.
-> To get capability registers value at offset 0x10 for iommu<x> (say,
   iommu00)
   # echo "0x10" > /sys/kernel/debug/iommu/amd/iommu00/capability
   # cat /sys/kernel/debug/iommu/amd/iommu00/capability

Signed-off-by: default avatarDheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com>
Reviewed-by: default avatarVasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20250702093804.849-4-dheerajkumar.srivastava@amd.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 7a4ee419
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment