No description
Find a file
Sourabh Jain 2ed49557c2 powerpc: Set crashkernel offset to mid of RMA region
[ Upstream commit 7c5ed82b80 ]

On large config LPARs (having 192 and more cores), Linux fails to boot
due to insufficient memory in the first memblock. It is due to the
memory reservation for the crash kernel which starts at 128MB offset of
the first memblock. This memory reservation for the crash kernel doesn't
leave enough space in the first memblock to accommodate other essential
system resources.

The crash kernel start address was set to 128MB offset by default to
ensure that the crash kernel get some memory below the RMA region which
is used to be of size 256MB. But given that the RMA region size can be
512MB or more, setting the crash kernel offset to mid of RMA size will
leave enough space for the kernel to allocate memory for other system
resources.

Since the above crash kernel offset change is only applicable to the LPAR
platform, the LPAR feature detection is pushed before the crash kernel
reservation. The rest of LPAR specific initialization will still
be done during pseries_probe_fw_features as usual.

This patch is dependent on changes to paca allocation for boot CPU. It
expect boot CPU to discover 1T segment support which is introduced by
the patch posted here:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2022-January/239175.html

Reported-by: Abdul haleem <abdhalee@linux.vnet.ibm.com>
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220204085601.107257-1-sourabhjain@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-19 17:47:36 +08:00
arch powerpc: Set crashkernel offset to mid of RMA region 2023-04-19 17:47:36 +08:00
block block: Fix the maximum minor value is blk_alloc_ext_minor() 2023-04-19 17:47:28 +08:00
certs certs: Add support for using elliptic curve keys for signing modules 2021-08-23 19:55:42 +03:00
crypto crypto: xts - Add softdep on ecb 2023-04-19 17:47:16 +08:00
Documentation docs: sysctl/kernel: add missing bit to panic_print 2023-04-19 17:47:31 +08:00
drivers mt76: dma: initialize skip_unmap in mt76_dma_rx_fill 2023-04-19 17:47:35 +08:00
fs coredump: Use the vma snapshot in fill_files_note 2023-04-19 17:47:32 +08:00
include net: initialize init_net earlier 2023-04-19 17:47:36 +08:00
init net: initialize init_net earlier 2023-04-19 17:47:36 +08:00
ipc ipc/sem: do not sleep with a spin lock held 2023-04-19 17:45:01 +08:00
kernel swiotlb: Support aligned swiotlb buffers 2023-04-19 17:47:32 +08:00
lib lib/logic_iomem: correct fallback config references 2023-04-19 17:47:32 +08:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
mm kfence: limit currently covered allocations when pool nearly full 2023-04-19 17:47:33 +08:00
net net: initialize init_net earlier 2023-04-19 17:47:36 +08:00
samples samples/bpf, xdpsock: Fix race when running for fix duration of time 2023-04-19 17:47:05 +08:00
scripts modpost: restore the warning message for missing symbol versions 2023-04-19 17:47:27 +08:00
security Fix incorrect type in assignment of ipv6 port for audit 2023-04-19 17:47:16 +08:00
sound ASoC: topology: Allow TLV control to be either read or write 2023-04-19 17:47:30 +08:00
tools libbpf: Fix build issue with llvm-readelf 2023-04-19 17:47:35 +08:00
usr usr/include/Makefile: add linux/nfc.h to the compile-test coverage 2023-04-19 17:44:58 +08:00
virt KVM: Prevent module exit until all VMs are freed 2023-04-19 17:47:25 +08:00
.clang-format clang-format: Update with the latest for_each macro list 2021-05-12 23:32:39 +02:00
.cocciconfig scripts: add Linux .cocciconfig for coccinelle 2016-07-22 12:13:39 +02:00
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes .gitattributes: use 'dts' diff driver for dts files 2019-12-04 19:44:11 -08:00
.gitignore .gitignore: ignore only top-level modules.builtin 2021-05-02 00:43:35 +09:00
.mailmap mailmap: add Andrej Shadura 2021-10-18 20:22:03 -10:00
COPYING COPYING: state that all contributions really are covered by this file 2020-02-10 13:32:20 -08:00
CREDITS MAINTAINERS: Move Daniel Drake to credits 2021-09-21 08:34:58 +03:00
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
Kconfig kbuild: ensure full rebuild when the compiler is updated 2020-05-12 13:28:33 +09:00
MAINTAINERS MAINTAINERS: adjust file entry for of_net.c after movement 2023-04-19 17:46:04 +08:00
Makefile Linux 5.15.33 2023-04-19 17:47:32 +08:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.