Date: Wed, 28 Aug 2019 12:44:13 +0300 From: Yuri Pankov <yuripv@yuripv.net> To: Hans Petter Selasky <hps@selasky.org>, freebsd-hackers@freebsd.org Subject: Re: ichsmb(4) and msleep() Message-ID: <63daa36a-5c22-6b08-3cd7-562fa961ab61@yuripv.net> In-Reply-To: <478965aa-5256-e356-5339-de6fb82c3459@selasky.org> References: <7dfebbd3-85d6-c7b7-b83b-fae8b644649e@yuripv.net> <478965aa-5256-e356-5339-de6fb82c3459@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky wrote: > On 2019-08-28 11:07, Yuri Pankov wrote: >> I have a "timed sleep before timers are working" panic in ichsmb_readb() >> calling ichsmb_wait() which uses msleep(). That is trying to >> jedec_dimm(4) module so it's trying to attach pretty early in boot. >> What would be the correct replacement for msleep() here? >> > > If you only need a sleep-delay, pause() is the right one. It handles > cold-boot. I guess that won't work here as we need to be waked up by interrupt handler on command completion, and pause() seems to sleep unconditionally for the given time in 'cold' case (if I'm reading the code correctly).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63daa36a-5c22-6b08-3cd7-562fa961ab61>