]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu: sun50i: clear bypass register
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sun, 16 Jun 2024 22:40:52 +0000 (23:40 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 25 Jun 2024 12:02:46 +0000 (14:02 +0200)
commit927c70c93d929f4c2dcaf72f51b31bb7d118a51a
tree2ffa4647169c4baf3ae649bdb49f94bb844d8bc2
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
iommu: sun50i: clear bypass register

The Allwinner H6 IOMMU has a bypass register, which allows to circumvent
the page tables for each possible master. The reset value for this
register is 0, which disables the bypass.
The Allwinner H616 IOMMU resets this register to 0x7f, which activates
the bypass for all masters, which is not what we want.

Always clear this register to 0, to enforce the usage of page tables,
and make this driver compatible with the H616 in this respect.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20240616224056.29159-2-andre.przywara@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/sun50i-iommu.c