]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMerge from HEAD
bapt [Sun, 8 Feb 2015 15:41:27 +0000 (15:41 +0000)]
Merge from HEAD

9 years agoAdd Neoway WM620 module ID.
dchagin [Sun, 8 Feb 2015 11:55:29 +0000 (11:55 +0000)]
Add Neoway WM620 module ID.

MFC after: 1 Week

9 years agoMake output of "iscsictl -v" and "ctladm islist -v" a little prettier
trasz [Sun, 8 Feb 2015 10:58:25 +0000 (10:58 +0000)]
Make output of "iscsictl -v" and "ctladm islist -v" a little prettier
by capitalizing "None".

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agocxgbe(4): tidy up some of the interaction between the Upper Layer
np [Sun, 8 Feb 2015 09:28:55 +0000 (09:28 +0000)]
cxgbe(4): tidy up some of the interaction between the Upper Layer
Drivers (ULDs) and the base if_cxgbe driver.

Track the per-adapter activation of ULDs in a new "active_ulds" field.
This was done pretty arbitrarily before this change -- via TOM_INIT_DONE
in adapter->flags for TOM, and the (1 << MAX_NPORTS) bit in
adapter->offload_map for iWARP.

iWARP and hw-accelerated iSCSI rely on the TOE (supported by the TOM
ULD).  The rules are:
a) If the iWARP and/or iSCSI ULDs are available when TOE is enabled then
   iWARP and/or iSCSI are enabled too.
b) When the iWARP and iSCSI modules are loaded they go looking for
   adapters with TOE enabled and enable themselves on that adapter.
c) You cannot deactivate or unload the TOM module from underneath iWARP
   or iSCSI.  Any such attempt will fail with EBUSY.

MFC after: 2 weeks

9 years agocxgbe(4): adapter_full_init is always a synchronized operation.
np [Sun, 8 Feb 2015 08:52:18 +0000 (08:52 +0000)]
cxgbe(4): adapter_full_init is always a synchronized operation.

MFC after: 1 week

9 years agocxgbe(4): a change to the synchronization rules within the the driver.
np [Sun, 8 Feb 2015 08:42:45 +0000 (08:42 +0000)]
cxgbe(4): a change to the synchronization rules within the the driver.
This is purely cosmetic because the new rules are already followed.

MFC after: 1 week

9 years agoFix a typo in r278137: make sure to free provider state.
markj [Sun, 8 Feb 2015 03:55:12 +0000 (03:55 +0000)]
Fix a typo in r278137: make sure to free provider state.

X-MFC-With:     r278136

9 years agoAdd VideoCore audio driver for Rasperry Pi (BCM2835)
gonzo [Sun, 8 Feb 2015 01:12:40 +0000 (01:12 +0000)]
Add VideoCore audio driver for Rasperry Pi (BCM2835)

9 years agoAct as a bus in attach method: probe and attach devices
gonzo [Sun, 8 Feb 2015 01:12:23 +0000 (01:12 +0000)]
Act as a bus in attach method: probe and attach devices

9 years agoBig wpi(4) overhaul! Not by me!
adrian [Sat, 7 Feb 2015 23:11:38 +0000 (23:11 +0000)]
Big wpi(4) overhaul! Not by me!

This is a sync against iwn(4) and openbsd.

- Add power management support;
- Add background scanning support;
- Fix few LORs;
- Handle rfkill switch state changes properly;
- Fix recovering after firmware failure;
- Add more error checking;
- Cleanup & disable by default debug output;
- Update macroses names;
- Other various fixes;
- Add IBSS support:
  - don't set data_ntries field for management frames;
- Add AHDEMO support:
    - fix padding;
- Sync eeprom functions;
- Use CMD_RXON_ASSOC where possible;
- Enable HW CCMP encryption/decryption for pairwise keys;
- Fix filter flags for CMD_RXON.

Tested (by submitter) - iwn 3945 NIC.  I have one somewhere; I'll
validate this later on and revert it if it's a problem.

Thanks!

PR: 197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd WPI_DEBUG option.
adrian [Sat, 7 Feb 2015 23:09:03 +0000 (23:09 +0000)]
Add WPI_DEBUG option.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRemove kdb_backtrace extern; get the definition for kdb_backtrace from
ngie [Sat, 7 Feb 2015 21:29:17 +0000 (21:29 +0000)]
Remove kdb_backtrace extern; get the definition for kdb_backtrace from
<sys/kdb.h> instead

Fix whitespace in WARN_ON macro definition

MFC after: 1 week
Reviewed by: np
Differential Revision: https://reviews.freebsd.org/D1799
Sponsored by: EMC / Isilon Storage Division

9 years agoProtect uninitialized scalar variable from being accessed
pfg [Sat, 7 Feb 2015 19:51:34 +0000 (19:51 +0000)]
Protect uninitialized scalar variable from being accessed

