[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241126205952.GA2656341@bhelgaas>
Date: Tue, 26 Nov 2024 14:59:52 -0600
From: Bjorn Helgaas <helgaas@...nel.org>
To: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@....com>
Cc: joro@...tes.org, suravee.suthikulpanit@....com, will@...nel.org,
robin.murphy@....com, linux-kernel@...r.kernel.org,
iommu@...ts.linux.dev, vasant.hegde@....com
Subject: Re: [PATCH v2 3/8] iommu/amd: Add debugfs support to dump IOMMU
Capability registers
On Wed, Nov 06, 2024 at 01:16:34PM +0530, Dheeraj Kumar Srivastava wrote:
> 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 for iommu<x>
> # echo "0x10" > /sys/kernel/debug/iommu/amd/iommu00/capability
> # cat /sys/kernel/debug/iommu/amd/iommu00/capability_dump
Same comment here. Why does this need to be so complicated to use?
Can't you make a single read-only file that contains all the registers
of interest?
Bjorn
Powered by blists - more mailing lists