From 54b0d948f7ea1d5e8c2dbb1353a7a540063efe3d Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 04:36:41 +0100 Subject: [PATCH] automatic version update by autodist [release 1.2.1-1mamba;Sat Feb 13 2021] --- ....1-arm-revert-generic-implementation.patch | 37 +++++++++++++++++++ libibverbs.spec | 19 +++++----- 2 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 libibverbs-1.2.1-arm-revert-generic-implementation.patch diff --git a/libibverbs-1.2.1-arm-revert-generic-implementation.patch b/libibverbs-1.2.1-arm-revert-generic-implementation.patch new file mode 100644 index 0000000..ca47f3e --- /dev/null +++ b/libibverbs-1.2.1-arm-revert-generic-implementation.patch @@ -0,0 +1,37 @@ +From 20e2daec4578c1df10d8b599bf3b525a9b3fc6c3 Mon Sep 17 00:00:00 2001 +From: Steve Wise +Date: Tue, 7 Jun 2016 07:42:47 -0700 +Subject: Fail compiles if no platform specific memory barriers exist + +Currently there is a "generic" implementation for the memory barrier +macros in arch.h. These turned out to be insuffient for ARM64 causing +memory corruption problems when doing RDMA operations. So going forward, +fail a compile on a platform w/o platform-specific memory barrier macros. + +Signed-off-by: Steve Wise +Signed-off-by: Doug Ledford +--- + include/infiniband/arch.h | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +diff --git a/include/infiniband/arch.h b/include/infiniband/arch.h +index c31dd0a..e35ecf0 100644 +--- a/include/infiniband/arch.h ++++ b/include/infiniband/arch.h +@@ -132,12 +132,7 @@ static inline uint64_t ntohll(uint64_t x) { return x; } + + #else + +-#warning No architecture specific defines found. Using generic implementation. +- +-#define mb() asm volatile("" ::: "memory") +-#define rmb() mb() +-#define wmb() mb() +-#define wc_wmb() wmb() ++#error No architecture specific memory barrier defines found! + + #endif + +-- +cgit 1.2.3-1.el7 + diff --git a/libibverbs.spec b/libibverbs.spec index c4f0ebc..cef5bae 100644 --- a/libibverbs.spec +++ b/libibverbs.spec @@ -1,5 +1,5 @@ Name: libibverbs -Version: 1.1.8 +Version: 1.2.1 Release: 1mamba Summary: A library that allows programs to use RDMA "verbs" for direct access to RDMA hardware from userspace Group: System/Libraries @@ -9,6 +9,7 @@ Packager: Silvan Calarco URL: https://www.openfabrics.org ## GITSOURCE git://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git libibverbs-1.1.8 Source: git://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git/libibverbs-%{version}/libibverbs-%{version}.tar.bz2 +Patch0: libibverbs-1.2.1-arm-revert-generic-implementation.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -38,9 +39,12 @@ This package contains utility applications for %{name}. %prep %setup -q +%ifarch arm +%patch0 -R -p1 +%endif +./autogen.sh %build -./autogen.sh %configure %make @@ -81,14 +85,11 @@ This package contains utility applications for %{name}. %{_bindir}/ibv_uc_pingpong %{_bindir}/ibv_ud_pingpong %{_bindir}/ibv_xsrq_pingpong -%{_mandir}/man1/ibv_asyncwatch.1* -%{_mandir}/man1/ibv_devices.1* -%{_mandir}/man1/ibv_devinfo.1* -%{_mandir}/man1/ibv_rc_pingpong.1* -%{_mandir}/man1/ibv_srq_pingpong.1* -%{_mandir}/man1/ibv_uc_pingpong.1* -%{_mandir}/man1/ibv_ud_pingpong.1* +%{_mandir}/man1/ibv_*.1* %changelog +* Sat Feb 13 2021 Automatic Build System 1.2.1-1mamba +- automatic version update by autodist + * Tue Oct 14 2014 Silvan Calarco 1.1.8-1mamba - package created using the webbuild interface