Bug 217734
Summary: | Bad firmware loading reporting situation | ||
---|---|---|---|
Product: | Other | Reporter: | Artem S. Tashkinov (aros) |
Component: | Modules | Assignee: | other_modules |
Status: | NEW --- | ||
Severity: | high | CC: | gyakovlev, mpagano, robbat2, sam, torvalds |
Priority: | P3 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
Artem S. Tashkinov
2023-07-30 13:27:05 UTC
Linus, Is it possible to merge this Gentoo patch (without #ifdef, i.e. unconditionally) to alleviate this situation at least partially, now that no one is seemingly interested in getting it improved? https://gitweb.gentoo.org/proj/linux-patches.git/tree/3000_Support-printing-firmware-info.patch?h=6.5 I don't think a printk() call is dangerous or could affect anything. Some other references: * I dug out the original Gentoo bug: https://bugs.gentoo.org/732852 * LKML discussion for an older version of the patch: https://lkml.org/lkml/2019/11/17/215 * https://lore.kernel.org/all/16a44663-808c-2eb4-ea6e-66f51a66f7cf@gmx.com/ by OP As the Author of the 2019 version, I approve of this request. The dyndbg="func _request_firmware +p" variant enabled by my patch ensures only users who want the extra messages get it. I still feel that a persistent sysfs audit record of what was loaded or attempted to load is worthwhile for systems where it matters, but it must be opt-in, because it's noisy. OP: I see that FW_LOADER_DEBUG was added in v6.4 kernels, can you check if it fits all of your needs? (In reply to Robin H. Johnson from comment #4) > OP: I see that FW_LOADER_DEBUG was added in v6.4 kernels, can you check if > it fits all of your needs? From the sound of it, it requires enabling some sort of debugging in the kernel. That doesn't seem right. Firmware loading is not something which only developers/kernel debuggers should see. On my desktop with 6.4.10 I only get this: Bluetooth: hci0: Found device firmware: intel/ibt-18-16-1.sfi Bluetooth: hci0: Firmware Version: 108-45.22 Bluetooth: hci0: Firmware already loaded This is coming from the driver itself, not from the kernel i.e. whatever there is doesn't print the necessary information. |