]> git.baikalelectronics.ru Git - kernel.git/commit
s390/boot: make _diag308_reset_dma() position-independent
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Tue, 15 Jun 2021 14:05:09 +0000 (16:05 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 27 Jul 2021 07:39:16 +0000 (09:39 +0200)
commit6a2f8352c3f3e12c51558ca6daa16cfce68cd2bf
treecd5f1d2d03c69e50c92f404391c5d0e8bd9a3cd8
parentdb13fe3adc8ff1c8fc62f8571df6feef0d87b9e1
s390/boot: make _diag308_reset_dma() position-independent

As a preparation for moving the .dma.data section from the decompressor to
the decompressed kernel, the .dma.data section must be made relocatable
by replacing absolute memory addressing with relative one. This is required
in order to be able to relocate the DMA section to a memory address <= 2G
as required by the hardware architecture. The DMA section must be
relocated in case the decompressed kernel was loaded to an address >= 2G
which can occur if KASAN is enabled. By making the whole DMA section
position-independent we avoid applying relocations to it whenever it is
moved to a different address, which becomes possible as soon as it becomes
a part of the decompressed kernel.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/text_dma.S