Bug 2455055 - aarch64: dracut does not auto-include Qualcomm firmware in initramfs on Snapdragon X Elite
Summary: aarch64: dracut does not auto-include Qualcomm firmware in initramfs on Snapd...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 45
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Valena
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-04 09:22 UTC by Aksenov Pavel
Modified: 2026-08-27 11:47 UTC (History)
8 users (show)

Fixed In Version: dracut-111-1.fc45
Clone Of:
Environment:
Last Closed: 2026-08-27 11:47:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Aksenov Pavel 2026-04-04 09:22:00 UTC
---

## Summary

On Snapdragon X Elite (Qualcomm X1E80100) laptops, dracut's hostonly mode
does not automatically include any Qualcomm firmware in the initramfs.
This requires every user to manually create an /etc/dracut.conf.d/ config
file listing each firmware file individually.

Without this manual config, the system boots to a black screen (no GPU for
Plymouth), ADSP/CDSP remoteprocs fail to start, and audio is unavailable
until root is mounted.

## Root cause

Qualcomm kernel drivers (msm/adreno GPU, qcom_q6v5_pas remoteproc, etc.)
load firmware via request_firmware() with dynamically constructed paths but
do NOT declare MODULE_FIRMWARE() macros. This means:

  $ modinfo -F firmware msm
  (empty)

  $ modinfo -F firmware qcom_q6v5_pas
  (empty)

dracut-install uses `modinfo -F firmware` to auto-detect firmware
dependencies. Since no firmware is declared, none is included.

Verified with:

  $ /usr/lib/dracut/dracut-install -D /tmp/test -m msm -v
  # /tmp/test/lib/firmware/ is completely empty

  $ /usr/lib/dracut/dracut-install -D /tmp/test -m qcom_q6v5_pas -v
  # /tmp/test/lib/firmware/ is completely empty

## Firmware files needed in initramfs

For a Lenovo ThinkPad T14s Gen 6 (X1E78100 variant of X1E80100), these
firmware files are required before root mount:

GPU (needed for Plymouth/framebuffer):
  /lib/firmware/qcom/gen70500_sqe.fw.xz
  /lib/firmware/qcom/gen70500_gmu.bin.xz
  /lib/firmware/qcom/gen70500_zap.mbn.xz

ADSP/CDSP (needed for audio, compute):
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/qcadsp8380.mbn.xz
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/qccdsp8380.mbn.xz
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/adsp_dtbs.elf.xz
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/cdsp_dtbs.elf.xz
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/qcvss8380.mbn.xz
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/qcdxkmsuc8380.mbn.xz

JSON sidecar files (loaded alongside firmware):
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/adspr.jsn
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/adsps.jsn
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/adspua.jsn
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/cdspr.jsn
  /lib/firmware/qcom/x1e80100/LENOVO/21N1/battmgr.jsn

Audio topology:
  /lib/firmware/X1E80100-LENOVO-Thinkpad-T14s-tplg.bin.xz

The paths vary by SoC and board — the pattern is:
  qcom/<soc>/<vendor>/<board>/<firmware>

## Current workaround

Users must manually create /etc/dracut.conf.d/50-qcom-firmware.conf with
install_items+= entries for every firmware file. This is undocumented and
fragile — firmware file names can change between linux-firmware releases.

## Comparison with AMD GPU

dracut already has special handling for AMD GPU firmware in dracut-init.sh
(amdgpu firmware stripping). A similar mechanism for Qualcomm SoC firmware
on aarch64 would solve this problem.

## Proposed solution

One of:

1. A dracut module (e.g., 05qcom-firmware) that detects Qualcomm SoC
   platforms (via /proc/device-tree/compatible or module presence) and
   includes the relevant /lib/firmware/qcom/ subtree

2. A Fedora-specific dracut config drop-in shipped by kernel-core or
   linux-firmware that includes known Qualcomm firmware paths

3. Integration into the existing firmware auto-detection logic to handle
   the dynamic path pattern used by Qualcomm drivers

## Affected hardware

All Qualcomm Snapdragon X Elite/Plus laptops running Fedora:
- Lenovo ThinkPad T14s Gen 6
- Lenovo Yoga Slim 7x
- Dell XPS 13 9345
- Dell Latitude 7455
- HP OmniBook X 14
- HP EliteBook Ultra G1q
- ASUS Vivobook S15
- ASUS Zenbook A14
- Microsoft Surface Laptop 7
- Samsung Galaxy Book4 Edge

## System information

Kernel: 7.0.0-0.rc6.260401g9147566d8016.51.fc45.aarch64
OS: Fedora 45 Rawhide
Device: Lenovo ThinkPad T14s Gen 6 (21N1000ART)
SoC: Qualcomm Snapdragon X Elite (x1e78100)
dracut: 106-3.fc45

Comment 1 Laszlo 2026-04-09 23:06:05 UTC
upstream: https://github.com/dracut-ng/dracut-ng/pull/2266

Comment 2 Aoife Moloney 2026-08-17 14:28:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 3 Hans de Goede 2026-08-27 11:47:49 UTC
The upstream fix for this from: https://github.com/dracut-ng/dracut/pull/2266 has landed in dracut-111 and Fedora 45 and rawhide have dracut-111 now, so this can be closed now.


Note You need to log in before you can comment on or make changes to this bug.