dpdk-kmods-dkms fails to build on kinetic with latest 5.19 kernel

Bug #1981990 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libmbim
New
Undecided
Unassigned
dpdk-kmods (Ubuntu)
Fix Released
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

dpdk-kmods-dkms fails to build on kinetic kernel 5.18+ with the following error:

/var/lib/dkms/dpdk-kmods/0~20220111+git/build/igb_uio.c:515:15: error: implicit declaration of function ‘pci_set_dma_mask’; did you mean ‘ipi_send_mask’? [-Werror=implicit-function-declaration]
  515 | err = pci_set_dma_mask(dev, DMA_BIT_MASK(64));
      | ^~~~~~~~~~~~~~~~
      | ipi_send_mask
/var/lib/dkms/dpdk-kmods/0~20220111+git/build/igb_uio.c:521:15: error: implicit declaration of function ‘pci_set_consistent_dma_mask’ [-Werror=implicit-function-declaration]
  521 | err = pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64));
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

[Test case]

$ sudo apt install dpdk-kmods-dkms

[Fix]

Provide pci_set_dma_mask / pci_set_consistent_dma_mask ABI also in kernels >= 5.18.

[Regression potential]

We may see regressions of this driver (dkdp-kmods-dkms) in kernels >= 5.18.

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote :

Fix (debdiff) in attach provides the right interfaces to build this module in kernels >= 5.18.

tags: added: patch
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Very confused why this module is not upstreamed, or maintained.

Have you forwarded this patch to dpdk at http://git.dpdk.org/dpdk-kmods ?

Changed in dpdk-kmods (Ubuntu Kinetic):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dpdk-kmods - 0~20220111+git-1ubuntu1

---------------
dpdk-kmods (0~20220111+git-1ubuntu1) kinetic; urgency=medium

  * Support linux kernels >= 5.18 (LP: #1981990):
    - debian/patches/0001-support-linux-5.18.patch

 -- Andrea Righi <email address hidden> Mon, 18 Jul 2022 12:36:31 +0000

Changed in dpdk-kmods (Ubuntu Kinetic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.