From: kettenis Date: Sun, 23 Oct 2022 13:45:32 +0000 (+0000) Subject: Bump tsleep timeout. For some reason the first attempt to load the firmware X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e5f191e1f2d0898cf9aa0eb51462fbb249839e4b;p=openbsd Bump tsleep timeout. For some reason the first attempt to load the firmware sometimes fails. This happens more often on M2 laptops that also need to load the touchpad firmware. Smells like we have some sort of thundering herd at mountroot time which makes this take more time. ok patrick@ --- diff --git a/sys/dev/pci/if_bwfm_pci.c b/sys/dev/pci/if_bwfm_pci.c index 92a18424736..c966db119f5 100644 --- a/sys/dev/pci/if_bwfm_pci.c +++ b/sys/dev/pci/if_bwfm_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_pci.c,v 1.71 2022/03/21 19:46:56 kettenis Exp $ */ +/* $OpenBSD: if_bwfm_pci.c,v 1.72 2022/10/23 13:45:32 kettenis Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2017 Patrick Wildt @@ -2472,7 +2472,7 @@ bwfm_pci_msgbuf_query_dcmd(struct bwfm_softc *bwfm, int ifidx, bwfm_pci_ring_write_commit(sc, &sc->sc_ctrl_submit); splx(s); - tsleep_nsec(ctl, PWAIT, "bwfm", SEC_TO_NSEC(1)); + tsleep_nsec(ctl, PWAIT, "bwfm", SEC_TO_NSEC(5)); TAILQ_REMOVE(&sc->sc_ioctlq, ctl, next); if (ctl->m == NULL) {