Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732852 - sys-kernel/gentoo-sources: always print loaded firmware name patch
Summary: sys-kernel/gentoo-sources: always print loaded firmware name patch
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-07-16 07:20 UTC by Georgy Yakovlev
Modified: 2021-03-29 13:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-always-print-firmware-file-name.patch (0001-always-print-firmware-file-name.patch,850 bytes, patch)
2020-07-16 07:20 UTC, Georgy Yakovlev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev gentoo-dev 2020-07-16 07:20:49 UTC
Created attachment 649432 [details, diff]
0001-always-print-firmware-file-name.patch

Very simple patch I've been running for more than a year. Does not require a rebase, and helps a lot with figuring out which exactly FW file is needed.

By default linux does not print the filename. With this patch it does.


here's an example dmesg
...

[    2.739040] Loading firmware: amdgpu/polaris10_mc.bin
[    2.740303] Loading firmware: amdgpu/polaris10_pfp_2.bin
[    2.740306] Loading firmware: amdgpu/polaris10_me_2.bin
[    2.740308] Loading firmware: amdgpu/polaris10_ce_2.bin
[    2.740311] Loading firmware: amdgpu/polaris10_rlc.bin
[    2.740321] Loading firmware: amdgpu/polaris10_mec_2.bin
[    2.740323] Loading firmware: amdgpu/polaris10_mec2_2.bin
[    2.742261] Loading firmware: amdgpu/polaris10_sdma.bin
[    2.742264] Loading firmware: amdgpu/polaris10_sdma1.bin
[    2.742400] Loading firmware: amdgpu/polaris10_uvd.bin
[    2.745343] Loading firmware: amdgpu/polaris10_vce.bin
[   15.720945] Loading firmware: cxgb4/t5fw.bin
[   16.421347] Loading firmware: cxgb4/t5-config.txt


very easy to see what kernel tries to load.
Comment 1 Thomas Deutschmann gentoo-dev Security 2020-08-11 16:25:51 UTC
See also: https://lkml.org/lkml/2019/11/17/215
Comment 2 Martin 2021-02-09 17:27:47 UTC
Thanks for an excellent patch!

Can that be added as a useflag option for the Gentoo kernel?


Aside: Whatever became of the lkml patch?
Comment 3 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2021-03-29 08:06:08 UTC
ping ? any news ?
Comment 4 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2021-03-29 08:07:29 UTC
Linking to Greg kh question "why don't just use ftrace ?"