Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:5.10 commit in: /
Date: Tue, 24 Aug 2021 21:33:28
Message-Id: 1629840771.9b9138860ef32edd768318afe37f6ef014e0c21c.mpagano@gentoo
1 commit: 9b9138860ef32edd768318afe37f6ef014e0c21c
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 24 21:32:51 2021 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 24 21:32:51 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9b913886
7
8 Add suport for printing firmware info on load attempt
9
10 This requires the kernel config parameter:
11 CONFIG_GENTOO_PRINT_FIRMWARE_INFO
12 located under the GENTOO_LINUX distro config options
13
14 Thanks to Georgy Yakovlev
15
16 Bug: https://bugs.gentoo.org/732852
17
18 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
19
20 0000_README | 4 ++++
21 3000_Support-printing-firmware-info.patch | 14 ++++++++++++++
22 2 files changed, 18 insertions(+)
23
24 diff --git a/0000_README b/0000_README
25 index 3c66718..303d4fa 100644
26 --- a/0000_README
27 +++ b/0000_README
28 @@ -307,6 +307,10 @@ Patch: 2920_sign-file-patch-for-libressl.patch
29 From: https://bugs.gentoo.org/717166
30 Desc: sign-file: full functionality with modern LibreSSL
31
32 +Patch: 3000_Support-printing-firmware-info.patch
33 +From: https://bugs.gentoo.org/732852
34 +Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev
35 +
36 Patch: 4567_distro-Gentoo-Kconfig.patch
37 From: Tom Wijsman <TomWij@g.o>
38 Desc: Add Gentoo Linux support config settings and defaults.
39
40 diff --git a/3000_Support-printing-firmware-info.patch b/3000_Support-printing-firmware-info.patch
41 new file mode 100644
42 index 0000000..a630cfb
43 --- /dev/null
44 +++ b/3000_Support-printing-firmware-info.patch
45 @@ -0,0 +1,14 @@
46 +--- a/drivers/base/firmware_loader/main.c 2021-08-24 15:42:07.025482085 -0400
47 ++++ b/drivers/base/firmware_loader/main.c 2021-08-24 15:44:40.782975313 -0400
48 +@@ -809,6 +809,11 @@ _request_firmware(const struct firmware
49 +
50 + ret = _request_firmware_prepare(&fw, name, device, buf, size,
51 + offset, opt_flags);
52 ++
53 ++#ifdef CONFIG_GENTOO_PRINT_FIRMWARE_INFO
54 ++ printk(KERN_NOTICE "Loading firmware: %s\n", name);
55 ++#endif
56 ++
57 + if (ret <= 0) /* error or already assigned */
58 + goto out;
59 +