]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "iommu/io-pgtable-arm: Check for v7s-incapable systems"
authorYong Wu <yong.wu@mediatek.com>
Thu, 13 Dec 2018 09:19:48 +0000 (17:19 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 17 Dec 2018 09:19:10 +0000 (10:19 +0100)
commit1f1cef16fabb2dd6d1213c51e1a4fa6c449fb4ce
tree725ab7dd2c8e1918199a231f7fc4a4e14c191733
parentcdabd85799ad6fbcc9b19037eea605d7b7de6d15
Revert "iommu/io-pgtable-arm: Check for v7s-incapable systems"

This reverts commit e5ac23cc8235b572f1c17004650a0b3341f2451d.

After the commit 12f43e7c4d23 ("iommu/io-pgtable-arm-v7s: Abort
allocation when table address overflows the PTE"), v7s will return fail
if the page table allocation isn't expected. this PHYS_OFFSET check
is unnecessary now.

And this check may lead to fail. For example, If CONFIG_RANDOMIZE_BASE
is enabled, the "memstart_addr" will be updated randomly, then the
PHYS_OFFSET may be random.

Reported-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/io-pgtable-arm-v7s.c