1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/pci
Bill Paul 069363018f Fix a bug brought to light by the people working on SMPng. I don't quite
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
2000-08-11 17:47:55 +00:00
..
agp_ali.c
agp_amd.c
agp_i810.c Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
agp_if.m
agp_intel.c
agp_sis.c
agp_via.c
agp.c Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
agppriv.h Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
agpreg.h Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
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 Close PR 20438. Make fix for preserving LED settings conditional on 2000-08-07 17:03:20 +00:00
if_dcreg.h Grrrr. Add definition for DC_WDOG_CTLWREN. I made this change yesterday 2000-08-02 16:31:11 +00:00
if_de.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_devar.h
if_en_pci.c
if_fxp.c Fix a bug brought to light by the people working on SMPng. I don't quite 2000-08-11 17:47:55 +00:00
if_fxpreg.h Added support for the i82559ER (10/100Mbps NIC for embedded applications). 2000-06-18 10:26:09 +00:00
if_fxpvar.h
if_mn.c Newbusify this driver at an expense of 40 extra lines of code. 2000-07-10 19:33:41 +00:00
if_rl.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_rlreg.h
if_sf.c Close PR# 19904: remember to call sf_setmulti() when initializing the 2000-07-14 19:11:02 +00:00
if_sfreg.h
if_sis.c sis_miibus_writereg() was checking for SIS_TYPE_900 and phy != 0 twice 2000-07-14 05:30:48 +00:00
if_sisreg.h Add support for the National Semiconductor DP83815 fast ethernet 2000-07-06 06:02:04 +00:00
if_sk.c Add call to bus_generic_attach() at the end of sk_attach(). It turns out that 2000-08-02 18:19:00 +00:00
if_skreg.h
if_sr_p.c
if_ste.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_stereg.h
if_ti.c Add support for the Netgear GA620T copper gigabit card. 2000-08-02 18:49:17 +00:00
if_tireg.h Add support for the Netgear GA620T copper gigabit card. 2000-08-02 18:49:17 +00:00
if_tl.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_tlreg.h
if_tx.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_txvar.h Added support for SMC9432BTX cards. 2000-06-21 19:19:49 +00:00
if_vr.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_vrreg.h Close PR# 19617: add support for VIA VT6102 NICs to VIA Rhine driver. 2000-07-05 21:37:21 +00:00
if_wb.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_wbreg.h
if_wx.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_wxreg.h
if_wxvar.h
if_xl.c Make all Ethernet drivers attach using ether_ifattach() and detach using 2000-07-13 22:54:34 +00:00
if_xlreg.h
intpm.c
intpmreg.h
isp_pci.c Part of major rewrite for core version 2.0- clarification of 2000-08-01 05:16:49 +00:00
locate.pl use warnings 2000-06-27 22:41:12 +00:00
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 Add the ESS Solo-1 to generic chip match. 2000-08-03 13:46:52 +00:00
pcivar.h
scsiiom.c
simos.c
simos.h
ti_fw2.h Use a custom Tigon 2 firmware image, hopefully temporarily. This is 2000-07-26 23:55:34 +00:00
ti_fw.h Update the Tigon driver to support 1000baseTX gigE over copper AceNIC 2000-07-20 22:24:43 +00:00
uhci_pci.c
xmaciireg.h
xrpu.c