public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] acpi/ghes: Make ghes_panic_timeout adjustable as a parameter
@ 2024-12-27  9:54 Feng Tang
  2024-12-27 10:09 ` Borislav Petkov
  0 siblings, 1 reply; 22+ messages in thread
From: Feng Tang @ 2024-12-27  9:54 UTC (permalink / raw)
  To: rafael, Len Brown, James Morse, Tony Luck, Borislav Petkov,
	linux-acpi, linux-kernel
  Cc: Ira Weiny, Dave Jiang, Dan Williams, ying.huang, Feng Tang

There is a problem report that when debugging a hard-to-reproduce panic
issue, user wanted the kernel to not reboot by adding "panic=0" in
kernel cmdline, so that the panic context could be kept, say the panic
was caught randomly in the mid-night, and user hoped to check it in
the morning. GHES panic handler may overwrite that user setting and
force to reboot after 'ghes_panic_timeout'(30) seconds.

Make 'ghes_panic_timeout' a parameter can provide user some flexibility
to change the timeout on demand, without changing current behavior.

Signed-off-by: Feng Tang <feng.tang@linux.alibaba.com>
---
 drivers/acpi/apei/ghes.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index 07789f0b59bc..a8a6310e476a 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -174,6 +174,7 @@ static struct ghes_estatus_cache __rcu *ghes_estatus_caches[GHES_ESTATUS_CACHES_
 static atomic_t ghes_estatus_cache_alloced;
 
 static int ghes_panic_timeout __read_mostly = 30;
+module_param(ghes_panic_timeout, int, 0644);
 
 static void __iomem *ghes_map(u64 pfn, enum fixed_addresses fixmap_idx)
 {
-- 
2.39.5 (Apple Git-154)


^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2025-01-14 17:29 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-27  9:54 [PATCH] acpi/ghes: Make ghes_panic_timeout adjustable as a parameter Feng Tang
2024-12-27 10:09 ` Borislav Petkov
2024-12-30  5:54   ` Huang, Ying
2024-12-30 10:16     ` Borislav Petkov
2024-12-30 11:04       ` Huang, Ying
2024-12-30 11:26         ` Borislav Petkov
2024-12-30 11:40           ` Feng Tang
2024-12-30 12:10             ` Borislav Petkov
2024-12-30 13:04               ` Feng Tang
2024-12-30 13:24                 ` Borislav Petkov
2024-12-31  6:44                   ` Feng Tang
2024-12-31  9:23                     ` Borislav Petkov
2024-12-31 10:15                       ` Feng Tang
2024-12-31 11:13                         ` Borislav Petkov
2024-12-31 12:02                           ` Feng Tang
2025-01-02  2:46                           ` Huang, Ying
2025-01-02  8:35                             ` Borislav Petkov
2025-01-13 12:52                               ` [PATCH] APEI: GHES: Have GHES honor the panic= setting Borislav Petkov
2025-01-13 20:08                                 ` Ira Weiny
2025-01-14 17:29                                   ` Rafael J. Wysocki
2025-01-09 13:47                           ` [PATCH] acpi/ghes: Make ghes_panic_timeout adjustable as a parameter Feng Tang
2025-01-13 12:50                             ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox