From b71cfa2790091b0c828980a2cdb2a280fb041775abe412cd296f01c9e19378ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 12 Feb 2021 14:09:37 +0000 Subject: [PATCH] Accepting request 871447 from home:LPechacek:branches:Base:System - Update to v3.0.1 (jsc#SLE-13348) - Added IAX support - Added implementation and support for new mdev types - Removed uuid type mdevs - Introduced a new wq API to set max batch and transfer size - Added new GPL2 and LGPL-2.1 license files - Library license changed to LGPL-2.1 - Fixed static code analysis bugs - Enhanced Description - Added dependency on the idxd kernel driver - Restricted architecture to x86 - DSA is embedded into Intel CPUs - Added patch: v3.0.1-use-portable-data-types.patch OBS-URL: https://build.opensuse.org/request/show/871447 OBS-URL: https://build.opensuse.org/package/show/Base:System/accel-config?expand=0&rev=3 --- accel-config-v2.8.tar.gz | 3 --- accel-config-v3.0.1.tar.gz | 3 +++ accel-config.changes | 17 +++++++++++++ accel-config.spec | 37 +++++++++++++++++----------- v3.0.1-use-portable-data-types.patch | 28 +++++++++++++++++++++ 5 files changed, 70 insertions(+), 18 deletions(-) delete mode 100644 accel-config-v2.8.tar.gz create mode 100644 accel-config-v3.0.1.tar.gz create mode 100644 v3.0.1-use-portable-data-types.patch diff --git a/accel-config-v2.8.tar.gz b/accel-config-v2.8.tar.gz deleted file mode 100644 index a4b8112..0000000 --- a/accel-config-v2.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c8aa8421179b71fb728806e5a621655fab24a862f9ce982f3119b92da416949f -size 101314 diff --git a/accel-config-v3.0.1.tar.gz b/accel-config-v3.0.1.tar.gz new file mode 100644 index 0000000..57d179d --- /dev/null +++ b/accel-config-v3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:598611c96c9766356be810c2571c0b5b4547d6e91033701e6e9c596ad97b0154 +size 130568 diff --git a/accel-config.changes b/accel-config.changes index ded6631..949a5c4 100644 --- a/accel-config.changes +++ b/accel-config.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Fri Feb 12 13:09:35 UTC 2021 - Libor Pechacek + +- Update to v3.0.1 (jsc#SLE-13348) + - Added IAX support + - Added implementation and support for new mdev types + - Removed uuid type mdevs + - Introduced a new wq API to set max batch and transfer size + - Added new GPL2 and LGPL-2.1 license files + - Library license changed to LGPL-2.1 + - Fixed static code analysis bugs +- Enhanced Description +- Added dependency on the idxd kernel driver +- Restricted architecture to x86 - DSA is embedded + into Intel CPUs +- Added patch: v3.0.1-use-portable-data-types.patch + ------------------------------------------------------------------- Tue Sep 22 09:28:15 UTC 2020 - Marketa Calabkova diff --git a/accel-config.spec b/accel-config.spec index 0f34847..9f1a8c0 100644 --- a/accel-config.spec +++ b/accel-config.spec @@ -1,7 +1,7 @@ # # spec file for package accel-config # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,36 +15,40 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %define pkg_libname libaccel-config1 Name: accel-config -Version: 2.8 +Version: 3.0.1 Release: 0 -Summary: Configure accelerator subsystem devices +Summary: Configure accelerator subsystem devices License: GPL-2.0-only URL: https://github.com/intel/idxd-config Source: https://github.com/intel/idxd-config/archive/accel-config-v%{version}.tar.gz +Patch0: v3.0.1-use-portable-data-types.patch +BuildRequires: asciidoc BuildRequires: autoconf BuildRequires: automake -BuildRequires: libtool BuildRequires: binutils -BuildRequires: asciidoc -BuildRequires: xmlto +BuildRequires: libtool BuildRequires: pkgconfig -BuildRequires: pkgconfig(libkmod) -BuildRequires: pkgconfig(uuid) -BuildRequires: pkgconfig(json-c) -BuildRequires: pkgconfig(libudev) BuildRequires: systemd +BuildRequires: xmlto +BuildRequires: pkgconfig(json-c) +BuildRequires: pkgconfig(libkmod) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(uuid) Requires: %{pkg_libname} = %{version}-%{release} - +ExclusiveArch: x86_64 i586 %description -Utility library for configuring the accelerator subsystem. +Utility library and command-line tool for configuring the Intel +Data Streaming Accelerator (DSA) and Intel Analytics Accelerator +(IAX). %package -n %{name}-devel Summary: Development files for libaccfg -License: LGPL-2.0-only +License: LGPL-2.1-only Requires: %{pkg_libname} = %{version}-%{release} %description -n %{name}-devel @@ -53,13 +57,15 @@ developing applications that use %{name}. %package -n %{pkg_libname} Summary: Configuration library for accelerator subsystem devices -License: LGPL-2.0-only +License: LGPL-2.1-only +Requires: kmod(idxd.ko) %description -n %{pkg_libname} Libraries for %{name}. %prep %setup -q -n idxd-config-accel-config-v%{version} +%autopatch -p1 %build echo %{version} > version @@ -78,6 +84,7 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %files %defattr(-,root,root) %license Documentation/COPYING licenses/BSD-MIT licenses/CC0 +%license licenses/accel-config-licenses LICENSE_GPL_2_0 %{_bindir}/accel-config %{_mandir}/man1/accel-config* %dir %{_sysconfdir}/accel-config @@ -87,6 +94,7 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %defattr(-,root,root) %doc README.md %license Documentation/COPYING licenses/BSD-MIT licenses/CC0 +%license licenses/libaccel-config-licenses accfg/lib/LICENSE_LGPL_2_1 %{_libdir}/libaccel-config.so.* %files -n %{name}-devel @@ -97,4 +105,3 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_libdir}/pkgconfig/libaccel-config.pc %changelog - diff --git a/v3.0.1-use-portable-data-types.patch b/v3.0.1-use-portable-data-types.patch new file mode 100644 index 0000000..92a79b0 --- /dev/null +++ b/v3.0.1-use-portable-data-types.patch @@ -0,0 +1,28 @@ +From: Libor Pechacek +Date: Fri, 12 Feb 2021 13:53:45 +0100 +Subject: [PATCH] Fix compilation on 32bit platforms +Patch-upstream: no, submitted at https://github.com/intel/idxd-config/issues/3 + +While DSA and IAX are embedded in 64bit CPU, it's fair to assume +that the operating system might run in 32bit mode. This patch +makes the source code compile in 32bit environment. +--- + accfg/libaccel_config.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/accfg/libaccel_config.h b/accfg/libaccel_config.h +index 0814601a9156..bed340d016ce 100644 +--- a/accfg/libaccel_config.h ++++ b/accfg/libaccel_config.h +@@ -102,7 +102,7 @@ struct wq_parameters { + unsigned int priority; + int block_on_fault; + unsigned int max_batch_size; +- unsigned long max_transfer_size; ++ uint64_t max_transfer_size; + const char *mode; + const char *type; + const char *name; +-- +2.30.0 +