Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opensm for openSUSE:Factory checked 
in at 2026-03-30 18:32:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opensm (Old)
 and      /work/SRC/openSUSE:Factory/.opensm.new.1999 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opensm"

Mon Mar 30 18:32:54 2026 rev:20 rq:1343642 version:3.3.24

Changes:
--------
--- /work/SRC/openSUSE:Factory/opensm/opensm.changes    2024-02-26 
19:48:07.903853908 +0100
+++ /work/SRC/openSUSE:Factory/.opensm.new.1999/opensm.changes  2026-03-30 
18:37:09.765766456 +0200
@@ -1,0 +2,6 @@
+Wed Mar  4 13:12:57 UTC 2026 - Nicolas Morey <[email protected]>
+
+- Add 
opensm-osm_port_info_rcv.c-Re-query-PortInfo-with-extended-speeds-enabled.patch 
to fix
+  issue with NDR switches (bsc#1258143)
+
+-------------------------------------------------------------------

New:
----
  README.md
  _scmsync.obsinfo
  build.specials.obscpio
  
opensm-osm_port_info_rcv.c-Re-query-PortInfo-with-extended-speeds-enabled.patch

----------(New B)----------
  New:
- Add 
opensm-osm_port_info_rcv.c-Re-query-PortInfo-with-extended-speeds-enabled.patch 
to fix
  issue with NDR switches (bsc#1258143)
----------(New E)----------

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

Other differences:
------------------
++++++ opensm.spec ++++++
--- /var/tmp/diff_new_pack.JrmqbI/_old  2026-03-30 18:37:10.297788699 +0200
+++ /var/tmp/diff_new_pack.JrmqbI/_new  2026-03-30 18:37:10.297788699 +0200
@@ -37,7 +37,9 @@
 Source2:        %{name}.launch
 Source3:        opensm.service
 Source4:        baselibs.conf
+Source100:      README.md
 Patch1:         opensm-remove-date-time.patch
+Patch2:         
opensm-osm_port_info_rcv.c-Re-query-PortInfo-with-extended-speeds-enabled.patch
 URL:            https://github.com/linux-rdma/opensm
 BuildRequires:  autoconf
 BuildRequires:  automake

++++++ README.md ++++++

## Build Results

Current state of opensm in openSUSE:Factory is

![Factory build 
results](https://br.opensuse.org/status/openSUSE:Factory/opensm/standard)

The current state of opensm in the devel project build (science:HPC)

![Devel project build 
results](https://br.opensuse.org/status/science:HPC/opensm)



++++++ _scmsync.obsinfo ++++++
mtime: 1774851335
commit: 8215f15e2cfb7a0bb373afb3d32bd240831774f255353b12f8005fa571c214b2
url: https://src.opensuse.org/HPC/opensm.git
revision: 8215f15e2cfb7a0bb373afb3d32bd240831774f255353b12f8005fa571c214b2
projectscmsync: https://src.opensuse.org/HPC/_ObsPrj

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-03-30 08:26:52.000000000 +0200
@@ -0,0 +1 @@
+.osc

++++++ 
opensm-osm_port_info_rcv.c-Re-query-PortInfo-with-extended-speeds-enabled.patch 
++++++
commit a58c675e4e6cd47d4c29a9a8ddcd5793e0e7b3de
Author: Nicolas Morey <[email protected]>
Date:   Wed Mar 4 14:10:55 2026 +0100

    opensm/osm_port_info_rcv.c: Re-query PortInfo with extended speeds enabled
    
    Currently, OpenSM's initial SubnGet(PortInfo) request might not set
    Attribute Modifier bit 31 (SMSupportExtendedSpeeds). If the switch
    responds with extended speeds capability without the actual extended
    speeds data, subsequent operations that rely on the true hardware speeds
    might fail.
    
    This patch implements a "Two-Stage Get" in the PortInfo response handler.
    If the initial Get() omitted AM bit 31 but the port's capability mask
    advertises extended speed support, OpenSM now explicitly requeries
    the port with AM bit 31 ON to obtain the correct extended speeds data
    before proceeding with the async state machine.
    
    Signed-off-by: Nicolas Morey <[email protected]>

diff --git opensm/osm_port_info_rcv.c opensm/osm_port_info_rcv.c
index d3eca8c88381..32052a929f64 100644
--- opensm/osm_port_info_rcv.c
+++ opensm/osm_port_info_rcv.c
@@ -762,6 +762,24 @@ void osm_pi_rcv_process(IN void *context, IN void *data)
 
                CL_ASSERT(p_physp);
 
+               if (!p_context->set_method &&
+                       !(cl_ntoh32(p_smp->attr_mod) & (1 << 31)) &&
+                       (p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS)) {
+
+                       OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
+                               "Re-querying PortInfo to unlock extended 
speeds\n");
+
+                       p_smp->attr_mod |= cl_hton32(1 << 31);
+
+                       osm_req_get(sm, osm_physp_get_dr_path_ptr(p_physp),
+                               IB_MAD_ATTR_PORT_INFO, p_smp->attr_mod,
+                               FALSE, p_smp->m_key, 0, CL_DISP_MSGID_NONE,
+                               &p_madw->context);
+                       CL_PLOCK_RELEASE(sm->p_lock);
+
+                       goto Exit;
+               }
+
                /* Update the directed route path to this port
                   in case the old path is no longer usable. */
                p_dr_path = osm_physp_get_dr_path_ptr(p_physp);

Reply via email to