In a couple of cases a variable "stayopen" can be checked
unitialized. This is of no danger as the complementary
condition is false but prevent the access by switching
the checks.

CID: 1018729
CID: 1018732

9 years agoFix couple issues in ctlstat header printing.
mav [Sat, 7 Feb 2015 17:53:47 +0000 (17:53 +0000)]
Fix couple issues in ctlstat header printing.

MFC after: 1 week

9 years agoBack out r278349 and r278350 for now, since this apparently blows up the
dim [Sat, 7 Feb 2015 16:57:32 +0000 (16:57 +0000)]
Back out r278349 and r278350 for now, since this apparently blows up the
kernel build in sys/dev/hptmv/hptproc.c for some people.

Reported by: sbruno, Matthew Fuller <fullermd@over-yonder.net>

9 years agoMake hccontrol(8) and sdpcontrol(8) appear in "man -k bluetooth" output.
trasz [Sat, 7 Feb 2015 14:31:51 +0000 (14:31 +0000)]
Make hccontrol(8) and sdpcontrol(8) appear in "man -k bluetooth" output.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoTidy up; no functional changes.
trasz [Sat, 7 Feb 2015 14:15:17 +0000 (14:15 +0000)]
Tidy up; no functional changes.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoTeach ctld(8) to control non-iSCSI CTL ports.
mav [Sat, 7 Feb 2015 13:19:04 +0000 (13:19 +0000)]
Teach ctld(8) to control non-iSCSI CTL ports.

This change introduces new target option "port", that assigns current target
to specified CTL port.  On config application ctld(8) will apply LUN mapping
according to target configuration to specified port and bring the port up.
On shutdown cltd(8) will remove the mapping and put the port down.

This change allows to configure both iSCSI and FibreChannel targets in the
same configuration file in alike way.

Kernel side support was added earlier at r278037.

MFC after: 2 weeks
Relnotes: yes
Sponsored by: iXsystems, Inc.

9 years agoRemove useless comment.
trasz [Sat, 7 Feb 2015 13:11:45 +0000 (13:11 +0000)]
Remove useless comment.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAdd llvm patch corresponding to r278349.
dim [Sat, 7 Feb 2015 12:52:34 +0000 (12:52 +0000)]
Add llvm patch corresponding to r278349.

9 years agoPull in r224884 from upstream llvm trunk (by Keno Fischer):
dim [Sat, 7 Feb 2015 12:50:33 +0000 (12:50 +0000)]
Pull in r224884 from upstream llvm trunk (by Keno Fischer):

  [FastIsel][X86] Fix invalid register replacement for bool args

  Summary:
  Consider the following IR:

   %3 = load i8* undef
   %4 = trunc i8 %3 to i1
   %5 = call %jl_value_t.0* @foo(..., i1 %4, ...)
   ret %jl_value_t.0* %5

  Bools (that are the result of direct truncs) are lowered as whatever
  the argument to the trunc was and a "and 1", causing the part of the
  MBB responsible for this argument to look something like this:

   %vreg8<def,tied1> = AND8ri %vreg7<kill,tied0>, 1, %EFLAGS<imp-def>; GR8:%vreg8,%vreg7

  Later, when the load is lowered, it will insert

   %vreg15<def> = MOV8rm %vreg14, 1, %noreg, 0, %noreg; mem:LD1[undef] GR8:%vreg15 GR64:%vreg14

  but remember to (at the end of isel) replace vreg7 by vreg15. Now for
  the bug. In fast isel lowering, we mistakenly mark vreg8 as the result
  of the load instead of the trunc. This adds a fixup to have
  vreg8 replaced by whatever the result of the load is as well, so
  we end up with

   %vreg15<def,tied1> = AND8ri %vreg15<kill,tied0>, 1, %EFLAGS<imp-def>; GR8:%vreg15

  which is an SSA violation and causes problems later down the road.

  This fixes PR21557.

  Test Plan: Test test case from PR21557 is added to the test suite.

  Reviewers: ributzka

  Reviewed By: ributzka

  Subscribers: llvm-commits

  Differential Revision: http://reviews.llvm.org/D6245

This fixes a possible assertion failure when compiling toolbox.cxx from
LibreOffice 4.3.5.

Reported by: kwm

9 years agoFix a number of -Wcast-qual warnings in ath's ar9300_attach.c, by making
dim [Sat, 7 Feb 2015 12:20:33 +0000 (12:20 +0000)]
Fix a number of -Wcast-qual warnings in ath's ar9300_attach.c, by making
the ia_array field of struct ar9300_ini_array const, and removing the
const-dropping casts.  No functional change.

Reviewed by: adrian
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D1725

9 years agoRevert the rc part of r278323 until I can figure out what Jenkins is doing.
jamie [Sat, 7 Feb 2015 05:02:10 +0000 (05:02 +0000)]
Revert the rc part of r278323 until I can figure out what Jenkins is doing.

