]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoImplement the sadb_x_policy_priority field as it is done in Linux:
fabient [Tue, 17 Nov 2015 14:39:33 +0000 (14:39 +0000)]
Implement the sadb_x_policy_priority field as it is done in Linux:
lower priority policies are inserted first.

Submitted by: Emeric Poupon <emeric.poupon@stormshield.eu>
Reviewed by: ae
Sponsored by: Stormshield

8 years agoOff-by-one correctiont to r290980.
mav [Tue, 17 Nov 2015 14:22:56 +0000 (14:22 +0000)]
Off-by-one correctiont to r290980.

8 years agoMake firmware handle virtual ports SNS logins for us.
mav [Tue, 17 Nov 2015 14:13:55 +0000 (14:13 +0000)]
Make firmware handle virtual ports SNS logins for us.

8 years agoMake PCB structure binary compatible for old and new PMAP on ARM
zbb [Tue, 17 Nov 2015 13:09:51 +0000 (13:09 +0000)]
Make PCB structure binary compatible for old and new PMAP on ARM

This structure must be binary compatible regardless of PMAP
version being used. Create reserved section for NEW_PMAP to
make other variables be placed exactly in the same memory
addresses. This fixes kgdb/gdb behavoiur, which uses pcb.h stuctures.
The NEW_PMAP is kernel flag, so it does not propagate to the buildworld,
what makes the tools using pcb.h unable to parse PCB data.

Reviewed by:   mmel, kib
Submitted by:  Wojciech Macek <wma@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Juniper Networks Inc.
Differential Revision: https://reviews.freebsd.org/D4011

8 years agoAdd real initial support for RQSTYPE_RPT_ID_ACQ.
mav [Tue, 17 Nov 2015 13:02:44 +0000 (13:02 +0000)]
Add real initial support for RQSTYPE_RPT_ID_ACQ.

8 years agoFix buffer overflow in exynos5_ehci
zbb [Tue, 17 Nov 2015 12:50:45 +0000 (12:50 +0000)]
Fix buffer overflow in exynos5_ehci

Use proper size of exynos_ehci_softc, not the generic one.

Reviewed by:   andrew
Submitted by:  Wojciech Macek <wma@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Juniper Networks Inc.
Differential Revision: https://reviews.freebsd.org/D4189

8 years agoinstall(1) is following symlinks when installing a files, which result in
bapt [Tue, 17 Nov 2015 12:18:57 +0000 (12:18 +0000)]
install(1) is following symlinks when installing a files, which result in
inconsistency when installing new locales and may also result in failures
when reinstalling after having run make delete-old (due to previous
inconsistencies) for now recommand removing all locales until install(1) is
fixed

8 years agoJSON doesn't permit a hexadecimal notation of an integer.
ume [Tue, 17 Nov 2015 12:09:57 +0000 (12:09 +0000)]
JSON doesn't permit a hexadecimal notation of an integer.

8 years agoMake pl310_print_config static, it's not called out of pl310.c
andrew [Tue, 17 Nov 2015 11:26:35 +0000 (11:26 +0000)]
Make pl310_print_config static, it's not called out of pl310.c

Sponsored by: ABT Systems Ltd

8 years agoTake maintainership of nis(8) and yp(8), Pre-commit review
araujo [Tue, 17 Nov 2015 01:45:24 +0000 (01:45 +0000)]
Take maintainership of nis(8) and yp(8), Pre-commit review
requested.

Approved by: bapt (mentor)
Differential Revision: D4118

8 years agomnt_stat.f_iosize (which is used to set bo_bsize) must be set to
rmacklem [Tue, 17 Nov 2015 01:44:26 +0000 (01:44 +0000)]
mnt_stat.f_iosize (which is used to set bo_bsize) must be set to
the largest size of buffer cache block or the mapping of the buffer
is bogus. When a mount with rsize=4096,wsize=4096 was done, f_iosize
would be set to 4096. This resulted in corrupted directory data, since
the buffer cache block size for directories is NFS_DIRBLKSIZ (8192).
This patch fixes the code so that it always sets f_iosize to at least
NFS_DIRBLKSIZ.

Tested by: krichy@cflinux.hu
PR: 177971
MFC after: 2 weeks

8 years agoAdd a note as to why the geom_part testcases are currently commented out
ngie [Tue, 17 Nov 2015 01:07:21 +0000 (01:07 +0000)]
Add a note as to why the geom_part testcases are currently commented out
for later

