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 2025-03-05 13:38:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powerpc-utils (Old)
 and      /work/SRC/openSUSE:Factory/.powerpc-utils.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powerpc-utils"

Wed Mar  5 13:38:21 2025 rev:148 rq:1250340 version:1.3.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/powerpc-utils/powerpc-utils.changes      
2025-01-28 14:59:37.743173537 +0100
+++ /work/SRC/openSUSE:Factory/.powerpc-utils.new.19136/powerpc-utils.changes   
2025-03-05 13:38:29.499444244 +0100
@@ -1,0 +2,12 @@
+Wed Mar  5 10:00:34 UTC 2025 - Michal Suchanek <msucha...@suse.de>
+
+- drmgr/pci: Return 0 for success from do_replace() (jsc#PED-9914).
+  * drmgr-pci-Return-0-for-success-from-do_replace.patch
+
+-------------------------------------------------------------------
+Tue Mar  4 10:24:35 UTC 2025 - Michal Suchanek <msucha...@suse.de>
+
+- Fix memory mode display on POWER10 (bsc#1237409 ltc#211627)
+  * lparstat-print-memory-mode-correctly.patch
+
+-------------------------------------------------------------------

New:
----
  drmgr-pci-Return-0-for-success-from-do_replace.patch
  lparstat-print-memory-mode-correctly.patch

BETA DEBUG BEGIN:
  New:- drmgr/pci: Return 0 for success from do_replace() (jsc#PED-9914).
  * drmgr-pci-Return-0-for-success-from-do_replace.patch
  New:- Fix memory mode display on POWER10 (bsc#1237409 ltc#211627)
  * lparstat-print-memory-mode-correctly.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ powerpc-utils.spec ++++++
--- /var/tmp/diff_new_pack.Iukb1y/_old  2025-03-05 13:38:30.451484181 +0100
+++ /var/tmp/diff_new_pack.Iukb1y/_new  2025-03-05 13:38:30.451484181 +0100
@@ -29,6 +29,8 @@
 Patch2:         ofpathname_powernv.patch
 Patch3:         fix_kexec_service_name_for_suse.patch
 Patch4:         libvirt-service-dep.patch
+Patch5:         lparstat-print-memory-mode-correctly.patch
+Patch6:         drmgr-pci-Return-0-for-success-from-do_replace.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libnuma-devel

++++++ drmgr-pci-Return-0-for-success-from-do_replace.patch ++++++
>From 3a8127ad7fe6615a8c6e8a3f0965addfdf888b38 Mon Sep 17 00:00:00 2001
From: Haren Myneni <ha...@linux.ibm.com>
Date: Fri, 14 Feb 2025 21:43:33 -0800
Subject: [PATCH] drmgr/pci: Return 0 for success from do_replace()

Patch-mainline: expected 1.3.14
Git-commit: 3a8127ad7fe6615a8c6e8a3f0965addfdf888b38

Added replace_add_work() in commit f40a63b15c563 to support
replacement node and the partner node. But this function returns
0 for user input and 1 for success which caused do_replace()
returns 1. This patch fixes the problem with return 0.

Fixes: f40a63b15c563 ("drmgr/pci: Add multipath partner device support for 
hotplug replace")
Signed-off-by: Haren Myneni <ha...@linux.ibm.com>
Signed-off-by: Tyrel Datwyler <tyr...@linux.ibm.com>
---
 src/drmgr/drslot_chrp_pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/drmgr/drslot_chrp_pci.c b/src/drmgr/drslot_chrp_pci.c
index 4c41fcd..91c08e9 100644
--- a/src/drmgr/drslot_chrp_pci.c
+++ b/src/drmgr/drslot_chrp_pci.c
@@ -1051,9 +1051,10 @@ static int do_replace(struct dr_node *all_nodes)
                }
 
                usr_prompt = prompt_save;
+               return rc;
        }
 
-       return rc;
+       return 0;
 }
 
 int valid_pci_options(void)
-- 
2.47.1


++++++ lparstat-print-memory-mode-correctly.patch ++++++
>From b6f50dc565eea17ce35389555489e9d8da3be9f3 Mon Sep 17 00:00:00 2001
From: Shrikanth Hegde <sshe...@linux.ibm.com>
Date: Mon, 3 Mar 2025 09:36:47 +0530
Subject: [PATCH] lparstat: print memory mode correctly

Patch-mainline: expected 1.3.14
Git-commit: b6f50dc565eea17ce35389555489e9d8da3be9f3

Starting from power10, active memory sharing(AMS) is not supported.
So from power10 onwards the H_GET_MPP hcall fails and hence
corresponding fields in lparcfg are not populated, such as
entitled_memory_pool_number etc.

Use gcc builtins and print memory model as dedicated for power10
onwards.

Suggested-by: Peter Bergner <berg...@linux.ibm.com>
Signed-off-by: Shrikanth Hegde <sshe...@linux.ibm.com>
[tyreld: fixup arch test to use newly defined BUILTIN wrapper]
Signed-off-by: Tyrel Datwyler <tyr...@linux.ibm.com>
---
 src/common/cpu_info_helpers.h | 6 ++++++
 src/lparstat.c                | 6 +++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

Index: powerpc-utils-1.3.13/src/lparstat.c
===================================================================
--- powerpc-utils-1.3.13.orig/src/lparstat.c
+++ powerpc-utils-1.3.13/src/lparstat.c
@@ -31,6 +31,7 @@
 #include <fcntl.h>
 #include <sched.h>
 #include <signal.h>
+#include <sys/auxv.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include "lparstat.h"
@@ -789,7 +790,11 @@ void get_memory_mode(struct sysentry *se
        struct sysentry *tmp;
 
        tmp = get_sysentry("entitled_memory_pool_number");
-       if (atoi(tmp->value) == 65535)
+       /*
+        * from power10 onwards Active Memory Sharing(AMS) is not
+        * supported. Hence always display it as dedicated for those
+        */
+       if (atoi(tmp->value) == 65535 || getauxval(AT_HWCAP2) & 
PPC_FEATURE2_ARCH_3_1)
                sprintf(buf, "Dedicated");
        else
                sprintf(buf, "Shared");

Reply via email to