1 |
On Monday, 15 July 2019 22:18:12 BST Ian Zimmerman wrote: |
2 |
> UH-OH, Self-followup: |
3 |
> |
4 |
> On 2019-07-14 21:30, Ian Zimmerman wrote: |
5 |
> > I find it odd that there is apparently no central way to track which |
6 |
> > firmwares are being loaded without a debugging kernel. |
7 |
> > |
8 |
> > The relevant messages in linux/drivers/base/firmware_loader/main.c are |
9 |
> > all dev_dbg(), which as I understand does nothing on a non-debug kernel. |
10 |
> > Even the message printed when the firmware file is missing is of that |
11 |
> > type. |
12 |
> > |
13 |
> > I guess I could turn on the userspace helper, set it to some script that |
14 |
> > just logs every request and fails, and then remove the whole |
15 |
> > /lib/firmware tree, but that is a _really_ round-about way. |
16 |
> |
17 |
> Solved with a kernel patch: |
18 |
> |
19 |
> --- a/drivers/base/firmware_loader/main.c 2019-07-13 23:01:15.000000000 |
20 |
> -0700 +++ b/drivers/base/firmware_loader/main.c 2019-07-14 |
21 |
> 23:33:22.348028910 -0700 @@ -336,7 +336,7 @@ |
22 |
> path); |
23 |
> continue; |
24 |
> } |
25 |
> - dev_dbg(device, "direct-loading %s\n", fw_priv- |
26 |
>fw_name); |
27 |
> + pr_notice("direct-loading firmware %s\n", fw_priv- |
28 |
>fw_name); |
29 |
> fw_priv->size = size; |
30 |
> fw_state_done(fw_priv); |
31 |
> break; |
32 |
|
33 |
|
34 |
Thanks Ian, nothing different with the patch implemented. I am becoming |
35 |
convinced there is no applicable microcode patch for my fam + model of AMD |
36 |
CPUs. |
37 |
|
38 |
$ dmesg | egrep -i "firmware|microcode" |
39 |
[ 0.000000] [Firmware Info]: CPU: Re-enabling disabled Topology Extensions |
40 |
Support. |
41 |
[ 0.343586] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored |
42 |
[ 0.351361] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus |
43 |
00-3f] only partially covers this bridge |
44 |
[ 0.627638] [drm] Loading ARUBA Microcode |
45 |
[ 0.629254] [drm] Found VCE firmware/feedback version 50.0.1 / 17! |
46 |
[ 5.753421] [drm] Loading hainan Microcode |
47 |
[ 6.643785] microcode: CPU0: patch_level=0x06001119 |
48 |
[ 6.647663] microcode: CPU1: patch_level=0x06001119 |
49 |
[ 6.649170] microcode: CPU2: patch_level=0x06001119 |
50 |
[ 6.650136] microcode: CPU3: patch_level=0x06001119 |
51 |
[ 6.651110] microcode: Microcode Update Driver: v2.2. |
52 |
[ 8.125143] psmouse serio1: elantech: assuming hardware version 3 (with |
53 |
firmware version 0x450f03) |
54 |
[ 9.938954] psmouse serio1: elantech: assuming hardware version 3 (with |
55 |
firmware version 0x450f03) |
56 |
[ 30.738249] firmware_class: direct-loading firmware regulatory.db |
57 |
[ 30.738915] firmware_class: direct-loading firmware regulatory.db.p7s |
58 |
|
59 |
-- |
60 |
Regards, |
61 |
|
62 |
Mick |