[PATCH v3 1/7] iommu/amd: Warn when found inconsistency EFR mask

2022-06-22 Thread Suravee Suthikulpanit via iommu
The function check_feature_on_all_iommus() checks to ensure if an IOMMU feature support bit is set on the Extended Feature Register (EFR). Current logic iterates through all IOMMU, and returns false when it found the first unset bit. To provide more thorough checking, modify the logic to iterate t

Re: [PATCH v3 1/7] iommu/amd: Warn when found inconsistency EFR mask

2022-06-23 Thread Joerg Roedel
On Wed, Jun 22, 2022 at 12:11:25PM -0500, Suravee Suthikulpanit wrote: > #ifdef CONFIG_IRQ_REMAP > +/* > + * Iterate through all the IOMMUs to verify if the specified > + * EFR bitmask of IOMMU feature are set. > + * Warn and return false if found inconsistency. > + */ > static bool check_feature

Re: [PATCH v3 1/7] iommu/amd: Warn when found inconsistency EFR mask

2022-06-29 Thread Suthikulpanit, Suravee via iommu
On 6/23/2022 3:22 PM, Joerg Roedel wrote: On Wed, Jun 22, 2022 at 12:11:25PM -0500, Suravee Suthikulpanit wrote: #ifdef CONFIG_IRQ_REMAP +/* + * Iterate through all the IOMMUs to verify if the specified + * EFR bitmask of IOMMU feature are set. + * Warn and return false if found inconsisten