14
0
forked from pool/crash
Files
crash/crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch

53 lines
1.9 KiB
Diff
Raw Permalink Normal View History

Accepting request 795358 from home:michals - Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before SLE15 SP1 (bsc#1148197). This is only a workaround that requires to build crash for each codestream separately. - Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7. Merge missing patches from SLE15 SP2: crash-stop_read_error_when_intent_is_retry.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch And SLE 15 SP2 bug references and changelog entries: - Upgraded the source tarball to version 7.2.7. This is required to support coredumps from currently used kernel versions in the product (bsc#1159686). - droped the patch obsoleted due to already being present in the new source: - Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68 Upgraded the source tarball to version 7.2.6 to bring better support of version 5 kernels such as 5.3 in SLE-15-SP2 (bsc#114706) Dropped the following patches obsoleted by the version upgrade: crash-Fix-and-an-update-for-the-ipcs-command.patch crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch Re-aligned the following patches with the new version source: crash-allow-use-of-sadump-captured-KASLR-kernel.patch crash-debuginfo-compressed.patch crash-make-emacs-default.diff crash-sles9-time.patch Modified the following patches to integrate with version upgrade: crash-compressed-booted-kernel.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch - Update for XEN dom0 changes in v4.11 that cause coredumps made of a domU using virch on the dom0 to fail to load in the dom0 version of crash reporting "crash: invalid kernel virtual address: <address> type:fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct" and "crash: cannot read cpu_info" (bsc#1124690 and bsc#1122594) Added: - Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127) Added: crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch - Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791). Added: crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch This is not compatible with SLE15 and SLE12 SP4. - Added: crash-Fix-and-an-update-for-the-ipcs-command.patch The update is required for Linux 4.11 and greater kernels, which reimplemented the IDR facility to use radix trees in kernel commit 0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA using the radix tree". Without the patch, if any IPCS entry exists, the command would fail with the message "ipcs: invalid structure member offset: idr_top" (bsc#1092101) OBS-URL: https://build.opensuse.org/request/show/795358 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=316
2020-04-21 13:11:00 +00:00
From 599a6579aa916df7800f8e889d68e4287e4520dd Mon Sep 17 00:00:00 2001
From: Hari Bathini <hbathini@linux.ibm.com>
Date: Thu, 27 Sep 2018 02:06:49 +0530
Subject: ppc64: increase MAX_PHYSMEM_BITS to 128TB
Upstream: no, adapts the below upstream commit for SLE15 SP1
Git-commit: 599a6579aa916df7800f8e889d68e4287e4520dd
With Linux 4.19-rc1 commit 7d4340bb92a9df78e6e28152f3dd89d9bd82146b,
titled "powerpc/mm: Increase MAX_PHYSMEM_BITS to 128TB with
SPARSEMEM_VMEMMAP config", the PPC64 MAX_PHYSMEM_BITS value has been
bumped up to 47. The appropriate update has been made in this patch.
(hbathini@linux.ibm.com)
Accepting request 795358 from home:michals - Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before SLE15 SP1 (bsc#1148197). This is only a workaround that requires to build crash for each codestream separately. - Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7. Merge missing patches from SLE15 SP2: crash-stop_read_error_when_intent_is_retry.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch And SLE 15 SP2 bug references and changelog entries: - Upgraded the source tarball to version 7.2.7. This is required to support coredumps from currently used kernel versions in the product (bsc#1159686). - droped the patch obsoleted due to already being present in the new source: - Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68 Upgraded the source tarball to version 7.2.6 to bring better support of version 5 kernels such as 5.3 in SLE-15-SP2 (bsc#114706) Dropped the following patches obsoleted by the version upgrade: crash-Fix-and-an-update-for-the-ipcs-command.patch crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch Re-aligned the following patches with the new version source: crash-allow-use-of-sadump-captured-KASLR-kernel.patch crash-debuginfo-compressed.patch crash-make-emacs-default.diff crash-sles9-time.patch Modified the following patches to integrate with version upgrade: crash-compressed-booted-kernel.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch - Update for XEN dom0 changes in v4.11 that cause coredumps made of a domU using virch on the dom0 to fail to load in the dom0 version of crash reporting "crash: invalid kernel virtual address: <address> type:fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct" and "crash: cannot read cpu_info" (bsc#1124690 and bsc#1122594) Added: - Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127) Added: crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch - Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791). Added: crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch This is not compatible with SLE15 and SLE12 SP4. - Added: crash-Fix-and-an-update-for-the-ipcs-command.patch The update is required for Linux 4.11 and greater kernels, which reimplemented the IDR facility to use radix trees in kernel commit 0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA using the radix tree". Without the patch, if any IPCS entry exists, the command would fail with the message "ipcs: invalid structure member offset: idr_top" (bsc#1092101) OBS-URL: https://build.opensuse.org/request/show/795358 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=316
2020-04-21 13:11:00 +00:00
[note: apply on 4.12+ for SLE 15 SP1 - incompatible with SLE 15 SP0]
---
Index: crash-7.2.8/defs.h
===================================================================
--- crash-7.2.8.orig/defs.h
+++ crash-7.2.8/defs.h
@@ -6896,6 +6896,9 @@ extern struct lkcd_environment *lkcd;
#define is_SLES9() \
((THIS_KERNEL_VERSION == LINUX(2,6,5)) && kt->is_suse_kernel)
+#define is_SLE15SP1() \
+ ((THIS_KERNEL_VERSION >= LINUX(4,12,0)) && kt->is_suse_kernel)
+
/*
* gdb_interface.c
*/
Index: crash-7.2.8/ppc64.c
===================================================================
--- crash-7.2.8.orig/ppc64.c
+++ crash-7.2.8/ppc64.c
@@ -244,9 +244,14 @@ static int set_ppc64_max_physmem_bits(vo
*/
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_4_20;
} else if ((machdep->flags & VMEMMAP) &&
- ((THIS_KERNEL_VERSION >= LINUX(4,19,0)) || is_RHEL8())) {
- /* SPARSEMEM_VMEMMAP & v4.19 kernel or later, or RHEL8 */
- machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_4_19;
+ ((THIS_KERNEL_VERSION >= LINUX(4,19,0)) ||
+ is_RHEL8() ||
+ is_SLE15SP1())) {
+ /*
+ * SPARSEMEM_VMEMMAP & v4.19 kernel or later,
+ * or RHEL8 or SLE-15-SP1
+ */
+ machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_4_19;
} else if (THIS_KERNEL_VERSION >= LINUX(3,7,0))
machdep->max_physmem_bits = _MAX_PHYSMEM_BITS_3_7;
else