[PATCH] arm: apple: Increase RTKit timeout

Simon Glass sjg at chromium.org
Wed Mar 23 10:59:59 CET 2022


On Mon, 21 Mar 2022 at 15:36, Mark Kettenis <kettenis at openbsd.org> wrote:
>
> From: Hector Martin <marcan at marcan.st>
>
> The firmware on larger NVMe drives needs more than 100ms to come up.
> Change the timeout to 1s.
>
> Signed-off-by: Hector Martin <marcan at marcan.st>
> Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
> ---
>
> While technically this isn't a regression, it would be nice to have
> this in the 2022.04 release as without this NVMe storage can't be
> access on models ordered with bugger storage options (4TB or more).
> This has been widely tested already by people using the Asahi Linux
> installer.
>
>  arch/arm/mach-apple/rtkit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

This is really terrible.


>
> diff --git a/arch/arm/mach-apple/rtkit.c b/arch/arm/mach-apple/rtkit.c
> index dff475cab7..2dcb8bdd3e 100644
> --- a/arch/arm/mach-apple/rtkit.c
> +++ b/arch/arm/mach-apple/rtkit.c
> @@ -170,7 +170,7 @@ wait_epmap:
>
>         pwrstate = APPLE_RTKIT_PWR_STATE_SLEEP;
>         while (pwrstate != APPLE_RTKIT_PWR_STATE_ON) {
> -               ret = mbox_recv(chan, &msg, 100000);
> +               ret = mbox_recv(chan, &msg, 1000000);
>                 if (ret < 0)
>                         return ret;
>
> --
> 2.35.1
>


More information about the U-Boot mailing list