iommu/mediatek: Reduce the tlb flush timeout value
authorYong Wu <yong.wu@mediatek.com>
Mon, 4 Nov 2019 07:01:08 +0000 (15:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Nov 2019 14:02:34 +0000 (15:02 +0100)
commitc90ae4a63541e05f77815762ddb0f7aee917b083
tree00c3a5ba023d112d730c5f0e5be3e6702cf9d829
parent60829b4d00aa2f45f419ff62fb487063153a1d71
iommu/mediatek: Reduce the tlb flush timeout value

Reduce the tlb timeout value from 100000us to 1000us. The original value
would make the kernel stuck for 100 ms with interrupts disabled, which
could have other side effects. The flush is expected to always take much
less than 1 ms, so use that instead.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c