9 years agocxgbe(4): fix a test made while enabling TOE.
np [Sat, 7 Feb 2015 01:50:32 +0000 (01:50 +0000)]
cxgbe(4): fix a test made while enabling TOE.

MFC after: 1 week

9 years agoMake VCHI driver optional and add "device vchiq" to default RPI-B config
gonzo [Sat, 7 Feb 2015 01:03:45 +0000 (01:03 +0000)]
Make VCHI driver optional and add "device vchiq" to default RPI-B config

9 years agoPull in the rpi.dts -> rpi.dtb module (dtb/rpi) and have it install
imp [Sat, 7 Feb 2015 00:41:08 +0000 (00:41 +0000)]
Pull in the rpi.dts -> rpi.dtb module (dtb/rpi) and have it install
rpi.dtb in /boot/dtb by default.

9 years agoTruncate the exponent 'n' of type long to a domain contained
kargl [Sat, 7 Feb 2015 00:38:18 +0000 (00:38 +0000)]
Truncate the exponent 'n' of type long to a domain contained
within [INT_MIN, INT_MAX] where the magnitude of the lower
and upper bounds are sufficiently large to span the range of
scalbn[fl].

While here, remove the GNU style bug in the function declarations.

Reviewed by: bde, pfg

9 years agoCreate a module to install the Raspberry Pi dtb files.
imp [Sat, 7 Feb 2015 00:13:36 +0000 (00:13 +0000)]
Create a module to install the Raspberry Pi dtb files.

9 years agoWhen upgrading, install the ELF runtime linkers before libraries.
brooks [Fri, 6 Feb 2015 23:44:16 +0000 (23:44 +0000)]
When upgrading, install the ELF runtime linkers before libraries.

This is required to prevent problems with nss modules that use libthr when
upgrading from releases prior to 10.1.

PR: 197366
Sponsored by: DARPA, AFRL
Differential Revision: D1790
Reviewed by: cperciva
MFC after: 3 days

9 years agoUnbreak the build (memchr is explicitly required by devctl(9) after r278320)
ngie [Fri, 6 Feb 2015 23:34:40 +0000 (23:34 +0000)]
Unbreak the build (memchr is explicitly required by devctl(9) after r278320)

Submitted by: Michael Butler <imb@protected-networks.net>
Reported by: O. Hartmann <ohartman@zedat.fu-berlin.de>

9 years agoRevert SVN r277693.
dteske [Fri, 6 Feb 2015 23:19:17 +0000 (23:19 +0000)]
Revert SVN r277693.

Discussed on: src-committers
Approved by: core (emaste)

9 years agoMake it possible to set (via ctl.conf(5)) and query (via ctladm islist -v)
trasz [Fri, 6 Feb 2015 21:03:25 +0000 (21:03 +0000)]
Make it possible to set (via ctl.conf(5)) and query (via ctladm islist -v)
target iSCSI offload.  Add mechanism to query maximum receive data segment
size supported by chosen hardware offload module, and use it in ctld(8)
to determine the value to advertise to the other side.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoBump .Dd per r278329
ngie [Fri, 6 Feb 2015 20:52:01 +0000 (20:52 +0000)]
Bump .Dd per r278329

9 years agoDocument WITNESS_COUNT and WITNESS_NO_VNODE
ngie [Fri, 6 Feb 2015 20:46:46 +0000 (20:46 +0000)]
Document WITNESS_COUNT and WITNESS_NO_VNODE

Reviewed by: bcr, kib
Differential Revision: D1789
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division

9 years agoChange ktrdump to use the more standard -M/-N flags to specify the path
jhb [Fri, 6 Feb 2015 19:41:23 +0000 (19:41 +0000)]
Change ktrdump to use the more standard -M/-N flags to specify the path
to a crash dump and kernel, respectively.  The existing -m/-e flags are
still supported for backwards compatiblity but are no longer documented.

Requested by: np
MFC after: 2 weeks

9 years agoRevert the IPI startup sequence to match what is described in the
jhb [Fri, 6 Feb 2015 18:19:59 +0000 (18:19 +0000)]
Revert the IPI startup sequence to match what is described in the
Intel Multiprocessor Specification v1.4.  The Intel SDM claims that
the INIT IPIs here are invalid, but other systems follow the MP
spec instead.

While here, fix the IPI wait routine to accept a timeout in microseconds
instead of a raw spin count, and don't spin forever during AP startup.
Instead, panic if a STARTUP IPI is not delivered after 20 us.

PR: 196542
Differential Revision: https://reviews.freebsd.org/D1719
MFC after: 2 weeks

9 years agoAdd mount.procfs jail parameter, so procfs can be mounted when a prison's
jamie [Fri, 6 Feb 2015 17:54:53 +0000 (17:54 +0000)]
Add mount.procfs jail parameter, so procfs can be mounted when a prison's
root is in its fstab.

