Commit Graph

215016 Commits

Author SHA1 Message Date
mav
82a6376e2a Rework r290504. 2015-11-07 19:33:57 +00:00
mav
f8767e9255 Specify VP when sending a marker. 2015-11-07 19:03:47 +00:00
cem
c56fbbf66e Flesh out sysctl types further (follow-up of r290475)
Use the right intmax_t type instead of intptr_t in a few remaining
places.

Add support for CTLFLAG_TUN for the new fixed with types.  Bruce will be
upset that the new handlers silently truncate tuned quad-sized inputs,
but so do all of the existing handlers.

Add the new types to debug_dump_node, for whatever use that is.

Bump FreeBSD_version again, for good measure.  We are changing
SYSCTL_HANDLER_ARGS and a member of struct sysctl_oid to intmax_t.

Correct the sysctl typed NULL values for the fixed-width types.  (Hat
tip: hps@.)

Suggested by:	hps (partial)
Sponsored by:	EMC / Isilon Storage Division
2015-11-07 18:26:32 +00:00
mav
0108c7a6e0 Make ISP_SLEEP() really sleep instead of spinning.
While there, simplify the wait logic.
2015-11-07 18:26:02 +00:00
bapt
81886164a5 Add a note about the inpact on databases of the changes in collation support
Reported by:	girgen
2015-11-07 17:54:51 +00:00
bapt
397e26d135 Run memset only after having checked the return of malloc
Submitted by:	pluknet
2015-11-07 16:45:51 +00:00
bapt
130223d5a3 Workaround an issue on i386 to unbreak the build until the real issue is tracked
down
2015-11-07 16:22:29 +00:00
bapt
228f1040d8 Fix build on arm64 2015-11-07 15:03:45 +00:00
bapt
6fd9bada6c Stop enforcing LC_COLLATE to C unicode collation is now supported 2015-11-07 12:50:20 +00:00
bapt
48edc92a31 Add an UPDATING entry about the changed of behaviour for listed files due to
now supporting correctly string collation
2015-11-07 12:48:29 +00:00
bapt
5212dce00b Bump __FreeBSD_version modification of the locales 2015-11-07 12:45:52 +00:00
bapt
9494ce3e99 Improve collation string and locales support
Merge collation support from Illumos and DragonflyBSD.

Locales are now generated with the new localedef(1) tool from CLDR POSIX files.
The generated files are now identified as "BSD 1.0" format.

The libc now only read "BSD 1.0" locales definitions, all other version will be
set to "C"
The localedef(1) tool has been imported from Illumos and modified to use tree(3)
instead of the CDDL avl(3)
A set of tool created by edwin@ and extended by marino@ for dragonfly has been
added to be able to generate locales and the Makefiles from the vanilla CLDR
unicode databases + a universal UTF-8 charmap (by marino@)
Update the locales to unicode v27
Given our regex(3) does not support multibyte (yet) it has been forced to always
use locale C
Remove now unused colldef(1) and mklocale(1)
Finish implementing the numeric BSD extension for ctypes
The number of supported locales has grown from 175 to 250 locales. Among the new
locales: 6 Arabic locales (AE EG JO MA QA SA), Different variations of spanish
locales.
Added new 3 components locales for mn_Cyrl_MN, sr_Cyrl_RS sr_Latn_RS,
zh_Hans_CN, zh_Hant_HK and zh_Hant_TW. Some aliases has been for 2 components
version when possible.

Thanks: Garrett D'Amore (Illumos) who made sure all his work was done under
BSD license!, Edwin Groothuis (edwin@) for the work he made on tools to be able
to generate locales definition usable in freebsd sources out of vanilla CLDR
definitions, John Marino (DragonflyBSD) who first merge the Illumos work into
Dragonfly and spent hours tracking down bugs.
2015-11-07 12:43:35 +00:00
kib
efe0e263f9 Correct the argument type in the sysctl_add_oid(9) prototype. On
ILP32 machines, intptr_t and intmax_t are different types.

Submitted by:	skra
2015-11-07 12:33:30 +00:00
kib
fb7974b8b4 Move intmax_t and uintmax_t type declarations to sys/_stdint.h to give
it an exposure needed for use in sys/sysctl.h.

