Re: [PATCH v2] iommu/amd: Use report_iommu_fault()

2021-08-21 Thread Lennert Buytenhek
On Thu, Aug 05, 2021 at 11:26:25AM -0500, Suthikulpanit, Suravee wrote: > Lennert, Hi Suravee, > > - EVENT_FLAG_I unset, but the request was a translation request > > (EVENT_FLAG_TR set) or the target page was not present > > (EVENT_FLAG_PR unset): call report_iommu_fault(), but the RW > >

[PATCH,RFC] iommu/amd: Recover from event log overflow

2021-08-21 Thread Lennert Buytenhek
The AMD IOMMU logs I/O page faults and such to a ring buffer in system memory, and this ring buffer can overflow. The AMD IOMMU spec has the following to say about the interrupt status bit that signals this overflow condition: EventOverflow: Event log overflow. RW1C. Reset 0b. 1 = IOMMU

Re: [PATCH v4 00/24] iommu: Refactor DMA domain strictness

2021-08-21 Thread Sven Peter via iommu
On Wed, Aug 18, 2021, at 17:13, Robin Murphy wrote: > Sven - I've prepared the follow-up patches already[1], so consider > yourself off the hook (I see no point in trying to fix the nominal DART > cookie bugs between now and then) :) > Great, thanks for taking care of that! :) Just tested yo