Compare commits

...

No commits in common. "c8" and "c9-beta" have entirely different histories.
c8 ... c9-beta

4 changed files with 78 additions and 69 deletions

1
.accel-config.metadata Normal file
View File

@ -0,0 +1 @@
66ecd063ee307fda484163fd404b770a055ff35a SOURCES/accel-config-v4.1.8.tar.gz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/accel-config-v3.5.3.tar.gz SOURCES/accel-config-v4.1.8.tar.gz

View File

@ -1,36 +0,0 @@
diff --color -ur idxd-config-accel-config-v3.4.8/test/dsa_user_test_runner.sh idxd-config-accel-config-v3.4.8-new/test/dsa_user_test_runner.sh
--- idxd-config-accel-config-v3.4.8/test/dsa_user_test_runner.sh 2022-09-21 14:16:06.000000000 -0700
+++ idxd-config-accel-config-v3.4.8-new/test/dsa_user_test_runner.sh 2022-10-06 16:36:02.838178412 -0700
@@ -14,7 +14,7 @@
[ ! -f "$DSATEST" ] && echo "fail: $LINENO" && exit 1
-check_min_kver "5.6" || do_skip "kernel does not support idxd"
+check_min_kver "4.18" || do_skip "kernel does not support idxd"
# skip if no pasid support as dsa_test does not support operation w/o pasid yet.
[ ! -f "/sys/bus/dsa/devices/$DSA/pasid_enabled" ] && echo "No SVM support" && exit "$EXIT_SKIP"
diff --color -ur idxd-config-accel-config-v3.4.8/test/iaa_user_test_runner.sh idxd-config-accel-config-v3.4.8-new/test/iaa_user_test_runner.sh
--- idxd-config-accel-config-v3.4.8/test/iaa_user_test_runner.sh 2022-09-21 14:16:06.000000000 -0700
+++ idxd-config-accel-config-v3.4.8-new/test/iaa_user_test_runner.sh 2022-10-06 16:35:43.989998045 -0700
@@ -14,7 +14,7 @@
[ ! -f "$IAATEST" ] && echo "fail: $LINENO" && exit 1
-check_min_kver "5.6" || do_skip "kernel does not support idxd"
+check_min_kver "4.18" || do_skip "kernel does not support idxd"
# skip if no pasid support as iaa_test does not support operation w/o pasid yet.
[ ! -f "/sys/bus/dsa/devices/$IAA/pasid_enabled" ] && echo "No SVM support" && exit "$EXIT_SKIP"
diff --color -ur idxd-config-accel-config-v3.4.8/test/libaccfg.c idxd-config-accel-config-v3.4.8-new/test/libaccfg.c
--- idxd-config-accel-config-v3.4.8/test/libaccfg.c 2022-09-21 14:16:06.000000000 -0700
+++ idxd-config-accel-config-v3.4.8-new/test/libaccfg.c 2022-10-06 16:36:31.090448787 -0700
@@ -966,7 +966,7 @@
struct accfg_device *device;
struct log_ctx log_ctx;
- if (!accfg_test_attempt(test, KERNEL_VERSION(5, 6, 0)))
+ if (!accfg_test_attempt(test, KERNEL_VERSION(4, 18, 0)))
return EXIT_SKIP;
accfg_set_log_priority(ctx, loglevel);

View File

