History log of /src/sys/dev/ic/gemvar.h |
Revision | | Date | Author | Comments |
1.28 |
| 30-Jan-2021 |
jdc | Improve handling of receive overflows. When we get an overflow, don't reset the chip if we are still receiving packets. Real overflows can happen when network and CPU(s) are loaded, so the reset is not needed in this case. Add a counter to track receive overflows (when GEM_COUNTERS is defined).
This reverts some changes (always reset on overflow) from PR port-sparc64/46260.
|
1.27 |
| 01-Mar-2020 |
thorpej | branches: 1.27.6; - Support 64-bit DMA addresses for the Tx and Rx ring addresses. - g/c and unused define.
|
1.26 |
| 13-Sep-2019 |
msaitoh | if_flags is neither int nor short. It's unsigned short.
|
1.25 |
| 13-Apr-2015 |
riastradh | branches: 1.25.18; Convert sys/dev to use <sys/rndsource.h>.
|
1.24 |
| 02-Jul-2012 |
jdc | branches: 1.24.2; 1.24.16; Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260: - add an additional watchdog for RX overflow - re-initialise the chip on device timeout Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris.
|
1.23 |
| 02-Feb-2012 |
tls | branches: 1.23.2; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.22 |
| 19-Nov-2011 |
tls | branches: 1.22.2; First step of random number subsystem rework described in <20111022023242.BA26F14A158@mail.netbsd.org>. This change includes the following:
An initial cleanup and minor reorganization of the entropy pool code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are fixed. Some effort is made to accumulate entropy more quickly at boot time.
A generic interface, "rndsink", is added, for stream generators to request that they be re-keyed with good quality entropy from the pool as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is adjusted to use the rndsink interface for rekeying, which helps address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random number generator quality is provided (libkern/rngtest.c). This is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is based on an implementation of the NIST SP800-90 CTR_DRBG by Henric Jungheim. This generator users AES in a modified counter mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers of randomness. The arc4random/arc4randbytes API is deprecated for in-kernel use. It is replaced by "cprng_strong". The current cprng_fast implementation wraps the existing arc4random implementation. The current cprng_strong implementation wraps the new CTR_DRBG implementation. Both interfaces are rekeyed from the entropy pool automatically at intervals justifiable from best current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as the old arc4randbytes(), and cprng_strong() is about 20% faster than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional kernel component, as it is required by cprng_strong, which is not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at startup time; if it fails, the system will reboot. There is approximately a 3/10000 chance of a false positive from these tests. Entropy pool _input_ from hardware random numbers is subjected to the rngtest tests at attach time, as well as the FIPS continuous-output test, to detect bad or stuck hardware RNGs; if any are detected, they are detached, but the system continues to run.
A problem with rndctl(8) is fixed -- datastructures with pointers in arrays are no longer passed to userspace (this was not a security problem, but rather a major issue for compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked up to the new generators, but the /dev/*random pseudodevices are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
|
1.21 |
| 24-Feb-2010 |
dyoung | branches: 1.21.10; A pointer typedef entails trading too much flexibility to declare const and non-const types, and the kernel uses both const and non-const PMF qualifiers and device suspensors, so change the pmf_qual_t and device_suspensor_t typedefs from "pointers to const" to non-pointer, non-const types.
|
1.20 |
| 08-Jan-2010 |
dyoung | branches: 1.20.2; Expand PMF_FN_* macros.
|
1.19 |
| 27-Jul-2009 |
dyoung | Do a complete device_t/softc split for the PCI attachment. I have not finished the device_t/softc split for the SBus attachment because I don't have an SBus gem(4) to test with.
Convert from legacy shutdownhooks to a PMF shutdown hook. Add PMF suspend/resume handlers.
Factor a detachment hook out of gem_attach(). During device attachment, track which resources are reserved in sc_attach_state, and release only those resources during detachment.
Tested on gem0 and gem1 at pci1 on a Sun Fire V120.
|
1.18 |
| 01-Feb-2008 |
jdc | branches: 1.18.10; 1.18.20; Add GEM_IS_SUN macro, and chip revision to the softc.
|
1.17 |
| 19-Jan-2008 |
dyoung | Remove unused sc_media #define.
|
1.16 |
| 05-Jan-2008 |
jdc | Add support for Sun PCI X1141A (SX fibre) cards, based on the GEM documentation, experimentation and a previous patch from John Heasley.
Add improvements to the driver based on the GEM documentation and from FreeBSD if_gem.c (rev 1.45).
|
1.15 |
| 24-Nov-2006 |
martin | branches: 1.15.2; 1.15.16; 1.15.24; 1.15.30; 1.15.38; In preparation for gem @ sbus: split the GEM registers into two halfs and provide a bus_space_handle_t for each. While there, fix a typo in gem_bitwait().
|
1.14 |
| 11-Dec-2005 |
christos | branches: 1.14.20; 1.14.22; merge ktrace-lwp.
|
1.13 |
| 28-Oct-2005 |
christos | forgot to commit this.
|
1.12 |
| 16-May-2005 |
bouyer | branches: 1.12.2; 1.12.4; Pad small packets with a static buffer at the end of the S/G list. Avoids leaking kernel memory when small packets are transmitted. Tested on a ibook G4.
|
1.11 |
| 04-Feb-2005 |
perry | branches: 1.11.4; de-__P
|
1.10 |
| 17-Oct-2004 |
heas | branches: 1.10.4; 1.10.6; Adjust/add a few comments and add defines for PCS (aka GEM_MII) FSM and interrupt registers. drop some trailing WS.
no functional changes.
|
1.9 |
| 15-May-2002 |
matt | branches: 1.9.10; 1.9.14; Only enable detailed evcnts if GEM_COUNTERS is defined. But always count interrupts.
|
1.8 |
| 15-May-2002 |
matt | Add evcnt stuff for interrupts. Fix receiver lockups. When writing the RX Kick register, we need back up on descriptor since we advanced one in the for loop. That will be the last descriptor we haven't processed which is what we should write.
|
1.7 |
| 11-May-2002 |
matt | Many fixes. Multicast hash filter works now. Autonegotiation with GigE on Mac G4's now works. XXX Checksum offload still needs to be done.
|
1.6 |
| 08-May-2002 |
matt | If the detected media is gigabit, change the gem to use GMII mode otherwise switch back to MII mode. Keep a sliding window for TX segments and when it gets > 2/3 full, request a TX interrupt (window gets reset when the h/w TX queue is empty). Add dv_xname to a few printfs. With the above changes, the gem driver will now work on Macintoshes, even in GigE mode. On a 733 PowerMac G4 it gets ~355Mb/s TX and ~280Mb/s RX to/from an Alpha XP1000.
XXX mii autoselect is still flakey.
|
1.5 |
| 18-Oct-2001 |
thorpej | branches: 1.5.4; Yet more cruft removal.
|
1.4 |
| 18-Oct-2001 |
thorpej | Remove more cruft left over from copying bits of other drivers.
|
1.3 |
| 18-Oct-2001 |
thorpej | Remove some more stuff left over from copying bits of the HME driver.
|
1.2 |
| 01-Oct-2001 |
eeh | Increase receive ring to 128 entries and handle both endian devices.
|
1.1 |
| 16-Sep-2001 |
eeh | branches: 1.1.2; 1.1.4; Driver for Sun GEM gigabit ethernet, Sun ERI 10/100, and Apple GMAC.
|
1.1.4.3 |
| 11-Oct-2001 |
fvdl | Catch up with -current. Fix some bogons in the sparc64 kbd/ms attach code. cd18xx conversion provided by mrg.
|
1.1.4.2 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.1.4.1 |
| 16-Sep-2001 |
fvdl | file gemvar.h was added on branch thorpej-devvp on 2001-10-01 12:45:36 +0000
|
1.1.2.5 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.1.2.4 |
| 22-Oct-2001 |
nathanw | Catch up to -current.
|
1.1.2.3 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.1.2.2 |
| 21-Sep-2001 |
nathanw | Catch up to -current.
|
1.1.2.1 |
| 16-Sep-2001 |
nathanw | file gemvar.h was added on branch nathanw_sa on 2001-09-21 22:35:37 +0000
|
1.5.4.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.5.4.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.5.4.1 |
| 18-Oct-2001 |
thorpej | file gemvar.h was added on branch kqueue on 2002-01-10 19:54:30 +0000
|
1.9.14.1 |
| 21-Jun-2005 |
riz | Pull up revision 1.12 (requested by bouyer in ticket #2006): Pad small packets with a static buffer at the end of the S/G list. Avoids leaking kernel memory when small packets are transmitted. Tested on a ibook G4.
|
1.9.10.3 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.9.10.2 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.9.10.1 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.10.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.10.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.11.4.1 |
| 21-Jun-2005 |
tron | Pull up revision 1.12 (requested by bouyer in ticket #484): Pad small packets with a static buffer at the end of the S/G list. Avoids leaking kernel memory when small packets are transmitted. Tested on a ibook G4.
|
1.12.4.1 |
| 02-Nov-2005 |
yamt | sync with head.
|
1.12.2.4 |
| 04-Feb-2008 |
yamt | sync with head.
|
1.12.2.3 |
| 21-Jan-2008 |
yamt | sync with head
|
1.12.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.12.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.14.22.1 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.14.20.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.15.38.2 |
| 20-Jan-2008 |
bouyer | Sync with HEAD
|
1.15.38.1 |
| 08-Jan-2008 |
bouyer | Sync with HEAD
|
1.15.30.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.15.24.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.15.24.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.15.16.1 |
| 03-Jun-2008 |
skrll | Sync with netbsd-4.
|
1.15.2.1 |
| 17-May-2008 |
bouyer | Pull up following revision(s) (requested by jdc in ticket #1145): src/share/man/man4/gem.4 1.5,1.6 via patch src/sys/arch/sparc64/conf/GENERIC 1.97 via patch src/sys/dev/ic/gem.c 1.59,1.61-1.68,1.70-1.73 via patch src/sys/dev/ic/gemreg.h 1.11 via patch src/sys/dev/ic/gemvar.h 1.16,1.18 via patch src/sys/dev/mii/bmtphy.c 1.24 via patch src/sys/dev/pci/if_gem_pci.c 1.25,1.27 via patch src/sys/dev/pci/pcidevs 1.12 via patch src/sys/dev/pci/pcidevs.h regenerate src/sys/dev/pci/pcidevs_data.h regenerate Add support for Sun PCI X1141A (SX fibre) cards. Add improvements to the driver. Disable HW UDP4 and RX TCP4 checksums because they are buggy (PR#34799) Add improvements to bmtphy.
|
1.18.20.1 |
| 15-Sep-2012 |
bouyer | Pull up following revision(s) (requested by jdc in ticket #1789): sys/dev/ic/gem.c: revision 1.99 via patch sys/dev/ic/gemvar.h: revision 1.24 via patch sys/dev/ic/gemreg.h: revision 1.15 via patch Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260: - add an additional watchdog for RX overflow - re-initialise the chip on device timeout Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris.
|
1.18.10.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.18.10.1 |
| 19-Aug-2009 |
yamt | sync with head.
|
1.20.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.21.10.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.21.10.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.22.2.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.23.2.1 |
| 05-Jul-2012 |
riz | Pull up following revision(s) (requested by jdc in ticket #401): sys/dev/ic/gem.c: revision 1.99 sys/dev/ic/gemvar.h: revision 1.24 sys/dev/ic/gemreg.h: revision 1.15 Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260: - add an additional watchdog for RX overflow - re-initialise the chip on device timeout Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris.
|
1.24.16.1 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.24.2.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.25.18.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.25.18.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.27.6.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|