Re: [PATCH v2 4/5] iommu/mediatek: Add tlb_lock in tlb_flush_all

From: AngeloGioacchino Del Regno
Date: Mon Jan 10 2022 - 06:46:28 EST


Il 08/12/21 13:07, Dafna Hirschfeld ha scritto:
From: Yong Wu <yong.wu@xxxxxxxxxxxx>

The tlb_flush_all touches the registers controlling tlb operations.
Protect it with the tlb_lock spinlock.
This also require the range_sync func to release that spinlock before
calling tlb_flush_all.

Signed-off-by: Yong Wu <yong.wu@xxxxxxxxxxxx>
[refactor commit log]
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@xxxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>