opnsense-src/sys/dev
Pyun YongHyeon 1a03353586 MFC r198967,199009-199011,199014,199020,199035-199036,199054
r198967:
  Correct MSI mode register bits.

r199009:
  bge(4) already switched to use UMA backed page allocator and local
  memory allocator for jumbo frame was removed long time ago. Remove
  no more used macros.

r199010:
  Do bus_dmamap_sync call only if frame size is greater than
  standard buffer size. If controller is not capable of handling
  jumbo frame, interface MTU couldn't be larger than standard MTU
  which in turn the received should be fit in standard buffer. This
  fixes bus_dmamap_sync call for jumbo ring is called even if
  interface is configured to use standard MTU.
  Also if total frame size could be fit into standard buffer don't
  use jumbo buffers.

r199011:
  Reimplement Rx buffer allocation to handle dma map load failure.
  Introduce two spare dma maps for standard buffer and jumbo buffer
  respectively. If loading a dma map failed reuse previously loaded
  dma map. This should fix unloaded dma map is used in case of dma
  map load failure. Also don't blindly unload dma map and defer
  dma map sync and unloading operation until we know dma map for new
  buffer is successfully loaded. This change saves unnecessary dma
  load/unload operation. Previously bge(4) tried to reuse mbuf
  with unloaded dma map which is really bad thing in bus_dma(9)
  perspective.
  While I'm here update if_iqdrops if we can't allocate Rx buffers.

r199014:
  Fix I mssied in r199011. Rx ring index also should be updated.
  If we fill Rx ring full instead of half we can simplify this logic
  but this requires more experimentation.

r199020:
  Tell upper layer we support long frames. ether_ifattach()
  initializes it to ETHER_HDR_LEN so we have to override it after
  calling ether_ifattch().
  While I'm here remove setting if_mtu value, it's initialized in
  ether_ifattach().

r199035:
  Don't count input errors twice, we always read input errors from
  MAC in bge_tick. Previously it used to show more number of input
  errors. I noticed actual input errors were less than 8% even for
  64 bytes UDP frames generated by netperf.
  Since we always access BGE_RXLP_LOCSTAT_IFIN_DROPS register in
  bge_tick, remove useless code protected by #ifdef notyet.

r199036:
  Count number of inbound packets which were chosen to be discarded
  as input errors. Also count out of receive BDs as input errors.

r199054:
  Partially revert r199035.
  Revision 1.158 says only lower ten bits of
  BGE_RXLP_LOCSTAT_IFIN_DROPS register is valid. For BCM5761 case it
  seems the controller maintains 16bits value for the register.
  However 16bits are still too small to count all dropped packets
  happened in a second. To get a correct counter we have to read the
  register in bge_rxeof() which would be too expensive.
