Re: [PATCH v3 1/8] iommu/amd: Refactor AMD IOMMU debugfs initial setup
From: Vasant Hegde
Date: Thu Mar 13 2025 - 06:27:42 EST
On 2/6/2025 11:29 AM, Dheeraj Kumar Srivastava wrote:
> Rearrange initial setup of AMD IOMMU debugfs to segregate per IOMMU
> setup and setup which is common for all IOMMUs. This ensures that common
> debugfs paths (introduced in subsequent patches) are created only once
> instead of being created for each IOMMU.
>
> With the change, there is no need to use lock as amd_iommu_debugfs_setup()
> will be called only once during AMD IOMMU initialization. So remove lock
> acquisition in amd_iommu_debugfs_setup().
>
> Signed-off-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@xxxxxxx>
> Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
Reviewed-by: Vasant Hegde <vasant.hegde@xxxxxxx>
-Vasant