Also fix a typo while I'm at it.

PR: 197237 197066
MFC after: 3 days

9 years agoAdd support for multiple portal groups per target.
mav [Fri, 6 Feb 2015 17:43:13 +0000 (17:43 +0000)]
Add support for multiple portal groups per target.

This change allows multiple "portal-group" options to be specified per
target.  Each of them may include new optional auth-group name parameter
to override per-target auth parameters for specific portal group.

Kernel side support was added earlier at r278161.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

9 years agoUse direct hardware access for internal requests for KCS and SMIC. In
jhb [Fri, 6 Feb 2015 16:45:10 +0000 (16:45 +0000)]
Use direct hardware access for internal requests for KCS and SMIC.  In
particular, updates to the watchdog should no longer sleep.
- Add a new IPMI_IO_LOCK for low-level I/O access.  Use this for
  kcs_polled_request() and smic_polled_request().
- Add a new backend callback "ipmi_driver_request" to handle a driver
  request.  The new callback performs the request sychronously for KCS
  and SMIC.  SSIF still defers the work to the worker thread since the
  worker thread sleeps during request processing anyway.
- Allocate driver requests on the stack rather than using malloc().

Differential Revision: https://reviews.freebsd.org/D1723
Tested by: scottl
MFC after: 2 weeks

9 years agoAdd a new device control utility for new-bus devices called devctl. This
jhb [Fri, 6 Feb 2015 16:09:01 +0000 (16:09 +0000)]
Add a new device control utility for new-bus devices called devctl.  This
allows the user to request administrative changes to individual devices
such as attach or detaching drivers or disabling and re-enabling devices.
- Add a new /dev/devctl2 character device which uses ioctls for device
  requests.  The ioctls use a common 'struct devreq' which is somewhat
  similar to 'struct ifreq'.
- The ioctls identify the device to operate on via a string.  This
  string can either by the device's name, or it can be a bus-specific
  address.  (For unattached devices, a bus address is the only way to
  locate a device.)  Bus drivers register an eventhandler to claim
  unrecognized device names that the driver recognizes as a valid address.
  Two buses currently support addresses: ACPI recognizes any device
  in the ACPI namespace via its full path starting with "\" and
  the PCI bus driver recognizes an address specification of
  'pci[<domain>:]<bus>:<slot>:<func>' (identical to the PCI selector
  strings supported by pciconf).
- To make it easier to cut and paste, change the PnP location string
  in the PCI bus driver to output a full PCI selector string rather
  than 'slot=<slot> function=<func>'.
- Add a devctl(3) interface in libdevctl which provides a wrapper around
  the ioctls and is the preferred interface for other userland code.
- Add a devctl(8) program which is a simple wrapper around the requests
  supported by devctl(3).
- Add a device_is_suspended() function to check DF_SUSPENDED.
- Add a resource_unset_value() function that can be used to remove a
  hint from the kernel environment.  This is used to clear a
  hint.<driver>.<unit>.disabled hint when re-enabling a boot-time
  disabled device.

Reviewed by: imp (parts)
Requested by: imp (changing PCI location string)
Relnotes: yes

9 years agomakeroot: Add -l option to set file system volume label
emaste [Fri, 6 Feb 2015 15:38:11 +0000 (15:38 +0000)]
makeroot: Add -l option to set file system volume label

Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D1782

9 years agoHandle invocation with neither of -e / -f
emaste [Fri, 6 Feb 2015 15:34:10 +0000 (15:34 +0000)]
Handle invocation with neither of -e / -f

Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D1780

9 years agoMake "ctladm islist" ignore unknown elements, so the old version
trasz [Fri, 6 Feb 2015 14:44:29 +0000 (14:44 +0000)]
Make "ctladm islist" ignore unknown elements, so the old version
continues to work with newer kernel.

Other ctladm(8) "*list" subcommands seem to already handle it in
a reasonable way.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoUpdate comment and NetBSD ID tag.
pfg [Fri, 6 Feb 2015 14:22:00 +0000 (14:22 +0000)]
Update comment and NetBSD ID tag.

The NetBSD revisions correspond to changes we have already done
like __P() removal and ANSI-fication of definitions.

9 years agoDrop cgetclose() from getdiskbyname().
pfg [Fri, 6 Feb 2015 14:07:01 +0000 (14:07 +0000)]
Drop cgetclose() from getdiskbyname().

This was a local addition to the original change from NetBSD.
Being this libc there is some chance for it to interfere with
user's cget*() functions usage. The memory leak was finely
plugged by r278300.

Pointed out by: ache

9 years agoFully initialize allocated memory for the new barrier. The
kib [Fri, 6 Feb 2015 12:18:38 +0000 (12:18 +0000)]
Fully initialize allocated memory for the new barrier.  The
b_destroying member was left uninitialized, which caused spurious
EBUSY.

