]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoImport a whole bunch of clang trunk commits to enable self-hosting clang
dim [Thu, 20 Feb 2014 21:59:15 +0000 (21:59 +0000)]
Import a whole bunch of clang trunk commits to enable self-hosting clang
3.4 on Sparc64 (commit descriptions left out for brevity):

r198311 r198312 r198911 r198912 r198918 r198923 r199012 r199034 r199037
r199188 r199399 r200452

Submitted by: rdivacky

10 years agoImport a whole bunch of llvm trunk commits to enable self-hosting clang
dim [Thu, 20 Feb 2014 21:56:15 +0000 (21:56 +0000)]
Import a whole bunch of llvm trunk commits to enable self-hosting clang
3.4 on Sparc64 (commit descriptions left out for brevity):

r196755 r198028 r198029 r198030 r198145 r198149 r198157 r198565 r199186
r199187 r198280 r198281 r198286 r198480 r198484 r198533 r198567 r198580
r198591 r198592 r198658 r198681 r198738 r198739 r198740 r198893 r198909
r198910 r199014 r199024 r199028 r199031 r199033 r199061 r199775 r199781
r199786 r199940 r199974 r199975 r199977 r200103 r200104 r200112 r200130
r200131 r200141 r200282 r200368 r200373 r200376 r200509 r200617 r200960
r200961 r200962 r200963 r200965

Submitted by: rdivacky

10 years agoRevert my commit in r261253; the real problem was tackled in r262209.
peter [Thu, 20 Feb 2014 20:53:29 +0000 (20:53 +0000)]
Revert my commit in r261253; the real problem was tackled in r262209.

10 years agoRemove redundant code and fix a style error.
tuexen [Thu, 20 Feb 2014 20:14:43 +0000 (20:14 +0000)]
Remove redundant code and fix a style error.

MFC after: 3 days

10 years agoMatch our implementation of iconv's inbuf argument.
peter [Thu, 20 Feb 2014 20:09:28 +0000 (20:09 +0000)]
Match our implementation of iconv's inbuf argument.

10 years agoImport svn-1.8.8.
peter [Thu, 20 Feb 2014 19:48:47 +0000 (19:48 +0000)]
Import svn-1.8.8.

Highlights:
* Security fix for apache server plugin that we don't build or use
* sqlite performance improvements.
* bug fixes for edge cases and some other less common operations.

10 years agoMake it clear that there are two ways to add a session using iscsictl(8),
trasz [Thu, 20 Feb 2014 17:23:08 +0000 (17:23 +0000)]
Make it clear that there are two ways to add a session using iscsictl(8),
and some options require configuration file.

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

10 years agoSpelling, grammar and mdoc cleanup.
brueffer [Thu, 20 Feb 2014 16:35:48 +0000 (16:35 +0000)]
Spelling, grammar and mdoc cleanup.

10 years agoDocument r261504 - FreeBSD/i386 guests can be run under bhyve.
skreuzer [Thu, 20 Feb 2014 14:39:12 +0000 (14:39 +0000)]
Document r261504 - FreeBSD/i386 guests can be run under bhyve.
Document r261498 - ping uses the Capsicum framework to drop privileges
Document r261344 - mdocml have been upgraded to version 1.12.3
Documetn r261991 - llvm/clang have been upgraded to version 3.4

Approved by: hrs (mentor)

10 years agoAdd early printf support, wrapped in #if 0 because it's only rarely needed.
ian [Thu, 20 Feb 2014 14:29:59 +0000 (14:29 +0000)]
Add early printf support, wrapped in #if 0 because it's only rarely needed.

10 years agoFix a cross-reference.
brueffer [Thu, 20 Feb 2014 13:33:18 +0000 (13:33 +0000)]
Fix a cross-reference.

MFC after: 3 days

10 years agoFix the boot on FDT-enabled systems after r261819.
loos [Thu, 20 Feb 2014 13:09:08 +0000 (13:09 +0000)]
Fix the boot on FDT-enabled systems after r261819.

While here, don't overwrite the error message on interactive use and add
the missing '\n' at end of error message for the non interactive use.

Tested by: ian, myself
Approved by: adrian (mentor, implicit)

10 years agocompile with NOINET
luigi [Thu, 20 Feb 2014 04:56:55 +0000 (04:56 +0000)]
compile with NOINET

10 years agoSimplify APIC mode switching from MMIO to x2APIC. In part this is done to
neel [Thu, 20 Feb 2014 01:48:25 +0000 (01:48 +0000)]
Simplify APIC mode switching from MMIO to x2APIC. In part this is done to
simplify the implementation of the x2APIC virtualization assist in VT-x.

Prior to this change the vlapic allowed the guest to change its mode from
xAPIC to x2APIC. We don't allow that any more and the vlapic mode is locked
when the virtual machine is created. This is not very constraining because
operating systems already have to deal with BIOS setting up the APIC in
x2APIC mode at boot.

