xtrx-dkms FTBS in Noble with the linux-6.17 kernel

Bug #2136791 reported by John Cabaj
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xtrx-dkms (Ubuntu)
Status tracked in Resolute
Noble
Fix Committed
Undecided
Unassigned
Questing
Invalid
Undecided
Unassigned
Resolute
Invalid
Undecided
Unassigned

Bug Description

[ Impact ]

DKMS make.log for xtrx-0.0.1+git20190320.5ae3a3e-3.2ubuntu2 for kernel 6.17.0-7-generic (x86_64)
Wed Dec 17 22:44:19 UTC 2025
make: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
make[1]: Entering directory '/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  CC [M] xtrx.o
xtrx.c: In function ‘xtrx_uart_do_tx’:
xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
  472 | xmit = &port->state->xmit;
      | ^~
xtrx.c:473:13: error: implicit declaration of function ‘uart_circ_empty’; did you mean ‘uart_lsr_tx_empty’? [-Werror=implicit-function-declaration]
  473 | if (uart_circ_empty(xmit))
      | ^~~~~~~~~~~~~~~
      | uart_lsr_tx_empty
xtrx.c:480:25: error: invalid use of undefined type ‘struct circ_buf’
  480 | c = xmit->buf[xmit->tail] & 0xff;
      | ^~
xtrx.c:480:35: error: invalid use of undefined type ‘struct circ_buf’
  480 | c = xmit->buf[xmit->tail] & 0xff;
      | ^~
xtrx.c:484:21: error: invalid use of undefined type ‘struct circ_buf’
  484 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
      | ^~
xtrx.c:484:35: error: invalid use of undefined type ‘struct circ_buf’
  484 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
      | ^~
xtrx.c:490:13: error: implicit declaration of function ‘uart_circ_chars_pending’ [-Werror=implicit-function-declaration]
  490 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
      | ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: xtrx.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'

[ Test case ]

Install the latest linux-6.17 kernel on Noble:

$ sudo add-apt-repository ppa:canonical-kernel-team/ppa3
$ sudo apt install linux-generic-hwe-24.04-edge

Install xtrx-dkms:

$ sudo apt install xtrx-dkms

Load the module:

$ sudo modprobe xtrx

The same procedure must be repeated on linux-6.8 and linux-6.14 to test for possible regressions.

[ Fix ]

Patch from xtrx-dkms upstream (https://github.com/myriadrf/xtrx_linux_pcie_drv/commit/dfae8d33501d46861cd25e13957775b5f626b2a6)

-debian/patches/0005-fix-build-error-with-kernel-6.10.patch

[ Regression potential ]

We may experience regressions in systems that are using the xtrx drivers, especially with kernels >= 6.8 kernel.

Revision history for this message
John Cabaj (john-cabaj) wrote :

0.0.1+git20190320.5ae3a3e-3.2ubuntu2 -> 0.0.1+git20190320.5ae3a3e-3.2ubuntu2.1 debdiff

Revision history for this message
John Cabaj (john-cabaj) wrote :
Revision history for this message
Daniel Letzeisen (dtl131) wrote :

That's nice, because no one ever updated this package for 6.14 HWE either - bug 2098021

Revision history for this message
Massimiliano Pellizzer (mpellizzer) wrote :

Uploaded, thanks

Changed in xtrx-dkms (Ubuntu Questing):
status: New → Invalid
Changed in xtrx-dkms (Ubuntu Resolute):
status: New → Invalid
description: updated
Changed in xtrx-dkms (Ubuntu Noble):
status: New → In Progress
Revision history for this message
Nick Rosbrook (enr0n) wrote : Please test proposed package

Hello John, or anyone else affected,

Accepted xtrx-dkms into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xtrx-dkms/0.0.1+git20190320.5ae3a3e-3.2ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in xtrx-dkms (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
John Cabaj (john-cabaj) wrote :

Modules built and installed successfully. Modules loaded successfully.

Noble 6.8 kernel:

root@noble-lts-vm:~# uname -r
6.8.0-90-generic
root@noble-lts-vm:~# modprobe xtrx
root@noble-lts-vm:~#

Noble 6.14 kernel:

root@noble-614-vm:~# uname -r
6.14.0-37-generic
root@noble-614-vm:~# modprobe xtrx
root@noble-614-vm:~#

Noble 6.17 kernel:

root@noble-hwe-vm:~# uname -r
6.17.0-7-generic
root@noble-hwe-vm:~# modprobe xtrx
root@noble-hwe-vm:~#

tags: added: verification-done-noble
removed: verification-needed-noble
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.