Memory serves me correctly, the interface has changed

8 years agoAdd Makefiles for integrating the geom testcases into the FreeBSD
ngie [Tue, 17 Nov 2015 01:05:00 +0000 (01:05 +0000)]
Add Makefiles for integrating the geom testcases into the FreeBSD
test suite

Increase the default timeouts for some of the geom_eli testcases,
otherwise they will time out due to their length and cause a
deterministic cascade of failures with the tests

This is still a WIP

8 years ago- Use unique gmirror names
ngie [Tue, 17 Nov 2015 01:02:44 +0000 (01:02 +0000)]
- Use unique gmirror names
- Use attach_md for tracking md(4) devices
- Tear down the mirror in a consolidated cleanup routine

8 years ago- Fix directory name for pf.
glebius [Tue, 17 Nov 2015 01:01:03 +0000 (01:01 +0000)]
- Fix directory name for pf.
- Recommend my reviews for CARP.

8 years ago- Use conf.sh
ngie [Tue, 17 Nov 2015 01:01:02 +0000 (01:01 +0000)]
- Use conf.sh
- Consolidate the cleanup steps and always execute on exit
- Be more verbose on md5 failure
- Use better variable names
- Expect the testcase to fail, as noted in bug 204616

PR: 204616

8 years ago- Don't mute dd output
ngie [Tue, 17 Nov 2015 00:40:25 +0000 (00:40 +0000)]
- Don't mute dd output
- Use conv=sync with all non-ggate dd calls

8 years ago- Use conf.sh
ngie [Tue, 17 Nov 2015 00:32:39 +0000 (00:32 +0000)]
- Use conf.sh
- Consolidate the cleanup steps and always execute on exit
- Use attach_md to track md(4) devices
- Be more verbose on md5 failure
- Use better variable names
- Specify a non-standard pidfile path and port number to avoid
  collisions with other instances of ggated on the test host

8 years ago- Don't hardcode the test unit as `45`; use 47 instead
ngie [Tue, 17 Nov 2015 00:27:45 +0000 (00:27 +0000)]
- Don't hardcode the test unit as `45`; use 47 instead
- Use conf.sh
- Consolidate the cleanup steps and always execute on exit
- Use attach_md to track md(4) devices
- Be more verbose on md5 failure
- Use better variable names

8 years agoInstall a conf.sh similar to ../mirror/conf.sh
ngie [Mon, 16 Nov 2015 23:41:19 +0000 (23:41 +0000)]
Install a conf.sh similar to ../mirror/conf.sh

8 years agoUse -n to ln(1) which is compatible with GNU ln(1).
bdrewery [Mon, 16 Nov 2015 23:27:44 +0000 (23:27 +0000)]
Use -n to ln(1) which is compatible with GNU ln(1).

Sponsored by: EMC / Isilon Storage Division

8 years agoWhen the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy()
rmacklem [Mon, 16 Nov 2015 23:19:53 +0000 (23:19 +0000)]
When the smbfs iod thread (smb_iod_thread()) is shutting down, smb_iod_destroy()
would call smb_iod_request(). This call could return as soon as the
wakeup(evp) in smb_iod_main() call is done and then could destroy
the mutexes. This caused a race with the rest of smb_iod_main()s
use of these mutexes.
A crash reported on freebsd-stable@ by Christian Kratzer was
diagnosed as a use of one of these mutexes after it was destroyed.
This patch moves destruction of the mutexes from smb_iod_destroy()
to the end of smb_iod_thread(), so that they aren't destroyed before
the thread is done with them. Christian comfirmed that the patch
stopped the crashes from happening.

Reported by: ck-lists@cksoft.de (Christian Kratzer)
Tested by: ck-lists@cksoft.de (Christian Kratzer)
Diagnosed by: jhb
Reviewed by: jhb
MFC after: 2 weeks

8 years agoMute noise if no md(4) devices were attached
ngie [Mon, 16 Nov 2015 23:11:01 +0000 (23:11 +0000)]
Mute noise if no md(4) devices were attached

8 years ago- Unbreak dumpsys(9) on sparc64 after r276772
marius [Mon, 16 Nov 2015 23:02:33 +0000 (23:02 +0000)]
- Unbreak dumpsys(9) on sparc64 after r276772
- While at it, arrange #ifndefs in kern_dump.c more intelligently; it's
  rather confusing to have multiple competing and/or unused functions in
  the kernel.