Fix a bug in the CPUID emulation where the x2APIC capability was leaking
from the host to the guest.

Ignore MMIO reads and writes to the vlapic in x2APIC mode. Similarly, ignore
MSR accesses to the vlapic when it is in xAPIC mode.

The default configuration of the vlapic is xAPIC. The "-x" option to bhyve(8)
can be used to change the mode to x2APIC instead.

Discussed with: grehan@

10 years agoTemporarily unhook BERI boot loader from the build until 32-bit MIPS
rwatson [Wed, 19 Feb 2014 23:09:25 +0000 (23:09 +0000)]
Temporarily unhook BERI boot loader from the build until 32-bit MIPS
properly excludes building our 64-bit only boot-loader adaptation.

10 years agoSpelling, grammar and mdoc cleanup.
brueffer [Wed, 19 Feb 2014 21:31:04 +0000 (21:31 +0000)]
Spelling, grammar and mdoc cleanup.

MFC after: 1 week

10 years agoDo build boot-loader FDT code on MIPS.
rwatson [Wed, 19 Feb 2014 17:44:59 +0000 (17:44 +0000)]
Do build boot-loader FDT code on MIPS.

MFC after: 3 weeks
Sponsored by: DARPA, AFRL

10 years agoRevert r262196
mm [Wed, 19 Feb 2014 17:06:04 +0000 (17:06 +0000)]
Revert r262196

I am going to split this into two individual patches and test it with
the projects/pf branch that may get merged later.

10 years agoAdd missing Save Cursor support for VT520
bdrewery [Wed, 19 Feb 2014 13:06:50 +0000 (13:06 +0000)]
Add missing Save Cursor support for VT520

Submitted by: IWAMOTO Kouichi <sue@iwmt.org>
PR: conf/174937
Obtained from: http://web.mit.edu/dosathena/doc/www/ek-vt520-rm.pdf
Approved by: bapt (mentor)
MFC after: 2 weeks

10 years agoUpdate MIPS bootinfo.h to reflect the actual MIPS boot2/loader boot-time
rwatson [Wed, 19 Feb 2014 09:19:09 +0000 (09:19 +0000)]
Update MIPS bootinfo.h to reflect the actual MIPS boot2/loader boot-time
interface.

MFC after: 3 weeks
Sponsored by: DARPA, AFRL

10 years agoV_irtualize rtsock refcounting, which reduces the chances for panics
zec [Wed, 19 Feb 2014 08:29:07 +0000 (08:29 +0000)]
V_irtualize rtsock refcounting, which reduces the chances for panics
on teardown of vnets without active routing sockets while at least
one routing socket is active elsewhere.

Tested by: Vijay Singh
MFC after: 3 days

10 years agoReally (I think) fix the sporadic heimdal build failures with high -j
peter [Wed, 19 Feb 2014 07:09:14 +0000 (07:09 +0000)]
Really (I think) fix the sporadic heimdal build failures with high -j
levels. The root of the problem was that make was attempting to run up
to three concurrent asn1_compile commands to produce the three outputs
that it was declared to produce.  The failure was caused when the
asn1_compiles were started out of sync and a later one was truncating
the files that another thread was trying to copy.  In reality it is
supposed to be run exactly once and all three outputs are produced in
one pass.

Use the same hack as for the parent's Makefile.inc for the compile_et
multi-output rule.

10 years agoExtract out the port VLAN flags/setup code and throw it into two new
adrian [Wed, 19 Feb 2014 06:43:52 +0000 (06:43 +0000)]
Extract out the port VLAN flags/setup code and throw it into two new
HAL methods.

This allows the AR8327 code to override it as appropriate.

Tested:

* DB120 - AR8327 and AR9340 on-board switch; only running 'etherswitchcfg'
  to check configs.  The actual VLAN programming wasn't tested.

10 years agoAdd methods for the VLAN port set/get routines.
adrian [Wed, 19 Feb 2014 06:35:17 +0000 (06:35 +0000)]
Add methods for the VLAN port set/get routines.

The registers (and perhaps the flags) are different for the AR8327, so
I'll stub those out until they're written.

Tested:

* DB120 - both on-chip AR9340 and AR8327 switches.

10 years agoTurn the port init function into a HAL method and initialise it to the
adrian [Wed, 19 Feb 2014 06:03:58 +0000 (06:03 +0000)]
Turn the port init function into a HAL method and initialise it to the
default port init code.

This needs to be overridden for the AR8327.

10 years agoTeach the PHY register path about the different MDIO bus address
adrian [Wed, 19 Feb 2014 06:02:47 +0000 (06:02 +0000)]
Teach the PHY register path about the different MDIO bus address
for the AR8327.

Tested:

* AR8327, DB120

