Commit Graph

252766 Commits

Author SHA1 Message Date
nat 9923fa67d0 Ensure the XMIT flag is cleared before calling bth5_start.
This avoids a panic due to a diagnostic assertion.
2017-08-11 00:58:37 +00:00
jmcneill d73c25d138 attach audio at audiobus (for pad) 2017-08-11 00:00:25 +00:00
ginsbach 6066c254d7 PR/48182: Fix rmdir -p handling of top-level (root) directory.
XXX: pullup-8
XXX: pullup-7
XXX: pullup-6
2017-08-10 22:52:13 +00:00
sjg f20013011f Avoid full path meta file names for subdir of .OBJDIR 2017-08-10 21:07:48 +00:00
jmcneill 8622efc43c Derive the firmware name from the device's local name instead of
hard-coding BCM4340A1. Search hw.firmware.path for the firmware image
instead of loading it from the current directory.
2017-08-10 20:43:12 +00:00
jakllsch 136f040412 Fix up bcm43xx bluetooth firmware addition. Including mtree directory
addition, and using the correct spelling of the license file name.
2017-08-10 19:42:53 +00:00
perseant bb20dbc8c8 Separate the C/POSIX locale test from the rest; make it more thorough
and more correct.  This fixes a problem reported by martin@ when the
test is compiled with -funsigned-char.
2017-08-10 19:08:43 +00:00
joerg e78cfb8eb8 Add IRELATIVE support for ARM, X86 and PowerPC. 2017-08-10 19:03:25 +00:00
jakllsch 6598524cdc remove currently-unused variables that trip up the build 2017-08-10 18:45:20 +00:00
jakllsch f30bb94d65 enable 'options NTP' 2017-08-10 18:11:47 +00:00
maxv 5ea7bae924 Pff, I forgot to revert my change in these files. I committed only the
GENERIC files, and the message was:

Revert my changes, and re-enable COMPAT_NOMID, COMPAT_09 and COMPAT_43.
Several compat options happen to be dependent on the compat_43_* functions,
the availability of which is (wrongfully) controlled with COMPAT_43. Same
for COMPAT_09.
2017-08-10 17:33:32 +00:00
nat d3425666e1 Add bcm43xx bluetooth controller firmware to the lists and update relevant
makefiles.
2017-08-10 15:31:49 +00:00
nat 88a08a05ec Add firmware and license for bcm43430 bluetooth uart interface.
This firmware is used by the Raspberry Pi 3 on-board bluetooth controller.

For additional licensing information, see:
https://github.com/raspberrypi/linux/issues/1325#issuecomment-195560582
2017-08-10 15:15:48 +00:00
maxv d0a2ac1f82 Switch to the temporary stack right away when booted via multiboot. GRUB
happens to give a correct stack, but it is not guaranteed by the spec. This
temporary stack will be reset later, which is fine.

Fixes PR/50245.
2017-08-10 14:13:45 +00:00
nat b8d8a26e55 Add bluetooth serial uart devices.
RPI3 on-board bluetooth controller works with the bthfive pseudo-device.
2017-08-10 13:48:19 +00:00
nat 3c75ab2f78 Update lists for btuart h5 protocol includes. 2017-08-10 13:40:04 +00:00
maxv 54024111ec Should be comp-obsolete. 2017-08-10 13:39:08 +00:00
nat e5d9803b71 Add support for bcm 43xx devices using the btuart h5 protocol.
Currently It will only load 1 firmware image for rpi3.

To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.

Then you can use the bluetooth device btfive0.

This enables the embedded bluetooth controller on rpi3.
2017-08-10 13:34:29 +00:00
nat 90a9edb7b9 Report AUXUART fifo size on rpi3 to 1 byte. This prevents bluetooth
errors using the h5 protocol.
2017-08-10 13:25:49 +00:00
nat ed80d44262 Add support for btuart h5 3-wire protocol. 2017-08-10 13:22:19 +00:00
maxv 23b508113d Save and restore xcr0 when doing ACPI sleeps. Should fix PR/49174. 2017-08-10 13:13:03 +00:00
maxv e10782c23b Don't include opt_compat_freebsd.h. 2017-08-10 12:51:22 +00:00
maxv a3ee8e0067 Don't include opt_compat_ibcs2.h. No idea what it was doing in amd64,
since it never got implemented there.
2017-08-10 12:49:11 +00:00
maxv 5fd17e5320 Remove the svr4/ibcs2 fpu flags. 2017-08-10 12:46:31 +00:00
ozaki-r a38b799eca Write known issues on scalability 2017-08-10 09:26:55 +00:00
ozaki-r fbb0de677c Update
ipsec(4), opencrypto(9) and vlan(4) are now MP-safe.
2017-08-10 09:08:54 +00:00
ozaki-r 6b225a2f87 Use pool_cache(9) instead of pool(9) for tdb_crypto objects
The change improves network throughput especially on multi-core systems.
2017-08-10 06:33:51 +00:00
ozaki-r 64e641680f Add per-CPU rtcache to ipsec_reinject_ipstack
It reduces route lookups and also reduces rtcache lock contentions
when NET_MPSAFE is enabled.
2017-08-10 06:11:24 +00:00
ozaki-r f26d4ea4c4 Simplify ipsec_reinject_ipstack (NFC) 2017-08-10 06:08:59 +00:00
ryo 1581658c21 Add support IP_PKTINFO for sendmsg(2).
The source address or output interface can be specified by adding IP_PKTINFO
to the control part of the message on a SOCK_DGRAM or SOCK_RAW socket.

