tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

if_wm panics on boot



Hi

I'm at the below commit (don't know the CVS revision as I don't use CVS),

     Set PCI_INTR_MPSAFE, SOFTINT_MPSAFE, CALLOUT_MPSAFE and IFEF_START_MPSAFE
    if NET_MPSAFE is defined.

but the kernel no longer boots due to an assertion error at L6525 of sys/dev/pci/if_wm.c.
The one I compiled just a few days ago worked fine (or at least it boots),
so the recent changes made against sys/dev/pci/if_wm.c seem to have broke the kernel.

   6519 4b2db6832 (msaitoh   2010-01-14 18:56:02 +0000  6519) static void
   6520 a42d09650 (msaitoh   2014-07-23 10:48:16 +0000  6520) wm_start(struct ifnet *ifp)
   6521 4b2db6832 (msaitoh   2010-01-14 18:56:02 +0000  6521) {
   6522 a42d09650 (msaitoh   2014-07-23 10:48:16 +0000  6522)   struct wm_softc *sc = ifp->if_softc;
   6523 4a99150fe (knakahara 2016-05-19 08:27:57 +0000  6523)   struct wm_txqueue *txq = &sc->sc_queue[0].wmq_txq;
   6524 4b2db6832 (msaitoh   2010-01-14 18:56:02 +0000  6524)
   6525 4237fb09a (knakahara 2016-06-20 08:34:59 +0000  6525)   KASSERT(ifp->if_extflags & IFEF_START_MPSAFE);  <------
   6526 4237fb09a (knakahara 2016-06-20 08:34:59 +0000  6526)
   6527 142aff0c9 (knakahara 2016-12-02 01:48:44 +0000  6527)   /*
   6528 142aff0c9 (knakahara 2016-12-02 01:48:44 +0000  6528)    * ifp->if_obytes and ifp->if_omcasts are added in if_transmit()@if.c.
   6529 142aff0c9 (knakahara 2016-12-02 01:48:44 +0000  6529)    */
   6530 142aff0c9 (knakahara 2016-12-02 01:48:44 +0000  6530)
   6531 33a8904ac (skrll     2016-06-14 09:07:22 +0000  6531)   mutex_enter(txq->txq_lock);
   6532 4e1eaa618 (knakahara 2016-10-28 04:14:13 +0000  6532)   if (!txq->txq_stopping)
   6533 a42d09650 (msaitoh   2014-07-23 10:48:16 +0000  6533)           wm_start_locked(ifp);
   6534 33a8904ac (skrll     2016-06-14 09:07:22 +0000  6534)   mutex_exit(txq->txq_lock);
   6535 4b2db6832 (msaitoh   2010-01-14 18:56:02 +0000  6535) }




Home | Main Index | Thread Index | Old Index