10 years agoAdd a new method to set up the individual port in question.
adrian [Wed, 19 Feb 2014 06:01:40 +0000 (06:01 +0000)]
Add a new method to set up the individual port in question.

The AR8327 requires some different setup code.

10 years agoChange arswitch_ports_init() to arswitch_port_init(), and teach it to take
adrian [Wed, 19 Feb 2014 05:35:41 +0000 (05:35 +0000)]
Change arswitch_ports_init() to arswitch_port_init(), and teach it to take
a single port to setup.

This may end up later being used as part of some logic to program
the PHY for a single port, rather than having to reinitialise them
all at once.

Tested:

* DB120

10 years agoAdd in the AR8327 probe/attach code and switch type.
adrian [Wed, 19 Feb 2014 05:09:47 +0000 (05:09 +0000)]
Add in the AR8327 probe/attach code and switch type.

It detects fine, but (as expected) it won't attach just yet, let alone
pass traffic.

Tested:

* DB120, AR8327 switch

10 years agoStore away the chip version and revision; some AR8327 code depends upon
adrian [Wed, 19 Feb 2014 04:30:53 +0000 (04:30 +0000)]
Store away the chip version and revision; some AR8327 code depends upon
the chip revision.

10 years agoAdd in a flag to control whether the low or high data word of a register access
adrian [Wed, 19 Feb 2014 04:23:01 +0000 (04:23 +0000)]
Add in a flag to control whether the low or high data word of a register access
is latched in first.

The AR8327 apparently requires the low data word be latched in first.

Obtained from: Linux OpenWRT

10 years agoReplace Apache-style license on two Makefiles with stock 2-clause BSD;
rwatson [Tue, 18 Feb 2014 23:22:54 +0000 (23:22 +0000)]
Replace Apache-style license on two Makefiles with stock 2-clause BSD;
license, although the former is pretty safe, it wasn't intended to be
used in the version of MIPS boot2/loader upstreamed to FreeBSD.

MFC after: 3 weeks
Sponsored by: DARPA, AFRL

10 years agoCommit a first cut at ports of boot2 and loader to 64-bit MIPS, with a
rwatson [Tue, 18 Feb 2014 23:18:32 +0000 (23:18 +0000)]
Commit a first cut at ports of boot2 and loader to 64-bit MIPS, with a
particular interest in (and support for) SRI International and the
University of Cambridge's BERI FPGA soft-core processor.  This includes
micro device drivers for the Altera JTAG UART console, memory-mapped
flash, and the Altera SD Card IP core in both boot2 and loader.  boot2
can be written to the on-board Intel StrataFlash on the DE4 board, and
loader can be placed in StrataFlash or the SD Card.

Plenty of XXX comments, but works quite well locally in practice and I
am using it daily.  Although I had originally ported the ARM version
of boot2, the current version is x86-derived as that proved more
feature-complete.  As we don't currently use partitions on our flash
disks, support for that has been commented out relative to x86, but
would be easy to add back.  FDT support has not yet been hooked up,
although some skeleton parts have been put in place for that.

This may well be a useful starting point for ports to other 32-bit and
64-bit MIPS-ISA systems.

This merge is synchronised to CheriBSD github commit
e41d74fd719525d4dd7a7ee499114679165eeaf6, but with some additions of
$FreeBSD.

MFC after: 3 weeks
Sponsored by: DARPA, AFRAL

10 years agoDe-virtualize pf_mtag_z [1]
mm [Tue, 18 Feb 2014 22:17:12 +0000 (22:17 +0000)]
De-virtualize pf_mtag_z [1]
Process V_pf_overloadqueue in vnet context [2]

This fixes two VIMAGE kernel panics and allows to simultaneously run host-pf
and vnet jails. pf inside jails remains broken.

PR: kern/182964
Submitted by: glebius@FreeBSD.org [2], myself [1]
Tested by: rodrigc@FreeBSD.org, myself
MFC after: 2 weeks

10 years agoRemove an unnecessary header.
loos [Tue, 18 Feb 2014 21:29:30 +0000 (21:29 +0000)]
Remove an unnecessary header.

Reported by: nwhitehorn
Approved by: adrian (mentor, implicit)

10 years agoFix mismerge in r262121
emaste [Tue, 18 Feb 2014 19:46:45 +0000 (19:46 +0000)]
Fix mismerge in r262121

A break statement was lost in the merge.  The error had no functional
impact, but restore it to reduce the diff against upstream.

10 years agoAdd a check to validate that memory BARs of passthru devices are 4KB aligned.
neel [Tue, 18 Feb 2014 19:00:15 +0000 (19:00 +0000)]
Add a check to validate that memory BARs of passthru devices are 4KB aligned.

Also, the MSI-x table offset is not required to be 4KB aligned so take this
into account when computing the pages occupied by the MSI-x tables.

