Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package powerpc-utils for openSUSE:Factory checked in at 2021-04-22 18:03:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/powerpc-utils (Old) and /work/SRC/openSUSE:Factory/.powerpc-utils.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "powerpc-utils" Thu Apr 22 18:03:42 2021 rev:112 rq:886648 version:1.3.8 Changes: -------- --- /work/SRC/openSUSE:Factory/powerpc-utils/powerpc-utils.changes 2021-04-10 15:27:31.626389028 +0200 +++ /work/SRC/openSUSE:Factory/.powerpc-utils.new.12324/powerpc-utils.changes 2021-04-22 18:04:06.826520434 +0200 @@ -1,0 +2,6 @@ +Mon Apr 19 09:38:04 UTC 2021 - Michal Suchanek <msucha...@suse.com> + +- Fix memore remove by index (bsc#1183958 ltc#192149). + + drmgr-fix-remove-by-index-operation.patch + +------------------------------------------------------------------- New: ---- drmgr-fix-remove-by-index-operation.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ powerpc-utils.spec ++++++ --- /var/tmp/diff_new_pack.Z1EJe0/_old 2021-04-22 18:04:07.430521368 +0200 +++ /var/tmp/diff_new_pack.Z1EJe0/_new 2021-04-22 18:04:07.434521375 +0200 @@ -44,6 +44,7 @@ Patch18: 0001-drmgr-don-t-open-sysfs-file-for-each-command.patch Patch19: 0002-drmgr-read-the-CPU-NUMA-topology.patch Patch20: 0003-drmgr-introduce-NUMA-based-LMB-removal.patch +Patch21: drmgr-fix-remove-by-index-operation.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libnuma-devel ++++++ drmgr-fix-remove-by-index-operation.patch ++++++ >From 16469b696959aee4ce32d9f77483e1e3f192e82d Mon Sep 17 00:00:00 2001 From: Laurent Dufour <lduf...@linux.ibm.com> Date: Fri, 16 Apr 2021 18:10:36 +0200 Subject: [PATCH] drmgr: fix remove by index operation The commit e9f06531356f ("drmgr: introduce NUMA based LMB removal") introduce a special processing when NUMA is on and the remove by count operation is done. Unfortunately, that code is also triggered when doing a remove by index operation (-s argument) becauses usr_drc_count is set to 1. As a consequence the index constraint is not respected and any LMB can be removed. Add a check agains usr_drc_index which is set when a remove by index operation is done to ensure the numa removal code is not triggered in that case. Fixes: e9f06531356f ("drmgr: introduce NUMA based LMB removal") Signed-off-by: Laurent Dufour <lduf...@linux.ibm.com> --- src/drmgr/drslot_chrp_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drmgr/drslot_chrp_mem.c b/src/drmgr/drslot_chrp_mem.c index f17c94adc270..8db98bb9e9ea 100644 --- a/src/drmgr/drslot_chrp_mem.c +++ b/src/drmgr/drslot_chrp_mem.c @@ -1749,7 +1749,7 @@ int do_mem_kernel_dlpar(void) int rc, offset; - if (usr_action == REMOVE && usr_drc_count) { + if (usr_action == REMOVE && usr_drc_count && !usr_drc_index) { build_numa_topology(); if (numa_enabled) { if (!numa_based_remove(usr_drc_count)) -- 2.31.1