265376 Commits

Author SHA1 Message Date
cherry
7b6bc06aa1 Add the codepath for grant table updates for VMs with an auto
translated physmap.
2019-02-06 12:24:46 +00:00
rin
a30122656d Add StarTech USB21000S2 to list of supported adapters. 2019-02-06 12:10:00 +00:00
rin
56d037034f Add ure(4) to kernel config files. Also add PHY drivers where necessary. 2019-02-06 11:58:30 +00:00
wiz
0eb0e72b90 Fix date. Break line after Ox/Nx. 2019-02-06 11:57:17 +00:00
rin
3b61790727 Add ure(4): RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet device.
Ported from OpenBSD. Support for RX/TX checksum offload added by myself.
2019-02-06 11:55:05 +00:00
mrg
6a90450ac2 - sanitizers are updated
- add 'switched' column to port list
- update many working ports
- add a second list of cpus vs. ports that have been tested to build

remaining issues:

- eabi arm vs libgcc
- vax-gcc ICE
- ppc64-gcc ICE
- sun2 build
- ia64 libgcc
- sh3 vs. compiler_rt: udivmoddi4.c:190: undefined reference to `abort'
- x68k memswitch triggers new warnings
- sun3 bloated
- mips64* has ./usr/lib/64/libgomp.so.2 as a missing file in sets
2019-02-06 11:54:02 +00:00
mrg
6c19d726c3 move OBJECT_FMTS setting after MKCOMPAT default, so it works.
should fix mips64 builds.
2019-02-06 11:05:30 +00:00
mrg
07c9782f50 pply zlib hack for gcc 7 here too (4th occurance!) 2019-02-06 09:17:18 +00:00
mrg
7081cfef47 use strncpy() into a buffer that may not be nul terminated. 2019-02-06 09:16:49 +00:00
rin
3724c6b8dd Fix sign compare. 2019-02-06 09:15:01 +00:00
rin
c21c969408 Add ratecheck for TX errors for axen(4) and mue(4). 2019-02-06 08:38:41 +00:00
martin
013224584b Change a aprint_verbose into aprint_debug - the message does not add
real value to the dmesg(8) output.
2019-02-06 08:37:12 +00:00
rin
f5bc832226 Fix TSO support:
- Rename mue_tx_offload() to mue_tso_prepare().
- Take care of short mbuf's (paranoia).
2019-02-06 08:31:38 +00:00
rin
e166c4b412 Remove unused. 2019-02-06 08:28:11 +00:00
rin
22ab9c71f2 SIOC[GS]IFMEDIA are processed in ether_ioctl(). 2019-02-06 08:26:30 +00:00
rin
98c4b7346d Fix NULL checks after dereference. 2019-02-06 08:23:08 +00:00
rin
0e1b71aa38 Cosmetic changes; no functional changes. 2019-02-06 08:20:23 +00:00
rin
311f3c5d80 Fix panic when detach or "ifconfig down" for axen(4) and mue(4).
- Mitigate race conditions, that become critical when multiple outstanding
  transfers are enabled.
- Drop link flags earlier in foo_stop() to make sure (paranoia).
2019-02-06 08:16:49 +00:00
rin
77b515e890 Enable multiple outstanding transfers.
XXX Linux driver uses much larger numbers of transfers.
2019-02-06 08:06:59 +00:00
rin
a0ccfc08f4 Add couple of error printf.
XXX We should not to use aprint_xxx() for non-autoconf staffs.
2019-02-06 08:04:08 +00:00
rin
389dd2cc58 Oops, fix previous again. Really support TSOv4. 2019-02-06 08:01:24 +00:00
rin
982d5e623f Fix previous. 2019-02-06 07:59:24 +00:00
martin
c3c1b1c5e7 Try to avoid a (bogus) fatal warning from clang. 2019-02-06 07:56:42 +00:00
rin
6a3228dc48 Support TSOv4 (They call it LSOv1).
The adapter does not support TSOv6 (aka LSOv2).
2019-02-06 07:56:14 +00:00
mrg
8bf484fa75 bump image size by 1/8th of an MB. 2019-02-06 07:51:20 +00:00
rin
f32fb6b950 Fix padding for a full length USB packet in TX:
- Update boundary length for SS mode, taken from OpenBSD.
- Make sure everything passed to the adapter is little endian.
- Specify padding bits in a similar manner to Linux.

XXX I wonder whether this is really necessary...
2019-02-06 07:48:33 +00:00
rin
6adf8560d1 Cosmetic changes; no functional changes. 2019-02-06 07:35:46 +00:00
mrg
e1052b82ae - clean the .tmp kernel targets as well 2019-02-06 07:33:08 +00:00
mrg
d0cf29a1ac - add or adjust fallthru comments 2019-02-06 07:32:50 +00:00
rin
d36d652c39 Drop AXEN_MEDIUM_ALWAYS_ONE (from Linux), which reduces drop erros in RX. 2019-02-06 07:31:38 +00:00
rin
dcbb377780 Remove unused variable in axen_softc. 2019-02-06 07:28:34 +00:00
rin
54a55fb09c Remove useless memset. 2019-02-06 07:28:01 +00:00
msaitoh
989cef283f I21[01]'s RAL size is not 15 but 16(== 82575's value). Same as other OSes. 2019-02-06 07:20:13 +00:00
ryo
04a2fd0b57 improve pmap_remove
- don't lock/unlock per page in pmap_remove()
- speedup pte lookup for continuous addresses
- bring out pool_cache_put(&_pmap_pv_pool, pv) from lock/unlock section
2019-02-06 05:33:41 +00:00
ryo
706088913a fix atomic_sub_*(). it was (delta - *ptr), should be (*ptr - delta).
changing shared macro doesn't effect other atomic_ops because
(*ptr [+|^] delta) and (delta [+|^] *ptr) have same result.

atomic_sub_*() haven't used because non standard API?
2019-02-06 05:33:14 +00:00
mrg
bb063a3750 - convert shift results into logical expressions 2019-02-06 05:04:41 +00:00
christos
d5c5b6e7a1 uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation
2019-02-06 04:23:16 +00:00
mrg
7075274071 memset(0) the structure, not the pointer itself, and what ever
data happens to be after the pointer's stack location.
2019-02-06 04:20:40 +00:00
msaitoh
d5850ca752 Fix a bug that all ports' MAC address become the last port's address on
Non-OF environment.

 The Saturn multi port card has only one VPD ROM and all ports share it.
If the card has four port, it has four "local-mac-address" entries.
Before this commit, the code keep the last one and use it for all ports.
The Saturn four port card has three bridge.

e.g.
----------------
003:02:0: Intel S21152BA,S21154AE/BE PCI-PCI Bridge (PCI bridge)
004:00:0: Intel S21152BA,S21154AE/BE PCI-PCI Bridge (PCI bridge)
004:04:0: Intel S21152BA,S21154AE/BE PCI-PCI Bridge (PCI bridge)
005:00:0: National Semiconductor Saturn (ethernet network, revision 0x30)
005:01:0: National Semiconductor Saturn (ethernet network, revision 0x30)
006:02:0: National Semiconductor Saturn (ethernet network, revision 0x30)
006:03:0: National Semiconductor Saturn (ethernet network, revision 0x30)
----------------

The card assign each port's PCI device number to match the port number.
Use it as the offset of "local-mac-address". Almost the same as FreeBSD.

OK'd by mrg and martin.
2019-02-06 04:14:03 +00:00
mrg
4ba74528f8 properly check SCI_CSR_DREQ in one place. 2019-02-06 04:07:31 +00:00
mrg
2ce4187fc5 update the sanitizer source lists for gcc 7. 2019-02-06 04:00:43 +00:00
mrg
ce6b781ad1 add sanitizer_procmaps_netbsd.cc 2019-02-06 03:59:09 +00:00
oster
2b4720682c Fix GET_INFO. Yes, can probably be simplified. 2019-02-06 03:37:13 +00:00
msaitoh
ad5216afc0 Regen. 2019-02-06 03:16:35 +00:00
msaitoh
633a7066af From OpenBSD:
- Add NetXen's vendor ID and devices.
- Add Sun Neptune.
2019-02-06 03:16:08 +00:00
jmcneill
afcdf04fa6 Add support for hardware cursors where we can.
As far as I can tell, alpha blending only works between overlay channels,
and not between layers on a channel. Unfortunately, RT-Mixer1 only has
a single UI channel, so this feature is limited to RT-Mixer0.
2019-02-06 03:07:08 +00:00
christos
d9e34aad07 use 'data' directly. 2019-02-06 03:01:48 +00:00
christos
703ff33d7c revert, somehow I got the generated file in the wrong directory. 2019-02-06 02:57:39 +00:00
christos
951a692637 fix objdir build 2019-02-06 02:55:54 +00:00
oster
9401c78850 Fix logic inversion. Progress, but still broken. 2019-02-06 02:49:50 +00:00