[SRU] ucsi drivers missing in initramfs

Bug #2027636 reported by Loïc Minier
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Medium
Loïc Minier
Jammy
Fix Released
Medium
Loïc Minier
Lunar
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

Some systems rely on a USB type-C UCSI connection; without the corresponding driver in the initramfs, USB storage might not be accessible. This is notably affecting NVIDIA Tegra systems such as Jetson AGX or the IGX and prevents completing USB boot for installation purposes.

The initramfs-tools package has a list of relevant USB drivers to include for the default MODULES=most configuration, but didn't list the recently introduced ucsi one.

[ Test Plan ]

The -generic kernel and probably all kernel flavors contain the ucsi driver. On jammy system, you can verify the current initrd doesn't contain typec_ucsi.ko by decompressing the initramfs and listing its files:
$ lsinitramfs /boot/initrd.img-5.19.0-46-generic | grep typec_ucsi.ko

After installing the updated initramfs-tools package, your current initramfs should be automatically rebuilt and pick up typec_ucsi.ko:
$ lsinitramfs /boot/initrd.img-5.19.0-46-generic | grep typec_ucsi.ko
usr/lib/modules/5.19.0-46-generic/kernel/drivers/usb/typec/ucsi/typec_ucsi.ko

[ Where problems could occur ]

This is making the initramfs slightly bigger. In my testing, typec_ucsi.ko was 99913B and /boot/initrd.img-5.19.0-46-generic grew by 93403B from 122298948B to 122392351B, so by less than 0.08%.

Revision history for this message
Loïc Minier (lool) wrote :

I uploaded the fix to mantic early June:

initramfs-tools (0.142ubuntu4) mantic; urgency=medium

  * Include kernel/drivers/usb/typec/ucsi with MODULES=most along with other
    USB-C storage drivers.

 -- Loïc Minier <email address hidden> Thu, 08 Jun 2023 17:49:02 +0000

Changed in initramfs-tools (Ubuntu):
assignee: nobody → Loïc Minier (lool)
Changed in initramfs-tools (Ubuntu Jammy):
assignee: nobody → Loïc Minier (lool)
Changed in initramfs-tools (Ubuntu):
importance: Undecided → Medium
Changed in initramfs-tools (Ubuntu Jammy):
importance: Undecided → Medium
Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

Loïc, are you aware of bug #2027575 that should be included in this SRU?

Benjamin Drung (bdrung)
description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :

I'll go ahead and prepare a combined debdiff for both issues.

Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Loïc Minier (lool) wrote :

Hi Benjamin, I wasn't aware of LP #2027575, thanks for looking at combining the two in a single update and preparing a debdiff for both issues!

Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Loïc, or anyone else affected,

Accepted initramfs-tools into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.142ubuntu2.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-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. 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 initramfs-tools (Ubuntu Lunar):
status: New → Fix Committed
tags: added: verification-needed verification-needed-lunar
Changed in initramfs-tools (Ubuntu Jammy):
status: New → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Steve Langasek (vorlon) wrote :

Hello Loïc, or anyone else affected,

Accepted initramfs-tools into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.140ubuntu13.3 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-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. 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.

Revision history for this message
Loïc Minier (lool) wrote :

On a jammy/arm64 host with linux-generic-hwe-22.04, before updating:
lool@fusion:~$ lsinitramfs /boot/initrd.img-5.19.0-46-generic | grep typec_ucsi.ko

After updating to the -proposed version:
$ lsinitramfs /boot/initrd.img-5.19.0-46-generic | grep typec_ucsi.ko
usr/lib/modules/5.19.0-46-generic/kernel/drivers/usb/typec/ucsi/typec_ucsi.ko

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Loïc Minier (lool) wrote :

In a fresh lunar container with linux-image-generic:
root@lunar:~# lsinitramfs /boot/initrd.img-6.2.0-25-generic | grep typec_ucsi.ko
root@lunar:~#

With 0.142ubuntu2.1:
root@lunar:~# lsinitramfs /boot/initrd.img-6.2.0-25-generic | grep typec_ucsi.kousr/lib/modules/6.2.0-25-generic/kernel/drivers/usb/typec/ucsi/typec_ucsi.ko
root@lunar:~#