8 years agoDefault MK_META_MODE from MK_DIRDEPS_BUILD
sjg [Mon, 16 Nov 2015 22:50:23 +0000 (22:50 +0000)]
Default MK_META_MODE from MK_DIRDEPS_BUILD

This allows most of the build to simply consider MK_META_MODE

Update to latest dirdeps.mk so we can do:

make -f dirdeps.mk bin/cat.i386

Reviewed by: bdrewery

8 years agoAdd pidfile support to ggated
ngie [Mon, 16 Nov 2015 22:40:49 +0000 (22:40 +0000)]
Add pidfile support to ggated

8 years agoRemove redundant copies of CDDL_CFLAGS.
imp [Mon, 16 Nov 2015 22:37:28 +0000 (22:37 +0000)]
Remove redundant copies of CDDL_CFLAGS.

8 years agoUse a more common pattern for parsing with getopt(3)
ngie [Mon, 16 Nov 2015 22:22:17 +0000 (22:22 +0000)]
Use a more common pattern for parsing with getopt(3)

8 years agoSort imports
ngie [Mon, 16 Nov 2015 22:21:10 +0000 (22:21 +0000)]
Sort imports

8 years agoI'm still interested in reviewing any code changes to lpr & friends
gad [Mon, 16 Nov 2015 22:08:49 +0000 (22:08 +0000)]
I'm still interested in reviewing any code changes to lpr & friends
    (lpc, lpd, lpq, etc).

8 years agowpi(4): import r289674
avos [Mon, 16 Nov 2015 21:55:11 +0000 (21:55 +0000)]
wpi(4): import r289674

Switch PCI register reads from using magic numbers to using the names
defined in pcireg.h

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4185

8 years ago- Check for root; all of these tests will fail if not root
ngie [Mon, 16 Nov 2015 21:50:02 +0000 (21:50 +0000)]
- Check for root; all of these tests will fail if not root
- Add attach_md/geom_test_cleanup functions to deal with the fact that many of the
  tests caused issues if one of the preceding tests failed (sometimes due to a test
  time out), which would cause a cascade of other erroneous failures due to hardcoded
  md(4) device names.

8 years agoOnly use a power of 2 for the number of receive and transmit queues.
jhb [Mon, 16 Nov 2015 21:36:50 +0000 (21:36 +0000)]
Only use a power of 2 for the number of receive and transmit queues.
Using other values causes VMXNET3_CMD_ENABLE to fail.  The Linux
driver also enforces this restriction.

Reviewed by: bryanv
MFC after: 1 week
Sponsored by: Norse
Differential Revision: https://reviews.freebsd.org/D4139

8 years agoRemove duplicate manual pages.
jkim [Mon, 16 Nov 2015 21:36:15 +0000 (21:36 +0000)]
Remove duplicate manual pages.

Reported by: brd

8 years agoWith r290566 in place it turned out that WOL previously only worked by
marius [Mon, 16 Nov 2015 21:13:57 +0000 (21:13 +0000)]
With r290566 in place it turned out that WOL previously only worked by
accident with RTL8168G and later chips when the interface actually was
brought up. This is due to the fact that with these MAC variants, RXDV
gate needs be disabled for WOL to work. So do just that in re_setwol()
when IFCAP_WOL is requested.
Reported and tested by: dhw

MFC after: 3 days

8 years agoRevert r290944. It was wrong.
bdrewery [Mon, 16 Nov 2015 21:05:38 +0000 (21:05 +0000)]
Revert r290944. It was wrong.

8 years agoFix error case for bmake to echo 0.
bdrewery [Mon, 16 Nov 2015 20:31:00 +0000 (20:31 +0000)]
Fix error case for bmake to echo 0.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoAvoid FSCHG for INSTALL_AS_USER as well.
bdrewery [Mon, 16 Nov 2015 20:18:38 +0000 (20:18 +0000)]
Avoid FSCHG for INSTALL_AS_USER as well.

PR: 194189
X-MFC-With: r290628
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd include of signal.h for signal() prototype.
rodrigc [Mon, 16 Nov 2015 17:28:04 +0000 (17:28 +0000)]
Add include of signal.h for signal() prototype.

8 years agoReplace __svc_fdset with svc_fdset.
rodrigc [Mon, 16 Nov 2015 17:25:27 +0000 (17:25 +0000)]
Replace __svc_fdset with svc_fdset.

FreeBSD lacks __svc_fdset and __svc_fdsetsize.

