Re: [PATCH v10 10/12] iommu: Prepare IOMMU domain for IOPF

From: Jason Gunthorpe
Date: Mon Jul 25 2022 - 10:49:27 EST


On Sun, Jul 24, 2022 at 10:04:50PM +0800, Baolu Lu wrote:
> > Why do we need two falut callbacks? The only difference is that one is
> > recoverable and the other is not, right?
> >
> > Can we run both down the same op?
>
> The iommu_fault_handler_t is for report_iommu_fault() which could be
> replaced with the newer iommu_report_device_fault().
>
> https://lore.kernel.org/linux-iommu/Yo4Nw9QyllT1RZbd@myrica/

Okay, sounds like a good future project, maybe add a fixme comment or
something so others understand.

Jason