10 years agoAdd more __BEGIN_DECLS / __END_DECLS to <sys/capability.h>.
jonathan [Tue, 18 Feb 2014 14:54:56 +0000 (14:54 +0000)]
Add more __BEGIN_DECLS / __END_DECLS to <sys/capability.h>.

capability.h currently only wraps some of its declarations in __BEGIN_DECLS/__END_DECLS, so cap_enter(), cap_sandboxed(), etc. are usable from C++ code but cap_rights_init(), cap_rights_is_valid() etc. are not. This commit fixes this distinction.

Approved by: rwatson (mentor)
MFC after: 1 week
Sponsored by: DARPA, AFRL

10 years agoFix incorrect assertions.
glebius [Tue, 18 Feb 2014 14:21:26 +0000 (14:21 +0000)]
Fix incorrect assertions.

10 years agoenable rfc1323 and rfc1644 by default in picobsd images.
luigi [Tue, 18 Feb 2014 04:38:26 +0000 (04:38 +0000)]
enable rfc1323 and rfc1644 by default in picobsd images.
I disabled it some 15 years ago but it is useful to have them on
when doing tcp throughput tests.

10 years agotwo small changes:
luigi [Tue, 18 Feb 2014 04:27:41 +0000 (04:27 +0000)]
two small changes:
- intercept FIONBIO and FIOASYNC ioctls on netmap file descriptors.
  libpcap calls them to set non blocking I/O on the file descriptor,
  for netmap this is a no-op because there is no read/write,
  but not intercepting would cause fcntl() to return -1
- rate limit and put under netmap.verbose some messages that occur
  when threads use concurrently the same file descriptor.

10 years agoA first pass at adding support for injecting hardware exceptions for
jhb [Tue, 18 Feb 2014 03:07:36 +0000 (03:07 +0000)]
A first pass at adding support for injecting hardware exceptions for
emulated instructions.
- Add helper routines to inject interrupt information for a hardware
  exception from the VM exit callback routines.
- Use the new routines to inject GP and UD exceptions for invalid
  operations when emulating the xsetbv instruction.
- Don't directly manipulate the entry interrupt info when a user event
  is injected.  Instead, store the event info in the vmx state and
  only apply it during a VM entry if a hardware exception or NMI is
  not already pending.
- While here, use HANDLED/UNHANDLED instead of 1/0 in a couple of
  routines.

Reviewed by: neel

10 years agoTweak the handling of PCI capabilities in emulated devices to remove
jhb [Tue, 18 Feb 2014 03:00:20 +0000 (03:00 +0000)]
Tweak the handling of PCI capabilities in emulated devices to remove
the non-standard zero capability list terminator.   Instead, track
the start and end of the most recently added capability and use that
to adjust the previous capability's next pointer when a capability is
added and to determine the range of config registers belonging to
PCI capability registers.

Reviewed by: neel

10 years agoIn ue_attach_post_task(), initialize curvnet to vnet0 before calling if_attach().
rodrigc [Tue, 18 Feb 2014 01:20:26 +0000 (01:20 +0000)]
In ue_attach_post_task(), initialize curvnet to vnet0 before calling if_attach().
Before this patch, curvnet was NULL.
When the VIMAGE kernel option is enabled, this eliminates
kernel panics when USB ethernet devices are plugged in.

PR: 183835
Submitted by: Hiroo Oono <hiroo.ono at gmail dot com>

10 years agoHandle writes to the SELF_IPI MSR by the guest when the vlapic is configured
neel [Mon, 17 Feb 2014 23:07:16 +0000 (23:07 +0000)]
Handle writes to the SELF_IPI MSR by the guest when the vlapic is configured
in x2apic mode. Reads to this MSR are currently ignored but should cause a
general proctection exception to be injected into the vcpu.

All accesses to the corresponding offset in xAPIC mode are ignored.

Also, do not panic the host if there is mismatch between the trigger mode
programmed in the TMR and the actual interrupt being delivered. Instead the
anomaly is logged to aid debugging and to prevent a misbehaving guest from
panicking the host.

10 years agoUse spinlocks to lock accesses to the vioapic.
neel [Mon, 17 Feb 2014 22:57:51 +0000 (22:57 +0000)]
Use spinlocks to lock accesses to the vioapic.

This is necessary because if the vlapic is configured in x2apic mode the
vioapic_process_eoi() function is called inside the critical section
established by vm_run().

10 years agoRemove the 3rd clause ("advertising clause") of the BSD license as
brueffer [Mon, 17 Feb 2014 22:27:32 +0000 (22:27 +0000)]
Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.

Reviewed by: imp
MFC after: 1 week

10 years agoAdd $FreeBSD$.
brueffer [Mon, 17 Feb 2014 22:26:21 +0000 (22:26 +0000)]
Add $FreeBSD$.

MFC after: 1 week

