Public bug reported:
On Qualcomm Snapdragon X Elite / X Plus (`x1e80100` / `x1p42100`)
devices running Ubuntu, `qcom-firmware-extract` currently extracts the
OEM-signed DSP firmware images (`qccdsp8380.mbn`, `qcadsp8380.mbn`,
`*_dtbs.elf`, `*.jsn`) into
`/usr/lib/firmware/updates/qcom/<device_path>/`, **but omits the build-
matched OEM Hexagon DSP userspace shells** (`fastrpc_shell_3`,
`fastrpc_shell_unsigned_3`, `fastrpc_shell_0`, `libc++.so.1`,
`libc++abi.so.1`, etc.) from the Windows `DriverStore`.
Qualcomm CDSP firmware enforces strict build-version matching between
`qccdsp8380.mbn` and `fastrpc_shell_unsigned_3`. On devices whose OEM
firmware differs from the EVK shells shipped in `hexagon-dsp-binaries`
(e.g., **Lenovo IdeaCentre Mini 01Q8X10 Purwa (`x1p42100`, board
`91B6`)** ships `CDSP.HT.2.9.c1-00046-HAMOA-1` while `hexagon-dsp-
binaries` ships `CDSP.HT.2.9.c1-00082-HAMOA-1`), FastRPC unsigned User
PD creation fails with:
Error 0x8000054d (QuRT error nQErr_root -64 nQErr_user 0): mapping_create
failed for addr: 0x2ff800000, size:2846720
Failed to map 2846720 Bytes, object too big, fastrpc_shell_unsigned_3
Error 0x8000054f (QuRT error: 0xfffffff4): fastrpc_spawn failed for ..., attrs
0x8
This prevents QAIRT (`qnn-platform-validator --backend dsp`) and
`llama.cpp` Hexagon NPU (`HTP0`) inference from working out of the box.
### Fix (Attached Patch)
The attached patch extends `qcom-firmware-extract` to:
1. Locate `fastrpc_shell_unsigned_3` (CDSP) and `fastrpc_shell_0` (ADSP) inside
the Windows `DriverStore/FileRepository` (works generically across all OEM
`.inf` package names).
2. Copy the matching runtime shells/libraries into
`/usr/share/hexagon-dsp/${device_path}/dsp/{cdsp,adsp}/` inside the generated
`.deb`.
3. Generate `/usr/share/hexagon-dsp/conf.d/${device_canonical}.yaml` mapping
`/proc/device-tree/model` to `${device_path}/dsp`, which `libcdsprpc` /
`cdsprpcd` picks up automatically.
Tested on **Lenovo IdeaCentre Mini 01Q8X10 (`Purwa` / `x1p42100` / `91B6`)**
running Ubuntu 26.10 (`linux-image-7.3.0-38-qcom-x1e`, untouched stock
`fastrpc.ko`):
- `qnn-platform-validator --backend dsp --testBackend --coreVersion` →
**Passed** (`Hexagon Architecture V73`)
- `llama-bench -dev HTP0` (Hexagon v73 NPU) → **4,665 t/s prompt processing**
(`qwen2.5-0.5b-q4_0`), **158–185 t/s** (`Ternary-Bonsai-2.5-27B-Q2_0`, 100% NPU
offload)
** Affects: qcom-firmware-extract (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "0001-extract-oem-hexagon-dsp-shells-and-board-yaml.patch"
https://bugs.launchpad.net/bugs/2178544/+attachment/6022521/+files/0001-extract-oem-hexagon-dsp-shells-and-board-yaml.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178544
Title:
com-firmware-extract: extract build-matched OEM Hexagon CDSP/ADSP
runtime shells and generate hexagon-dsp conf.d YAML
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qcom-firmware-extract/+bug/2178544/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs