]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/rockchip: Fix PAGE_DESC_HI_MASKs for RK3568
authorAlex Bee <knaerzche@gmail.com>
Wed, 24 Nov 2021 02:13:25 +0000 (03:13 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 26 Nov 2021 21:54:20 +0000 (22:54 +0100)
commitd49fb673eafa74df6a613dd9f9687127d0aa6cd1
tree80b7a9fbf8a852390f3cc6131ded742752fc135e
parent9a4561bacef667cb584c798958dec738ff232043
iommu/rockchip: Fix PAGE_DESC_HI_MASKs for RK3568

With the submission of iommu driver for RK3568 a subtle bug was
introduced: PAGE_DESC_HI_MASK1 and PAGE_DESC_HI_MASK2 have to be
the other way arround - that leads to random errors, especially when
addresses beyond 32 bit are used.

Fix it.

Fixes: 538f003ea048 ("iommu: rockchip: Add support for iommu v2")
Signed-off-by: Alex Bee <knaerzche@gmail.com>
Tested-by: Peter Geis <pgwipeout@gmail.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Dan Johansen <strit@manjaro.org>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Link: https://lore.kernel.org/r/20211124021325.858139-1-knaerzche@gmail.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c