Suggested by:	bde
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2015-11-07 12:30:43 +00:00
takawata
949bec955d Fix encryption error handling.
Close l2cap connection on encryption error.
2015-11-07 12:15:02 +00:00
bapt
6b910e5e24 Add missing header 2015-11-07 12:11:17 +00:00
hselasky
76e6780928 Add helper function to check if a USB page cache buffer is properly
aligned to reduce the use of bounce buffers in PIO mode.

MFC after:	1 week
2015-11-07 11:40:35 +00:00
bapt
d54fab7bc0 Catchup with latest changes for ObsoleteFiles in case base is built using
WITHOUT_LOCALE knob
2015-11-07 11:28:25 +00:00
bapt
601b9df110 Readd LOCALEDIR definition removed by accident 2015-11-07 11:26:14 +00:00
melifaro
595bcb4ce1 Unify setting lladdr for AF_INET[6]. 2015-11-07 11:12:00 +00:00
bapt
bd9546d6f6 Fix typo 2015-11-07 11:08:19 +00:00
bapt
41e30bab0f Merge from head r290483 2015-11-07 11:02:33 +00:00
emaste
c2f5f67bd9 arm64: build em(4) and igb(4) modules
Sponsored by:	The FreeBSD Foundation
2015-11-07 04:49:39 +00:00
emaste
362674ea32 arm64: add igb(4) to GENERIC
We have em(4) in GENERIC already and so also supporting the related
igb(4) makes sense.

Sponsored by:	The FreeBSD Foundation
2015-11-07 04:46:34 +00:00
adrian
4c139fdba3 Add a sched_yield() to work around low memory conditions in the current code.
Things seem to get stuck in low memory conditions where no bufs are available,
the reclamation path is called to wakeup the daemon, but no sleeping is done.
Because of this, we are stuck in a tight loop in the current process and
never run said reclamation path.

This was introduced in r289279 . This is only a temporary workaround
to restore system usefulness until the more permanent solutions can be
found.

Tested:

* Carambola2, 64MB (and 32MB by manual config.)
2015-11-07 04:04:00 +00:00
bapt
05540ecb96 Protecting against rm -rf / is now POSIXLY_CORRECT per posix 1003.1
edition 2013. No need anymore to disable the protection if one set
the POXILY_CORRECT environment variable.

Reviewed by:	imp
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D4092
2015-11-07 02:18:19 +00:00
cem
b3a334d851 Final follow-up to r290475: Bump __FreeBSD_version
Because we changed sysctl_add_oid(9) ABI, which surely breaks ABI
compatibility for out-of-tree modules.

Sponsored by:	EMC / Isilon Storage Division
2015-11-07 02:03:06 +00:00
bapt
65d73d8ca1 Improve soelim(1) manpages
Submitted by:	Sascha Wildner <saw@online.de>
2015-11-07 01:58:23 +00:00
cem
ca367cb477 Another follow-up to r290475: Bump .Dd in sysctl_add_oid.9
Sponsored by:	EMC / Isilon Storage Division
2015-11-07 01:58:17 +00:00
cem
82ece5aa34 Follow-up to r290475: Add sysctl(8) support for added types
Sponsored by:	EMC / Isilon Storage Division
2015-11-07 01:56:32 +00:00
cem
65f14c5699 Round out SYSCTL macros to the full set of fixed-width types
Add S8, S16, S32, and U32 types;  add SYSCTL*() macros for them, as well
as for the existing 64-bit types.  (While SYSCTL*QUAD and UQUAD macros
already exist, they do not take the same sort of 'val' parameter that
the other macros do.)

Clean up the documented "types" in the sysctl.9 document.  (These are
macros and thus not real types, but the manual page documents intent.)

The sysctl_add_oid(9) arg2 has been bumped from intptr_t to intmax_t to
accommodate 64-bit types on 32-bit pointer architectures.

This is just the kernel support piece; the userspace sysctl(1) support
will follow in a later patch.

