Darren Tucker [dtuc...@zip.com.au] wrote:
> On Thu, Sep 17, 2015 at 1:48 AM, Chris Cappuccio <ch...@nmedia.net> wrote:
> >
> > Sometime before 5.8 release, a 4 second pause was removed from the shutdown
> > path. This must have been giving your USB disk time to finish before the
> > reset.
> >
> 
> Interesting, was that in the rc scripts or the kernel?
> 

Kernel, so sleeping before the halt is not likely to "fix" it.

I've seen issues like this with USB certain devices. Perhaps
something is not being handled right in the existing code,
or maybe some special stuff has to happen at DVACT_POWERDOWN
as sf@ suggested. Now, would that be in sd, or umass?

CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org      2015/07/16 17:03:40

Modified files:
        sys/arch/amd64/amd64: machdep.c
        sys/arch/i386/i386: machdep.c

Log message:
Remove 4 second delay on reboot/shutdown that was added 8 years
ago to "workaround MP timeout/splhigh/scsi race at reboot time".

Probably the issue has been fixed by now. And if not, the relevant scsi
controller drivers should add a workaround in their DVACT_POWERDOWN
hook.

While there, change the default final reset delay on amd64 to 0. People
who like looking at the final reboot message may still set the
CPURESET_DELAY define.

OK deraadt@ kettenis@ mlarkin@ uebayasi@

Reply via email to