[PATCH v3] firmware/raspberrypi: raise timeout to 3s
Etienne Buira
etienne.buira at free.fr
Wed May 21 03:04:35 PDT 2025
Raspberry firmware driver expected said firmware to answer by 1 second.
However, some firmware versions are buggy and can take longer with
RPI_FIRMWARE_NOTIFY_DISPLAY_DONE.
[ 2.861407] ------------[ cut here ]------------
[ 2.865512] Firmware transaction 0x00030066 timeout
Raising the timeout to 3 seconds (ought to be enough®) doesn't trigger
timeouts anymore for me and proceeds to the next failure.
Some details about firmware debugging are available here:
Link: https://github.com/raspberrypi/firmware/issues/1970
Signed-off-by: Etienne Buira <etienne.buira at free.fr>
---
v2: coding style
v3: commit message
Stefan, feel free to edit to your liking if needed, or even take
ownership of such one-liner, that would not be stealing.
drivers/firmware/raspberrypi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c
index 7ecde6921a0a..8c45a152e3ba 100644
--- a/drivers/firmware/raspberrypi.c
+++ b/drivers/firmware/raspberrypi.c
@@ -58,7 +58,7 @@ rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data)
reinit_completion(&fw->c);
ret = mbox_send_message(fw->chan, &message);
if (ret >= 0) {
- if (wait_for_completion_timeout(&fw->c, HZ)) {
+ if (wait_for_completion_timeout(&fw->c, 3 * HZ)) {
ret = 0;
} else {
ret = -ETIMEDOUT;
--
2.48.1
More information about the linux-arm-kernel
mailing list