10 years agotest_eagain_*_* should've been using nonblocking sockets instead of
asomers [Mon, 17 Feb 2014 22:06:52 +0000 (22:06 +0000)]
test_eagain_*_* should've been using nonblocking sockets instead of
blocking sockets.  The error was not exposed as long as the kernel
suffered from PR kern/185812.  Now corrected, these tests pass on
DragonFlyBSD 3.6.0.

PR: kern/185812
Sponsored by: Spectra Logic Corporation
MFC after: 2 weeks

10 years agoOur quirk table is almost full. Add some room for more quirks.
hselasky [Mon, 17 Feb 2014 20:30:29 +0000 (20:30 +0000)]
Our quirk table is almost full. Add some room for more quirks.

MFC after: 1 week

10 years agoAdjust USB quirk.
hselasky [Mon, 17 Feb 2014 20:26:13 +0000 (20:26 +0000)]
Adjust USB quirk.

MFC after: 1 week
Submitted by: Volodymyr Kostyrko <arcade@b1t.name>

10 years agoIn sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
dim [Mon, 17 Feb 2014 20:08:11 +0000 (20:08 +0000)]
In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
about uss820dci_odevd being unused, by adding it to the part that
handles getting descriptors.

Reported by: loos
Reviewed by: hselasky
MFC after: 3 days

