Re: [PATCH v3 10/33] iommu/mediatek: Add tlb_lock in tlb_flush_all

2022-01-04 Thread AngeloGioacchino Del Regno
Il 23/09/21 13:58, Yong Wu ha scritto: The tlb_flush_all also touches the registers about tlb operations. Add spinlock in it to protect the tlb registers. since the tlb_range already hold the spinlock, move it a bit outside the spinlock to print log. Signed-off-by: Yong Wu Reviewed-by: Angelo

[PATCH v3 10/33] iommu/mediatek: Add tlb_lock in tlb_flush_all

2021-09-23 Thread Yong Wu
The tlb_flush_all also touches the registers about tlb operations. Add spinlock in it to protect the tlb registers. since the tlb_range already hold the spinlock, move it a bit outside the spinlock to print log. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 25 ++---