des [Tue, 25 Mar 2014 11:05:34 +0000 (11:05 +0000)]
Upgrade to OpenSSH 6.6p1.
ganbold [Tue, 25 Mar 2014 08:31:47 +0000 (08:31 +0000)]
Switch to my freebsd.org emal address in copyright.
Approved by: stas (mentor)
mm [Tue, 25 Mar 2014 06:55:53 +0000 (06:55 +0000)]
Merge from projects/pf r251993 (glebius@):
De-vnet hash sizes and hash masks.
Submitted by: Nikos Vassiliadis <nvass gmx.com>
Reviewed by: trociny
MFC after: 1 month
mjg [Tue, 25 Mar 2014 03:28:58 +0000 (03:28 +0000)]
Make /dev/devctl mpsafe.
MFC after: 1 week
ganbold [Tue, 25 Mar 2014 01:34:39 +0000 (01:34 +0000)]
Add code for enabling second CPU core for A20 SoC.
Enable SMP on Cubieboard2.
Approved by: stas (mentor)
dim [Mon, 24 Mar 2014 20:30:39 +0000 (20:30 +0000)]
Apply a temporary band-aid for building devd with clang 3.4, libstdc++
and -Wsystem-headers enabled (which is the default for any non-zero
WARNS level, crazily enough!). This is primarily meant to be MFC'd as
soon as possible.
MFC after: 3 days
loos [Mon, 24 Mar 2014 20:06:27 +0000 (20:06 +0000)]
Adds the ADC driver for TI AM3xxx SoC family.
The ADC has a 12bit resolution and its raw output can be read via sysctl(8)
interface.
The driver allows the setup of ADC clock, samples average and open delay
(the number of clock cycles to wait before start the conversion).
The TSC_ADC module is set in the general purpose mode (no touchscreen
support).
Tested on Beaglebone-black.
Written based on AM335x TRM.
Reviewed by: rpaulo
Approved by: adrian (mentor)
Tested by: me, Brian J. McGovern, Sulev-Madis Silber (ketas)
dim [Mon, 24 Mar 2014 19:21:14 +0000 (19:21 +0000)]
Add a note to UPDATING about customized kernel configuration files now
requiring -gdwarf-2 for debug info, when using clang 3.4.
Suggested by: adrian
MFC after: 3 days
des [Mon, 24 Mar 2014 19:15:13 +0000 (19:15 +0000)]
Add a pre-merge script which reverts mechanical changes such as added
$FreeBSD$ tags and man page dates.
Add a post-merge script which reapplies these changes.
Run both scripts to normalize the existing code base. As a result, many
files which should have had $FreeBSD$ tags but didn't now have them.
Partly rewrite the upgrade instructions and remove the now outdated
list of tricks.
emax [Mon, 24 Mar 2014 18:13:41 +0000 (18:13 +0000)]
change defaule permissions on /dev/devstat. while i'm here remove
D_NEEDGIANT flag
Submitted by: jhb
Reviewed by: jhb, scottl, rwatson, delphij, phk
MFC after: 1 week
bdrewery [Mon, 24 Mar 2014 13:13:52 +0000 (13:13 +0000)]
Add missing LIBM to DPADD from r263650
Reported by: jilles
andrew [Mon, 24 Mar 2014 08:24:32 +0000 (08:24 +0000)]
Move an else case that was missed in r263676
emaste [Mon, 24 Mar 2014 01:21:37 +0000 (01:21 +0000)]
lldb: Invoke PT_KILL from ProcessPosix::DoDestroy
We previously sent SIGKILL to the debuggee in DoDestroy, but did not
actually detach or kill via ptrace. It seems that this somehow didn't
matter on Linux, but did on FreeBSD.
This would happen when quitting LLDB while stopped at a breakpoint, for
example. The debuggee remained stopped in ptrace (with the signal
either pending or lost). After a timeout of a second or two LLDB exits,
which caused the debuggee to resume and dump core from an unhandled
SIGTRAP.
BringProcessIntoLimbo is a poorly named wrapper for ptrace(PT_KILL)
which is the desired behaviour from DoDestroy.
http://llvm.org/pr18894
Sponsored by: DARPA, AFRL
andrew [Sun, 23 Mar 2014 21:08:18 +0000 (21:08 +0000)]
Reorder the pmap macros so "ARM_MMU_V6 + ARM_MMU_V7" is first. As they are
identical this allows us to build for both v6 and v7 together.
bz [Sun, 23 Mar 2014 20:35:58 +0000 (20:35 +0000)]
For the moment also disable interrupts on the altera-jtag-uart imitation
and force polling mode.
andrew [Sun, 23 Mar 2014 14:06:09 +0000 (14:06 +0000)]
Add the llvm/clang patch for r263619.
andrew [Sun, 23 Mar 2014 12:49:25 +0000 (12:49 +0000)]
Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental.
This targets the existing ARMv6 and ARMv7 SoCs that contain a VFP unit.
This is an optional coprocessors may not be present in all devices, however
it appears to be in all current SoCs we support.
armv6hf targets the VFP variant of the ARM EABI and our copy of gcc is too
old to support this. Because of this there are a number of WITH/WITHOUT
options that are unsupported and must be left as the default value. The
options and their required value are:
* WITH_ARM_EABI
* WITHOUT_GCC
* WITHOUT_GNUCXX
In addition, without an external toolchain, the following need to be left
as their default:
* WITH_CLANG
* WITH_CLANG_IS_CC
As there is a different method of passing float and double values to
functions the ABI is incompatible with existing armv6 binaries. To use
this a full rebuild of world is required. Because no floating point values
are passed into the kernel an armv6 kernel with VFP enabled will work with
an armv6hf userland and vice versa.
glebius [Sun, 23 Mar 2014 09:15:14 +0000 (09:15 +0000)]
Remove unneeded fake _KERNEL definition.
neel [Sat, 22 Mar 2014 22:35:57 +0000 (22:35 +0000)]
Don't lose track of the KTR entries copied from 'ktr_buf_init[]' to the
dynamically allocated 'ktr_buf[]'.
The memcpy arranges 'ktr_buf[]' such that the latest KTR entry is at
'KTR_BOOT_ENTRIES - 1'.
bdrewery [Sat, 22 Mar 2014 22:20:43 +0000 (22:20 +0000)]
Fix build with libucl
20140321
glebius [Sat, 22 Mar 2014 18:24:44 +0000 (18:24 +0000)]
sfxge: limit software Tx queue size.
Previous implementation limits put queue size only (when Tx lock can't
be acquired), but get queue may grow unboundedly which results in mbuf
pools exhaustion and latency growth.
Submitted by: Andrew Rybchenko <Andrew.Rybchenko at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
bapt [Sat, 22 Mar 2014 17:28:14 +0000 (17:28 +0000)]
Update to
20140321
This brings schema validation
MFC after: 1 week
bapt [Sat, 22 Mar 2014 17:22:29 +0000 (17:22 +0000)]
Update
20140302
In particular this brings schema validation support.
bdrewery [Sat, 22 Mar 2014 15:59:26 +0000 (15:59 +0000)]
Create a root dataset so that /root is outside of the boot environment.
Discussed with: dteske on sysinstall@
MFC after: 1 month
andrew [Sat, 22 Mar 2014 15:59:18 +0000 (15:59 +0000)]
Simplify how we build MACHINE_ARCH. There are 3 options that may be set
however only arm, armeb, armv6, and soon armv6hf will be used.
des [Sat, 22 Mar 2014 15:23:38 +0000 (15:23 +0000)]
Vendor import of OpenSSH 6.6p1.
bz [Sat, 22 Mar 2014 13:06:32 +0000 (13:06 +0000)]
For BERI on NetFPGA assume HZ=100 by default.
Remove the uart support in favour of a "jtag-uart" interface imitation
providing a much simpler interface, directly exported to the host,
allowing the toolchain to be shared with BERI on Altera. [1]
Submitted by: Jong Hun HAN (jong.han cl.cam.ac.uk) [1]
MFC after: 2 weeks
andrew [Sat, 22 Mar 2014 12:28:21 +0000 (12:28 +0000)]
Implement __flt_rounds for ARMv6 hard-float. The fpscr register stores the
current rounding mode used by the VFP unit.
mckusick [Sat, 22 Mar 2014 11:26:39 +0000 (11:26 +0000)]
Update comment to explain search order reverted to historical order
in -r254996.
Suggested by: Pedro Giffuni <pfg@FreeBSD.org>
MFC: 3 days
bdrewery [Sat, 22 Mar 2014 10:26:09 +0000 (10:26 +0000)]
Rename global cnt to vm_cnt to avoid shadowing.
To reduce the diff struct pcu.cnt field was not renamed, so
PCPU_OP(cnt.field) is still used. pc_cnt and pcpu are also used in
kvm(3) and vmstat(8). The goal was to not affect externally used KPI.
Bump __FreeBSD_version_ in case some out-of-tree module/code relies on the
the global cnt variable.
Exp-run revealed no ports using it directly.
No objection from: arch@
Sponsored by: EMC / Isilon Storage Division
andrew [Sat, 22 Mar 2014 09:23:13 +0000 (09:23 +0000)]
Pull in r201662 from upstream clang trunk:
Add FreeBSD ARM EABI hard-float support
Patch by Andrew Turner.
adrian [Sat, 22 Mar 2014 03:36:07 +0000 (03:36 +0000)]
Also set the AR5212 HAL power mode tracking in the right spot.
Tested:
* D-Link DWL-G650 NIC (AR2413), STA mode
mjg [Fri, 21 Mar 2014 19:12:05 +0000 (19:12 +0000)]
Mark the following sysctls as MPSAFE:
kern.file
kern.proc.filedesc
kern.proc.ofiledesc
MFC after: 7 days
kib [Fri, 21 Mar 2014 17:17:19 +0000 (17:17 +0000)]
Add change forgotten in r263475. Make dmaplimit accessible outside
amd64/pmap.c.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
glebius [Fri, 21 Mar 2014 17:07:18 +0000 (17:07 +0000)]
Fix breakage in ipfw+VIMAGE after r261590.
PR: kern/187665
Sponsored by: Nginx, Inc.
bdrewery [Fri, 21 Mar 2014 15:30:31 +0000 (15:30 +0000)]
nv(3) was not in 10.0.
It might be MFC'd to stable/10 for 10.1, but for now update the manual to
avoid confusion on its availability.
Discussed with: pjd
kib [Fri, 21 Mar 2014 14:25:09 +0000 (14:25 +0000)]
Fix two issues with /dev/mem access on amd64, both causing kernel page
faults.
First, for accesses to direct map region should check for the limit by
which direct map is instantiated.
Second, for accesses to the kernel map, success returned from the
kernacc(9) does not guarantee that consequent attempt to read or write
to the checked address succeed, since other thread might invalidate
the address meantime. Add a new thread private flag TDP_DEVMEMIO,
which instructs vm_fault() to return error when fault happens on the
MAP_ENTRY_NOFAULT entry, instead of panicing. The trap handler would
then see a page fault from access, and recover in normal way, making
/dev/mem access safer.
Remove GIANT_REQUIRED from the amd64 memrw(), since it is not needed
and having Giant locked does not solve issues for amd64.
Note that at least the second issue exists on other architectures, and
requires similar patching for md code.
Reported and tested by: clusteradm (gjb, sbruno)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
kib [Fri, 21 Mar 2014 13:55:57 +0000 (13:55 +0000)]
Initialize vm_map_entry member wiring_thread on the map entry creation.
This was missed in r253190.
Reported by: hps, peter
Tested by: hps
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
ae [Fri, 21 Mar 2014 09:29:01 +0000 (09:29 +0000)]
When loader(8) inspects MBR, it chooses GPT as main partition table,
when MBR contains only PMBR entry or it is bootcamp-compatible.
If MBR has PMBR entry and some other, the loader rejects it.
Make these checks to be less strict. If loader decided that PMBR
isn't suitable for GPT, it will use MBR.
Reported by: Paul Thornton
Tested by: Paul Thornton
MFC after: 1 week
jhibbits [Fri, 21 Mar 2014 04:45:57 +0000 (04:45 +0000)]
Mask out SRR1 bits that aren't exported to the MSR.
This appears to fix a strange condition with X on 32-bit PowerBooks I observed,
caused by one of these bits getting set in the mcontext, but not set in the
thread, which may be a symptom of another problem, more difficult to diagnose.
Since these bits aren't exported anyway, this change makes it more explicit that
the bits aren't MSR-related in SRR1.
MFC after: 3 weeks
pfg [Fri, 21 Mar 2014 04:33:38 +0000 (04:33 +0000)]
Revert r263449;
ext2fs: minor update to the dirpref policy.
The change in UFS r254996, reverted the change as the
older code seems to work better. This was not visible
in local testing but we can trust UFS is vastly more
exercised in diferent environments.
mjg [Fri, 21 Mar 2014 01:34:19 +0000 (01:34 +0000)]
Take filedesc lock only for reading when allocating new fdtable.
Code populating the table does this already.
MFC after: 1 week
delphij [Fri, 21 Mar 2014 01:32:25 +0000 (01:32 +0000)]
MFV 263436-263438:
3947 zpool(1M) references nonexistent zfs-features(5)
4540 zpool(1M) man page doesn't describe "readonly" property
3948 zfs sync=default is not accepted
4611 zfs(1M) still mentions 'send -r' in synopsis
4415 zpool(1M) man page missing "import -m" description
4570 Document dedupditto pool property
4572 Dedup-related documentation additions for zpool and zdb.
1371 Add -D option description to zpool(1M) manpage
4571 Add documentation for -T and interval to "zpool list"
MFC after: 2 weeks
mjg [Fri, 21 Mar 2014 01:30:33 +0000 (01:30 +0000)]
audit: plug FILEDESC_LOCK leak in audit_canon_path.
MFC after: 3 days
np [Fri, 21 Mar 2014 00:56:56 +0000 (00:56 +0000)]
cxgbe(4): Recognize the "spider" configuration where a T5 card's 40G
QSFP port is presented as 4 distinct 10G SFP+ ports to the driver.
MFC after: 2 weeks
adrian [Thu, 20 Mar 2014 23:16:58 +0000 (23:16 +0000)]
Throw the flush messages behind ATH_DEBUG_RESET as well.
These are needed to diagnose TX hangs that I and hiren are seeing.
Without it, the only way we'll see debugging is by having ATH_DEBUG_SW_TX
enabled and that is going to be very, very spammy.
ATH_DEBUG_RESET is fine; it's only going to be done during stuck beacon
situations in AP mode.
Whilst I'm here, and now that it's behind debugging, let's just disable
the "print only one" conditional. I'll eventually make it more tunable.
Tested:
* AR9220, hostap mode.
jilles [Thu, 20 Mar 2014 22:38:13 +0000 (22:38 +0000)]
sh: Don't overwrite old exit status if a PID is reused.
Only store exit status for a process if that process has not terminated yet.
Test (slow):
exit 7 & p1=$!; until exit 8 & p2=$!; [ "$p1" = "$p2" ]; do wait "$p2";
done; sleep 0.1; wait %1; echo $?
should write "7".
np [Thu, 20 Mar 2014 21:57:10 +0000 (21:57 +0000)]
cxgbe(4): man page updates.
pfg [Thu, 20 Mar 2014 21:19:13 +0000 (21:19 +0000)]
ext2fs: minor update to the dirpref policy.
Bring in a minor change to the dirpref policy based on r248623.
This is pretty minimal change to keep the implementation in
sync with UFS but other parts from the original change are not
directly applicable so don't expect improvements in fsck times.
MFC after: 2 weeks
hiren [Thu, 20 Mar 2014 20:51:08 +0000 (20:51 +0000)]
Update hwpmc to support core events for Atom Silvermont microarchitecture.
(Model 0x4D as per Intel document 330061-001 01/2014)
Tested by: Olivier Cochard-Labbe <olivier@cochatrd.me>
MFC after: 4 weeks
asomers [Thu, 20 Mar 2014 20:39:41 +0000 (20:39 +0000)]
Add several ATF tests that deal with multiple fibs. They're described in
several different PRs, but the tests share some common code, so I'm
committing them together.
sbin/ifconfig/tests
sbin/ifconfig/tests/fibs_test.sh
sbin/ifconfig/tests/Makefile
sbin/ifconfig/Makefile
Add fibs_test.sh, which regresses bin/187551
tests/sys/netinet
tests/sys/netinet/fibs_test.sh
tests/sys/netinet/udp_dontroute.c
tests/sys/netinet/Makefile
tests/sys/Makefile
Add fibs_test.sh, which regresses kern/167947, kern/187552
kern/187549, kern/187550, and kern/187553
etc/mtree/BSD.tests.dist
Add newly created directories
PR: bin/187551
PR: kern/167947
PR: kern/187552
PR: kern/187549
PR: kern/187550
PR: kern/187553
Discussed with: melifaro
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation
pfg [Thu, 20 Mar 2014 20:14:04 +0000 (20:14 +0000)]
msdosfs: minor format fix - spaces vs tab
MFC after: 3 days
jkim [Thu, 20 Mar 2014 19:17:46 +0000 (19:17 +0000)]
Add new CPUTYPEs supported by Clang 3.4, i.e., AMD Steamroller (bdver3) and
Intel Silvermont (slm) processors.
gjb [Thu, 20 Mar 2014 18:44:37 +0000 (18:44 +0000)]
- Update commit template to include 'Relnotes:' tag, to
help re@ track release notes candidates.
Discussed with: re
Reviewed by: peter
MFC after: 3 days
X-MFC-To: stable/10 only
Sponsored by: The FreeBSD Foundation
neel [Thu, 20 Mar 2014 18:15:37 +0000 (18:15 +0000)]
Use 'cpuset_t' to represent the vcpus active in a virtual machine.
br [Thu, 20 Mar 2014 17:53:56 +0000 (17:53 +0000)]
Rename mct and ehci drivers files to match common naming.
br [Thu, 20 Mar 2014 17:33:01 +0000 (17:33 +0000)]
Remove printf's.
asomers [Thu, 20 Mar 2014 17:30:09 +0000 (17:30 +0000)]
Fix kern/187712: config(8) does not respect KERNCONFDIR.
The impact of this bug is that you cannot build a kernel if both of the
following are true:
1) The kernel config file is in a non-default location
2) The kernel config file uses the "include" statement from config(5).
usr.sbin/config/main.c
usr.sbin/config/config.8
usr.sbin/config/config.h
usr.sbin/config/lang.l
Added a "-I path" option to config(8). By analogy to cc(1), it adds
an extra path in which the "include" statement will search for
files.
Makefile.inc1
Pass "-I ${KERNCONFDIR}" to config(8).
PR: kern/187712
Reviewed by: will, imp (previous version)
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation
asomers [Thu, 20 Mar 2014 17:13:07 +0000 (17:13 +0000)]
share/man/man7/tests.7
Added a section on test suite configuration, and cleaned up up
grammar errors and awkward prose. The config variables were
discussed on freebsd-testing.
Discussed with: Garrett Cooper, jmmv
MFC after: 2 weeks
Sponsored by: Spectra Logic Corporation
br [Thu, 20 Mar 2014 17:10:01 +0000 (17:10 +0000)]
Add support for Samsung Chromebook (ARM Cortex A15 machine).
br [Thu, 20 Mar 2014 17:07:14 +0000 (17:07 +0000)]
Add driver for Display Controller.
br [Thu, 20 Mar 2014 17:03:44 +0000 (17:03 +0000)]
- Add display-related and clk devices to the tree
- Prevent resources intersection with EHCI driver
br [Thu, 20 Mar 2014 17:01:21 +0000 (17:01 +0000)]
Disable debugging by default.
hselasky [Thu, 20 Mar 2014 13:53:24 +0000 (13:53 +0000)]
Try to resolve a possible deadlock when detaching USB devices which
create character devices. The deadlock can happen if an application is
issuing IOCTLs which require USB refcounting, at the same time the USB
device is detaching.
There is already a counter in place in the USB device structure to
detect this situation, but it was not always checked ahead of invoking
functions that might destroy character devices, like detach, set
configuration, set alternate interface or detach active kernel driver.
Reported by: Daniel O'Connor <doconnor@gsoft.com.au>
MFC after: 1 week
glebius [Thu, 20 Mar 2014 06:22:39 +0000 (06:22 +0000)]
Since mlaier has been inactive for a long time, grab maintainership on pf.
adrian [Thu, 20 Mar 2014 05:10:17 +0000 (05:10 +0000)]
Add some debugging code to print out if registers are touched whilst the
device is asleep.
This doesn't avoid logging errors for things that are actually OK to
access whilst the chip is asleep (eg, the RTC registers (0x7000->0x70ff
on the AR5416 and later.)
But, this is a pretty good indicator if things are accessed incorrectly.
Tested:
* AR5416, STA
adrian [Thu, 20 Mar 2014 05:08:31 +0000 (05:08 +0000)]
Shuffle ah_powerMode to be in a sane spot for the given power operation.
This way the state changes from sleep->awake before the registers are poked
and from awake->sleep after the registers are poked.
This way spurious warnings aren't printed by my (to be committed)
debugging code.
Tested:
* AR5416, STA
adrian [Thu, 20 Mar 2014 04:47:34 +0000 (04:47 +0000)]
Don't call ath_init() inside the lock.
Yes, this means that sc_invalid is slightly racy, but there are other
issues here which need fixing.
This fixes a source of eventual LORs - ath_init() grabs ATH_LOCK to do
work and releases it before it calls ieee80211_start_all().
ieee80211_start_all() will grab the net80211 comlock to iterate over
the VAPs.
TODO:
* .. I should just migrate the ieee80211_start_all() work to a
deferred task so it can be done later; it doesn't have to be
immediately done.
Tested:
* AR5416, STA mode
np [Thu, 20 Mar 2014 02:28:05 +0000 (02:28 +0000)]
cxgbe(4): Use ifi_oqdrops in if_data to count drops in the tx path.
np [Thu, 20 Mar 2014 02:23:52 +0000 (02:23 +0000)]
Add a shorter alias for if_data.ifi_oqdrops.
np [Thu, 20 Mar 2014 01:58:04 +0000 (01:58 +0000)]
cxgbe(4): if_iqdrops statistic should include tunnel congestion drops.
MFC after: 1 week
jmmv [Wed, 19 Mar 2014 23:29:00 +0000 (23:29 +0000)]
Mark multi_test as requiring /usr/share/dict/words.
The file may not be present if MK_DICT=no. Pointed out by Casey Peel.
delphij [Wed, 19 Mar 2014 23:04:52 +0000 (23:04 +0000)]
Remove unused option -r from zpool.
Submitted by: Richard Yao <ryao gentoo org>
MFC after: 2 weeks
marcel [Wed, 19 Mar 2014 21:30:10 +0000 (21:30 +0000)]
Add KTR events for the PMAP interface functions
1. move unmapped_buf_allowed to machdep.c.
2. map both pmap_mapbios() and pmap_mapdev() to pmap_mapdev_attr()
and have the actual work done by pmap_mapdev_priv() (renamed from
pmap_mapdev()). Use pmap_mapdev_priv() to map the I/O port space
because we can't use CTR() that early.
3. add pmap_pinit_common() that's used by both pmap_pinit0() and
pmap_pinit(). Previously pmap_pinit0() would call pmap_pinit(),
but that would create 2 KTR events. While here, use pmap_t instead
of "struct pmap *".
4. fix pmap_kenter() to use vm_paddr_t as the type for the physical.
5. various white-space adjustments for consistency.
6. use C99 and KNF for function definitions where appropriate.
7. slightly re-order prototypes and defines in <machine/pmap.h>
No functional change (other than the creation of KTR_PMAP events).
imp [Wed, 19 Mar 2014 21:03:04 +0000 (21:03 +0000)]
Remove vestiges of knowing the ISA bus, which we gave up on around 20
years ago. Remove redunant copy of isaregs.h.
imp [Wed, 19 Mar 2014 20:40:57 +0000 (20:40 +0000)]
Revert last change, it breaks other things.
ian [Wed, 19 Mar 2014 18:54:53 +0000 (18:54 +0000)]
Add a way to apply CFLAGS only when building the given architecture. This
is useful primarily on a system used for cross-building, when you have a
set of flags to apply to the TARGET_ARCH being cross-built but don't want
those settings applied to building the cross-tools or other components that
run on the build host machine.
imp [Wed, 19 Mar 2014 17:53:09 +0000 (17:53 +0000)]
Remove redunant declaration. gcc complains while clang doesn't.
imp [Wed, 19 Mar 2014 17:34:37 +0000 (17:34 +0000)]
Add my humble request for reviews before nanobsd changes happen.
jmmv [Wed, 19 Mar 2014 13:10:25 +0000 (13:10 +0000)]
Include strings.h so that bpf_filter.c can be built in userland.
This is to bring in a definition for bzero(3), which in turn allows the
tests in tools/regression/bpf/ to build again.
trasz [Wed, 19 Mar 2014 13:00:44 +0000 (13:00 +0000)]
Make the error message more clear.
Sponsored by: The FreeBSD Foundation
jmmv [Wed, 19 Mar 2014 12:52:49 +0000 (12:52 +0000)]
errx prepends the program name to the message; don't do it by hand.
jmmv [Wed, 19 Mar 2014 12:51:40 +0000 (12:51 +0000)]
Make the priv test program exit with non-zero if any failures are detected.
And, mind you, this already returns a failure :-/
jmmv [Wed, 19 Mar 2014 12:46:04 +0000 (12:46 +0000)]
Migrate tools/regression/usr.bin/pkill to the new tests layout.
Interestingly, the pkill tool lives in bin, not usr.bin. Haven't bothered
to check if this is because the tool moved or because the tests were
originally added in the wrong place.
attilio [Wed, 19 Mar 2014 12:45:40 +0000 (12:45 +0000)]
Fix comments.
Sponsored by: EMC / Isilon Storage Division
kib [Wed, 19 Mar 2014 12:35:04 +0000 (12:35 +0000)]
Make the array pointed to by AT_PAGESIZES auxv properly aligned.
Also, remove the expression which calculated the location of the
strings for a new image and grown over the time to be
non-comprehensible. Instead, calculate the offsets by steps, which
also makes fixing the alignments much cleaner.
Reported and reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
jmmv [Wed, 19 Mar 2014 12:32:50 +0000 (12:32 +0000)]
Add Makefiles missed in r263346.
Grrr, I wish svn clearly displayed files not yet added when about to commit.
jmmv [Wed, 19 Mar 2014 12:29:20 +0000 (12:29 +0000)]
Migrate tools/regression/usr.bin/make/ to the new tests layout.
Note that these tests are for fmake, not bmake, and thus they are not
installed nor run when bmake is selected (the default). Yes, I have
wasted a *ton* of time on moving tests for no real reason other than
ensuring they are not left behind.
But maybe, just maybe, it was not work in vain: the majority of these
tests also work with bmake and the few that don't may point at broken
stuff. For example, the tests for the "archive" feature do not work
with bmake, but bmake's manpage and source tree seem to imply that they
should. So... to be investigated later; need to poke sjg@.
jmmv [Wed, 19 Mar 2014 12:06:51 +0000 (12:06 +0000)]
Expand tabs that sneaked in into spaces.
Problem introduced by r263227. Spotted by Alan Somers.
pho [Wed, 19 Mar 2014 09:41:12 +0000 (09:41 +0000)]
Added sysctl kern.maxfiles increase test, do not use /etc/passwd for tests
and use volatile sig_atomic_t for signal handler variable.
Reviewed by: asomers (previous version)
Sponsored by: EMC / Isilon storage division
glebius [Wed, 19 Mar 2014 06:08:03 +0000 (06:08 +0000)]
When exporting ifnet via sysctl, add ifqueue(9) drop count to the
ifi_oqdrops. This is a temporary workaround until ifqueue(9) vanishes.
While here, remove the pointless ifi_vhid assignment. It has
sense only when we are exporting ifaddrs, not ifnets.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
glebius [Wed, 19 Mar 2014 06:03:26 +0000 (06:03 +0000)]
Add counter for Tx errors returned from if_transmit.
Submitted-by: Boris Misenov <Boris.Misenov@oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
glebius [Wed, 19 Mar 2014 03:33:32 +0000 (03:33 +0000)]
Now, after r263102 we have ifi_oqdrops in if_data, restore printing of
output queue drops in netstat(1).
No driver, neither kernel fills this field in if_data, yet.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
markj [Wed, 19 Mar 2014 01:27:56 +0000 (01:27 +0000)]
Only invoke fasttrap hooks for traps from user mode, and ensure that they're
called with interrupts enabled. Calling fasttrap_pid_probe() with interrupts
disabled can lead to deadlock if fasttrap writes to the process' address
space.
Reviewed by: rpaulo
MFC after: 3 weeks
attilio [Wed, 19 Mar 2014 01:13:42 +0000 (01:13 +0000)]
vm_page_grab() and vm_pager_get_pages() can drop the vm_object lock,
then threads can sleep on the pip condition.
Avoid to deadlock such threads by correctly awakening the sleeping ones
after the pip is finished.
swapoff side of the bug can likely result in shutdown deadlocks.
Sponsored by: EMC / Isilon Storage Division
Reported by: pho, pluknet
Tested by: pho
attilio [Wed, 19 Mar 2014 00:38:27 +0000 (00:38 +0000)]
Fix GENERIC build.
marcel [Tue, 18 Mar 2014 23:51:34 +0000 (23:51 +0000)]
Fix and improve exception tracing:
1. Name the kernel option XTRACE instead of EXCEPTION_TRACING
2. Put support functions in ia64/ia64/xtrace.c
3. Make it work with SMP by giving each CPU its own buffer
4. Save 16 key registers in the buffer for every exception
5. In ia64_handle_intr() and trap() transfer the trace record
to the KTR trace buffer using CTRx() and with some basic
information for now
6. Use a tunable to anble tracing and stop tracing as soon as
we enter the debugger
Room for improvements:
1. Transferring exception-relevant information to KTR
2. Add a sysctl to enable/disable tracing
tychon [Tue, 18 Mar 2014 23:25:35 +0000 (23:25 +0000)]
Don't reissue in-flight commands.
Approved by: neel (co-mentor)
ray [Tue, 18 Mar 2014 22:22:47 +0000 (22:22 +0000)]
Switch kern.vt.suspendswitch to 0 by default (disabled).
kern.vt.suspendswitch - sysctl/tunable which enable switch to VT0 before going
to suspend and switch back after resume.
MFC after: 7 days
dim [Tue, 18 Mar 2014 22:07:45 +0000 (22:07 +0000)]
Add separate patch files for all the customizations we have currently
applied to our copy of llvm/clang. These can be applied in alphabetical
order to a pristine llvm/clang 3.4 release source tree, to result in the
same version used in FreeBSD.
This is intended to clearly document all the changes until now, which
mostly consist of cherry pickings from the respective upstream trunks,
plus a number of hand-written FreeBSD-specific ones. Hopefully those
can eventually be cleaned up and sent upstream too.
MFC after: 1 week
X-MFC-With: r263313