Re: [PATCH 0/4] Fix omap-iommu bitrot

2024-10-28 Thread Mathieu Poirier
On Mon, 28 Oct 2024 at 14:46, H. Nikolaus Schaller wrote: > > Hi Robin, > > > Am 28.10.2024 um 18:58 schrieb Robin Murphy : > > > > Hi all, > > > > It seems omap-iommu hasn't had enough mainline users to avoid bitrotting > > through the more recent evolution of the IOMMU API internals. These > > p

Re: [PATCH 0/4] Fix omap-iommu bitrot

2024-10-28 Thread H. Nikolaus Schaller
Hi Robin, > Am 28.10.2024 um 18:58 schrieb Robin Murphy : > > Hi all, > > It seems omap-iommu hasn't had enough mainline users to avoid bitrotting > through the more recent evolution of the IOMMU API internals. These > patches attempt to bring it and its consumers sufficiently up-to-date > to wo

[PATCH 2/4] media: omap3isp: Handle ARM dma_iommu_mapping

2024-10-28 Thread Robin Murphy
It's no longer practical for the OMAP IOMMU driver to trick arm_setup_iommu_dma_ops() into ignoring its presence, so let's use the same tactic as other IOMMU API users on 32-bit ARM and explicitly kick the arch code's dma_iommu_mapping out of the way to avoid problems. Fixes: 4720287c7bf7 ("iommu:

[PATCH 0/4] Fix omap-iommu bitrot

2024-10-28 Thread Robin Murphy
Hi all, It seems omap-iommu hasn't had enough mainline users to avoid bitrotting through the more recent evolution of the IOMMU API internals. These patches attempt to bring it and its consumers sufficiently up-to-date to work again, in a manner that's hopefully backportable. This is largely all w

[PATCH 4/4] iommu: Make bus_iommu_probe() static

2024-10-28 Thread Robin Murphy
With the last external caller of bus_iommu_probe() now gone, make it internal as it really should be. Signed-off-by: Robin Murphy --- drivers/iommu/iommu.c | 3 ++- include/linux/iommu.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/i

[PATCH 3/4] iommu/omap: Add minimal fwnode support

2024-10-28 Thread Robin Murphy
The OMAP driver uses the generic "iommus" DT binding but is the final holdout not implementing a corresponding .of_xlate method. Unfortunately this now results in __iommu_probe_device() failing to find ops due to client devices missing the expected IOMMU fwnode association. The legacy DT parsing in

[PATCH 1/4] remoteproc/omap: Handle ARM dma_iommu_mapping

2024-10-28 Thread Robin Murphy
It's no longer practical for the OMAP IOMMU driver to trick arm_setup_iommu_dma_ops() into ignoring its presence, so let's use the same tactic as other IOMMU API users on 32-bit ARM and explicitly kick the arch code's dma_iommu_mapping out of the way to avoid problems. Fixes: 4720287c7bf7 ("iommu: