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

litaliano00 litaliano00.contact at gmail.com
Tue Apr 14 07:37:25 AEST 2026


On Mon, Apr 13, 2026, 15:50 Sourabh Jain <sourabhjain at linux.ibm.com> wrote:

> > What is the rationale behind choosing a 60-second limit?


> The 60-second value was chosen somewhat arbitrarily. Looking at

rtas_busy_delay_time(), the maximum single delay returned is 100000ms

(status 9905). In practice, legitimate busy delays are expected to be

much shorter. I was following the spirit of rtas-rtc.c which uses a

5-second limit for simpler operations; fadump is a heavier firmware

operation, so I went higher. I am open to suggestions on a more

principled value.


> > Would it make sense to introduce a helper function to wrap the

> rtas_call, along with handling the wait time and timeout?


> Absolutely, I will introduce a helper in v2. The three sites are

indeed identical except for the FADUMP_REGISTER/UNREGISTER/INVALIDATE

argument and the struct pointer/size. I will factor out the common

busy-wait loop into a static helper.


> Will send v2 shortly from my new email adri.vero.dev at gmail.com


> Adriano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20260413/8d8fcb0d/attachment.htm>


More information about the Linuxppc-dev mailing list