8 years agoDo not use SA_LEN() to dereference sa_len.
rodrigc [Mon, 16 Nov 2015 17:11:11 +0000 (17:11 +0000)]
Do not use SA_LEN() to dereference sa_len.

FreeBSD lacks the SA_LEN() macro.

8 years agoAdd include of time.h for tzset() prototype.
rodrigc [Mon, 16 Nov 2015 17:08:51 +0000 (17:08 +0000)]
Add include of time.h for tzset() prototype.

8 years agoReplace __dead with __dead2.
rodrigc [Mon, 16 Nov 2015 17:08:05 +0000 (17:08 +0000)]
Replace __dead with __dead2.

FreeBSD lacks __dead.

8 years agoAdd include of sys/param.h for MAXHOSTNAMELEN
rodrigc [Mon, 16 Nov 2015 17:06:33 +0000 (17:06 +0000)]
Add include of sys/param.h for MAXHOSTNAMELEN

8 years agoReplace __dead with __dead2.
rodrigc [Mon, 16 Nov 2015 17:03:52 +0000 (17:03 +0000)]
Replace __dead with __dead2.

FreeBSD lacks __dead.

8 years agoReplace HOST_NAME_MAX with MAXHOSTNAMELEN.
rodrigc [Mon, 16 Nov 2015 17:02:34 +0000 (17:02 +0000)]
Replace HOST_NAME_MAX with MAXHOSTNAMELEN.

FreeBSD lacks HOST_NAME_MAX.

8 years agoRemove reference to EAI_NODATA.
rodrigc [Mon, 16 Nov 2015 16:58:09 +0000 (16:58 +0000)]
Remove reference to EAI_NODATA.

It does not exist on FreeBSD.

8 years agoAdd include of <string.h> for strlen() prototype.
rodrigc [Mon, 16 Nov 2015 16:52:56 +0000 (16:52 +0000)]
Add include of <string.h> for strlen() prototype.

8 years agoConvert Makefile to FreeBSD style.
rodrigc [Mon, 16 Nov 2015 16:51:18 +0000 (16:51 +0000)]
Convert Makefile to FreeBSD style.

Add libopenbsd to link line for imsg.

8 years agoImport ypldap from OpenBSD.
rodrigc [Mon, 16 Nov 2015 16:48:43 +0000 (16:48 +0000)]
Import ypldap from OpenBSD.

ypldap -- Intended to be a drop-in replacement for ypserv, gluing in a
LDAP directory and thus providing support for users and groups stored in
LDAP for the get{pw,gr}ent family of functions.

8 years agoImprove accuracy of PMC sampling frequency
jtl [Mon, 16 Nov 2015 15:22:15 +0000 (15:22 +0000)]
Improve accuracy of PMC sampling frequency

The code tracks a counter which is the number of events until the next
sample. On context switch in, it loads the saved counter. On context
switch out, it tries to calculate a new saved counter.

Problems:

1. The saved counter was shared by all threads in a process. However, this
means that all threads would be initially loaded with the same saved
counter. However, that could result in sampling more often than once every
X number of events.

2. The calculation to determine a new saved counter was backwards. It
added when it should have subtracted, and subtracted when it should have
added. Assume a single-threaded process with a reload count of 1000 events.
Assuming the counter on context switch in was 100 and the counter on context
switch out was 50 (meaning the thread has "consumed" 50 more events), the
code would calculate a new saved counter of 150 (instead of the proper 50).

Fix:

1. As soon as the saved counter is used to initialize a monitor for a
thread on context switch in, set the saved counter to the reload count.
That way, subsequent threads to use the saved counter will get the full
reload count, assuring we sample at least once every X number of events
(across all threads).

2. Change the calculation of the saved counter. Due to the change to the
saved counter in #1, we simply need to add (modulo the reload count) the
remaining counter time we retrieve from the CPU when a thread is context
switched out.

Differential Revision: https://reviews.freebsd.org/D4122
Approved by: gnn (mentor)
MFC after: 1 month
Sponsored by: Juniper Networks

8 years agoChange the driver stats to what they really are: unsigned values.
jtl [Mon, 16 Nov 2015 15:16:09 +0000 (15:16 +0000)]
Change the driver stats to what they really are: unsigned values.

When pmcstat exits after some samples were dropped, give the user an
idea of how many were lost. (Granted, these are global numbers, but
they may still help quantify the scope of the loss.)

Differential Revision: https://reviews.freebsd.org/D4123
Approved by: gnn (mentor)
MFC after: 1 month
Sponsored by: Juniper Networks

