diff --git a/s390-tools-sles12sp3-chmem-try-to-online-zone-movable.patch b/s390-tools-sles12sp3-chmem-try-to-online-zone-movable.patch new file mode 100644 index 0000000..1c58336 --- /dev/null +++ b/s390-tools-sles12sp3-chmem-try-to-online-zone-movable.patch @@ -0,0 +1,35 @@ +Subject: [PATCH] [BZ 156627] chmem: try to online memory to zone movable +From: Gerald Schaefer + +Description: chmem: try to online memory to zone movable +Symptom: Standby/reserved memory that is onlined with chmem will be set + online to zone normal, instead of zone movable, and so it is much + less likely to be able to be offlined again. +Problem: With recent kernels, the default zone for hotplug memory was + changed from zone movable to zone normal. +Solution: Let chmem first try to online memory to the zone movable, before + setting it online to the default zone. +Reproduction: Set standby/reserved memory online with chmem, and check + /proc/zoneinfo for zone allocation. +Upstream-ID: - +Problem-ID: 156627 + +Signed-off-by: Gerald Schaefer +--- + zconf/chmem | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +--- a/zconf/chmem ++++ b/zconf/chmem +@@ -86,7 +86,10 @@ sub chmem_online($) + { + my $block = shift; + +- qx(echo online > $memdir/memory$block/state 2>/dev/null); ++ qx(echo online_movable > $memdir/memory$block/state 2>/dev/null); ++ if ($? >> 8 != 0) { ++ qx(echo online > $memdir/memory$block/state 2>/dev/null); ++ } + return $? >> 8; + } + diff --git a/s390-tools.changes b/s390-tools.changes index 1e31fed..e6fabeb 100644 --- a/s390-tools.changes +++ b/s390-tools.changes @@ -1,7 +1,19 @@ +------------------------------------------------------------------- +Thu Sep 7 19:41:39 UTC 2017 - mpost@suse.com + +- Temporarily added BuildIgnore: gcc-PIE to the spec file to + avoid a problem with zipl not working. (bsc#1055343) + +------------------------------------------------------------------- +Wed Jul 12 18:14:13 UTC 2017 - mpost@suse.com + +- Added s390-tools-sles12sp3-chmem-try-to-online-zone-movable.patch + (bsc#1048363). + ------------------------------------------------------------------- Mon Jul 3 17:29:19 CEST 2017 - ro@suse.de -- remove lsmem and chmem and their manpages from the package, +- Remove lsmem and chmem and their manpages from the package, both tools have been added to util-linux-2.30 ------------------------------------------------------------------- diff --git a/s390-tools.spec b/s390-tools.spec index ab70acf..5d7cb49 100644 --- a/s390-tools.spec +++ b/s390-tools.spec @@ -44,6 +44,8 @@ Requires: rsync Requires: tar Requires: util-linux Provides: s390utils:/sbin/dasdfmt +# Don't build with pie to avoid problems with zipl +#!BuildIgnore: gcc-PIE Source: s390-tools-%{version}.tar.bz2 Source1: s390-tools-rpmlintrc Source2: zipl.conf @@ -133,6 +135,7 @@ Patch30: s390-tools-sles12sp3-util_proc-fix-memory-allocation-error-messa Patch31: s390-tools-sles12sp3-mon_fsstatd-fix-double-free-in-error-path-and-skip-virtual-fs.patch Patch32: s390-tools-sles12sp3-dbginfo-Collect-docker-debug-data.patch Patch33: s390-tools-sles12sp3-ziomon-no-blktrace-kill-which-can-corrupt-kernel-blk.patch +Patch34: s390-tools-sles12sp3-chmem-try-to-online-zone-movable.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: s390 s390x @@ -222,6 +225,7 @@ to list files and directories. %patch31 -p1 %patch32 -p1 %patch33 -p1 +%patch34 -p1 cp -vi %{S:22} CAUTION