2010-01-06 23:02:35 +00:00
..
aac MFC: r200251 2010-01-06 20:28:47 +00:00
acpi_support MFC 197460: 2009-10-29 15:13:36 +00:00
acpica MFC r199016: acpi: remove 'magic' ivar 2009-12-01 06:11:42 +00:00
adb MFC r199888: 2009-12-12 02:34:00 +00:00
adlink
advansys Separate the parallel scsi knowledge out of the core of the XPT, and 2009-07-10 08:18:08 +00:00
ae MFC r200993: Small spelling fix, "Ethetnet" -> "Ethernet" 2010-01-02 13:07:14 +00:00
age MFC 197627. 2009-11-29 19:29:11 +00:00
agp MFC r197950 2009-10-30 16:43:28 +00:00
aha Pass bus_get_dma_tag() into the first argument of bus_dma_create_tag() 2008-10-07 23:55:32 +00:00
ahb
ahci MFC 200977: 2010-01-05 14:03:46 +00:00
aic Snip redundant assignment. 2009-05-13 22:31:25 +00:00
aic7xxx MFC r199260: 2009-11-27 02:47:49 +00:00
alc MFC 197627. 2009-11-29 19:29:11 +00:00
ale MFC 197627. 2009-11-29 19:29:11 +00:00
amd Separate the parallel scsi knowledge out of the core of the XPT, and 2009-07-10 08:18:08 +00:00
amdsbwd MFC r199969: amdsbwd: new driver for AMD SB600/SB7xx watchdog timer 2009-12-21 05:58:55 +00:00
amdtemp MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
amr MFC: r198546 2009-11-04 12:35:35 +00:00
an Shutdown routine returns int. 2009-02-04 20:39:45 +00:00
arcmsr MFC revision 199069: 2009-11-10 00:34:25 +00:00
asmc MFC 197190: 2009-09-22 20:31:32 +00:00
asr Unmark the ASR Compat IOCTLs as BURN_BRIDGES, per scottl@ 2009-05-09 17:47:42 +00:00
ata MFC r200414: 2009-12-22 20:00:20 +00:00
ath MFC r199491: 2009-11-25 14:54:58 +00:00
atkbdc MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
auxio
bce - MFC r198320: 2009-11-15 11:30:59 +00:00
bfe Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
bge MFC r198967,199009-199011,199014,199020,199035-199036,199054 2010-01-06 23:02:35 +00:00
bktr MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
bm Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
buslogic
bwi In bwi_newstate, only zero the bssid when we stop a STA. And only 2009-06-02 16:48:10 +00:00
cardbus Minorly improved debugging. Use the DEVPRINTF macro and report the 2009-03-13 05:31:27 +00:00
cas Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
ce Use new spelling of the NG_*LEN constants. 2009-06-09 07:14:32 +00:00
cfe Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
cfi Move from using devclass_find_free_unit(cfi_diskclass, 0) to -1, since 2009-06-10 17:41:24 +00:00
ciss MFC 200637: 2009-12-31 12:58:08 +00:00
cm Remove unused ifaddr and ifreq local variables. 2009-02-12 23:55:35 +00:00
cmx
coretemp MFC r196889: 2009-09-13 10:04:08 +00:00
cp Use new spelling of the NG_*LEN constants. 2009-06-09 07:14:32 +00:00
cpuctl - Add support to atomically set/clear individual bits of a MSR register 2009-06-30 12:35:47 +00:00
cpufreq Attach the cpufreq child devices with specific orders to enforce relative 2008-08-13 16:09:40 +00:00
cs Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
ct
ctau Use new spelling of the NG_*LEN constants. 2009-06-09 07:14:32 +00:00
cx Use new spelling of the NG_*LEN constants. 2009-06-09 07:14:32 +00:00
cxgb MFC 200847: 2010-01-05 17:04:14 +00:00
cy
dc Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
dcons Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
de MFC r197461: 2009-10-05 19:29:25 +00:00
digi Remove unused files from the digi(4) driver. 2009-01-16 14:45:48 +00:00
dpt
drm MFC r198694,r198697 2009-12-13 15:03:54 +00:00
e1000 On a 32 bit kernel the igb driver may cause a page 2009-11-16 18:58:45 +00:00
ed Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
eisa strict kobj signatures: fix assortment of bus_read_ivar impls 2009-06-11 17:06:58 +00:00
en Hide an unused variable in case we compile with neither INET nor INET6. 2008-11-06 09:41:31 +00:00
ep Add a missing break in a switch statement. 2009-05-15 21:06:28 +00:00
esp o Move the MODULE_DEPEND() for cam(4) from the esp_sbus.c front-end to 2008-09-08 20:20:44 +00:00
et MFC r199563,199608-199613 2009-12-21 18:52:38 +00:00
ex Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
exca __LP64__ is what's defined, not _LP64_, according to the manual (and 2009-03-09 13:29:13 +00:00
fatm Use bus_get_dma_tag() so fatm(4) works on platforms requiring it. 2008-09-30 18:52:43 +00:00
fb - Change some softc members to be unsigned where more appropriate. 2009-04-28 20:49:47 +00:00
fdc MFC r198520, r198857: fdc(4) module unload fixes 2009-12-23 11:35:25 +00:00
fe Merge r199798 from head to stable/8: 2009-12-14 13:23:33 +00:00
firewire Fix what seems to be an obvious typo preventing the body of the 2009-06-23 09:02:24 +00:00
flash - Remove nonexistent header file from includes list 2009-05-13 18:31:28 +00:00
fxp MFC r197586: 2009-11-04 18:31:43 +00:00
gem Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
glxsb Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4). 2008-11-17 07:09:40 +00:00
hatm
hifn shutdown returns an int 2009-02-05 19:37:49 +00:00
hme Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
hptiop Use __packed from cdefs.h 2009-03-25 06:27:56 +00:00
hptmv MFp4: 2009-06-24 20:43:51 +00:00
hptrr MFC r199043: 2009-11-26 15:16:03 +00:00
hwpmc MFC 196739: 2009-12-11 12:36:02 +00:00
ic add %b formats for various registers 2009-06-21 19:17:22 +00:00
ichsmb MFC r200053,200091: ichsmb: drop default attachment to generic smbus hw 2009-12-19 11:05:42 +00:00
ichwd MFC r199015: ichwd: don't attach to isa pnp device(s) by accident 2009-11-17 09:35:13 +00:00
ida
ie Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
ieee488
if_ndis MFC r200524: 2009-12-26 18:25:52 +00:00
iicbus - Rename ds1672 and ds133x devices to "ds1672_rtc" and "ds133x_rtc" 2009-04-21 22:48:12 +00:00
iir MFC rev 200045: 2009-12-12 04:34:22 +00:00
io
ipmi MFC r200666: Fixed incorrect watchdog timeout setting. 2009-12-21 13:53:33 +00:00
ips MFC of 198329: Check pointer for NULL before dereferencing it, not after. 2009-12-27 22:50:25 +00:00
ipw For ic_opmode switch cases, provide a default label with a printf saying 2009-07-10 15:28:33 +00:00
iscsi/initiator MFC r196352: 2009-08-18 09:31:00 +00:00
isp Unbreak SBus cards which have been broken (apparently) for a while. 2009-11-05 18:25:26 +00:00
ispfw Add 8Gb card firmware. Update some 2Gb and 4Gb f/w sets. 2009-08-01 00:57:34 +00:00
iwi For ic_opmode switch cases, provide a default label with a printf saying 2009-07-10 15:28:33 +00:00
iwn For ic_opmode switch cases, provide a default label with a printf saying 2009-07-10 15:28:33 +00:00
ixgb Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
ixgbe This patch seperates the control of header split from LRO (which it 2009-09-04 22:37:03 +00:00
jme MFC r197585. 2009-11-29 18:51:58 +00:00
joy Use si_drv1 to store joy(4)'s softc. 2009-04-14 11:23:09 +00:00
kbd Move buffer management into kbd and kbdmux drivers. 2009-06-05 15:19:05 +00:00
kbdmux Use proper types in kbdmux_kbd_getc(): 2009-06-08 20:24:29 +00:00
ksyms strict kobj signatures: linker_if fixes 2009-06-11 17:05:45 +00:00
le Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
led Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
lge Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
lindev MFC r197518: 2009-12-05 20:37:46 +00:00
lmc Unbreak build. 2009-05-30 18:39:22 +00:00
malo Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
mc146818
mca strict kobj signatures: fix assortment of bus_read_ivar impls 2009-06-11 17:06:58 +00:00
mcd
md Implement global and per-uid accounting of the anonymous memory. Add 2009-06-23 20:45:22 +00:00
mem
mfi MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
mge MFC r196531-196534,196536 2009-09-16 12:07:58 +00:00
mii MFC 198813. 2009-11-29 19:46:15 +00:00
mk48txx
mlx MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
mly Convert mlx(4) and mly(4) to si_drv1 instead of dev2unit(). 2009-04-18 07:36:38 +00:00
mmc MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
mn Move mn over. One of the last stragglers in sys/pci. There's no 2008-11-02 17:04:54 +00:00
mpt Separate the parallel scsi knowledge out of the core of the XPT, and 2009-07-10 08:18:08 +00:00
mse Make mse(4) use si_drv1, instead of using unit numbers. 2009-04-20 15:15:24 +00:00
msk MFC r199413: 2009-11-29 20:19:24 +00:00
mwl MFC r198366: 2009-12-26 18:23:21 +00:00
mxge MFC:197645 2009-10-05 14:28:23 +00:00
my Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
ncv strict kobj sigs: fix assortment of device_detach and device_shutdown impls 2009-06-11 17:14:28 +00:00
nfe Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
nge Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
nmdm - Remove an unnecessary memory barrier from an atomic op. 2009-06-09 13:33:03 +00:00
nsp strict kobj sigs: fix assortment of device_detach and device_shutdown impls 2009-06-11 17:14:28 +00:00
null
nve Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
nvram
nxge Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
ofw Missed style fixes. 2009-06-14 00:15:26 +00:00
patm Remove unused variable. 2008-11-26 13:44:11 +00:00
pbio Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
pccard Another PC Card that needs the CIS strings for the Surecom EP-427X, 2009-04-24 17:27:45 +00:00
pccbb MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
pcf strict kobj signatures: fix iicbus_write impl in dev/pcf 2009-06-11 17:15:44 +00:00
pci MFC r199814 2009-12-09 22:41:50 +00:00
pcn Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
pdq Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
powermac_nvram Use si_drv1 instead of dev2unit() in powermac_nvram. 2009-04-14 13:18:39 +00:00
ppbus MFC 197772: 2009-11-04 16:58:26 +00:00
ppc Added entries for Lava SP-PCI (1 serial + 1 parallel) PCI card. The 2009-02-11 00:08:03 +00:00
pst MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
puc MFC rev 200397: 2009-12-14 17:42:40 +00:00
quicc
ral Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
random There is rubbish here 2009-05-25 22:50:11 +00:00
rc
re MFC r199565: 2009-12-03 18:48:32 +00:00
rndtest
rp MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
safe shutdown returns an int 2009-02-05 19:37:49 +00:00
sbni Disable the inline assembly crc32 routine and use the C version instead. 2008-09-10 18:42:19 +00:00
scc Make iclear return int, since that matches all function definitions of it. 2009-02-05 19:32:34 +00:00
scd
sdhci Add support for interruptless kernel dumping. 2009-02-17 19:12:15 +00:00
sec Fix Book-E/MPC85XX build. Some prototypes were wrong and got revealed with 2009-06-13 08:57:04 +00:00
sf Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
si Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
siba Use some casting to get the right addresses. This is likely unwise 2008-09-26 05:40:56 +00:00
siis MFC r200223: 2009-12-09 13:32:49 +00:00
sio remove now-redunant cardbus attachment. 2009-03-09 13:23:54 +00:00
sis Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
sk Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
smbus Make generic_intr routines match prototype. 2009-03-09 13:30:00 +00:00
smc strict kobj signatures: fix assortment of miibus_writereg impls 2009-06-11 17:14:54 +00:00
sn Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
snc Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
snp Keep this line shorter than 80 columns. 2009-05-13 19:29:50 +00:00
sound MFC r200825 2009-12-31 00:15:36 +00:00
speaker Change the type of uio_resid member of struct uio from int to ssize_t. 2009-06-25 18:46:30 +00:00
spibus strict kobj signatures: fix assortment of bus_read_ivar impls 2009-06-11 17:06:58 +00:00
ste Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
stg strict kobj sigs: fix assortment of device_detach and device_shutdown impls 2009-06-11 17:14:28 +00:00
stge Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
streams The streams ptm code is pretty awful and likely incorrect. I don't know 2009-02-16 20:12:28 +00:00
sym MFC r198719: 2009-11-09 18:09:10 +00:00
syscons MFC r199355: 2009-12-19 12:06:12 +00:00
tdfx Let tdfx(4) use si_drv1 instead of using dev2unit(). 2009-04-14 11:57:26 +00:00
ti Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
tl Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
trm Separate the parallel scsi knowledge out of the core of the XPT, and 2009-07-10 08:18:08 +00:00
tsec MFC r199580: 2009-11-27 13:38:59 +00:00
twa We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
twe MFC 200991: 2010-01-05 14:02:12 +00:00
tx Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
txp MFC r196721: 2009-09-04 16:41:17 +00:00
uart MFC r200820: 2010-01-06 20:40:41 +00:00
ubsec strict kobj sigs: fix assortment of device_detach and device_shutdown impls 2009-06-11 17:14:28 +00:00
usb Sync usbdevs to fix the build. 2009-12-31 06:59:15 +00:00
utopia
vge Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
vkbd Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
vr Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
vx MFp4: Network Adapter is redundant. 2008-08-25 05:20:17 +00:00
watchdog
wb Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
wds
wi Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
wl Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
wpi For ic_opmode switch cases, provide a default label with a printf saying 2009-07-10 15:28:33 +00:00
xe Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ 2009-06-26 11:45:06 +00:00
xen remove gratuitous comment 2009-11-25 01:51:07 +00:00
xl Make xl(4) build with Tx checksum offload. 2009-07-09 01:58:59 +00:00