]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Add HAVE_IOREMAP_PROT support
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 7 Jun 2022 12:50:27 +0000 (20:50 +0800)
committerWill Deacon <will@kernel.org>
Mon, 27 Jun 2022 11:22:31 +0000 (12:22 +0100)
commitf5ebd05cfa73a27cf870b52b7ee9a1e018483166
tree536f6d1476979f85883488eb88995ad3065a463e
parent73adfe10b70e2b496408aa9fce06d35977f1fc29
arm64: Add HAVE_IOREMAP_PROT support

With ioremap_prot() definition from generic ioremap, also move
pte_pgprot() from hugetlbpage.c into pgtable.h, then arm64 could
have HAVE_IOREMAP_PROT, which will enable generic_access_phys()
code, it is useful for debug, eg, gdb.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Link: https://lore.kernel.org/r/20220607125027.44946-7-wangkefeng.wang@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/features/vm/ioremap_prot/arch-support.txt
arch/arm64/Kconfig
arch/arm64/include/asm/pgtable.h
arch/arm64/mm/hugetlbpage.c