Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2022-01-04 Thread AngeloGioacchino Del Regno
Il 23/09/21 13:58, Yong Wu ha scritto: Prepare for 2 HWs that sharing pgtable in different power-domains. When there are 2 M4U HWs, it may has problem in the flush_range in which we get the pm_status via the m4u dev, BUT that function don't reflect the real power-domain status of the HW since

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-12-06 Thread Yong Wu
On Tue, 2021-11-30 at 13:33 +0200, Dafna Hirschfeld wrote: > > On 30.11.21 09:39, Yong Wu wrote: > > On Sat, 2021-11-27 at 12:11 +0200, Dafna Hirschfeld wrote: > > > > > > On 10.11.21 09:50, Yong Wu wrote: > > > > On Wed, 2021-11-10 at 07:29 +0200, Dafna Hirschfeld wrote: > > > > > > > > > > On

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-30 Thread Dafna Hirschfeld
On 30.11.21 09:39, Yong Wu wrote: On Sat, 2021-11-27 at 12:11 +0200, Dafna Hirschfeld wrote: On 10.11.21 09:50, Yong Wu wrote: On Wed, 2021-11-10 at 07:29 +0200, Dafna Hirschfeld wrote: On 10.11.21 04:20, Yong Wu wrote: On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: Hi This

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-29 Thread Yong Wu
On Sat, 2021-11-27 at 12:11 +0200, Dafna Hirschfeld wrote: > > On 10.11.21 09:50, Yong Wu wrote: > > On Wed, 2021-11-10 at 07:29 +0200, Dafna Hirschfeld wrote: > > > > > > On 10.11.21 04:20, Yong Wu wrote: > > > > On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: > > > > > Hi > > > > >

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-27 Thread Dafna Hirschfeld
On 10.11.21 09:50, Yong Wu wrote: On Wed, 2021-11-10 at 07:29 +0200, Dafna Hirschfeld wrote: On 10.11.21 04:20, Yong Wu wrote: On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: Hi This patch is needed in order to update the tlb when a device is powered on. Could you send this

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-22 Thread Dafna Hirschfeld
On 22.11.21 09:05, Yong Wu wrote: Hi Dafna, On Wed, 2021-11-10 at 15:50 +0800, Yong Wu wrote: On Wed, 2021-11-10 at 07:29 +0200, Dafna Hirschfeld wrote: On 10.11.21 04:20, Yong Wu wrote: On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: Hi This patch is needed in order to

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-21 Thread Yong Wu
Hi Dafna, On Wed, 2021-11-10 at 15:50 +0800, Yong Wu wrote: > On Wed, 2021-11-10 at 07:29 +0200, Dafna Hirschfeld wrote: > > > > On 10.11.21 04:20, Yong Wu wrote: > > > On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: > > > > Hi > > > > This patch is needed in order to update the tlb

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-09 Thread Yong Wu
On Wed, 2021-11-10 at 07:29 +0200, Dafna Hirschfeld wrote: > > On 10.11.21 04:20, Yong Wu wrote: > > On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: > > > Hi > > > This patch is needed in order to update the tlb when a device is > > > powered on. > > > Could you send this patch alone

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-09 Thread Dafna Hirschfeld
On 10.11.21 04:20, Yong Wu wrote: On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: Hi This patch is needed in order to update the tlb when a device is powered on. Could you send this patch alone without the whole series so it get accepted easier? Which SoC are you testing on? In

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-09 Thread Yong Wu
On Tue, 2021-11-09 at 14:21 +0200, Dafna Hirschfeld wrote: > Hi > This patch is needed in order to update the tlb when a device is > powered on. > Could you send this patch alone without the whole series so it get > accepted easier? Which SoC are you testing on? In previous SoC, the IOMMU HW

Re: [PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-11-09 Thread Dafna Hirschfeld
Hi This patch is needed in order to update the tlb when a device is powered on. Could you send this patch alone without the whole series so it get accepted easier? I can resend the patch on your behalf if you want. Thanks, Dafna On 23.09.21 14:58, Yong Wu wrote: Prepare for 2 HWs that sharing

[PATCH v3 12/33] iommu/mediatek: Always tlb_flush_all when each PM resume

2021-09-23 Thread Yong Wu
Prepare for 2 HWs that sharing pgtable in different power-domains. When there are 2 M4U HWs, it may has problem in the flush_range in which we get the pm_status via the m4u dev, BUT that function don't reflect the real power-domain status of the HW since there may be other HW also use that