From: Baolu Lu<baolu.lu@xxxxxxxxxxxxxxx>Then it's worthy a comment that those two fields are for
Sent: Tuesday, June 28, 2022 1:41 PM
The report_iommu_fault() should be replaced by the newstruct iommu_domain {why is it DMA domain specific? What about unmanaged
unsigned type;
const struct iommu_domain_ops *ops;
unsigned long pgsize_bitmap; /* Bitmap of page sizes in use */
- iommu_fault_handler_t handler;
- void *handler_token;
struct iommu_domain_geometry geometry;
struct iommu_dma_cookie *iova_cookie;
+ union {
+ struct { /* IOMMU_DOMAIN_DMA */
+ iommu_fault_handler_t handler;
+ void *handler_token;
+ };
domain? Unrecoverable fault can happen on any type
including SVA. Hence I think above should be domain type
agnostic.
iommu_report_device_fault(). Jean has already started this work.
https://lore.kernel.org/linux-iommu/Yo4Nw9QyllT1RZbd@myrica/
Currently this is only for DMA domains, hence Robin suggested to make it
exclude with the SVA domain things.
https://lore.kernel.org/linux-iommu/f3170016-4d7f-e78e-db48-
68305f683349@xxxxxxx/
some legacy fault reporting stuff and DMA type only.