8 years agoBring back a couple of ISO8859-15 locales:
bapt [Mon, 16 Nov 2015 12:58:47 +0000 (12:58 +0000)]
Bring back a couple of ISO8859-15 locales:
- af_ZA.ISO8859-15
- en_AU.ISO8859-15
- en_CA.ISO8859-15
- en_NZ.ISO8859-15
- en_US.ISO8859-15
- fr_CA.ISO8859-15

8 years agoAdd missing alias for zh_CN.UTF-8
bapt [Mon, 16 Nov 2015 09:48:09 +0000 (09:48 +0000)]
Add missing alias for zh_CN.UTF-8

8 years agoIntegrate tools/regression/geom* into the FreeBSD test suite under sbin/geom/...
ngie [Mon, 16 Nov 2015 08:58:03 +0000 (08:58 +0000)]
Integrate tools/regression/geom* into the FreeBSD test suite under sbin/geom/...

XXX: test

8 years agoUse explicitly specified ivsize instead of blocksize when we mean IV size.
ae [Mon, 16 Nov 2015 07:10:42 +0000 (07:10 +0000)]
Use explicitly specified ivsize instead of blocksize when we mean IV size.
Set zero ivsize for enc_xform_null and remove special handling from
xform_esp.c.

Reviewed by: gnn
Differential Revision: https://reviews.freebsd.org/D1503

8 years agoMFhead @ r290922
ngie [Mon, 16 Nov 2015 07:03:00 +0000 (07:03 +0000)]
MFhead @ r290922

8 years agoRemove directory made obsolete by r290905
ngie [Mon, 16 Nov 2015 06:56:45 +0000 (06:56 +0000)]
Remove directory made obsolete by r290905

MFC after: 1 week
X-MFC with: r290905
X-MFC note: stable/10 only
Sponsored by: EMC / Isilon Storage Division

8 years agoConvert `make regress` to `make check`
ngie [Mon, 16 Nov 2015 06:52:11 +0000 (06:52 +0000)]
Convert `make regress` to `make check`

`make check` is the shorter, and is more standard than `make regress` or `make test`

8 years agoRework the test which raises OOM condition. Right now, the code
kib [Mon, 16 Nov 2015 06:26:26 +0000 (06:26 +0000)]
Rework the test which raises OOM condition.  Right now, the code
checks for the swap space consumption plus checks that the amount of
the free pages exceeds some limit, in case pagedeamon did not coped
with the page shortage in one of the late passes.  This is wrong
because it does not account for the presence of the reclamaible pages
in the queues which are not selectable for reclaim immediately.  E.g.,
on the swap-less systems, large active queue easily triggered OOM.

Instead, only raise OOM when pagedaemon is unable to produce a free
page in several back-to-back passes.  Track the failed passes per
pagedaemon thread.

The number of passes to trigger OOM was selected empirically and
tested both on small (32M-64M i386 VM) and large (32G amd64)
configurations.  If the specifics of the load require tuning, sysctl
vm.pageout_oom_seq sets the number of back-to-back passes which must
fail before OOM is raised.  Each pass takes 1/2 of seconds.  Less the
value, more sensible the pagedaemon is to the page shortage.

In future, some heuristic to calculate the value of the tunable might
be designed based on the system configuration and load.  But before it
can be done, the i/o system must be fixed to reliably time-out
pagedaemon writes, even if waiting for the memory to proceed.  Then,
code can account for the in-flight page-outs and postpone OOM until
all of them finished, which should reduce the need in tuning.  Right
now, ignoring the in-flight writes and the counter allows to break
deadlocks due to write path doing sleepable memory allocations.

Reported by: Dmitry Sivachenko, bde, many others
Tested by: pho, bde, tuexen (arm)
Reviewed by: alc
Discussed with: bde, imp
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

8 years agoDon't need cast malloc.
araujo [Mon, 16 Nov 2015 06:17:12 +0000 (06:17 +0000)]
Don't need cast malloc.

Approved by: rodrigc (mentor)
Differential Revision: D4175

8 years agoAdd QCA9533 to the list of SoCs that require IRQ's be ACKed.
adrian [Mon, 16 Nov 2015 06:15:01 +0000 (06:15 +0000)]
Add QCA9533 to the list of SoCs that require IRQ's be ACKed.

