Re: [PATCH] powerpc/fadump: Add timeout to RTAS busy-wait loops

From
Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Date
2026-04-07 04:07:48
Also in
lkml
Reply to
Adriano Vero, 2026-04-06
Adriano Vero [off-list ref] writes:
The ibm,configure-kernel-dump RTAS call sites in
rtas_fadump_register(), rtas_fadump_unregister(), and
rtas_fadump_invalidate() polled indefinitely while firmware returned
a busy status. A misbehaving or hung firmware could stall these paths
forever, blocking fadump registration at boot or preventing clean
teardown.
Was there an issue which you encountered? Can you share the details of
the same please?

Track the accumulated delay in a total_wait counter and bail out with
-ETIMEDOUT if it reaches RTAS_FADUMP_MAX_WAIT_MS (60 seconds) before
firmware signals completion. This follows the bounded busy-wait pattern
used in rtas-rtc.c.

Signed-off-by: Adriano Vero <redacted>
  
Thread (14 messages) 14 messages, 5 authors, last reply 2026-06-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help