PR: 197365
Noted by: Florent Guiliani <fguiliani@verisign.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoSome NetGraph debug polishing.
mav [Fri, 6 Feb 2015 09:41:16 +0000 (09:41 +0000)]
Some NetGraph debug polishing.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 2 weeks

9 years agoAlways prefer double dashes for GNU LD long options.
davide [Fri, 6 Feb 2015 03:49:31 +0000 (03:49 +0000)]
Always prefer double dashes for GNU LD long options.

I discovered this while working on llvm/lld and realized export-dynamic
only supported --. Although upstream will eventually grow to support
both - and --, switch this in our build system, because GNU ld supports
both modes, and because there's some hope lld will become the default linker
for FreeBSD in the future.

Discussed with: emaste, rdivacky

9 years agoAdd a comment explaining why gcc is needed.
jhibbits [Fri, 6 Feb 2015 02:35:29 +0000 (02:35 +0000)]
Add a comment explaining why gcc is needed.

X-MFC-With: 278231
MFC after: 2 weeks

9 years agoAdd a FAT label to the EFI boot1 partition.
rpaulo [Fri, 6 Feb 2015 01:42:17 +0000 (01:42 +0000)]
Add a FAT label to the EFI boot1 partition.

MFC after: 1 week

9 years agocxgbe(4): Add a minimal if_cxl module that pulls in the real driver as
np [Fri, 6 Feb 2015 01:10:04 +0000 (01:10 +0000)]
cxgbe(4): Add a minimal if_cxl module that pulls in the real driver as
a dependency.  This ensures "ifconfig cxl<n> ..." does the right thing
even when it's run with no driver loaded.

if_cxl.ko is the tiniest module in /boot/kernel.

MFC after: 2 weeks

9 years agoDon't add static IPv6 routes when to all FIBs when net.add_addr_allfibs is 0.
rpaulo [Fri, 6 Feb 2015 00:02:00 +0000 (00:02 +0000)]
Don't add static IPv6 routes when to all FIBs when net.add_addr_allfibs is 0.

This avoids a bunch of boot time warnings when rc.d/routing runs.

MFC after: 1 week

9 years agotdelete(3): don't delete the node we are about to return.
pfg [Thu, 5 Feb 2015 23:02:43 +0000 (23:02 +0000)]
tdelete(3): don't delete the node we are about to return.

CID: 272528
Obtained from: NetBSD (CVS rev. 1.4)
MFC after: 2 weeks

9 years agogetdiskbyname(): plug resource leak
pfg [Thu, 5 Feb 2015 22:54:31 +0000 (22:54 +0000)]
getdiskbyname(): plug resource leak

Variable cq going out of scope leaks the storage it points to.

CID: 270511
Phabric: D1775
Reviewed by: imp
Obtained from: NetBSD (CVS rev. 1.34)
MFC after: 2 weeks

9 years agoExpose the constants for internal new-bus device flags to userland. The
jhb [Thu, 5 Feb 2015 22:42:44 +0000 (22:42 +0000)]
Expose the constants for internal new-bus device flags to userland.  The
flag value is already exposed via dv_flags, just not the meaning of the
flags themselves.  Use these constants to annotate devices that are
disabled or suspended in devinfo output.

9 years agoFix two clang 3.6.0 warnings in usr.sbin/syslogd:
dim [Thu, 5 Feb 2015 22:28:00 +0000 (22:28 +0000)]
Fix two clang 3.6.0 warnings in usr.sbin/syslogd:

usr.sbin/syslogd/syslogd.c:1023:10: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                    f->f_prevline && !strcmp(msg, f->f_prevline) &&
                    ~~~^~~~~~~~~~
