public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rdma-core] rawhide: Add patch to fix pyverbs CompCntr uint64_t type mismatch on i686
@ 2026-10-01  9:08 Filip Balluch
  0 siblings, 0 replies; only message in thread
From: Filip Balluch @ 2026-10-01  9:08 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rdma-core
            Branch : rawhide
            Commit : cb1c8ec987bb67c420f5f20397a8dd2e8c3bca5f
            Author : Filip Balluch <fballuch@redhat.com>
            Date   : 2026-09-22T11:23:56+02:00
            Stats  : +47/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rdma-core/c/cb1c8ec987bb67c420f5f20397a8dd2e8c3bca5f?branch=rawhide

            Log:
            Add patch to fix pyverbs CompCntr uint64_t type mismatch on i686

Signed-off-by: Filip Balluch <fballuch@redhat.com>

---
diff --git a/fix-comp-cntr-uint64.patch b/fix-comp-cntr-uint64.patch
new file mode 100644
index 0000000..22eb197
--- /dev/null
+++ b/fix-comp-cntr-uint64.patch
@@ -0,0 +1,45 @@
+diff --git a/pyverbs/comp_cntr.pyx b/pyverbs/comp_cntr.pyx
+index 12e812cb9..79592f27e 100644
+--- a/pyverbs/comp_cntr.pyx
++++ b/pyverbs/comp_cntr.pyx
+@@ -3,6 +3,7 @@
+ 
+ #cython: language_level=3
+ 
++from libc.stdint cimport uint64_t
+ from pyverbs.base import PyverbsRDMAErrno, PyverbsRDMAError
+ from pyverbs.device cimport Context
+ cimport pyverbs.libibverbs as v
+@@ -81,7 +82,7 @@ cdef class CompCntr(PyverbsCM):
+ 
+     def read(self):
+         """Read and return the current completion count."""
+-        cdef unsigned long value = 0
++        cdef uint64_t value = 0
+         rc = v.ibv_read_comp_cntr(self.comp_cntr, &value)
+         if rc:
+             raise PyverbsRDMAError('Failed to read comp_cntr', rc)
+@@ -89,7 +90,7 @@ cdef class CompCntr(PyverbsCM):
+ 
+     def read_err(self):
+         """Read and return the current error count."""
+-        cdef unsigned long value = 0
++        cdef uint64_t value = 0
+         rc = v.ibv_read_err_comp_cntr(self.comp_cntr, &value)
+         if rc:
+             raise PyverbsRDMAError('Failed to read_err comp_cntr', rc)
+diff --git a/pyverbs/libibverbs.pxd b/pyverbs/libibverbs.pxd
+index 82bfa869a..2afa76c40 100644
+--- a/pyverbs/libibverbs.pxd
++++ b/pyverbs/libibverbs.pxd
+@@ -785,8 +785,8 @@ cdef extern from 'infiniband/verbs.h':
+     int ibv_set_err_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long value)
+     int ibv_inc_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long amount)
+     int ibv_inc_err_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long amount)
+-    int ibv_read_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long *value)
+-    int ibv_read_err_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long *value)
++    int ibv_read_comp_cntr(ibv_comp_cntr *comp_cntr, uint64_t *value)
++    int ibv_read_err_comp_cntr(ibv_comp_cntr *comp_cntr, uint64_t *value)
+     ibv_ah *ibv_create_ah(ibv_pd *pd, ibv_ah_attr *attr)
+     int ibv_init_ah_from_wc(ibv_context *context, uint8_t port_num,
+                             ibv_wc *wc, ibv_grh *grh, ibv_ah_attr *ah_attr)

diff --git a/rdma-core.spec b/rdma-core.spec
index cf485ee..57ae1a8 100644
--- a/rdma-core.spec
+++ b/rdma-core.spec
@@ -11,6 +11,7 @@ License: GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
 Url: https://github.com/linux-rdma/rdma-core
 Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz
 Patch0001: 0001-Revert-dracut-do-not-install-dracut-module-in-non-ho.patch
+Patch0002: fix-comp-cntr-uint64.patch
 Patch9998: 9998-kernel-boot-Do-not-perform-device-rename-on-OPA-devi.patch
 Patch9999: 9999-udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch
 # Do not build static libs by default.
@@ -305,6 +306,7 @@ easy, object-oriented access to IB verbs.
 %prep
 %setup -q
 %patch 0001 -p1
+%patch 0002 -p1
 %if 0%{?fedora}
 %patch 9998 -p1
 %endif

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-01  9:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01  9:08 [rpms/rdma-core] rawhide: Add patch to fix pyverbs CompCntr uint64_t type mismatch on i686 Filip Balluch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox