]> git.baikalelectronics.ru Git - kernel.git/commit
s390: setup kernel memory layout early
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 6 Oct 2020 20:12:39 +0000 (22:12 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Fri, 18 Jun 2021 14:41:19 +0000 (16:41 +0200)
commit71873db82cf366488e2bbf4338e91f5f6b622072
treef7c6c12dc982a80e4ed7de67fdb829c0682f84ba
parent16b4c113b6c28007b7e0137a54dc091bf54205df
s390: setup kernel memory layout early

Currently there are two separate places where kernel memory layout has
to be known and adjusted:
1. early kasan setup.
2. paging setup later.

Those 2 places had to be kept in sync and adjusted to reflect peculiar
technical details of one another. With additional factors which influence
kernel memory layout like ultravisor secure storage limit, complexity
of keeping two things in sync grew up even more.

Besides that if we look forward towards creating identity mapping and
enabling DAT before jumping into uncompressed kernel - that would also
require full knowledge of and control over kernel memory layout.

So, de-duplicate and move kernel memory layout setup logic into
the decompressor.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/boot.h
arch/s390/boot/ipl_parm.c
arch/s390/boot/startup.c
arch/s390/boot/uv.c
arch/s390/include/asm/kasan.h
arch/s390/include/asm/pgtable.h
arch/s390/include/asm/setup.h
arch/s390/kernel/setup.c
arch/s390/kernel/uv.c
arch/s390/mm/kasan_init.c