Submitted by:	Ravi Pokala <rpokala@panasas.com>
Reviewed by:	cem
Relnotes:	no
Sponsored by:	Panasas
Differential Revision:	https://reviews.freebsd.org/D4091
2015-11-07 01:43:01 +00:00
adrian
11c209f341 ath(4) - reflect whether this is a full or fast channel change.
It's no longer "outdoor."
2015-11-07 00:51:51 +00:00
mjg
bc4e60465f fd: implement kern.proc.nfds sysctl
Intended purpose is to provide an equivalent of OpenBSD's getdtablecount
syscall for the compat library..
2015-11-07 00:18:14 +00:00
skra
01e556384d Set correct code for signal in abort_align() routine.
Remove superfluous printf() and both unnecessary and obsolete comments.

Approved by:	kib (mentor)
2015-11-06 23:17:00 +00:00
adrian
7ba24ae636 [netinet6]: Create a new IPv6 netisr which expects the frames to have been verified.
This is required for fragments and encapsulated data (eg tunneling) to be redistributed
to the RSS bucket based on the eventual IPv6 header and protocol (TCP, UDP, etc) header.

* Add an mbuf tag with the state of IPv6 options parsing before the frame is queued
  into the direct dispatch handler;
* Continue processing and complete the frame reception in the correct RSS bucket /
  netisr context.

Testing results are in the phabricator review.

Differential Revision:	https://reviews.freebsd.org/D3563
Submitted by:	Tiwei Bie <btw@mail.ustc.edu.cn>
2015-11-06 23:07:43 +00:00
dim
5c556d172b Add maintainer entries for llvm, lldb, compiler-rt, libc++ and libcxxrt. 2015-11-06 22:24:41 +00:00
tuexen
61b7939ede Use the correct length. The wrong one was too large.
MFC after: 3 days
2015-11-06 22:08:05 +00:00
bdrewery
e0ffee7d01 The 'buildenv' target can safely be ran with '+'. 2015-11-06 21:49:17 +00:00
smh
6ee330f608 Switch zfs_panic_recover to panic for bad DVA
As reported by Coverity a null pointer de-reference panic would be triggered
when zfs_recover was set so switch to straight panic as it can never be
recovered.

Reported by: Coverity Scan
MFC after:	1
X-MFC-With:	r290401
Sponsored by:	Multiplay
2015-11-06 20:45:19 +00:00
cognet
ef848af003 Include opt_platform.h to get FDT defined. 2015-11-06 20:12:31 +00:00
asomers
d527e5dce9 Always check the return value of lseek.
This is a follow-up to r289845, which only fixed one occurence of CID
1009429.

Coverity CID:	1009429
Reviewed by:	markj
MFC after:	2 weeks
X-MFC-With:	r289845
Sponsored by:	Spectra Logic
Differential Revision:	https://reviews.freebsd.org/D4096
2015-11-06 19:18:20 +00:00
mav
bb5898dcfd Removed unused malloc types.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after:	1 week
2015-11-06 18:50:01 +00:00
jkim
05f60ecd0c Fix a typo. I did not mean it, really. 2015-11-06 18:24:49 +00:00
jkim
6b8d903c12 Clean up OpenSSL makefiles. 2015-11-06 17:39:17 +00:00
des
90d6699fcc Refresh my entries 2015-11-06 17:29:51 +00:00
mav
ea0bf14fa7 Add two more KASSERTs. 2015-11-06 17:29:21 +00:00
skra
e38c1c2c82 Make interrupt dispatching MP safe. Use GPU interrupt bit in per-core
interrupt status register to process shared interrupts only if the bit
is active and only on core to which they are routed.

Reviewed by:	imp, loos
Approved by:	kib (mentor)
Differential Revision:	https://reviews.freebsd.org/D3723
2015-11-06 17:12:33 +00:00
jimharris
31835e2e2b I am still maintaining iscsi, nvme, nvd and nvmecontrol. 2015-11-06 16:54:17 +00:00
jilles
d7236e687a I still maintain sh(1). 2015-11-06 16:43:22 +00:00
avg
eb1b08efc3 zfsboottest: catch up with r241289, call zfs_spa_init() for all found pools
MFC after:	8 days
2015-11-06 16:27:22 +00:00