mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
069363018f
understand exactly what it is about SMPng that tickles this bug. What I do know is that the foo_init() routine in most drivers is often called twice when an interface is brought up. One time is due to the ifconfig(8) command calling the SIOCSIFFLAGS ioctl to set the IFF_UP flag, and another is probably due to the kernel calling ifp->if_init at some point. In any case, the SMPng changes seem to affect the timing of these two events in such a way that there is a significant delay before any packets are sent onto the wire after the interface is first brought up. This manifested itself locally as an SMPng test machine which failed to obtain an address via DHCP when booting up. It looks like the second call to fxp_init() is happening faster now than it did before, and I think it catches the chip while it's in the process of dealing with the configuration command from the first call. Whatever the case, a FXP_CSR_SCB_CNA interrupt event is now generated shortly after the second fxp_init() call. (This interrupt is apparently never generated by a non-SMPng kernel, so nobody noticed.) There are two problems with this: first, fxp_intr() does not handle the FXP_CSR_SCB_CNA interrupt event (it never tests for it or does anything to deal with it), and second, the meaning of FXP_CSR_SCB_CNA is not documented in the driver. (Apparently it means "command unit not active.") Bad coder. No biscuit. The fix is to have the FXP_CSR_SCB_CNA interrupt handled just like the FXP_SCB_STATACK_CXTNO interrupt. This prevents the state machine for the configuration/RX filter programming stuff from getting wedged for several seconds and preventing packet transmission. Noticed by: jhb |
||
---|---|---|
.. | ||
agp_ali.c | ||
agp_amd.c | ||
agp_i810.c | ||
agp_if.m | ||
agp_intel.c | ||
agp_sis.c | ||
agp_via.c | ||
agp.c | ||
agppriv.h | ||
agpreg.h | ||
agpvar.h | ||
alpm.c | ||
amd.c | ||
amd.h | ||
cy_pci.c | ||
cy_pcireg.h | ||
dc21040reg.h | ||
ide_pcireg.h | ||
if_ar_p.c | ||
if_dc.c | ||
if_dcreg.h | ||
if_de.c | ||
if_devar.h | ||
if_en_pci.c | ||
if_fxp.c | ||
if_fxpreg.h | ||
if_fxpvar.h | ||
if_mn.c | ||
if_rl.c | ||
if_rlreg.h | ||
if_sf.c | ||
if_sfreg.h | ||
if_sis.c | ||
if_sisreg.h | ||
if_sk.c | ||
if_skreg.h | ||
if_sr_p.c | ||
if_ste.c | ||
if_stereg.h | ||
if_ti.c | ||
if_tireg.h | ||
if_tl.c | ||
if_tlreg.h | ||
if_tx.c | ||
if_txvar.h | ||
if_vr.c | ||
if_vrreg.h | ||
if_wb.c | ||
if_wbreg.h | ||
if_wx.c | ||
if_wxreg.h | ||
if_wxvar.h | ||
if_xl.c | ||
if_xlreg.h | ||
intpm.c | ||
intpmreg.h | ||
isp_pci.c | ||
locate.pl | ||
meteor_reg.h | ||
meteor.c | ||
ncr.c | ||
ncrreg.h | ||
ohci_pci.c | ||
pccbb.c | ||
pccbbreg.h | ||
pccbbvar.h | ||
pci_compat.c | ||
pci_if.m | ||
pci.c | ||
pcic_p.c | ||
pcic_p.h | ||
pcireg.h | ||
pcisupport.c | ||
pcivar.h | ||
scsiiom.c | ||
simos.c | ||
simos.h | ||
ti_fw2.h | ||
ti_fw.h | ||
uhci_pci.c | ||
xmaciireg.h | ||
xrpu.c |