Re: [PATCH] iommu/amd: Fix I/O page fault logging ratelimit test

2021-07-21 Thread Lennert Buytenhek
On Tue, Jul 20, 2021 at 07:05:50PM -0500, Suthikulpanit, Suravee wrote: > Hi Lennert, Hi Suravee, > > On an AMD system, I/O page faults are usually logged like this: > > > > diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c > > index 811a49a95d04..7ae426b092f2 100644 > > -

Re: [PATCH] iommu/amd: Fix I/O page fault logging ratelimit test

2021-07-20 Thread Suthikulpanit, Suravee via iommu
Hi Lennert, On 7/18/2021 7:47 PM, Lennert Buytenhek wrote: On an AMD system, I/O page faults are usually logged like this: diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c index 811a49a95d04..7ae426b092f2 100644 --- a/drivers/iommu/amd/iommu.c +++ b/drivers/iommu/amd/iommu

[PATCH] iommu/amd: Fix I/O page fault logging ratelimit test

2021-07-18 Thread Lennert Buytenhek
On an AMD system, I/O page faults are usually logged like this: drvname :05:00.0: Event logged [IO_PAGE_FAULT domain=0x address=0x92050da0 flags=0x0020] But sometimes they are logged like this instead, even for the exact same PCI device: AMD-Vi: Event logged [IO_