Bug 217235 - ath11k: AHB: switch to mbn firmware files
Summary: ath11k: AHB: switch to mbn firmware files
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P5 enhancement
Assignee: drivers_network-wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-23 09:34 UTC by Dmitry Baryshkov
Modified: 2023-03-25 11:43 UTC (History)
2 users (show)

See Also:
Kernel Version: n/a
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Dmitry Baryshkov 2023-03-23 09:34:15 UTC
For the past several years, the Qualcomm community has been shifting
from the pack of .mdt+.bNN files to a single .mbn file as a main
firmware file format. It reduces the back-and-forth between the kernel
and userspace and also simplifies handling of these files.

In-kernel mdt loader provides backwards compatibility, detecting the
file type and using .mbn instead of .mdt one, retaining the name (or
using symlink).

Please consider switching ath11k firmware files from .mdt+.bNN files to .mbn file formwat.
For the reference, the pil-squasher utility ([1]) can assist in this switch.

[1] https://github.com/andersson/pil-squasher
Comment 1 Kalle Valo 2023-03-23 10:19:37 UTC
What about backwards compatibility? How will older kernels support single .mbn firmware file feature?
Comment 2 Dmitry Baryshkov 2023-03-25 11:42:55 UTC
Assuming that the ath driver uses standard mdt loader (I didn't check the sources, but I think I can safely assume it does), the kernel doesn't check file extension. Instead it peeks into the file contents and determines it is an mbn file or an mdt from mdt+bNN combo. 

Thus we can simply use wpss.mbn file and add a wpss.mdt -> wpss.mbn symlink next to it. Venus team performed such conversion few months ago keeping full backwards compatibility with older kernels.

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