Re: [PATCH v3 09/33] iommu/mediatek: Remove for_each_m4u in tlb_sync_all

2022-01-10 Thread AngeloGioacchino Del Regno
Il 10/01/22 11:59, Yong Wu ha scritto: On Mon, 2022-01-10 at 10:16 +0100, AngeloGioacchino Del Regno wrote: Il 09/01/22 03:48, Yong Wu ha scritto: On Tue, 2022-01-04 at 16:55 +0100, AngeloGioacchino Del Regno wrote: Il 23/09/21 13:58, Yong Wu ha scritto: The tlb_sync_all is called from these

Re: [PATCH v3 09/33] iommu/mediatek: Remove for_each_m4u in tlb_sync_all

2022-01-10 Thread Yong Wu
On Mon, 2022-01-10 at 10:16 +0100, AngeloGioacchino Del Regno wrote: > Il 09/01/22 03:48, Yong Wu ha scritto: > > On Tue, 2022-01-04 at 16:55 +0100, AngeloGioacchino Del Regno > > wrote: > > > Il 23/09/21 13:58, Yong Wu ha scritto: > > > > The tlb_sync_all is called from these three functions: > >

Re: [PATCH v3 09/33] iommu/mediatek: Remove for_each_m4u in tlb_sync_all

2022-01-10 Thread AngeloGioacchino Del Regno
Il 09/01/22 03:48, Yong Wu ha scritto: On Tue, 2022-01-04 at 16:55 +0100, AngeloGioacchino Del Regno wrote: Il 23/09/21 13:58, Yong Wu ha scritto: The tlb_sync_all is called from these three functions: a) flush_iotlb_all: it will be called for each a iommu HW. b) tlb_flush_range_sync: it

Re: [PATCH v3 09/33] iommu/mediatek: Remove for_each_m4u in tlb_sync_all

2022-01-08 Thread Yong Wu
On Tue, 2022-01-04 at 16:55 +0100, AngeloGioacchino Del Regno wrote: > Il 23/09/21 13:58, Yong Wu ha scritto: > > The tlb_sync_all is called from these three functions: > > a) flush_iotlb_all: it will be called for each a iommu HW. > > b) tlb_flush_range_sync: it already has for_each_m4u. > > c)

Re: [PATCH v3 09/33] iommu/mediatek: Remove for_each_m4u in tlb_sync_all

2022-01-04 Thread AngeloGioacchino Del Regno
Il 23/09/21 13:58, Yong Wu ha scritto: The tlb_sync_all is called from these three functions: a) flush_iotlb_all: it will be called for each a iommu HW. b) tlb_flush_range_sync: it already has for_each_m4u. c) in irq: When IOMMU HW translation fault, Only need flush itself. Thus, No need