8 years agoDo not use vmspace_resident_count() for the OOM process selection.
kib [Mon, 16 Nov 2015 06:02:11 +0000 (06:02 +0000)]
Do not use vmspace_resident_count() for the OOM process selection.
Residency count track the number of pte entries installed into the
current pmap, which does not reflect the consumption of the physical
memory by the address map.  Due to several mechanisms like pv entries
reclamation, copy on write etc. the resident pte entries count may be
much less than the amount of physical memory kept by the process.

Provide the OOM-specific vm_pageout_oom_pagecount() function which
estimates the amount of reclamaible memory which could be stolen if
the process is killed.

Reported and tested by: pho
Reviewed by: alc
Comments text by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

8 years agoMFhead @ r290915
ngie [Mon, 16 Nov 2015 06:02:09 +0000 (06:02 +0000)]
MFhead @ r290915

8 years agoVM daemon works in parallel with the pagedaemon threads, and, among
kib [Mon, 16 Nov 2015 05:52:04 +0000 (05:52 +0000)]
VM daemon works in parallel with the pagedaemon threads, and, among
other actions, swaps out kernel stacks of the processes.  On the other
hand, currentl OOM logic which selects a process to kill in the
critical condition, skips process with swapped-out thread.  Under some
loads, this results in the big(gest) process being ignored by OOM.

Do not skip a process which has inhibited thread due to the swap-out,
in the OOM selection loop.  Note that killing such process requires
the thread stack page-in, but sometimes this is the only way to
recover.

Reported and tested by: pho
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

8 years agoIntegrate tools/regression/pipe in to the FreeBSD test suite as
ngie [Mon, 16 Nov 2015 05:38:40 +0000 (05:38 +0000)]
Integrate tools/regression/pipe in to the FreeBSD test suite as
tests/sys/kern/pipe

- Fix style(9) bugs
- Fix compiler warnings
- Use `nitems(x)` instead of `sizeof(x) / sizeof(*x)` pattern

The testcases will be converted over to ATF eventually, but for now will be
integrated in as plain C tests

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoPort contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSD
ngie [Mon, 16 Nov 2015 05:28:14 +0000 (05:28 +0000)]
Port contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSD

- Add missing headers
- Ensure mqueuefs is loaded
- Make sure the mqueuefs path is absolute and relative to /
- Cast the result of mq_open returning -1 to (mqd_t) to mute a compiler
  warning

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoIntegrate contrib/netbsd-tests/kernel/t_lockf.c into the FreeBSD test suite as
ngie [Mon, 16 Nov 2015 04:56:14 +0000 (04:56 +0000)]
Integrate contrib/netbsd-tests/kernel/t_lockf.c into the FreeBSD test suite as
tests/sys/kern/lockf_test

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoIgnore EINTR from usleep(3) in try_locks(..)
ngie [Mon, 16 Nov 2015 04:53:13 +0000 (04:53 +0000)]
Ignore EINTR from usleep(3) in try_locks(..)

NetBSD's usleep(3) only returns -1/sets errno=EINVAL when `microseconds`
is one million or more

MFC after: 3 days
Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd initial support for the QCA953x ("Honeybee") from Qualcomm Atheros.
adrian [Mon, 16 Nov 2015 04:28:00 +0000 (04:28 +0000)]
Add initial support for the QCA953x ("Honeybee") from Qualcomm Atheros.

The QCA953x SoC is an integrated 2x2 2GHz 11n + MIPS24k core, with
a 5 port FE switch, gige WAN port, and all the same stuff you'd find on
its predecessor - the AR9331.

However, buried deep in here somewhere is also a PCIe EP/RC for various
applications and some other weird bits I don't yet know about.

This is enough to get the reference board up and booting.  I haven't yet
had it pass lots of packets - I need to finalise the ethernet switch
bits and the GMAC configuration (ie, how the ethernet ports and switch
are wired up) and I'll bring that in when I commit the base configuration
files to use the thing.

The wifi stuff will come much later.  I have to port that support from
Linux ath9k and extend our vendor HAL to support it.

The reference board (AP143) comes with 32MB RAM and 4MB flash, so in order
to use it I need to get USB working fully so I can run root from there.

Thankyou to Qualcomm Atheros for access to the reference design board.

Details:

