s390/mm: provide simple ARCH_HAS_DEBUG_VIRTUAL support
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Mar 2024 12:28:27 +0000 (13:28 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 13 Mar 2024 08:23:49 +0000 (09:23 +0100)
commit5f58bde7264704fec2058afc219a3557f02f3d8f
tree752aa0dbbe00bedbac8bc6475c66a21b1f65ab5f
parentbd36cfbbb9e1aa2561d488885423c65d519aac0d
s390/mm: provide simple ARCH_HAS_DEBUG_VIRTUAL support

Provide a very simple ARCH_HAS_DEBUG_VIRTUAL implementation.
For now errors are only reported for the following cases:

- Trying to translate a vmalloc or module address to a physical address

- Translating a supposed to be ZONE_DMA virtual address into a physical
  address, and the resulting physical address is larger than two GiB

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/Kconfig
arch/s390/Makefile
arch/s390/configs/debug_defconfig
arch/s390/include/asm/dma-types.h
arch/s390/include/asm/page.h
arch/s390/mm/Makefile
arch/s390/mm/physaddr.c [new file with mode: 0644]