Skip to content

Commit 9651a2a

Browse files
christophercojslobodzian
authored andcommitted
kernel(-64k): add patch to revert new UART change (#12883)
Starting in kernel v6.6.76, our automated testing encountered failures on specific bare-metal systems where, after a kernel panic, sometimes the kernel's panic message was not seen in the system's IPMI SEL. After bisecting the changes between v6.6.75 to v6.6.76, we isolated the offending commit to: serial: 8250: Adjust the timeout for FIFO mode To restore functionality, revert the offending commit. We will continue investigating the issue separately. Apply to both kernel and kernel-64k. Signed-off-by: Chris Co <[email protected]>
1 parent 4c38084 commit 9651a2a

31 files changed

+295
-34
lines changed

SPECS-SIGNED/fwctl-signed/fwctl-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
Summary: %{_name} Driver
4646
Name: %{_name}
4747
Version: 24.10
48-
Release: 10%{?dist}
48+
Release: 11%{?dist}
4949
License: GPLv2
5050
Url: http://nvidia.com
5151
Group: System Environment/Base
@@ -112,6 +112,9 @@ fi # 1 : closed
112112

113113

114114
%changelog
115+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
116+
- Bump release to rebuild for new kernel release
117+
115118
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
116119
- Bump release to rebuild for new kernel release
117120

SPECS-SIGNED/iser-signed/iser-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
Summary: %{_name} Driver
4242
Name: %{_name}
4343
Version: 24.10
44-
Release: 10%{?dist}
44+
Release: 11%{?dist}
4545
License: GPLv2
4646
Url: http://www.mellanox.com
4747
Group: System Environment/Base
@@ -103,6 +103,9 @@ fi # 1 : closed
103103
%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf
104104

105105
%changelog
106+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
107+
- Bump release to rebuild for new kernel release
108+
106109
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
107110
- Bump release to rebuild for new kernel release
108111

SPECS-SIGNED/isert-signed/isert-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
Summary: %{_name} Driver
4242
Name: %{_name}
4343
Version: 24.10
44-
Release: 10%{?dist}
44+
Release: 11%{?dist}
4545
License: GPLv2
4646
Url: http://www.mellanox.com
4747
Group: System Environment/Base
@@ -102,6 +102,9 @@ fi # 1 : closed
102102
%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf
103103

104104
%changelog
105+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
106+
- Bump release to rebuild for new kernel release
107+
105108
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
106109
- Bump release to rebuild for new kernel release
107110

SPECS-SIGNED/kernel-64k-signed/kernel-64k-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Summary: Signed Linux Kernel for %{buildarch} systems
88
Name: kernel-64k-signed-%{buildarch}
99
Version: 6.6.78.1
10-
Release: 2%{?dist}
10+
Release: 3%{?dist}
1111
License: GPLv2
1212
Vendor: Microsoft Corporation
1313
Distribution: Azure Linux
@@ -105,6 +105,9 @@ echo "initrd of kernel %{uname_r} removed" >&2
105105
%exclude /module_info.ld
106106

107107
%changelog
108+
* Mon Mar 10 2025 Chris Co <[email protected]> - 6.6.78.1-3
109+
- Bump release to match kernel
110+
108111
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 6.6.78.1-2
109112
- Bump release to match kernel
110113

SPECS-SIGNED/kernel-signed/kernel-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Summary: Signed Linux Kernel for %{buildarch} systems
1111
Name: kernel-signed-%{buildarch}
1212
Version: 6.6.78.1
13-
Release: 2%{?dist}
13+
Release: 3%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
1616
Distribution: Azure Linux
@@ -145,6 +145,9 @@ echo "initrd of kernel %{uname_r} removed" >&2
145145
%exclude /module_info.ld
146146

147147
%changelog
148+
* Mon Mar 10 2025 Chris Co <[email protected]> - 6.6.78.1-3
149+
- Bump release to match kernel
150+
148151
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 6.6.78.1-2
149152
- Bump release to match kernel
150153

SPECS-SIGNED/kernel-uki-signed/kernel-uki-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Summary: Signed Unified Kernel Image for %{buildarch} systems
77
Name: kernel-uki-signed-%{buildarch}
88
Version: 6.6.78.1
9-
Release: 2%{?dist}
9+
Release: 3%{?dist}
1010
License: GPLv2
1111
Vendor: Microsoft Corporation
1212
Distribution: Azure Linux
@@ -68,6 +68,9 @@ popd
6868
/boot/efi/EFI/Linux/vmlinuz-uki-%{kernelver}.efi
6969

7070
%changelog
71+
* Mon Mar 10 2025 Chris Co <[email protected]> - 6.6.78.1-3
72+
- Bump release to match kernel
73+
7174
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 6.6.78.1-2
7275
- Bump release to match kernel
7376

SPECS-SIGNED/knem-modules-signed/knem-modules-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
Summary: KNEM: High-Performance Intra-Node MPI Communication
4444
Name: %{_name}-modules
4545
Version: 1.1.4.90mlnx3
46-
Release: 10%{?dist}
46+
Release: 11%{?dist}
4747
Provides: knem-mlnx = %{version}-%{release}
4848
Obsoletes: knem-mlnx < %{version}-%{release}
4949
License: BSD and GPLv2
@@ -103,6 +103,9 @@ fi
103103
/lib/modules/
104104

105105
%changelog
106+
* Mon Mar 10 2025 Chris Co <[email protected]> - 1.1.4.90mlnx3-11
107+
- Bump release to rebuild for new kernel release
108+
106109
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 1.1.4.90mlnx3-10
107110
- Bump release to rebuild for new kernel release
108111

SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Name: mft_kernel
1313
Summary: %{name} Kernel Module for the %{KVERSION} kernel
1414
Version: 4.30.0
15-
Release: 10%{?dist}
15+
Release: 11%{?dist}
1616
License: Dual BSD/GPLv2
1717
Group: System Environment/Kernel
1818

@@ -74,6 +74,9 @@ popd
7474
/lib/modules/%{KVERSION}/updates/
7575

7676
%changelog
77+
* Mon Mar 10 2025 Chris Co <[email protected]> - 4.30.0-11
78+
- Bump release to rebuild for new kernel release
79+
7780
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 4.30.0-10
7881
- Bump release to rebuild for new kernel release
7982

SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
Summary: %{_name} Driver
4444
Name: %{_name}
4545
Version: 24.10
46-
Release: 10%{?dist}
46+
Release: 11%{?dist}
4747
License: GPLv2
4848
Url: http://www.mellanox.com
4949
Group: System Environment/Base
@@ -111,6 +111,9 @@ fi
111111
%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf
112112

113113
%changelog
114+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
115+
- Bump release to rebuild for new kernel release
116+
114117
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
115118
- Bump release to rebuild for new kernel release
116119

SPECS-SIGNED/mlnx-ofa_kernel-modules-signed/mlnx-ofa_kernel-modules-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
Summary: Infiniband HCA Driver
4545
Name: %{_name}-modules
4646
Version: 24.10
47-
Release: 10%{?dist}
47+
Release: 11%{?dist}
4848
License: GPLv2
4949
Url: http://www.mellanox.com/
5050
Group: System Environment/Base
@@ -185,6 +185,9 @@ fi
185185
%license %{_datadir}/licenses/%{name}/copyright
186186

187187
%changelog
188+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
189+
- Bump release to rebuild for new kernel release
190+
188191
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
189192
- Bump release to rebuild for new kernel release
190193

SPECS-SIGNED/srp-signed/srp-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
Summary: srp driver
4242
Name: srp
4343
Version: 24.10
44-
Release: 10%{?dist}
44+
Release: 11%{?dist}
4545
License: GPLv2
4646
Url: http://www.mellanox.com
4747
Group: System Environment/Base
@@ -99,6 +99,9 @@ popd
9999
%license %{_datadir}/licenses/%{name}/copyright
100100

101101
%changelog
102+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
103+
- Bump release to rebuild for new kernel release
104+
102105
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
103106
- Bump release to rebuild for new kernel release
104107

SPECS-SIGNED/xpmem-modules-signed/xpmem-modules-signed.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Summary: Cross-partition memory
1717
Name: xpmem-modules
1818
Version: 2.7.4
19-
Release: 10%{?dist}
19+
Release: 11%{?dist}
2020
License: GPLv2 and LGPLv2.1
2121
Group: System Environment/Libraries
2222
Vendor: Microsoft Corporation
@@ -76,6 +76,9 @@ popd
7676

7777

7878
%changelog
79+
* Mon Mar 10 2025 Chris Co <[email protected]> - 2.7.4-11
80+
- Bump release to rebuild for new kernel release
81+
7982
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 2.7.4-10
8083
- Bump release to rebuild for new kernel release
8184

SPECS/fwctl/fwctl.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
Summary: %{_name} Driver
6868
Name: fwctl
6969
Version: 24.10
70-
Release: 10%{?dist}
70+
Release: 11%{?dist}
7171
License: GPLv2
7272
Url: http://nvidia.com
7373
Group: System Environment/Base
@@ -250,6 +250,9 @@ fi # 1 : closed
250250
%endif
251251

252252
%changelog
253+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
254+
- Bump release to rebuild for new kernel release
255+
253256
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
254257
- Bump release to rebuild for new kernel release
255258

SPECS/iser/iser.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
Summary: %{_name} Driver
6565
Name: iser
6666
Version: 24.10
67-
Release: 10%{?dist}
67+
Release: 11%{?dist}
6868
License: GPLv2
6969
Url: http://www.mellanox.com
7070
Group: System Environment/Base
@@ -247,6 +247,9 @@ fi # 1 : closed
247247
%endif
248248

249249
%changelog
250+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
251+
- Bump release to rebuild for new kernel release
252+
250253
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
251254
- Bump release to rebuild for new kernel release
252255

SPECS/isert/isert.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
Summary: %{_name} Driver
6565
Name: isert
6666
Version: 24.10
67-
Release: 10%{?dist}
67+
Release: 11%{?dist}
6868
License: GPLv2
6969
Url: http://www.mellanox.com
7070
Group: System Environment/Base
@@ -247,6 +247,9 @@ fi # 1 : closed
247247
%endif
248248

249249
%changelog
250+
* Mon Mar 10 2025 Chris Co <[email protected]> - 24.10-11
251+
- Bump release to rebuild for new kernel release
252+
250253
* Wed Mar 05 2025 Rachel Menge <[email protected]> - 24.10-10
251254
- Bump release to rebuild for new kernel release
252255

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
From cc88cf0846636a553eb132604da8dcc318593118 Mon Sep 17 00:00:00 2001
2+
From: Chris Co <[email protected]>
3+
Date: Sun, 9 Mar 2025 23:37:53 -0700
4+
Subject: [PATCH] Revert "serial: 8250: Adjust the timeout for FIFO mode"
5+
6+
This reverts commit fe616b82bc46982f60c2f95fe0f3023d7de6598b.
7+
---
8+
drivers/tty/serial/8250/8250_port.c | 32 ++++++-----------------------
9+
1 file changed, 6 insertions(+), 26 deletions(-)
10+
11+
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
12+
index 2b1b2928ef7b..a17803da83f8 100644
13+
--- a/drivers/tty/serial/8250/8250_port.c
14+
+++ b/drivers/tty/serial/8250/8250_port.c
15+
@@ -2074,8 +2074,7 @@ static void serial8250_break_ctl(struct uart_port *port, int break_state)
16+
serial8250_rpm_put(up);
17+
}
18+
19+
-/* Returns true if @bits were set, false on timeout */
20+
-static bool wait_for_lsr(struct uart_8250_port *up, int bits)
21+
+static void wait_for_lsr(struct uart_8250_port *up, int bits)
22+
{
23+
unsigned int status, tmout = 10000;
24+
25+
@@ -2090,11 +2089,11 @@ static bool wait_for_lsr(struct uart_8250_port *up, int bits)
26+
udelay(1);
27+
touch_nmi_watchdog();
28+
}
29+
-
30+
- return (tmout != 0);
31+
}
32+
33+
-/* Wait for transmitter and holding register to empty with timeout */
34+
+/*
35+
+ * Wait for transmitter & holding register to empty
36+
+ */
37+
static void wait_for_xmitr(struct uart_8250_port *up, int bits)
38+
{
39+
unsigned int tmout;
40+
@@ -3351,16 +3350,6 @@ static void serial8250_console_restore(struct uart_8250_port *up)
41+
serial8250_out_MCR(up, up->mcr | UART_MCR_DTR | UART_MCR_RTS);
42+
}
43+
44+
-static void fifo_wait_for_lsr(struct uart_8250_port *up, unsigned int count)
45+
-{
46+
- unsigned int i;
47+
-
48+
- for (i = 0; i < count; i++) {
49+
- if (wait_for_lsr(up, UART_LSR_THRE))
50+
- return;
51+
- }
52+
-}
53+
-
54+
/*
55+
* Print a string to the serial port using the device FIFO
56+
*
57+
@@ -3370,15 +3359,13 @@ static void fifo_wait_for_lsr(struct uart_8250_port *up, unsigned int count)
58+
static void serial8250_console_fifo_write(struct uart_8250_port *up,
59+
const char *s, unsigned int count)
60+
{
61+
+ int i;
62+
const char *end = s + count;
63+
unsigned int fifosize = up->tx_loadsz;
64+
- unsigned int tx_count = 0;
65+
bool cr_sent = false;
66+
- unsigned int i;
67+
68+
while (s != end) {
69+
- /* Allow timeout for each byte of a possibly full FIFO */
70+
- fifo_wait_for_lsr(up, fifosize);
71+
+ wait_for_lsr(up, UART_LSR_THRE);
72+
73+
for (i = 0; i < fifosize && s != end; ++i) {
74+
if (*s == '\n' && !cr_sent) {
75+
@@ -3389,14 +3376,7 @@ static void serial8250_console_fifo_write(struct uart_8250_port *up,
76+
cr_sent = false;
77+
}
78+
}
79+
- tx_count = i;
80+
}
81+
-
82+
- /*
83+
- * Allow timeout for each byte written since the caller will only wait
84+
- * for UART_LSR_BOTH_EMPTY using the timeout of a single character
85+
- */
86+
- fifo_wait_for_lsr(up, tx_count);
87+
}
88+
89+
/*
90+
--
91+
2.45.2
92+

0 commit comments

Comments
 (0)