Reviewed by ozaki-r@ and christos@. thanks.
2017-08-10 04:31:58 +00:00
maya 7db80fab74 evbmips can "boot root FFSv2"
It typically uses a non-NetBSD bootloader (PMON, u-boot...) and those
don't differentiate from v1 from v2 - both are unsupported and it requires
a separate boot partition.
2017-08-09 23:01:06 +00:00
maxv 9a2e177474 Remove references to svr4 and ibcs2, they are not supported here. 2017-08-09 19:18:59 +00:00
maxv e40a481868 Remove several dead entries from the x86 makefiles. Looks like people (me
included) regularly forget to take care of this.
2017-08-09 19:11:13 +00:00
maxv b9b94af2bc Remove ibcs2_machdep.h on i386, and don't install it. 2017-08-09 18:58:51 +00:00
maxv 9f479233db Remove __i386__. 2017-08-09 18:52:00 +00:00
maxv 47d0937ef0 Remove references to compat_ibcs2. 2017-08-09 18:48:53 +00:00
maxv bd36ac747c Remove compat_ibcs2 from i386. After a discussion on port-vax, it turns
out that compat_ibcs2 does not implement the iBCS2 standard - which is
x86-specific - but rather SVR3. Our real iBCS2 implementation was a
mixture of compat_ibcs2 and compat_svr4, and was only partial. Keeping
support for this in i386 is totally irrelevant today. I also asked on
port-i386 but didn't wait long.

The main issue is that compat_ibcs2 should have been called compat_svr3.
But CVS does not support renaming files, and moving things around is both
painful and tiring, even more so when no one seems to be interested in
doing this work or in the feature at all. For now compat_ibcs2 is available
on Vax and will stay, until someone (not me) cleans it up.
2017-08-09 18:45:30 +00:00
joerg 493a7561e4 If a DF_1_NODELETE DSO has been removed from the DAG list, it still
needs to be able to resolve relocations against itself. As such, search
the referencing object explicitly last, if it hasn't been searched
before.
2017-08-09 18:44:32 +00:00
christos a2c4fad4b4 PR/52472: Edgar Fuss: Document handling of scoped IPv6 addresses by embedding
ASCII art from:
	IPv6 Core Protocols Implementation
	By Qing Li, Tatuya Jinmei, Keiichi Shima
	Page 56, Figure 2.12
2017-08-09 17:20:44 +00:00
mlelstv 5b68a5ee6d While ld(4) is MP safe, many backends are not.
Add a flag for backends that are MP safe. Take KERNEL_LOCK when calling
into a backend that doesn't have the flag set. Do the same for the
discard routine.

Fixes PR 52462.
2017-08-09 16:44:39 +00:00
mlelstv fd946ab215 Don't wait for allocation in polling mode. 2017-08-09 16:09:16 +00:00
ozaki-r b2da0132b5 MP-ify SAD (savlist)
localcount(9) is used to protect savlist of sah. The basic design is
similar to MP-ifications of SPD and SAD sahlist. Please read the
locking notes of SAD for more details.
2017-08-09 09:48:11 +00:00
ozaki-r b02651a11c Limit the number of mbufs queued for deferred key_sendup_mbuf
It's easy to be queued hundreds of mbufs on the list under heavy
network load.
2017-08-09 08:30:54 +00:00
knakahara 5e20be26d9 Add counter check to vlan(4) ATF. Implemented by s-yamaguchi@IIJ, thanks. 2017-08-09 06:19:56 +00:00
knakahara 29967db593 Fix vlan(4) obytes counter. Implemented by s-yamaguchi@IIJ, thanks. 2017-08-09 06:17:23 +00:00
ozaki-r 29764387a9 Fix that prev isn't cleared on retry 2017-08-09 06:04:41 +00:00
msaitoh 3c99b9a436 - Sprinkle static and const. No functional change.
- Print chip ID in hexadecimal instead of octal in def_match().
2017-08-09 04:45:38 +00:00
ozaki-r 89a45bc13c Fix deadlock between key_sendup_mbuf called from key_acquire and localcount_drain
If we call key_sendup_mbuf from key_acquire that is called on packet
processing, a deadlock can happen like this:
- At key_acquire, a reference to an SP (and an SA) is held
- key_sendup_mbuf will try to take key_so_mtx
- Some other thread may try to localcount_drain to the SP with
  holding key_so_mtx in say key_api_spdflush
- In this case localcount_drain never return because key_sendup_mbuf
  that has stuck on key_so_mtx never release a reference to the SP

Fix the deadlock by deferring key_sendup_mbuf to the timer
(key_timehandler).
2017-08-09 04:29:36 +00:00
ozaki-r 14719bf46b Fix locking notes of SAD 2017-08-09 03:41:11 +00:00
ginsbach 7333bec30e Make use of the defined YP errors when ypbind encounters one rather than
just returning an empty (successful) RPC result.

Don't exit when allocating memory for a new bound domain received via a RPC.
2017-08-09 01:56:42 +00:00