Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Update Barefoot platform module for Bullseye and 5.10 kernel (#8)
Browse files Browse the repository at this point in the history
Update Barefoot platform support for Bullseye and 5.10 kernel, and add
python3-venv.
  • Loading branch information
KostiantynYarovyiBf authored and saiarcot895 committed Nov 10, 2021
1 parent 857937d commit 9894116
Show file tree
Hide file tree
Showing 12 changed files with 421 additions and 289 deletions.
2 changes: 1 addition & 1 deletion platform/barefoot/bfn-modules/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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

7 changes: 5 additions & 2 deletions platform/barefoot/bfn-modules/modules/bf_kdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
pci_cleanup_aer_uncorrect_error_status(dev);

#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;
Expand Down
Loading

0 comments on commit 9894116

Please sign in to comment.