]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Add tlb_lock in tlb_flush_all
authorYong Wu <yong.wu@mediatek.com>
Wed, 8 Dec 2021 12:07:43 +0000 (14:07 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Mar 2022 10:04:45 +0000 (11:04 +0100)
commitd2ac46a9e1f5a48f6b0ea910c890688af1e06bb2
tree04e7dc3614d0763eb03fcde632f9d9936b9ae4ca
parentaafaf9910be9b59441aa8ec9025c3d7a73c993ca
iommu/mediatek: Add tlb_lock in tlb_flush_all

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@mediatek.com>
[refactor commit log]
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20211208120744.2415-5-dafna.hirschfeld@collabora.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c