tags: added: verification-done verification-done-lunar
removed: verification-needed verification-needed-lunar
Revision history for this message
Loïc Minier (lool) wrote :

While ucsi/typec_ucsi is enough for Jetson AGX Orin, stusb160x is also needed on IGX; it might be simpler to simply include all usb/typec drivers.

Revision history for this message
Loïc Minier (lool) wrote :

After discussing with Benjamin, will do another upload for IGX and the missing stusb160x module

tags: added: verification-needed verification-needed-jammy verification-needed-lunar
removed: verification-done verification-done-jammy verification-done-lunar
Benjamin Drung (bdrung)
Changed in initramfs-tools (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Loïc, or anyone else affected,

Accepted initramfs-tools into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.142ubuntu2.2 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-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. 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.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Loïc, or anyone else affected,

Accepted initramfs-tools into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.140ubuntu13.4 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-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. 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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.142ubuntu8

---------------
initramfs-tools (0.142ubuntu8) mantic; urgency=medium

  [ Benjamin Drung ]
  * mkinitramfs:
    - Do not store intermediate main cpio archive
    - Put compressed kernel modules and firmware files in an uncompressed cpio
      (LP: #2028567)
  * Add support for zstd-compressed firmware
  * test: Ignore remaining systemd-udevd processes on arm64 as well
  * Update lintian overrides to format for lintian 2.116.3

  [ Loïc Minier ]
  * hook-functions: add stusb160x kernel module for Tegra IGX (LP: #2027636)

 -- Benjamin Drung <email address hidden> Wed, 26 Jul 2023 14:05:19 +0200

Changed in initramfs-tools (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Loïc Minier (lool) wrote :

With initramfs-tools 0.140ubuntu13.4 from jammy-proposed (running hwe kernel):
$ lsinitramfs /boot/initrd.img-5.19.0-50-generic | grep -e stusb160x -e typec_ucsi
usr/lib/modules/5.19.0-50-generic/kernel/drivers/usb/typec/stusb160x.ko
usr/lib/modules/5.19.0-50-generic/kernel/drivers/usb/typec/ucsi/typec_ucsi.ko

With 0.142ubuntu2.2 from lunar-proposed:
$ lsinitramfs /boot/initrd.img-6.2.0-26-generic | grep -e stusb160x -e typec_ucsi
usr/lib/modules/6.2.0-26-generic/kernel/drivers/usb/typec/stusb160x.ko
usr/lib/modules/6.2.0-26-generic/kernel/drivers/usb/typec/ucsi/typec_ucsi.ko

tags: added: verification-done verification-done-jammy verification-done-lunar
removed: verification-needed verification-needed-jammy verification-needed-lunar
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for initramfs-tools has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.142ubuntu2.2

---------------
initramfs-tools (0.142ubuntu2.2) lunar; urgency=medium

  * hook-functions: add stusb160x kernel module for Tegra IGX (LP: #2027636)

initramfs-tools (0.142ubuntu2.1) lunar; urgency=medium

  [ Loïc Minier ]
  * Include kernel/drivers/usb/typec/ucsi with MODULES=most along with other
    USB storage drivers; LP: #2027636.

  [ Benjamin Drung ]
  * Port the net autopkgtest to the common test framework. This drops
    depending on downloading a cloud image from the Internet and reduces
    the execution time from 3:19 min down to 0:57 min. (LP: #2027575)

 -- Loïc Minier <email address hidden> Tue, 25 Jul 2023 11:44:57 +0200

Changed in initramfs-tools (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.140ubuntu13.4

---------------
initramfs-tools (0.140ubuntu13.4) jammy; urgency=medium

  * hook-functions: add stusb160x kernel module for Tegra IGX (LP: #2027636)

initramfs-tools (0.140ubuntu13.3) jammy; urgency=medium

  [ Loïc Minier ]
  * Include kernel/drivers/usb/typec/ucsi with MODULES=most along with other
    USB storage drivers; LP: #2027636.

  [ Benjamin Drung ]
  * Port the net autopkgtest to the common test framework. This drops
    depending on downloading a cloud image from the Internet and reduces
    the execution time from 3:19 min down to 0:57 min. (LP: #2027575)

 -- Loïc Minier <email address hidden> Tue, 25 Jul 2023 11:54:44 +0200

Changed in initramfs-tools (Ubuntu Jammy):
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.