Skip to content

Commit 9894116

Browse files
KostiantynYarovyiBfsaiarcot895
authored andcommitted
Update Barefoot platform module for Bullseye and 5.10 kernel (zhenggen-xu#8)
Update Barefoot platform support for Bullseye and 5.10 kernel, and add python3-venv.
1 parent 857937d commit 9894116

12 files changed

Lines changed: 421 additions & 289 deletions

File tree

platform/barefoot/bfn-modules/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Standards-Version: 3.9.3
77

88
Package: bfn-modules
99
Architecture: amd64
10-
Depends: linux-image-4.19.0-12-2-amd64-unsigned
10+
Depends: linux-image-5.10.0-8-2-amd64-unsigned
1111
Description: kernel modules for bfn asic for mmap
1212

platform/barefoot/bfn-modules/modules/bf_kdrv.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,8 +1316,11 @@ static pci_ers_result_t bf_pci_mmio_enabled(struct pci_dev *dev) {
13161316
struct bf_pci_dev *bfdev = pci_get_drvdata(dev);
13171317

13181318
printk(KERN_ERR "BF pci_mmio_enabled invoked after pci error\n");
1319-
pci_cleanup_aer_uncorrect_error_status(dev);
1320-
1319+
#if KERNEL_VERSION(5, 8, 0) <= LINUX_VERSION_CODE
1320+
pci_aer_clear_nonfatal_status(dev);
1321+
#else
1322+
pci_cleanup_aer_uncorrect_error_status(dev);
1323+
#endif
13211324
if (bfdev) {
13221325
/* send a signal to the user space program of the error */
13231326
int minor = bfdev->info.minor;

0 commit comments

Comments
 (0)