@ -1,16 +1,12 @@
%global project_name idxd-config %global project_name idxd-config
Name: accel-config Name: accel-config
Version: 3.5.3 Version: 4.1.8
Release: 1%{?dist} Release: 1%{?dist}
Summary: Configure accelerator subsystem devices Summary: Configure accelerator subsystem devices
# The entire source code is under GPLv2 except for accel-config License: GPL-2.0-only
# library which is mostly LGPLv2, ccan/list which is BSD-MIT and
# the rest of ccan which is CC0.
License: GPLv2 and LGPLv2+ and MIT and CC0
URL: https://github.com/intel/%{project_name} URL: https://github.com/intel/%{project_name}
Source0: %{URL}/archive/%{name}-v%{version}.tar.gz Source0: %{URL}/archive/%{name}-v%{version}.tar.gz
Patch0: 0001-testing-vercheck.patch
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
BuildRequires: gcc BuildRequires: gcc
@ -19,6 +15,7 @@ BuildRequires: asciidoc
BuildRequires: xmlto BuildRequires: xmlto
BuildRequires: automake BuildRequires: automake
BuildRequires: libtool BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(libkmod) BuildRequires: pkgconfig(libkmod)
BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(uuid)
@ -26,9 +23,10 @@ BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
BuildRequires: systemd BuildRequires: systemd
BuildRequires: make
# accel-config is for configuring Intel DSA (Data-Streaming # accel-config is for configuring Intel DSA (Data-Streaming
# Accelerator) subsystem in the Linux kernel. It supports x86 only. # Accelerator) subsystem in the Linux kernel. It supports x86_64 only.
ExclusiveArch: %{ix86} x86_64 ExclusiveArch: %{ix86} x86_64
%description %description
@ -36,7 +34,7 @@ Utility library for configuring the accelerator subsystem.
%package devel %package devel
Summary: Development files for libaccfg Summary: Development files for libaccfg
License: LGPLv2+ License: LGPL-2.1-only
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel %description devel
@ -46,18 +44,16 @@ developing applications that use %{name}.
%package libs %package libs
Summary: Configuration library for accelerator subsystem devices Summary: Configuration library for accelerator subsystem devices
# All source code of configuration library is LGPLv2, except License: LGPL-2.1-only
# ccan/list which is BSD-MIT and the rest of ccan/ which is CC0.
License: LGPLv2+ and MIT and CC0
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description libs %description libs
Libraries for %{name}. Libraries for %{name}.
%package test %package test
Summary: Tests for accel-config Summary: Tests for accel-config
License: GPLv2 License: GPL-2.0-only
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description test %description test
Tests for accel-config command. Tests for accel-config command.
@ -88,7 +84,7 @@ make check
%files libs %files libs
%doc README.md %doc README.md
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0 %license Documentation/COPYING licenses/BSD-MIT licenses/CC0
%license licenses/libaccel-config-licenses accfg/lib/LICENSE_LGPL_2_1 %license licenses/accel-config-licenses accfg/lib/LICENSE_LGPL_2_1
%{_libdir}/lib%{name}.so.* %{_libdir}/lib%{name}.so.*
%files devel %files devel
@ -99,33 +95,81 @@ make check
%files test %files test
%license Documentation/COPYING LICENSE_GPL_2_0 %license Documentation/COPYING LICENSE_GPL_2_0
#%doc test/README.md %doc test/README.md
%{_libexecdir}/accel-config/test/* %{_libexecdir}/accel-config/test/*
%changelog %changelog
* Fri Sep 06 2024 Jerry Snitselaar <jsnitsel@redhat.com> - 4.1.8-1
- Rebase to 4.1.8 release
Resolves: RHEL-56316
* Wed May 01 2024 Jerry Snitselaar <jsnitsel@redhat.com> - 4.1.6-2
- Fix faulty logic in dsa_user_test_runner device clean up.
- Adds a couple of test clean ups as well.
Resolves: RHEL-32451
* Fri Mar 22 2024 Jerry Snitselaar <jsnitsel@redhat.com> - 4.1.6-1
- Rebase to 4.1.6 release
Resolves: RHEL-29910
* Wed Jan 17 2024 Jerry Snitselaar <jsnitsel@redhat.com> - 4.1.3-2
- Fix SPDX tags
Resolves: RHEL-15610
* Fri Dec 01 2023 Jerry Snitselaar <jsnitsel@redhat.com> - 4.1.3-1
- Rebase to 4.1.3 release
- Update License tags to SPDX identifiers
Resolves: RHEL-15610
* Tue Apr 18 2023 Jerry Snitselaar <jsnitsel@redhat.com> - 3.5.3-2
- Remove spec file variable that blocked debuginfo build
Resolves: rhz#2153899
* Tue Apr 18 2023 Jerry Snitselaar <jsnitsel@redhat.com> - 3.5.3-1 * Tue Apr 18 2023 Jerry Snitselaar <jsnitsel@redhat.com> - 3.5.3-1
- Rebase to 3.5.3 release. - Rebase to the 3.5.3 release.
resolves: rhbz#2153898 Resolves: rhbz#2153899
* Sun Oct 16 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.5.0-1 * Tue Oct 04 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.5.0-1
- Rebase to the 3.5.0 release. - Rebase to 3.5.0 release.
resolves: rhbz#2101608 Resolves: rhbz#2101609
* Thu Oct 06 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.8-1
- Rebase to 3.4.8 release.
resolves: rhbz#2101608
* Sun Apr 03 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.6.3-1 * Sun Apr 03 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.6.3-1
- Rebase to 3.4.6.3 release. - Rebase to 3.4.6.3 release.
resolves: rhbz#2040076 Resolves: rhbz#2040077
* Thu Sep 09 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.2-1 * Fri Feb 11 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.2-2
- Rebase to 3.4.2 and add test subpackage. - Rebuild to clear osci test failure.
resolves: rhbz#1971910 Resolves: rhbz#1999934
* Tue May 18 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.1-1 * Tue Oct 05 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.2-1
- Rebase to 3.1 release. - Rebase to 3.4.2 release and add test subpackage.
resolves: rhbz#1920762 Resolves: rhbz#1999934
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.2-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Jul 02 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.2-2
- Fix product version for gating.
Resolves: rhbz#1921368
* Mon Jun 21 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.2-1
- Rebase to 3.2 release. Related: rhbz#1921368
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.1-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Mon Mar 29 2021 Yunying Sun <yunying.sun@intel.com> - 3.1-1
- Added ix86 support back as 3.1 release fixed it
- Updated to 3.1 release
* Thu Feb 18 2021 Yunying Sun <yunying.sun@intel.com> - 3.0.1-1
- Updated to 3.0.1 release
- Removed ix86 support as so far it supports x86_64 only
- Updated licenses following upstream
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Nov 6 2020 Yunying Sun <yunying.sun@intel.com> - 2.8-1 * Fri Nov 6 2020 Yunying Sun <yunying.sun@intel.com> - 2.8-1
- Initial Packaging - Initial Packaging