Imported from c9s

Resolves: RHEL-43405
This commit is contained in:
Timothy Redaelli 2024-09-11 01:11:26 +02:00
parent 9d41e9db71
commit ff334f5f77
6 changed files with 128 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/pf-bb-config-22.11.tar.gz

View File

@ -0,0 +1,48 @@
From 2b02af16cdd0b704d49fe0cc621a3b5845c2ee2a Mon Sep 17 00:00:00 2001
From: Nicolas Chautru <nicolas.chautru@intel.com>
Date: Mon, 9 Jan 2023 14:24:56 -0800
Subject: [PATCH] Typo in ACC100 config files introduced in previous commit
Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
---
acc100/acc100_config_2vf_4g5g.cfg | 32 ++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/acc100/acc100_config_2vf_4g5g.cfg b/acc100/acc100_config_2vf_4g5g.cfg
index cba6c12..ce68033 100644
--- a/acc100/acc100_config_2vf_4g5g.cfg
+++ b/acc100/acc100_config_2vf_4g5g.cfg
@@ -1 +1,31 @@
-acc100_config_4vf_4g5g.cfg
\ No newline at end of file
+; SPDX-License-Identifier: Apache-2.0
+; Copyright(c) 2020 Intel Corporation
+
+[MODE]
+pf_mode_en = 0
+
+[VFBUNDLES]
+num_vf_bundles = 2
+
+[MAXQSIZE]
+max_queue_size = 1024
+
+[QUL4G]
+num_qgroups = 2
+num_aqs_per_groups = 16
+aq_depth_log2 = 4
+
+[QDL4G]
+num_qgroups = 2
+num_aqs_per_groups = 16
+aq_depth_log2 = 4
+
+[QUL5G]
+num_qgroups = 2
+num_aqs_per_groups = 16
+aq_depth_log2 = 4
+
+[QDL5G]
+num_qgroups = 2
+num_aqs_per_groups = 16
+aq_depth_log2 = 4

8
gating.yaml Normal file
View File

@ -0,0 +1,8 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: manual.sst_networking.pf-bb-config.tier1}

61
pf-bb-config.spec Normal file
View File

@ -0,0 +1,61 @@
Name: pf-bb-config
Version: 22.11
Release: 3%{?dist}
Summary: PF BBDEV (baseband device) Configuration Application
License: Apache-2.0
URL: https://github.com/intel/pf-bb-config
Source0: %{url}/archive/v%{version}/pf-bb-config-%{version}.tar.gz
Patch0: %{url}/commit/2b02af16cdd0b704d49fe0cc621a3b5845c2ee2a.patch
# Currently big endian is not supported due to a bug
ExcludeArch: s390x
BuildRequires: gcc
BuildRequires: make
%description
The PF BBDEV (baseband device) Configuration Application "pf_bb_config"
provides a means to configure the baseband device at the host-level.
The program accesses the configuration space and sets the various parameters
through memory-mapped IO read/writes.
%prep
%autosetup -p1
sed -i "s/#VERSION_STRING#/%{version}/g" config_app.c
%build
%make_build CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="${RPM_LD_FLAGS}"
%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/pf-bb-config/acc100/
install -d -m 755 %{buildroot}%{_datadir}/pf-bb-config/acc200/
install -p -D -m 755 pf_bb_config %{buildroot}%{_bindir}/pf_bb_config
cp -a acc100/*.cfg %{buildroot}%{_datadir}/pf-bb-config/acc100/
cp -a acc200/*.cfg %{buildroot}%{_datadir}/pf-bb-config/acc200/
%files
%license LICENSE
%doc README.md
%{_bindir}/pf_bb_config
%{_datadir}/pf-bb-config/
%changelog
* Fri Mar 03 2023 Maxime Coquelin <maxime.coquelin@redhat.com> - 22.11-3
- Add missing ACC200 (VRB1) data files (#2178689)
* Thu Feb 16 2023 Timothy Redaelli <tredaelli@redhat.com> - 22.11-2
- Rebuilt after adding gating
* Mon Jan 16 2023 Timothy Redaelli <tredaelli@redhat.com> - 22.11-1
- Update to 22.11
* Mon Oct 03 2022 Timothy Redaelli <tredaelli@redhat.com> - 22.07-1
- Initial import (fedora#2101769)

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (pf-bb-config-22.11.tar.gz) = d5d09790eae94bdf3c5354b9f2e9b0548065298d6fed96106620030c2275a9528f20a1094bc15d81ab8266d664c74902dfa67558b6937a9f9068e7f13ec55605

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: .
run: pf_bb_config