Update Barefoot platform module for Bullseye and 5.10 kernel (#8)

Update Barefoot platform support for Bullseye and 5.10 kernel, and add
python3-venv.
This commit is contained in:
KostiantynYarovyiBf 2021-10-28 20:19:53 -07:00 committed by Saikrishna Arcot
parent 857937d592
commit 9894116205
12 changed files with 422 additions and 290 deletions

View File

@ -7,6 +7,6 @@ Standards-Version: 3.9.3
Package: bfn-modules
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel modules for bfn asic for mmap

View File

@ -1316,8 +1316,11 @@ static pci_ers_result_t bf_pci_mmio_enabled(struct pci_dev *dev) {
struct bf_pci_dev *bfdev = pci_get_drvdata(dev);
printk(KERN_ERR "BF pci_mmio_enabled invoked after pci error\n");
#if KERNEL_VERSION(5, 8, 0) <= LINUX_VERSION_CODE
pci_aer_clear_nonfatal_status(dev);
#else
pci_cleanup_aer_uncorrect_error_status(dev);
#endif
if (bfdev) {
/* send a signal to the user space program of the error */
int minor = bfdev->info.minor;

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,6 @@ Standards-Version: 3.9.3
Package: sonic-platform-modules-bfn-montara
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel modules for platform devices such as fan, led, sfp

View File

@ -7,11 +7,11 @@ Standards-Version: 3.9.3
Package: sonic-platform-modules-bfn-newport-as9516
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel module for bfn platform fpga and scripts for the devices such as fan, led, sfp
Package: sonic-platform-modules-bfn-newport-as9516bf
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel module for bfn platform fpga and scripts for the devices such as fan, led, sfp

View File

@ -25,7 +25,7 @@
*******************************************************************************/
#include <linux/types.h>
#include "bf_fpga_i2c_priv_porting.h"
#include <bf_fpga_ioctl.h>
#include "../bf_fpga_ioctl.h"
#include "bf_fpga_i2c_priv.h"
#include "bf_fpga_i2c.h"
#include "bf_fpga_i2c_reg.h"

View File

@ -25,7 +25,7 @@
*******************************************************************************/
#include <linux/types.h>
#include "bf_fpga_i2c_priv_porting.h"
#include <bf_fpga_ioctl.h>
#include "../bf_fpga_ioctl.h"
#include "bf_fpga_i2c.h"
#include "bf_fpga_i2c_priv.h"
#include "bf_fpga_i2c_reg.h"

View File

@ -29,7 +29,7 @@
#include <linux/mutex.h>
#include <linux/bitops.h>
#include "bf_fpga_i2c_priv_porting.h"
#include <bf_fpga_ioctl.h>
#include "../bf_fpga_ioctl.h"
#include "bf_fpga_i2c.h"
#include "bf_fpga_i2c_priv.h"

View File

@ -7,6 +7,6 @@ Standards-Version: 3.9.3
Package: sonic-platform-modules-bfn
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel modules for platform devices such as fan, led, sfp

View File

@ -2,7 +2,7 @@ Source: platform-driver
Section: unknown
Priority: optional
Maintainer: Wade He <wade.ce.he@ingrasys.com>
Build-Depends: debhelper (>= 9), dh-systemd
Build-Depends: debhelper (>= 9)
Standards-Version: 1.0.0
Package: sonic-platform-ingrasys-s9180-32x

View File

@ -7,6 +7,6 @@ Standards-Version: 3.9.3
Package: platform-modules-wnc-osw1800
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel modules for platform devices such as fan, led, sfp

View File

@ -197,7 +197,7 @@ RUN apt-get update && apt-get install -y \
clang \
pylint \
python3-pytest \
python3-pytest \
python3-venv \
gcovr \
python3-pytest-cov \
python3-pytest-cov \