On Sat, Aug 07, 2021 at 08:59:33PM -0700, Bryan Linton wrote:
> On 2021-08-07 16:05:34, Bryan Linton <b...@shoshoni.info> wrote:
> > >Synopsis:  The system randomly panics with the message: panic: 
> > >config_detach: forced detach of iwm0 failed (45)
> > >Category:  system
> > >Environment:
> >     System      : OpenBSD 6.9
> >     Details     : OpenBSD 6.9-current (GENERIC.MP) #69: Fri Jun 11 08:31:52 
> > MDT 2021
> >                      
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > 
> >     Architecture: OpenBSD.amd64
> >     Machine     : amd64
> > >Description:
> >     I upgraded from a 2021-06-11 snapshot to a 2021-07-22
> >     snapshot and occasionally had the following crash.  I
> >     upgraded to several later snapshots hoping that a fix
> >     might have already been committed, but still found the
> >     same crashes up until an August 2nd (or so) snapshot.
> > 
> >             panic: config_detach: forced detach of iwm0 failed (45)
> > 
> > [...]
> > 
> > >Fix:
> >     Unknown.  Reverting to the June 11th 2021 snapshot fixed
> >     the issue for me.
> > 
> 
> Apperently I have to retract this statement.  I had believed the
> problem to have started somewhere after a 2021-06-11 snapshot,
> since I had not experienced the crash on that until I upgraded to
> the 2021-07-22 snapshot,
> 
> However, a scant few hours after sending this bug report, the
> 2021-06-11 snapshot I reverted to crashed with the same error
> after a week of running with no problems.
> 
> Again, the laptop was incredibly warm when it happened, so my gut
> instinct is that it may be heat-related.  Unfortunately, the room
> I work in is without air conditioning, so ambient temperatures in
> the mid to high 30s degC are unavoidable at the moment.
> 
> I suppose it's good news in that the problem was likely not
> introduced in the recent iwm fixes.  Nevertheless, my willingness
> to test patches and/or provide more information still stands.

This could indeed be related to inadequate cooling. It looks like the
device is falling off the PCI bus suddenly, so the wifi card is probably
losing power. Unfortunately I have no idea how that could be prevented,
apart from bringing the temperature down.
Given that the wifi card seems to be losing power I wouldn't rule out the
possibility that your hardware is starting to fail, with worse consequences
down the line.

The driver doesn't support detaching because these wifi cards are not
intended to be hot-plugged.

Firmware supports a "thermal threshold exceeded" notification, but it
sounds like it isn't triggering in your case. When this happens a message
such as this should appear in dmesg and the interface should go down:
  iwm0: device at critical temperature (X degC), stopping device
But I have never seen this trigger, nor has anyone else as far as I know.

Reply via email to