Up to [cvs.netbsd.org] / src / sys / dev / pci
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:12 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.13: +5 -3
lines
Diff to previous 1.13 (colored) next main 1.14 (colored)
Sync with HEAD.
Revision 1.10.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:04:39 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.10.4.1: +4 -2
lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)
sync with head
Revision 1.14 / (download) - annotate - [select for diffs], Mon May 2 09:03:10 2011 UTC (12 months, 3 weeks ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
netbsd-6-base,
netbsd-6,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
HEAD
Changes since 1.13: +5 -3
lines
Diff to previous 1.13 (colored)
Fix BCM5709 PHY detection for ethernet PHYs (the SerDes case being already handled): - export bge(4) and bnx(4) CHIP ID and PHY flags to brgphy(4). Move to "unsigned int" rather than "int", and reuse the same softc members for chipid and phyflags (behavior controlled by the sc_isbge/isbnx boolean). - apply bug fix for revisions A and B, so that autonegotiation can complete (from OpenBSD). Bug reported by Rivo Nurges via private mail, patch tested and confirmed working by him (with thanks!)
Revision 1.10.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:39 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.10: +77 -479
lines
Diff to previous 1.10 (colored)
sync with head
Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 11 14:28:38 2010 UTC (17 months, 2 weeks ago) by martin
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.12: +10 -10
lines
Diff to previous 1.12 (colored)
Sanitize names a bit, still could use more namespace cleanup
Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 11 12:14:06 2010 UTC (17 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.11: +21 -21
lines
Diff to previous 1.11 (colored)
Namespace police: don't use very broad names like CTX_MASK (which accidently collide with sparc* specific MD macros), mechanically prefix with BNX_.
Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 9 22:34:37 2010 UTC (17 months, 2 weeks ago) by jym
Branch: MAIN
Changes since 1.10: +55 -457
lines
Diff to previous 1.10 (colored)
Similar to bge(4), split if_bnxreg.h in two parts: - if_bnxreg.h: general register values, flags... for bnx(4), that can be included in other drivers - if_bnxvar.h: PCI or device specific code (device state data, debug macros etc.), which should remain private to bnx(4) No comments, no objections on current-users@. See discussion: http://mail-index.netbsd.org/current-users/2010/12/01/msg014926.html
Revision 1.7.14.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:41 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Changes since 1.7: +453 -141
lines
Diff to previous 1.7 (colored) next main 1.8 (colored)
sync to netbsd-5
Revision 1.6.10.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:45 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.10.1: +446 -142
lines
Diff to previous 1.6.10.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)
sync with head
Revision 1.7.6.1 / (download) - annotate - [select for diffs], Wed Jan 27 22:03:18 2010 UTC (2 years, 3 months ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
matt-nb5-pq3-base,
matt-nb5-pq3
Changes since 1.7: +453 -141
lines
Diff to previous 1.7 (colored) next main 1.8 (colored)
Pull up the following revisions(s) (requested by bouyer in ticket #1268): sys/dev/mii/miidevs: revision 1.90 sys/dev/pci/pcidevs: revision 1.1001 sys/dev/mii/brgphy.c: revision 1.51 sys/dev/microcode/bnx/bnxfw.h: revision 1.3 sys/dev/pci/if_bnx.c: revision 1.29 sys/dev/pci/if_bnxreg.h: revision 1.9 sys/dev/pci/if_bnx.c: revision 1.30 Add support for the Broadcom BCM5709 and BCM5716 chips. Upgrade the B06 firmware and add the B09 firmware required by the BCM5709. Replace TX dmamap array with a dynamically-grown list. Support associated BCM5709CAX and BCM5709C PHYs.
Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 19 22:07:00 2010 UTC (2 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip
Branch point for: rmind-uvmplock
Changes since 1.9: +1 -4
lines
Diff to previous 1.9 (colored)
Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized. Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here. Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 18 23:11:16 2009 UTC (2 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.8: +446 -139
lines
Diff to previous 1.8 (colored)
Sync with OpenBSD: if_bnx.c,v 1.85. Major changes: Add support for the Broadcom BCM5709 and BCM5716 chips. This upgrade the B06 firmware, and add the B09 firmware required by the BCM5709. Remplace TX dmamap array with a dynamically-grown list. Tested with: bnx0 at pci4 dev 0 function 0: Broadcom NetXtreme II BCM5708 1000Base-T and bnx0 at pci0 dev 0 function 0: Broadcom NetXtreme II BCM5709 1000Base-SX
Revision 1.7.10.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:25 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.7: +1 -3
lines
Diff to previous 1.7 (colored) next main 1.8 (colored)
Sync with HEAD. Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.6.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:56 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6: +7 -9
lines
Diff to previous 1.6 (colored)
sync with head.
Revision 1.7.4.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:56 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.7: +1 -3
lines
Diff to previous 1.7 (colored) next main 1.8 (colored)
Sync with HEAD.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 14 20:17:15 2009 UTC (3 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base
Changes since 1.7: +1 -3
lines
Diff to previous 1.7 (colored)
Delete two unused data members, the powerhook and the shutdownhook handles.
Revision 1.6.12.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:06 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.6: +7 -7
lines
Diff to previous 1.6 (colored) next main 1.7 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.6.6.1 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:09 2008 UTC (3 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.6: +7 -7
lines
Diff to previous 1.6 (colored) next main 1.7 (colored)
Sync with HEAD.
Revision 1.6.14.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:22 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.6: +7 -7
lines
Diff to previous 1.6 (colored) next main 1.7 (colored)
Sync with head.
Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 24 10:17:45 2008 UTC (3 years, 11 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base,
nick-hppapmap-base2,
netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
mjf-devfs2-base,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
netbsd-5,
matt-nb5-mips64,
jym-xensuspend
Changes since 1.6: +7 -7
lines
Diff to previous 1.6 (colored)
Replace gcc variadic macros with c99 variadic macros.
Revision 1.2.10.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:46 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.2.10.1: +2 -2
lines
Diff to previous 1.2.10.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)
sync with HEAD
Revision 1.2.16.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:57 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2: +6 -8
lines
Diff to previous 1.2 (colored) next main 1.3 (colored)
Sync with HEAD.
Revision 1.1.8.5 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:38 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.8.4: +2 -2
lines
Diff to previous 1.1.8.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
sync with head.
Revision 1.6 / (download) - annotate - [select for diffs], Wed Feb 6 16:50:38 2008 UTC (4 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: yamt-nfs-mp,
wrstuden-revivesa,
simonb-wapbl,
mjf-devfs2
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
Don't use misaligned PCI config access. Reported by Christoph Egger.
Revision 1.1.8.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:53 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.8.3: +5 -7
lines
Diff to previous 1.1.8.3 (colored) to branchpoint 1.1 (colored)
sync with head
Revision 1.2.10.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:44 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.2: +5 -7
lines
Diff to previous 1.2 (colored)
sync with HEAD
Revision 1.2.22.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:41 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.2: +5 -7
lines
Diff to previous 1.2 (colored) next main 1.3 (colored)
Sync with HEAD
Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 31 22:52:14 2007 UTC (4 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.4: +1 -2
lines
Diff to previous 1.4 (colored)
Don't buffer packets while the link is down, but drop them on the floor like most other ethernet drivers do. bnx(4) has "vanilla" MII media-handling, so use ether_mediachange and ether_mediastatus.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 30 00:56:45 2007 UTC (4 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.3: +2 -2
lines
Diff to previous 1.3 (colored)
For consistency with other softc members, s/ethercom/bnx_ec/.
Revision 1.2.18.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:50 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.2: +4 -5
lines
Diff to previous 1.2 (colored) next main 1.3 (colored)
Sync with head.
Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 26 04:06:29 2007 UTC (4 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.2: +4 -5
lines
Diff to previous 1.2 (colored)
Add device suspend/resume/detach. (Tested with drvctl -S bnx0, drvctl -Q bnx0, drvctl -d bnx0.) Separate device_t storage from softc storage and use CFATTACH_DECL_NEW().
Revision 1.1.8.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:36:54 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.8.2: +4 -20
lines
Diff to previous 1.1.8.2 (colored) to branchpoint 1.1 (colored)
sync with head.
Revision 1.1.18.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:07:34 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.1: +4 -20
lines
Diff to previous 1.1 (colored) next main 1.2 (colored)
Sync with head.
Revision 1.1.6.3 / (download) - annotate - [select for diffs], Wed Apr 25 09:09:36 2007 UTC (5 years, 1 month ago) by ghen
Branch: netbsd-3
Changes since 1.1.6.2: +4 -20
lines
Diff to previous 1.1.6.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
Pull up following revision(s) (requested by bouyer in ticket #1762): sys/dev/pci/if_bnx.c: revision 1.4 sys/dev/pci/if_bnx.c: revision 1.5 sys/dev/pci/if_bnx.c: revision 1.6 sys/dev/pci/if_bnxreg.h: revision 1.2 Protect bnx_tick() with splnet. Bring in fixes and improvements from OpenBSD: revision 1.25 - Simplify the arguments to bnx_tx_encap. - Don't copy the bd_chain head pointers into temporary objects, they are available globally. From scottl@FreeBSD revision 1.26 Overhaul the transmit path: - Eliminate the bnx_dmamap_arg structure. - Refactor the loop that fills the buffer descriptor so that it can be done with a single set of logic in a single loop instead of two sets of logic. - Eliminate the need to cache and pass descriptor indexes between the start loop and the encap function. - Change the start loop to always check the ifnet sendq for more work. From scottl@FreeBSD revision 1.27 make the exit label naming scheme match the current function names, removes a FreeBSD-ism from the original driver. revision 1.28 -> 1.30 - Ensure that at least 16 TX descriptors are kept unused in the ring. - Use more complete error handling for TX load problems. From scottl@FreeBSD revision 1.31 replace a few more instances of hand rolled code with the LIST_FOREACH macro. revision 1.33 In bnx_start, check the used_tx_bd count rather than the descriptors mbuf pointer to see if the transmit ring is full. The mbuf pointer is set only in the last descriptor of a multi-descriptor packet. By relying on the mbuf pointers of the earlier descriptors, the driver would sometimes overwrite a descriptor belonging to a packet that wasn't completed yet. Also, tx_chain_prod wasn't updated inside the loop, causing the wrong descriptor to be checked after the first iteration. The upshot of all this was the loss of some transmitted packets at medium to high packet rates. In bnx_tx_encap, remove a couple of old statements that shuffled around the tx_mbuf_map pointers. These now correspond 1-to-1 with the transmit descriptors, and they are not supposed to be changed. Correct a couple of inaccurate comments. From jdp@FreeBSD revision 1.43 Allow the bnx(4) driver to make use of all of the available hardware multicast hash slots. The bnx(4) hardware supports 8 slots instead of 4 like the bge(4) hardware. From Mike Karels via FreeBSD Tested by Brad, biorn@ and Johan M:son Lindman RX buffers are malloced memory of 9216 bytes. This can require from 1 to 4 DMA memory segments, depending on how the buffer is in memory. When receiving a packet, we allocate a new one to remplace the one we've used. It can need more segments than the one it remplace, leading to corrution of the RX descriptors, and a panic in bus_dmamap_sync() (DIAGNOSTIC kernels) or possibly memory corruption. Fix: - bnx_get_buf() allocates as many buffer as possible, checking the number of free RX descriptors. Because one receive buffer is not guaranteed to be remplaced on receive, call bnx_get_buf() from bnx_tick() too. This also improve error handling from bnx_get_buf(). - use MCLGET() instead of MEXTMALLOC() if we're running with the standard ethernet MTU. This gives us more receive buffers and waste less memory. Fix build on 32bit ports; should fix GENERIC_DIAGNOSTIC build problem reported by Hisashi T Fujinaka on current-users.
Revision 1.1.4.3 / (download) - annotate - [select for diffs], Fri Apr 20 21:56:00 2007 UTC (5 years, 1 month ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
matt-nb4-arm-base,
matt-nb4-arm
Changes since 1.1.4.2: +4 -20
lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
Pull up following revision(s) (requested by bouyer in ticket #566): sys/dev/pci/if_bnx.c: revision 1.4 sys/dev/pci/if_bnx.c: revision 1.5 sys/dev/pci/if_bnx.c: revision 1.6 sys/dev/pci/if_bnxreg.h: revision 1.2 Protect bnx_tick() with splnet. Bring in fixes and improvements from OpenBSD: revision 1.25 - Simplify the arguments to bnx_tx_encap. - Don't copy the bd_chain head pointers into temporary objects, they are available globally. From scottl@FreeBSD revision 1.26 Overhaul the transmit path: - Eliminate the bnx_dmamap_arg structure. - Refactor the loop that fills the buffer descriptor so that it can be done with a single set of logic in a single loop instead of two sets of logic. - Eliminate the need to cache and pass descriptor indexes between the start loop and the encap function. - Change the start loop to always check the ifnet sendq for more work. From scottl@FreeBSD revision 1.27 make the exit label naming scheme match the current function names, removes a FreeBSD-ism from the original driver. revision 1.28 -> 1.30 - Ensure that at least 16 TX descriptors are kept unused in the ring. - Use more complete error handling for TX load problems. From scottl@FreeBSD revision 1.31 replace a few more instances of hand rolled code with the LIST_FOREACH macro. revision 1.33 In bnx_start, check the used_tx_bd count rather than the descriptors mbuf pointer to see if the transmit ring is full. The mbuf pointer is set only in the last descriptor of a multi-descriptor packet. By relying on the mbuf pointers of the earlier descriptors, the driver would sometimes overwrite a descriptor belonging to a packet that wasn't completed yet. Also, tx_chain_prod wasn't updated inside the loop, causing the wrong descriptor to be checked after the first iteration. The upshot of all this was the loss of some transmitted packets at medium to high packet rates. In bnx_tx_encap, remove a couple of old statements that shuffled around the tx_mbuf_map pointers. These now correspond 1-to-1 with the transmit descriptors, and they are not supposed to be changed. Correct a couple of inaccurate comments. From jdp@FreeBSD revision 1.43 Allow the bnx(4) driver to make use of all of the available hardware multicast hash slots. The bnx(4) hardware supports 8 slots instead of 4 like the bge(4) hardware. From Mike Karels via FreeBSD Tested by Brad, biorn@ and Johan M:son Lindman RX buffers are malloced memory of 9216 bytes. This can require from 1 to 4 DMA memory segments, depending on how the buffer is in memory. When receiving a packet, we allocate a new one to remplace the one we've used. It can need more segments than the one it remplace, leading to corrution of the RX descriptors, and a panic in bus_dmamap_sync() (DIAGNOSTIC kernels) or possibly memory corruption. Fix: - bnx_get_buf() allocates as many buffer as possible, checking the number of free RX descriptors. Because one receive buffer is not guaranteed to be remplaced on receive, call bnx_get_buf() from bnx_tick() too. This also improve error handling from bnx_get_buf(). - use MCLGET() instead of MEXTMALLOC() if we're running with the standard ethernet MTU. This gives us more receive buffers and waste less memory. Fix build on 32bit ports; should fix GENERIC_DIAGNOSTIC build problem reported by Hisashi T Fujinaka on current-users.
Revision 1.1.12.1 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:25 2007 UTC (5 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.1: +3 -19
lines
Diff to previous 1.1 (colored) next main 1.2 (colored)
sync with head.
Revision 1.1.16.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:24:25 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.1: +4 -20
lines
Diff to previous 1.1 (colored) next main 1.2 (colored)
Sync with head.
Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 9 14:23:16 2007 UTC (5 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
yamt-idlelwp-base8,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
vmlocking-base,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
jmcneill-pm-base,
jmcneill-pm,
jmcneill-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: vmlocking2,
mjf-devfs,
matt-armv6,
bouyer-xeni386
Changes since 1.1: +4 -20
lines
Diff to previous 1.1 (colored)
Protect bnx_tick() with splnet. Bring in fixes and improvements from OpenBSD: revision 1.25 - Simplify the arguments to bnx_tx_encap. - Don't copy the bd_chain head pointers into temporary objects, they are available globally. From scottl@FreeBSD revision 1.26 Overhaul the transmit path: - Eliminate the bnx_dmamap_arg structure. - Refactor the loop that fills the buffer descriptor so that it can be done with a single set of logic in a single loop instead of two sets of logic. - Eliminate the need to cache and pass descriptor indexes between the start loop and the encap function. - Change the start loop to always check the ifnet sendq for more work. From scottl@FreeBSD revision 1.27 make the exit label naming scheme match the current function names, removes a FreeBSD-ism from the original driver. revision 1.28 -> 1.30 - Ensure that at least 16 TX descriptors are kept unused in the ring. - Use more complete error handling for TX load problems. From scottl@FreeBSD revision 1.31 replace a few more instances of hand rolled code with the LIST_FOREACH macro. revision 1.33 In bnx_start, check the used_tx_bd count rather than the descriptors mbuf pointer to see if the transmit ring is full. The mbuf pointer is set only in the last descriptor of a multi-descriptor packet. By relying on the mbuf pointers of the earlier descriptors, the driver would sometimes overwrite a descriptor belonging to a packet that wasn't completed yet. Also, tx_chain_prod wasn't updated inside the loop, causing the wrong descriptor to be checked after the first iteration. The upshot of all this was the loss of some transmitted packets at medium to high packet rates. In bnx_tx_encap, remove a couple of old statements that shuffled around the tx_mbuf_map pointers. These now correspond 1-to-1 with the transmit descriptors, and they are not supposed to be changed. Correct a couple of inaccurate comments. From jdp@FreeBSD revision 1.43 Allow the bnx(4) driver to make use of all of the available hardware multicast hash slots. The bnx(4) hardware supports 8 slots instead of 4 like the bge(4) hardware. From Mike Karels via FreeBSD Tested by Brad, biorn@ and Johan M:son Lindman
Revision 1.1.10.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:41 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.1.10.1: +4848 -0
lines
Diff to previous 1.1.10.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
Sync with head.
Revision 1.1.8.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:44 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.8.1: +4848 -0
lines
Diff to previous 1.1.8.1 (colored) to branchpoint 1.1 (colored)
sync with head.
Revision 1.1.6.2 / (download) - annotate - [select for diffs], Sat Dec 23 14:43:47 2006 UTC (5 years, 5 months ago) by ghen
Branch: netbsd-3
Changes since 1.1.6.1: +4848 -0
lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored)
Pull up following revision(s) (requested by bouyer in ticket #1608): sys/arch/i386/conf/INSTALL: revision 1.299 via patch sys/arch/i386/conf/XEN2_DOM0: revision 1.20 via patch sys/arch/i386/conf/GENERIC: revision 1.803 via patch sys/dev/pci/files.pci: revision 1.275 via patch sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.218 via patch sys/arch/amd64/conf/GENERIC: revision 1.123 via patch sys/dev/pci/if_bnx.c: revision 1.1 via patch share/man/man4/bnx.4: revision 1.1-1.2 via patch distrib/sets/lists/man/mi: revision 1.959 via patch sys/arch/amd64/conf/INSTALL: revision 1.62 via patch sys/dev/microcode/bnx/bnxfw.h: revision 1.1-1.2 via patch sys/dev/pci/if_bnxreg.h: revision 1.1 via patch share/man/man4/Makefile: revision 1.417 via patch sys/arch/i386/conf/INSTALL_LAPTOP: revision 1.112 via patch Add bnx(4), a driver for Broadcom NetXtreme II 10/100/1000 Ethernet device. Ported from OpenBSD by cube@, with some bus_dma fixes by me. Tested on i386 and amd64. Add a NetBSD RCS tag. Nx -> Ox; remove trailing whitespace.
Revision 1.1.4.2 / (download) - annotate - [select for diffs], Thu Dec 21 13:44:01 2006 UTC (5 years, 5 months ago) by tron
Branch: netbsd-4
Changes since 1.1.4.1: +4848 -0
lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)
Pull up following revision(s) (requested by bouyer in ticket #287): sys/arch/i386/conf/INSTALL: revision 1.299 sys/arch/i386/conf/XEN2_DOM0: revision 1.20 sys/arch/i386/conf/GENERIC: revision 1.803 sys/dev/pci/files.pci: revision 1.275 sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.218 sys/arch/amd64/conf/GENERIC: revision 1.123 sys/dev/pci/if_bnx.c: revision 1.1 share/man/man4/bnx.4: revision 1.1 distrib/sets/lists/man/mi: revision 1.959 sys/arch/amd64/conf/INSTALL: revision 1.62 sys/dev/microcode/bnx/bnxfw.h: revision 1.1 sys/arch/i386/conf/ALL: revision 1.76 sys/dev/pci/if_bnxreg.h: revision 1.1 share/man/man4/Makefile: revision 1.417 sys/arch/i386/conf/INSTALL_LAPTOP: revision 1.112 Add bnx(4), a driver for Broadcom NetXtreme II 10/100/1000 Ethernet device. Ported from OpenBSD by cube@, with some bus_dma fixes by me. Tested on i386 and amd64.
Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:13 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.1.2.1: +4848 -0
lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
sync with head.
Revision 1.1.10.1, Sun Dec 17 23:02:06 2006 UTC (5 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.1: +0 -4848
lines
FILE REMOVED
file if_bnxreg.h was added on branch newlock2 on 2007-01-12 00:57:41 +0000
Revision 1.1.8.1, Sun Dec 17 23:02:06 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1: +0 -4848
lines
FILE REMOVED
file if_bnxreg.h was added on branch yamt-lazymbuf on 2006-12-30 20:48:44 +0000
Revision 1.1.6.1, Sun Dec 17 23:02:06 2006 UTC (5 years, 5 months ago) by ghen
Branch: netbsd-3
Changes since 1.1: +0 -4848
lines
FILE REMOVED
file if_bnxreg.h was added on branch netbsd-3 on 2006-12-23 14:43:47 +0000
Revision 1.1.4.1, Sun Dec 17 23:02:06 2006 UTC (5 years, 5 months ago) by tron
Branch: netbsd-4
Changes since 1.1: +0 -4848
lines
FILE REMOVED
file if_bnxreg.h was added on branch netbsd-4 on 2006-12-21 13:44:01 +0000
Revision 1.1.2.1, Sun Dec 17 23:02:06 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.1: +0 -4848
lines
FILE REMOVED
file if_bnxreg.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000
Revision 1.1 / (download) - annotate - [select for diffs], Sun Dec 17 23:02:06 2006 UTC (5 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
reinoud-bufcleanup,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-splraiseipl,
yamt-lazymbuf,
yamt-idlelwp,
vmlocking,
newlock2,
netbsd-4,
netbsd-3,
mjf-ufs-trans
Add bnx(4), a driver for Broadcom NetXtreme II 10/100/1000 Ethernet device. Ported from OpenBSD by cube@, with some bus_dma fixes by me. Tested on i386 and amd64.