* Add register definitions from openwrt;
* It looks like a QCA955x but shrunk down to a QCA933x footprint, so
  use the QCA955x bits and fix up the clock detection code to do the
  QCA953x bits (they're very subtly different);
* Teach GPIO about it;
* Teach EHCI about it;
* Teach if_arge about it;
* Teach the CPU detection code about it.

Tested:

* AP143, QCA9533v2 SoC

Obtained from: Linux, Linux OpenWRT

8 years agoAdd some initial tests for SLIST and STAILQ macros
ngie [Mon, 16 Nov 2015 04:15:39 +0000 (04:15 +0000)]
Add some initial tests for SLIST and STAILQ macros

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoIntegrate contrib/netbsd-tests/lib/libcrypt/t_crypt.c in to the FreeBSD
ngie [Mon, 16 Nov 2015 04:06:14 +0000 (04:06 +0000)]
Integrate contrib/netbsd-tests/lib/libcrypt/t_crypt.c in to the FreeBSD
test suite as lib/libcrypt/crypt_test

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoExpect all testcases dealing with invalid salts to fail on FreeBSD
ngie [Mon, 16 Nov 2015 04:04:05 +0000 (04:04 +0000)]
Expect all testcases dealing with invalid salts to fail on FreeBSD

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoFix path for symlinks.
rodrigc [Mon, 16 Nov 2015 04:02:24 +0000 (04:02 +0000)]
Fix path for symlinks.

Reviewed by: ngie

8 years agoIntegrate acct(2) testcase in as tests/sys/kern/acct/acct_test
ngie [Mon, 16 Nov 2015 03:32:12 +0000 (03:32 +0000)]
Integrate acct(2) testcase in as tests/sys/kern/acct/acct_test

The :encode_tv_random_million testcase fails the epsilon tests a few thousand
times out of one million, so expect the testcase to fail

MFC after: 1 week
Submitted by: keramida
Sponsored by: EMC / Isilon Storage Division

8 years agoIntegrate kern/kern_acct.c testcase in as tests/sys/kern/acct/acct_test
ngie [Mon, 16 Nov 2015 03:28:28 +0000 (03:28 +0000)]
Integrate kern/kern_acct.c testcase in as tests/sys/kern/acct/acct_test

The :encode_tv_random_million testcase fails the epsilon tests few thousand
times out of one million, so expect the testcase to fail

MFC after: 1 week
Submitted by: keramida
Sponsored by: EMC / Isilon Storage Division

8 years agoDon't need cast malloc.
araujo [Mon, 16 Nov 2015 03:18:40 +0000 (03:18 +0000)]
Don't need cast malloc.

Approved by: rodrigc (mentor)
Differential Revision: D4117

8 years agoEnable pjdfstest in the FreeBSD test suite by default to get some
ngie [Mon, 16 Nov 2015 02:27:38 +0000 (02:27 +0000)]
Enable pjdfstest in the FreeBSD test suite by default to get some
coverage on the root file system

Sponsored by: EMC / Isilon Storage Division

8 years agoMFhead @ r290899
ngie [Mon, 16 Nov 2015 02:00:12 +0000 (02:00 +0000)]
MFhead @ r290899

8 years agoIf you backup a large file that is mostly holes, previously we'd issue
jmg [Mon, 16 Nov 2015 01:29:58 +0000 (01:29 +0000)]
If you backup a large file that is mostly holes, previously we'd issue
a seek for every block...  For large (Exabyte sized files) this would
issue lots of unneeded seeks, so combine them...

Thanks for the work Jan, sorry took so long to commit...  And an item
completed off the IdeasPage!

Submitted by: Jan Sucan

8 years agoFix unused-but-set-variable
bapt [Sun, 15 Nov 2015 20:44:22 +0000 (20:44 +0000)]
Fix unused-but-set-variable

Spotted by: gcc 5.2

8 years agoRemove trailing spaces at end of lines
bapt [Sun, 15 Nov 2015 20:00:00 +0000 (20:00 +0000)]
Remove trailing spaces at end of lines

8 years agoUpdate the list of files to be removed in case world is built WITHOUT_LOCALES
bapt [Sun, 15 Nov 2015 19:58:05 +0000 (19:58 +0000)]
Update the list of files to be removed in case world is built WITHOUT_LOCALES

8 years agoDisable -Wformat with scanfloat_test when compiling with gcc to avoid a
ngie [Sun, 15 Nov 2015 18:56:58 +0000 (18:56 +0000)]
Disable -Wformat with scanfloat_test when compiling with gcc to avoid a
"use of assignment suppression and length modifier together in scanf format"
warning on line 90 (it's intentional)

MFC after: 1 week
X-MFC with: r290537, r290856, r290860
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd NO_WERROR and WARNS to PROG_OVERRIDE_VARS for bsd.prog.mk compatibility
ngie [Sun, 15 Nov 2015 18:51:48 +0000 (18:51 +0000)]
Add NO_WERROR and WARNS to PROG_OVERRIDE_VARS for bsd.prog.mk compatibility

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoRedo r290847: use #ifdef __NetBSD__ on all the non-public APIs to
ngie [Sun, 15 Nov 2015 18:49:31 +0000 (18:49 +0000)]
Redo r290847: use #ifdef __NetBSD__ on all the non-public APIs to
mute -Wunused-but-set-variable warnings with gcc dealing with the
function calls

X-MFC with: r290847
MFC after: 1 week
Reported by: gcc
Sponsored by: EMC / Isilon Storage Division

8 years agoFix -Wformat issues
ngie [Sun, 15 Nov 2015 18:45:04 +0000 (18:45 +0000)]
Fix -Wformat issues

X-MFC with: r290563
MFC after: 1 week
Reported by: gcc
Sponsored by: EMC / Isilon Storage Division

8 years agoBring back the ability of passing cached route via nd6_output_ifp().
melifaro [Sun, 15 Nov 2015 16:02:22 +0000 (16:02 +0000)]
Bring back the ability of passing cached route via nd6_output_ifp().

8 years agoRegenerate locales after readding ISO8859-1 for locales that have ISO8859-15
bapt [Sun, 15 Nov 2015 14:51:10 +0000 (14:51 +0000)]
Regenerate locales after readding ISO8859-1 for locales that have ISO8859-15

Requested by: arche

8 years agoGenerate in the FreeBSD keyword when generating the Makefiles
bapt [Sun, 15 Nov 2015 14:34:29 +0000 (14:34 +0000)]
Generate in the FreeBSD keyword when generating the Makefiles

8 years agoAdd ISO8859-1 everywhere ISO8859-15 exists
bapt [Sun, 15 Nov 2015 14:19:56 +0000 (14:19 +0000)]
Add ISO8859-1 everywhere ISO8859-15 exists

8 years agoAllow to generate the locale when the source directory is not /usr/src
bapt [Sun, 15 Nov 2015 14:19:08 +0000 (14:19 +0000)]
Allow to generate the locale when the source directory is not /usr/src

8 years agoSimplify a bit the aliases generation
bapt [Sun, 15 Nov 2015 13:09:08 +0000 (13:09 +0000)]
Simplify a bit the aliases generation

8 years agoDoh, commit in a wrong directory. Fix r290857.
trasz [Sun, 15 Nov 2015 12:50:14 +0000 (12:50 +0000)]
Doh, commit in a wrong directory.  Fix r290857.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoRemove unused variables to fix building world
bapt [Sun, 15 Nov 2015 12:48:42 +0000 (12:48 +0000)]
Remove unused variables to fix building world

8 years agoRework locale-links to not make symlinks on directories but symlinks on files
bapt [Sun, 15 Nov 2015 12:44:31 +0000 (12:44 +0000)]
Rework locale-links to not make symlinks on directories but symlinks on files

The goal here is to make the upgrade seamless for users
Add aliases for zh_HK
Remove bad symlinks created by previous bad upgrade procedure.
Complete ObsoleteFiles.inc with more locales that have been removed

8 years agoSpeed up rctl operation with large rulesets, by holding the lock
trasz [Sun, 15 Nov 2015 12:10:51 +0000 (12:10 +0000)]
Speed up rctl operation with large rulesets, by holding the lock
during iteration instead of relocking it for each traversed rule.

Reviewed by: mjg@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D4110

8 years agoalso skip the definition of ':fopen_regular' to avoid the build to fail due to
bapt [Sun, 15 Nov 2015 11:18:37 +0000 (11:18 +0000)]
also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros

8 years agoIncrease reset assertion time from 10 to 100us.
mav [Sun, 15 Nov 2015 10:58:01 +0000 (10:58 +0000)]
Increase reset assertion time from 10 to 100us.

On my own tests I see no effect from this change, but I also can't
reproduce the reported problem in general.

PR: 127391
PR: 204554
Submitted by: satz@iranger.com
MFC after: 2 weeks

8 years agoChange WARNS to 2 across the board with all the libc testcases
ngie [Sun, 15 Nov 2015 05:21:58 +0000 (05:21 +0000)]
Change WARNS to 2 across the board with all the libc testcases

This effectively "reverts" r290846

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division