usr.sbin/syslogd/syslogd.c:1178:16: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
        } else if (f->f_prevline) {
               ~~  ~~~^~~~~~~~~~

In both cases, the f_prevline field of struct filed is a char array, so
it can never be null.  Remove the checks.

Reviewed by: jilles
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D1716

9 years agoSet and clear the DF_SUSPENDED flag on the child device being manipulated
jhb [Thu, 5 Feb 2015 22:24:22 +0000 (22:24 +0000)]
Set and clear the DF_SUSPENDED flag on the child device being manipulated
rather than on the parent.

9 years agoapparently MAN was misspelled, fix..
jmg [Thu, 5 Feb 2015 21:56:23 +0000 (21:56 +0000)]
apparently MAN was misspelled, fix..

Submitted by: ngie

9 years agoAdd the device ID for the AMT serial port on my Thinkpad T400.
jhb [Thu, 5 Feb 2015 21:50:51 +0000 (21:50 +0000)]
Add the device ID for the AMT serial port on my Thinkpad T400.

MFC after: 1 week

9 years agoUse FILES+= idiom instead of _inetd when referencing inetd rc.d script
ngie [Thu, 5 Feb 2015 20:45:50 +0000 (20:45 +0000)]
Use FILES+= idiom instead of _inetd when referencing inetd rc.d script

This was a discrepancy between ^/projects/building-blocks and ^/head that I
didn't resolve before committing the change to ^/head

Pointyhat to: me
Reported by: jhb
MFC after: 20 days
X-MFC with: r278249
Sponsored by: EMC / Isilon Storage Division

9 years agoadd a quick testing program I wrote for adrian...
jmg [Thu, 5 Feb 2015 20:23:36 +0000 (20:23 +0000)]
add a quick testing program I wrote for adrian...

9 years agoImport VCHI driver for Broadcom's VideoCore IV GPU
gonzo [Thu, 5 Feb 2015 19:54:03 +0000 (19:54 +0000)]
Import VCHI driver for Broadcom's VideoCore IV GPU

Differential Revision: D1753

9 years agovtvga: improve the device description.
rpaulo [Thu, 5 Feb 2015 19:36:29 +0000 (19:36 +0000)]
vtvga: improve the device description.

9 years agoRemove splvm(). It is no longer in the tree.
jkim [Thu, 5 Feb 2015 19:17:37 +0000 (19:17 +0000)]
Remove splvm().  It is no longer in the tree.

9 years agoPrint IPv6 address in log message instead of address of pointer.
ae [Thu, 5 Feb 2015 16:29:26 +0000 (16:29 +0000)]
Print IPv6 address in log message instead of address of pointer.

MFC after: 1 week

9 years agoBump copyright year.
gjb [Thu, 5 Feb 2015 16:00:34 +0000 (16:00 +0000)]
Bump copyright year.

Sponsored by: The FreeBSD Foundation

9 years agoSecurity Advisory information is included on several
gjb [Thu, 5 Feb 2015 15:46:01 +0000 (15:46 +0000)]
Security Advisory information is included on several
pages in the release notes.  Rather than duplicating
the information between various files, add two new
files to include in all pages that currently display
the information.

Sponsored by: The FreeBSD Foundation

9 years agoFix IP_FW_NAT44_LIST_NAT size calculation.
melifaro [Thu, 5 Feb 2015 14:54:53 +0000 (14:54 +0000)]
Fix IP_FW_NAT44_LIST_NAT size calculation.

Found by: lev
Sponsored by: Yandex LLC

9 years agoAdd an entity to use to link to SAs and ENs.
gjb [Thu, 5 Feb 2015 14:08:57 +0000 (14:08 +0000)]
Add an entity to use to link to SAs and ENs.
Prefer https:// for other URLs.
While here, update release.prev.stable entity to
9.3-RELEASE.

Sponsored by: The FreeBSD Foundation

9 years agoRetrieve counters from kernel if rule timstamping is requested.
melifaro [Thu, 5 Feb 2015 14:08:33 +0000 (14:08 +0000)]
Retrieve counters from kernel if rule timstamping is requested.

PR: kern/197271
Submitted by: lev
Sponsored by: Yandex LLC

9 years ago* Make sure table algorithm destroy hook is always called without locks
melifaro [Thu, 5 Feb 2015 13:49:04 +0000 (13:49 +0000)]
* Make sure table algorithm destroy hook is always called without locks
* Explicitly lock freeing interface references in ta_destroy_ifidx
* Change ipfw_iface_unref() to require UH lock
* Add forgotten ipfw_iface_unref() to destroy_ifidx_locked()

PR: kern/197276
Submitted by: lev
Sponsored by: Yandex LLC

9 years agoPartially revert r277922, avoid sleeping and do flush if we a awaken,
kib [Thu, 5 Feb 2015 13:00:27 +0000 (13:00 +0000)]
Partially revert r277922, avoid sleeping and do flush if we a awaken,
instead of waiting for the FLUSH_* flags.  Also, when requesting
flush, do the wakeups unconditionally even when FLUSH_CLEANUP flag was
already set.

Reported and tested by: dim,
"Lundberg, Johannes" <johannes@brilliantservice.co.jp>
Bisected by: dim
MFC after: 2 weeks

9 years agosfxge: Add statistics for partially dropped TSO packets
arybchik [Thu, 5 Feb 2015 12:10:23 +0000 (12:10 +0000)]
sfxge: Add statistics for partially dropped TSO packets

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: using 64-bit access for x86-64
arybchik [Thu, 5 Feb 2015 12:08:25 +0000 (12:08 +0000)]
sfxge: using 64-bit access for x86-64

Submitted by:   Artem V. Andreev <Artem.Andreev at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoHonor the following flags for items that can be conditionalized out of the
ngie [Thu, 5 Feb 2015 11:42:59 +0000 (11:42 +0000)]
Honor the following flags for items that can be conditionalized out of the
build/install without disrupting other dependent services (see r278249, et
al):

- MK_LOCATE
- MK_MAN
- MK_NLS
- MK_OPENSSL
- MK_PKGBOOTSTRAP
- MK_SENDMAIL

Additional flags need to be handled in etc/Makefile, but it requires
refactoring the relevant scripts in etc/rc.d/*

MFC after: 3 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agosfxge: make lock names unique
arybchik [Thu, 5 Feb 2015 11:39:15 +0000 (11:39 +0000)]
sfxge: make lock names unique

Lock name should include interface name.
Tx queue and event queue lock name should include queue number.

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoHonor the following flags with the following rc.d scripts for services that can
ngie [Thu, 5 Feb 2015 11:38:29 +0000 (11:38 +0000)]
Honor the following flags with the following rc.d scripts for services that can
be easily decoupled from the boot process without disrupting other services

- MK_APM && MK_ACPI: powerd
- MK_BOOTPARAMD: bootparams
- MK_FTP: ftpd
- MK_INETD: inetd
- MK_LEGACY_CONSOLE: moused, syscons
- MK_MAIL: othermta
- MK_NS_CACHING: nscd
- MK_NTP: ntpd (ntpdate is required by other services and can't be easily
                conditionalized -- yet..)
- MK_ROUTED: routed
- MK_SENDMAIL: sendmail
- MK_TIMED: timed
- MK_VI: virecover

MFC after: 3 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agosfxge: access statistics buffers under port lock
arybchik [Thu, 5 Feb 2015 11:37:07 +0000 (11:37 +0000)]
sfxge: access statistics buffers under port lock

Allow access to statistics data not only from sysctl handlers.

Submitted by:   Boris Misenov <Boris.Misenov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agocxgbe(4): reserve id for iSCSI upper layer driver.
np [Thu, 5 Feb 2015 08:52:20 +0000 (08:52 +0000)]
cxgbe(4): reserve id for iSCSI upper layer driver.

9 years agoturn GEOM_UNCOMPRESS_DEBUG into a proper option so it can be specified
jmg [Thu, 5 Feb 2015 07:51:38 +0000 (07:51 +0000)]
turn GEOM_UNCOMPRESS_DEBUG into a proper option so it can be specified
in kernel config files..

put VERBOSE_SYSINIT in it's own option header so the one file,
init_main.c, can use it instead of requiring an entire kernel recompile
to change one file..

9 years agoDon't call callout_drain() with iscsi mutex held; this fixes a warning
trasz [Thu, 5 Feb 2015 07:46:34 +0000 (07:46 +0000)]
Don't call callout_drain() with iscsi mutex held; this fixes a warning
that was introduced recently.  While here, don't try to access is_terminating
without lock.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoThe connection_new() routine was taking an absurd number of parameters; fix it.
trasz [Thu, 5 Feb 2015 07:32:24 +0000 (07:32 +0000)]
The connection_new() routine was taking an absurd number of parameters; fix it.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoEFI: print more information about EFI Tables.
rpaulo [Thu, 5 Feb 2015 07:19:30 +0000 (07:19 +0000)]
EFI: print more information about EFI Tables.

This adds the GUIDs for DXE, HOB, Memory Type Information and Debug
Image Info.

9 years agoFix error handling.
trasz [Thu, 5 Feb 2015 07:16:45 +0000 (07:16 +0000)]
Fix error handling.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMake it possible to set (via iscsi.conf(5)) and query (via iscsictl -v)
trasz [Thu, 5 Feb 2015 06:37:59 +0000 (06:37 +0000)]
Make it possible to set (via iscsi.conf(5)) and query (via iscsictl -v)
initiator iSCSI offload.  Pass maximum data segment size supported by
chosen offload module to iscsid(8), and make iscsid(8) not try to negotiate
anything larger than that.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agopowerpc64 csu needs to be built by gcc, so enforce that.
jhibbits [Thu, 5 Feb 2015 03:56:49 +0000 (03:56 +0000)]
powerpc64 csu needs to be built by gcc, so enforce that.

With this change, world is one step closer to being clang-able.

MFC after: 2 weeks

9 years agoInitialize ticks so that it wraps 10 minutes after boot to increase the
peter [Thu, 5 Feb 2015 01:43:21 +0000 (01:43 +0000)]
Initialize ticks so that it wraps 10 minutes after boot to increase the
chances of finding problems related to wraparound sooner.

This comes from P4 change 167856 on 2009/08/26 around when we had problems
with the TCP stack with ticks after 24 days of uptime.

9 years agoAdd -fwrapv to CFLAGS for the kernel. This essentially un-reverts r259045.
peter [Thu, 5 Feb 2015 01:36:53 +0000 (01:36 +0000)]
Add -fwrapv to CFLAGS for the kernel.  This essentially un-reverts r259045.

The C standard undefines behavior when signed integers overflow. The
compiler toolchain has become more adept at detecting this and taking
advantage of faster undefined behavior.  At the current time this has the
unfortunate effect of the clock stopping after 24 days of uptime.

clang makes no distinction between -fwrapv and -fno-strict-overflow.  gcc
does treat them differently but -fwrapv is mature in gcc and is the
behavior are actually expecting.

Obtained from: kib

9 years agoAdd support for probing the SCSI VPD Extended Inquiry page (0x86).
ken [Thu, 5 Feb 2015 00:12:21 +0000 (00:12 +0000)]
Add support for probing the SCSI VPD Extended Inquiry page (0x86).

This VPD page is effectively an extension of the standard Inquiry
data page, and includes lots of additional bits.

This commit includes support for probing the page in the SCSI probe code,
and an additional request type for the XPT_DEV_ADVINFO CCB.  CTL already
supports the Extended Inquiry page.

Support for querying this page in the sa(4) driver will come later.

sys/cam/scsi/scsi_xpt.c:
Probe the Extended Inquiry page, if the device supports it, and
return it in response to a XPT_DEV_ADVINFO CCB if it is requested.

sys/cam/scsi/cam_ccb.h:
Define a new advanced information CCB data type, CDAI_TYPE_EXT_INQ.

sys/cam/cam_xpt.c:
Free the extended inquiry data in a device when the device goes
away.

sys/cam/cam_xpt_internal.h:
Add an extended inquiry data pointer and length to struct cam_ed.

sys/sys/param.h
Bump __FreeBSD_version for the addition of the new
CDAI_TYPE_EXT_INQ advanced information type.

Sponsored by: Spectra Logic
MFC after: 1 week

9 years agoFollowup to r278223, by only using -stdlib=libc++ when the compiler is
dim [Wed, 4 Feb 2015 21:48:50 +0000 (21:48 +0000)]
Followup to r278223, by only using -stdlib=libc++ when the compiler is
clang; not even recent versions of gcc support the -stdlib flag.

Noticed by: ngie

9 years agoFor now, add -stdlib=libc++ to the flags for building clang, since that
dim [Wed, 4 Feb 2015 21:00:29 +0000 (21:00 +0000)]
For now, add -stdlib=libc++ to the flags for building clang, since that
makes it easier to build head on stable/9, where libstdc++ is still the
default.  We can revisit this when somebody will try to build base with
gcc 4.8.1 or higher, and its included libstdc++.

Reported by: rpaulo

9 years agoMark typedefs for manually implementing _Static_assert() as unused, so
dim [Wed, 4 Feb 2015 20:55:21 +0000 (20:55 +0000)]
Mark typedefs for manually implementing _Static_assert() as unused, so
they won't show up unecessarily for -Wunused-local-typedefs.

MFC after: 3 days

9 years agosfxge: Add macros to init, destroy, acquire, release and assert locks
arybchik [Wed, 4 Feb 2015 20:03:57 +0000 (20:03 +0000)]
sfxge: Add macros to init, destroy, acquire, release and assert locks

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agosfxge: Implement EFSYS_MEM_READ_BARRIER()
arybchik [Wed, 4 Feb 2015 19:58:54 +0000 (19:58 +0000)]
sfxge: Implement EFSYS_MEM_READ_BARRIER()

Sponsored by:   Solarflare Communications, Inc.
Approved by:    gnn (mentor)

9 years agoFix a bug where an interrupt could be masked unintentionally when
loos [Wed, 4 Feb 2015 18:35:49 +0000 (18:35 +0000)]
Fix a bug where an interrupt could be masked unintentionally when
bus_config_intr() is called with the same interrupt type and polarity that
is already set.

Pointy hat: loos

9 years agoAdd GPIO interrupt support for BCM2835 (Raspberry pi).
loos [Wed, 4 Feb 2015 18:15:28 +0000 (18:15 +0000)]
Add GPIO interrupt support for BCM2835 (Raspberry pi).

With this commit any of the GPIO pins can now be programmed to act as an
interrupt source for GPIO devices (i.e. limited to devices directly
attached to gpiobus - at least for now).

Differential Revision: https://reviews.freebsd.org/D1000

9 years agoSort and remove unnecessary includes.
loos [Wed, 4 Feb 2015 17:23:02 +0000 (17:23 +0000)]
Sort and remove unnecessary includes.

9 years agoRemove stale comments about the issues with HS mode.
loos [Wed, 4 Feb 2015 16:36:51 +0000 (16:36 +0000)]
Remove stale comments about the issues with HS mode.

Remove a previous workaround to limit the minimum sdhci frequency that
isn't needed anymore.

9 years agoRemove some duplicate calls to bus_release_resource() and destroy the mutex
loos [Wed, 4 Feb 2015 16:21:45 +0000 (16:21 +0000)]
Remove some duplicate calls to bus_release_resource() and destroy the mutex
on error cases.

While here remove unnecessary includes.

9 years agoFix typo
imp [Wed, 4 Feb 2015 16:19:31 +0000 (16:19 +0000)]
Fix typo

Submitted by: matteo@