10 years agoGive the fdt helper routines static linkage since no global definition
ian [Mon, 17 Feb 2014 20:04:57 +0000 (20:04 +0000)]
Give the fdt helper routines static linkage since no global definition
of them is provided anywhere.  (gcc was nice enough to warn about this,
clang didn't for some reason.)

10 years agoUpdate lldb for clang/llvm 3.4 import
emaste [Mon, 17 Feb 2014 18:50:03 +0000 (18:50 +0000)]
Update lldb for clang/llvm 3.4 import

This commit largely restores the lldb source to the upstream r196259
snapshot with the addition of threaded inferior support and a few bug
fixes.

Specific upstream lldb revisions restored include:
   SVN      git
  181387  779e6ac
  181703  7bef4e2
  182099  b31044e
  182650  f2dcf35
  182683  0d91b80
  183862  15c1774
  183929  99447a6
  184177  0b2934b
  184948  4dc3761
  184954  007e7bc
  186990  eebd175

Sponsored by: DARPA, AFRL

10 years agopcm(4): Permit non-root users to change default unit
eadler [Mon, 17 Feb 2014 15:33:21 +0000 (15:33 +0000)]
pcm(4): Permit non-root users to change default unit

Discussed with: mav

10 years agoFix formatting.
feld [Mon, 17 Feb 2014 13:23:49 +0000 (13:23 +0000)]
Fix formatting.

"Manpages should start a new sentence on a new line. This makes it easier
for translators to track changes." -jhb

Approved by: jhb
MFC after: 3 days
Sponsored by: SupraNet Communications, Inc

10 years agoetcupdate should use the src tree from where the release is built, not
jhay [Mon, 17 Feb 2014 12:29:17 +0000 (12:29 +0000)]
etcupdate should use the src tree from where the release is built, not
the default (/usr/src) tree.

MFC after: 2 weeks

10 years agoAdd my copyright to flowtable.
glebius [Mon, 17 Feb 2014 12:07:17 +0000 (12:07 +0000)]
Add my copyright to flowtable.

10 years agoWhitespace.
glebius [Mon, 17 Feb 2014 12:02:44 +0000 (12:02 +0000)]
Whitespace.

10 years agoBring copyright notice to standard style.
glebius [Mon, 17 Feb 2014 12:01:50 +0000 (12:01 +0000)]
Bring copyright notice to standard style.

10 years agoo Remove at compile time the HASH_ALL code, that was never
glebius [Mon, 17 Feb 2014 11:50:56 +0000 (11:50 +0000)]
o Remove at compile time the HASH_ALL code, that was never
  tested and is unfinished. However, I've tested my version,
  it works okay. As before it is unfinished: timeout aren't
  driven by TCP session state. To enable the HASH_ALL mode,
  one needs in kernel config:

options FLOWTABLE_HASH_ALL

o Reduce the alignment on flentry to 64 bytes. Without
  the FLOWTABLE_HASH_ALL option, twice less memory would
  be consumed by flows.
o API to ip_output()/ip6_output() got even more thin: 1 liner.
o Remove unused unions. Simply use fle->f_key[].
o Merge all IPv4 code into flowtable_lookup_ipv4(), and do same
  flowtable_lookup_ipv6(). Stop copying data to on stack
  sockaddr structures, simply use key[] on stack.
o Move code from flowtable_lookup_common() that actually works
  on insertion into flowtable_insert().

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years agoMake it possible to use the env kernel config file option for AVILA
jhay [Mon, 17 Feb 2014 11:05:57 +0000 (11:05 +0000)]
Make it possible to use the env kernel config file option for AVILA
and CAMBRIA boards that does not use loader to load the kernel. This
is basically how it was done for i386. This way tunables can also be
set. For example in config file:

env "/conf/AVILA.env"

And in AVILA.env:

vfs.unmapped_buf_allowed=0

MFC after: 2 weeks

10 years agoThe MDIO control register for the AR8327 has a different address to
adrian [Mon, 17 Feb 2014 05:54:24 +0000 (05:54 +0000)]
The MDIO control register for the AR8327 has a different address to
previous chipsets.

Obtained from: AR8327 datasheet

10 years agoAdd mmd declaration.
adrian [Mon, 17 Feb 2014 05:51:37 +0000 (05:51 +0000)]
Add mmd declaration.

10 years agocalendar(1): don't segfault in invalid input
eadler [Mon, 17 Feb 2014 03:24:00 +0000 (03:24 +0000)]
calendar(1): don't segfault in invalid input

When the user supplies an invalid number of days provide a useful error message
instead of segfaulting.

PR: bin/186697
Reported by: kaltheat <kaltheat@gmail.com>
Submitted by: oliver <oliver@beefrankly.org> (older version)

10 years agoImplement PHY bus MMD writes for arswitch.
adrian [Mon, 17 Feb 2014 02:24:58 +0000 (02:24 +0000)]
Implement PHY bus MMD writes for arswitch.

This is used by the AR8327 PHY setup path.

Obtained from: OpenWRT

10 years agoFix M_FILEDESC leak in fdgrowtable() introduced in r244510.
bdrewery [Mon, 17 Feb 2014 00:00:39 +0000 (00:00 +0000)]
Fix M_FILEDESC leak in fdgrowtable() introduced in r244510.

fdgrowtable() now only reallocates fd_map when necessary.

This fixes fdgrowtable() to use the same logic as fdescfree() for
when to free the fd_map. The logic in fdescfree() is intended to
not free the initial static allocation, however the fd_map grows
at a slower rate than the table does. The table is intended to hold
20 fd, but its initial map has many more slots than 20.  The slot
sizing causes NDSLOTS(20) through NDSLOTS(63) to be 1 which matches
NDSLOTS(20), so fdescfree() was assuming that the fd_map was still
the initial allocation and not freeing it.

This partially reverts r244510 by reintroducing some of the logic
it removed in fdgrowtable().

Reviewed by: mjg
Approved by: bapt (mentor)
MFC after: 2 weeks

10 years agoRemove redundant memcpy of fd_ofiles in fdgrowtable() added in r247602
bdrewery [Sun, 16 Feb 2014 23:10:46 +0000 (23:10 +0000)]
Remove redundant memcpy of fd_ofiles in fdgrowtable() added in r247602

Discussed with: mjg
Approved by: bapt (mentor)
MFC after: 2 weeks

10 years agoAfter r261980, the local ptr variable in xbox_init() is no longer used,
dim [Sun, 16 Feb 2014 22:48:36 +0000 (22:48 +0000)]
After r261980, the local ptr variable in xbox_init() is no longer used,
breaking the LINT build.

Pointy hat to: brueffer

10 years agoUndefine HAVE_VSNPRINTF_IN_STD.
jmmv [Sun, 16 Feb 2014 21:53:33 +0000 (21:53 +0000)]
Undefine HAVE_VSNPRINTF_IN_STD.

Should fix the build with g++/libstdc++.

This is what we used to do prior the import of atf 0.20 and the build worked
just fine with both libstdc++ and libc++.  Still investigating how to properly
fix this upstream so that we do not hit the same issue on the next import.

10 years agoUpgrade our copy of llvm/clang to 3.4 release. This version supports
dim [Sun, 16 Feb 2014 19:44:07 +0000 (19:44 +0000)]
Upgrade our copy of llvm/clang to 3.4 release.  This version supports
all of the features in the current working draft of the upcoming C++
standard, provisionally named C++1y.

The code generator's performance is greatly increased, and the loop
auto-vectorizer is now enabled at -Os and -O2 in addition to -O3.  The
PowerPC backend has made several major improvements to code generation
quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ
backends have all seen major feature work.

Release notes for llvm and clang can be found here:
<http://llvm.org/releases/3.4/docs/ReleaseNotes.html>
<http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html>

MFC after: 1 month

10 years agoAdd an UPDATING entry about the nve(4) driver removal.
brueffer [Sun, 16 Feb 2014 19:33:34 +0000 (19:33 +0000)]
Add an UPDATING entry about the nve(4) driver removal.

10 years ago- Decrease buffer size.
br [Sun, 16 Feb 2014 19:21:44 +0000 (19:21 +0000)]
- Decrease buffer size.
- Handle eDMA interrupt on running channel only.

10 years agoStart getty(8) on ttyu1 as well. It's not uncommon for HP hardware
marcel [Sun, 16 Feb 2014 19:08:10 +0000 (19:08 +0000)]
Start getty(8) on ttyu1 as well. It's not uncommon for HP hardware
to have that be the iLO console (e.g. pluto).

10 years agoAfter a timeout, reset the controller using SDHCI_RESET_CMD|SDHCI_RESET_DATA
ian [Sun, 16 Feb 2014 17:22:49 +0000 (17:22 +0000)]
After a timeout, reset the controller using SDHCI_RESET_CMD|SDHCI_RESET_DATA
rather than SDHCI_RESET_ALL; the latter turns off clocks and power, removing
any possibility of recovering from the error.

Also, double the timeout to 2 seconds.  Despite what the SD spec says about
all transactions completing in 250ms or less, I have a card which sometimes
takes more than a second to complete a write.

10 years agoAdd driver for Synchronous Audio Interface (SAI).
br [Sun, 16 Feb 2014 16:49:54 +0000 (16:49 +0000)]
Add driver for Synchronous Audio Interface (SAI).

SAI supports full-duplex serial interfaces with frame
synchronization such as I2S, AC97, TDM, and codec/DSP
interfaces.

10 years agoAdd new PCI ID for hardware which needs port routing for USB 3.0.
hselasky [Sun, 16 Feb 2014 14:37:23 +0000 (14:37 +0000)]
Add new PCI ID for hardware which needs port routing for USB 3.0.

PR: usb/186811
MFC after: 1 week
Submitted by: Philipp Maechler <philipp.maechler@mamo.li>

10 years agoRemove an nve(4)-specific workaround from the xbox port. nfe(4) doesn't
brueffer [Sun, 16 Feb 2014 14:35:19 +0000 (14:35 +0000)]
Remove an nve(4)-specific workaround from the xbox port.  nfe(4) doesn't
need it.

Reviewed by: ed

10 years agoUse DESTDIR for the installation of the /usr/tests/local symlink.
jmmv [Sun, 16 Feb 2014 12:56:05 +0000 (12:56 +0000)]
Use DESTDIR for the installation of the /usr/tests/local symlink.

MFC after: 5 days

10 years agoIn sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
dim [Sun, 16 Feb 2014 12:41:57 +0000 (12:41 +0000)]
In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors.

Reviewed by: hselasky
MFC after: 3 days

10 years agoNote the removal of nve(4).
brueffer [Sun, 16 Feb 2014 12:25:22 +0000 (12:25 +0000)]
Note the removal of nve(4).

10 years agoRetire the nve(4) driver; nfe(4) has been the default driver for NVIDIA
brueffer [Sun, 16 Feb 2014 12:22:43 +0000 (12:22 +0000)]
Retire the nve(4) driver; nfe(4) has been the default driver for NVIDIA
nForce MCP adapters for a long time.

Yays: jhb, remko, yongari
Nays: none on the current and stable lists

10 years agoMention that rctl(8) was sponsored by the Foundation.
trasz [Sun, 16 Feb 2014 08:42:52 +0000 (08:42 +0000)]
Mention that rctl(8) was sponsored by the Foundation.

Sponsored by: The FreeBSD Foundation

10 years agoAdd zfsboot to the scripted interface of bsdinstall(8); oops!
dteske [Sun, 16 Feb 2014 06:56:44 +0000 (06:56 +0000)]
Add zfsboot to the scripted interface of bsdinstall(8); oops!
NB: If the zfsboot variables ($ZFSBOOT_*) are set, a script is
assumed to want zfsboot module instead of scriptedpart module.

Submitted by: Loïc Brarda <loic.brarda@cern.ch>
Reviewed by: nwhitehorn@
MFC after: 3 days

10 years agoInstall a symlink from /usr/tests/local to /usr/local/tests.
jmmv [Sun, 16 Feb 2014 04:11:40 +0000 (04:11 +0000)]
Install a symlink from /usr/tests/local to /usr/local/tests.

This is to let Kyua descend into any tests that may have been installed by
ports under /usr/local/tests when running the test suite from /usr/tests.

Some ports (namely those that build Kyua) already install test programs
into /usr/local/tests.  Just make sure to select the TEST option while
building them.

MFC after: 3 days

10 years agoCatch up with last-second name change.
ian [Sun, 16 Feb 2014 03:34:07 +0000 (03:34 +0000)]
Catch up with last-second name change.

10 years agoOops, remove some dregs of debugging.
ian [Sun, 16 Feb 2014 03:30:22 +0000 (03:30 +0000)]
Oops, remove some dregs of debugging.

10 years agoMake it possible to access the ocotp registers before the ocotp device
ian [Sun, 16 Feb 2014 03:09:39 +0000 (03:09 +0000)]
Make it possible to access the ocotp registers before the ocotp device
is attached, by establishing a temporary mapping of the registers when
necessary.  This is a temporary measure to keep progress moving; in the
long run we need better control over the order in which devices attach
(better than "the order they appear in the fdt dts source").

10 years agoAdd a helper routine to depth-search the device tree for a node with a
ian [Sun, 16 Feb 2014 03:00:59 +0000 (03:00 +0000)]
Add a helper routine to depth-search the device tree for a node with a
matching 'compatible' property.  This probably has a short half-life (as
do most of the fdt_ functions), but it helps solve some near-term needs
until we work out the larger problems of device instantiation order
versus the order of things in the fdt data.

10 years agoCorrect a typo in Malcolm MacDougall's name.
marcus [Sat, 15 Feb 2014 22:15:24 +0000 (22:15 +0000)]
Correct a typo in Malcolm MacDougall's name.

Approved by: gabor

10 years agoSweep up a couple crumbs left over from the imx6->fsl renaming.
ian [Sat, 15 Feb 2014 21:59:00 +0000 (21:59 +0000)]
Sweep up a couple crumbs left over from the imx6->fsl renaming.

10 years agoIt turns out Freescale cleverly made the ocotp device compatible across
ian [Sat, 15 Feb 2014 21:21:57 +0000 (21:21 +0000)]
It turns out Freescale cleverly made the ocotp device compatible across
several different families of SoCs, so move it to the freescale directory
and prefix everything with fsl rather than imx6.

10 years agoAdd timeout logic to sdhci, separate from the timeouts done by the hardware.
ian [Sat, 15 Feb 2014 20:45:53 +0000 (20:45 +0000)]
Add timeout logic to sdhci, separate from the timeouts done by the hardware.

If the hardware is not in a good state (like maybe clocks aren't running
because of a configuration glitch) its timeout clock may also not work
correctly, and the next command sent will hang that thread forever.  The
thread in question is usually the one and only thread (at init time) or
a bio queue worker thread whose lockup will eventually lead to the whole
system locking up when it runs out of buffers.

No sd card command should take longer than 250ms.  This new code establishes
a 1-second timeout to allow plenty of safety margin over that.

10 years agoIf no compatible cards were found after probing the bus, say so.
ian [Sat, 15 Feb 2014 20:36:54 +0000 (20:36 +0000)]
If no compatible cards were found after probing the bus, say so.

10 years agoSummary: Two quick edits to the implementation notes as they're no
gnn [Sat, 15 Feb 2014 18:36:31 +0000 (18:36 +0000)]
Summary: Two quick edits to the implementation notes as they're no
longer stored in netinet but in netpfil.

10 years agoIncrease the wait time for acquiring the bus from 10 to 250ms.
ian [Sat, 15 Feb 2014 17:59:32 +0000 (17:59 +0000)]
Increase the wait time for acquiring the bus from 10 to 250ms.

Normally it never needs to wait here at all; waiting is done at the end
of the prior command.  When doing a crash dump, the normal interrupt
mechanism isn't used; instead the interrupt handler is called repeatedly
in a polling-like manner.  This can subvert hardware-specific drivers
and lead to trying to start a new command while the previous command is
still busy on the bus.  Since the SD spec says the longest a card can
take to execute any command is 250ms, use that as a timeout.

10 years agoConvert the "R1B fix" from a busy-loop in the interrupt handler to a callout.
ian [Sat, 15 Feb 2014 17:55:35 +0000 (17:55 +0000)]
Convert the "R1B fix" from a busy-loop in the interrupt handler to a callout.

10 years agoAdd a driver to provide access to imx6 on-chip one-time-programmble data.
ian [Sat, 15 Feb 2014 17:19:55 +0000 (17:19 +0000)]
Add a driver to provide access to imx6 on-chip one-time-programmble data.

Submitted by: Steven Lawrance <stl@koffein.net>

10 years agoBetter build fix.
glebius [Sat, 15 Feb 2014 16:22:51 +0000 (16:22 +0000)]
Better build fix.

10 years agoRework rctl(8) manpage
bdrewery [Sat, 15 Feb 2014 14:56:50 +0000 (14:56 +0000)]
Rework rctl(8) manpage

- Note that kernel options are required
- Shift parameters around in SYNOPSIS to make it more clear that there are
  different modes
- For all literal symbols such as 'process' or 'loginclass' or 'wallclock',
  etc, make them into bold symbols with .Sy
- For each subject:subject-id:etc: use .Em to underline to make it more clear
  they relate to the rule syntax
- Document how devd(8) support works
- Move RSS warning to BUGS and replace RSS with 'memoryuse' since 'RSS' is not
  defined in the manpage
- Add more examples around listing existing rules
- Make rule syntax into a list to improve readability
- Add a list of subjects and their corresponding subject-id same as
  RESOURCES/ACTIONS have lists
- Note that rctl(8) takes affect on all current and future processes
- Note that amount can take human numbers
- Add reference to login.conf(5) in few places login class is mentioned

Reviewed by: trasz
Approved by: bapt (mentor)
MFC after: 1 week