]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agogcc: Backport fixes for -W parentheses in C++
Pedro F. Giffuni [Wed, 13 Nov 2013 04:31:27 +0000 (04:31 +0000)]
gcc: Backport fixes for -W parentheses in C++

This fixes GCC 19564:
  http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00868.html
  http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01772.html
  http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00545.html

The patch and its fixes are used by Google in their enhanced gcc-4.2.1
port and predates the license switch in GCC so they are still under
GPLv2.

MFC after: 3 weeks

10 years agoAdd support for multiple instances of ftp-proxy
Josh Paetzel [Wed, 13 Nov 2013 03:50:31 +0000 (03:50 +0000)]
Add support for multiple instances of ftp-proxy
and pflog devices.

PR: conf/158171
Submitted by: Thomas Johnson <tom@claimlynx.com>

10 years agoFix typo.
Justin Hibbits [Wed, 13 Nov 2013 01:51:40 +0000 (01:51 +0000)]
Fix typo.

Submitted by: loos

10 years agoIncrease the stack size for ppc64 from 4 pages to 8.
Justin Hibbits [Wed, 13 Nov 2013 01:37:52 +0000 (01:37 +0000)]
Increase the stack size for ppc64 from 4 pages to 8.

I found a stack overflow when a coredump was taken onto a ZFS volume with
heavy network activity.  2 DSI traps, plus one DECR trap, along with several
function calls in the stack, overflowed the 4 pages.  8 page stack fixes this.

Discussed with: nwhitehorn
MFC after: 1 week

10 years agoAdd ENETUNREACH and EADDRNOTAVAIL to the list of errors that are potentially
Ian Lepore [Wed, 13 Nov 2013 01:04:02 +0000 (01:04 +0000)]
Add ENETUNREACH and EADDRNOTAVAIL to the list of errors that are potentially
transient and shouldn't result in closing the socket and giving up forever.

10 years agoThis fixes 3 problems in syslogd related to sizing receive buffers...
Ian Lepore [Wed, 13 Nov 2013 01:01:15 +0000 (01:01 +0000)]
This fixes 3 problems in syslogd related to sizing receive buffers...

- A call was misplaced at the wrong level of nested if blocks, so that
  the buffers for unix domain sockets (/dev/log, /dev/klog) were never
  increased at all; they remained at a way-too-small default size of 4096.

- The function that was supposed to double the size of the buffer
  sometimes did nothing, and sometimes installed a wildly-wrong buffer
  size (either too large or too small) due to an unitialized 'slen'
  variable passed to getsockopt().  Most often it doubled the UDP buffers
  from 40k to 80k because accidentally there would be harmless stack
  garbage in the unitialized variables.

- The whole concept of blindly doubling a socket's buffer size without
  knowing what size it started at is a design flaw that has to be called a
  bug.  If the double_rbuf() function had worked at all (I.E., if the
  other two bugs didn't exist) this would lead to UDP sockets having an
  80k buffer while unix dgram sockets get an 8k buffer.  There's nothing
  about the problem being solved that requires larger buffers for UDP than
  for unix dgram sockets -- the buffering requirements are the same
  regardless of socket type.

This change renames the double_rbuf() function to increase_rbuf() and
increases the buffer size on all types of sockets to 80k.  80k was
chosen only because it appears to be the size the original change was
shooting for, and it certainly seems to be reasonably large (I might
have picked 64k in the absence of any historical guidance).

PR: 160433
Submitted by: me, in 2011.

10 years agoMove the ioapic device model from userspace into vmm.ko. This is needed for
Neel Natu [Tue, 12 Nov 2013 22:51:03 +0000 (22:51 +0000)]
Move the ioapic device model from userspace into vmm.ko. This is needed for
upcoming in-kernel device emulations like the HPET.

The ioctls VM_IOAPIC_ASSERT_IRQ and VM_IOAPIC_DEASSERT_IRQ are used to
manipulate the ioapic pin state.

Discussed with: grehan@
Submitted by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)

10 years agoCheck for special status code from FIRMWARE_ACTIVATE command
Jim Harris [Tue, 12 Nov 2013 21:14:19 +0000 (21:14 +0000)]
Check for special status code from FIRMWARE_ACTIVATE command
signifying that a reboot is required to complete activation
of the requested firmware image.

Reported by: Joe Golio <joseph.golio@emc.com>
Sponsored by: Intel
MFC after: 3 days

10 years agoRegression tests for the libnv library.
Pawel Jakub Dawidek [Tue, 12 Nov 2013 20:31:16 +0000 (20:31 +0000)]
Regression tests for the libnv library.

Sponsored by: The FreeBSD Foundation

10 years agoAdd VM_LAST, a special last element in enum VM_GUEST and use it in CTASSERT
Sergey Kandaurov [Tue, 12 Nov 2013 20:13:10 +0000 (20:13 +0000)]
Add VM_LAST, a special last element in enum VM_GUEST and use it in CTASSERT
to ensure that vm_guest range is covered by vm_guest_sysctl_names.

Suggested by: mjg

10 years agoAdd a pre-world mode of updating similar to the -p option that can be
John Baldwin [Tue, 12 Nov 2013 19:44:18 +0000 (19:44 +0000)]
Add a pre-world mode of updating similar to the -p option that can be
passed to mergemaster.  In this mode, only changes to /etc/master.passwd
and /etc/group are merged to /etc.  In addition, it uses a temporary
tree to stage these changes rather than overwriting the existing
'current' and 'previous' trees so that a full update can be run after
a normal installworld has completed.

MFC after: 2 weeks

10 years agoBring in libnv library for managing name/value pairs. The following types
Pawel Jakub Dawidek [Tue, 12 Nov 2013 19:39:14 +0000 (19:39 +0000)]
Bring in libnv library for managing name/value pairs. The following types
are currently supported:

- NV_TYPE_NULL - only name, no data;
- NV_TYPE_BOOL - boolean (true or false);
- NV_TYPE_NUMBER - 64bit unsigned integer;
- NV_TYPE_STRING - C string;
- NV_TYPE_NVLIST - nested nvlist;
- NV_TYPE_DESCRIPTOR - file descriptor;
- NV_TYPE_BINARY - binary data.

For detailed documentation and examples see nv(3) manual page.

Sponsored by: The FreeBSD Foundation

10 years agoSort option flags and fix the width of the options list. This is a purely
John Baldwin [Tue, 12 Nov 2013 19:18:00 +0000 (19:18 +0000)]
Sort option flags and fix the width of the options list.  This is a purely
mechanical change, no content changes.

10 years agoAdd an -s option that specifies a path to an alternate etcupdate.sh script
John Baldwin [Tue, 12 Nov 2013 19:15:06 +0000 (19:15 +0000)]
Add an -s option that specifies a path to an alternate etcupdate.sh script
to test.  This allows a non-installed version of the script to be tested
more easily.

10 years agoRevert r257715. This breaks the case where devd isn't running. The
John Baldwin [Tue, 12 Nov 2013 18:59:23 +0000 (18:59 +0000)]
Revert r257715.  This breaks the case where devd isn't running.  The
real solution to this is still being discussed and probably won't look
quite like this.

10 years agoAdd support for Freescale Vybrid Family VF600 heterogeneous
Ruslan Bukin [Tue, 12 Nov 2013 18:02:56 +0000 (18:02 +0000)]
Add support for Freescale Vybrid Family VF600 heterogeneous
ARM Cortex-A5/M4 SoC (M4 core is not used in this work).

Support includes device drivers for:
- NAND Flash Controller (NFC)
- USB Enhanced Host Controller Interface (EHCI)
- General-Purpose Input/Output (GPIO)
- Universal Asynchronous Receiver/Transmitter (UART)

Also supported:
- Generic Interrupt Controller (GIC)
- MPCore timer
- ffec ethernet driver

Reviewed by: ray
Approved by: cognet (mentor)

10 years agoEliminate the gratuitous use of mmap(2) flags from the implementation
Alan Cox [Tue, 12 Nov 2013 17:46:11 +0000 (17:46 +0000)]
Eliminate the gratuitous use of mmap(2) flags from the implementation
of kern_shmat().  Use a simpler approach to determine whether to pass
VMFS_NO_SPACE or VMFS_OPTIMAL_SPACE to vm_map_find().

10 years agoFix a typo: s/wriable/writable/
Devin Teske [Tue, 12 Nov 2013 17:44:29 +0000 (17:44 +0000)]
Fix a typo: s/wriable/writable/

10 years agoUpdate LLDB to upstream r194122 snapshot
Ed Maste [Tue, 12 Nov 2013 17:25:33 +0000 (17:25 +0000)]
Update LLDB to upstream r194122 snapshot

ludes minor changes relative to upstream, for compatibility with
FreeBSD's in-tree LLVM 3.3:

- Reverted LLDB r191806, restoring use of previous API.
- Reverted part of LLDB r189317, restoring previous enum names.
- Work around missing LLVM r192504, using previous registerEHFrames API
  (limited functionality).
- Removed PlatformWindows header include and init/terminate calls.

Sponsored by: DARPA, AFRL

10 years agoNoted that the stripe_size argument was not being displayed in the usage
Sean Bruno [Tue, 12 Nov 2013 17:10:56 +0000 (17:10 +0000)]
Noted that the stripe_size argument was not being displayed in the usage
message

MFC after: 2 weeks

10 years agoFollowing the approach with ACPI DMAR on x86, split IOMMU handling into
Nathan Whitehorn [Tue, 12 Nov 2013 16:15:09 +0000 (16:15 +0000)]
Following the approach with ACPI DMAR on x86, split IOMMU handling into
a variant PCI bus instead of trying to shoehorn it into the PCI host bridge
adapter. Besides matching better the architecture on other platforms, this
also allows systems with multiple partitionable endpoints per PCI host
bridge to work correctly.

10 years agoActually add IOMMU domain to the list of known mappings. This fixes a bug
Nathan Whitehorn [Tue, 12 Nov 2013 16:14:45 +0000 (16:14 +0000)]
Actually add IOMMU domain to the list of known mappings. This fixes a bug
where multiple devices in the same IOMMU domain would be allocated
conflicting mappings unless they also shared a DMA tag.

MFC after: 3 days

10 years agoFix gpiobus to return BUS_PROBE_GENERIC insted of BUS_PROBE_SPECIFIC (0) so
Luiz Otavio O Souza [Tue, 12 Nov 2013 16:08:23 +0000 (16:08 +0000)]
Fix gpiobus to return BUS_PROBE_GENERIC insted of BUS_PROBE_SPECIFIC (0) so
it can be overriden by its OFW/FDT version.

Give a chance for GPIO devices that implement the device_identify method to
attach.

Approved by: adrian (mentor)

10 years agoJust disable recoding support in libsmb if built WITHOUT_ICONV.
Gleb Smirnoff [Tue, 12 Nov 2013 15:09:28 +0000 (15:09 +0000)]
Just disable recoding support in libsmb if built WITHOUT_ICONV.

10 years agoMove the KASSERT() check to the point before the increase of number of pins.
Luiz Otavio O Souza [Tue, 12 Nov 2013 13:55:19 +0000 (13:55 +0000)]
Move the KASSERT() check to the point before the increase of number of pins.

Approved by: adrian (mentor)

10 years agoFix a typo on a comment in ofw_bus_if.m, the default method will return -1
Luiz Otavio O Souza [Tue, 12 Nov 2013 13:44:50 +0000 (13:44 +0000)]
Fix a typo on a comment in ofw_bus_if.m, the default method will return -1
when a node doesn't exist.

Reviewed by: nwhitehorn
Approved by: adrian (mentor)

10 years agoAs all the IIC controllers on system uses the same 'iichb' prefix we cannot
Luiz Otavio O Souza [Tue, 12 Nov 2013 13:34:07 +0000 (13:34 +0000)]
As all the IIC controllers on system uses the same 'iichb' prefix we cannot
rely only on checking the device unit to indentify the BSC unit we are
attaching to.  Make use of the device base address to identify our BSC unit.

Approved by: adrian (mentor)

10 years agoAdds gpioiic.4 and gpioled.4 man pages. Moves some of the information that
Luiz Otavio O Souza [Tue, 12 Nov 2013 12:44:59 +0000 (12:44 +0000)]
Adds gpioiic.4 and gpioled.4 man pages.  Moves some of the information that
was previously available on gpio.4 to their respectives pages.  Add the
cross references on gpioctl.8.

Approved by: adrian (mentor)

10 years agoFix typo.
Edward Tomasz Napierala [Tue, 12 Nov 2013 12:23:54 +0000 (12:23 +0000)]
Fix typo.

Sponsored by: The FreeBSD Foundation

10 years agoFix description to actually make sense.
Edward Tomasz Napierala [Tue, 12 Nov 2013 12:22:52 +0000 (12:22 +0000)]
Fix description to actually make sense.

Sponsored by: The FreeBSD Foundation

10 years agoMention acl_get_brand_np(3).
Edward Tomasz Napierala [Tue, 12 Nov 2013 10:44:41 +0000 (10:44 +0000)]
Mention acl_get_brand_np(3).

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

10 years agoAvoid overflow for the page counts.
Konstantin Belousov [Tue, 12 Nov 2013 08:47:58 +0000 (08:47 +0000)]
Avoid overflow for the page counts.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoAdd IDs for the ASIX 88179 and 88178A USB to GigE adapters.
Mark Johnston [Tue, 12 Nov 2013 06:14:12 +0000 (06:14 +0000)]
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

10 years agoCommit over some work to prepare the iwn(4) driver for further chipset
Adrian Chadd [Tue, 12 Nov 2013 05:58:23 +0000 (05:58 +0000)]
Commit over some work to prepare the iwn(4) driver for further chipset
support.

* Extend the hardware base_params structure to include a bunch of hardware
  flags indicating what is and isn't supported.

* Convert a bunch of the initial hardware configuration conditionals to
  consult the base_params structure.

* Add new calibration code for temperature calibration for the Centrino 2xxx
  series NICs.

* Add new bluetooth coexistence code for Centrino 2xxx series NICs.

* For NICs that support PAN (personal area networking), use a different
  transmit queue and command queue setup, in preparation for said
  PAN support.

* Extend the calibration array in iwn_softc to include enough space for
  the new calibration types.

Tested (by myself, if not mentioned):

* Intel 4965
* Intel 5100
* Intel 6150
* Intel 2230
* Intel 2200 (eadler)
* Intel 1030
* Intel 6200
* Intel 6230
* Intel 6250
* Intel 6150
* Intel 100

What doesn't work:

* Intel 6235 - fails in calibration at startup

TODO:

* Testing on Intel 53xx series hardware

Submitted by: Cedric Gross <cg@cgross.info>

10 years agoFix up the link quality lookup and re-enable multi-rate retry.
Adrian Chadd [Tue, 12 Nov 2013 05:49:01 +0000 (05:49 +0000)]
Fix up the link quality lookup and re-enable multi-rate retry.

This is a terrible solution that at least behaves mostly correctly.

It walks the currently active rate table looking for rates to match.
It assumes that the code matches the setup path in the link quality
setup code (much like the previous, much simpler but even more hackish
math did.)

It's O(n), but n<15, so we're okay for the time being.

Tested:

* Intel 5100, STA - 11a, 11n, 11bg modes.

10 years agoGrr. For some odd reason, setting this to a single antenna on my 5100
Adrian Chadd [Tue, 12 Nov 2013 05:08:24 +0000 (05:08 +0000)]
Grr. For some odd reason, setting this to a single antenna on my 5100
(which is a 1x2 device) panics the firmware.

But, for some 6xxx devices that require IWN_ANT_BC for the TX chainmask,
the link quality entries need to represent _that_.

So, revert this for now until I can figure out what is supposed to be
going on.

10 years agoUse the negotiated HT rate set when generating the link quality table.
Adrian Chadd [Tue, 12 Nov 2013 05:00:18 +0000 (05:00 +0000)]
Use the negotiated HT rate set when generating the link quality table.

10 years agoComment what 'mimo' does in the link quality table.
Adrian Chadd [Tue, 12 Nov 2013 04:57:31 +0000 (04:57 +0000)]
Comment what 'mimo' does in the link quality table.

10 years agoDon't default to antennas A+B; some NICs use Antennas B+C to transmit.
Adrian Chadd [Tue, 12 Nov 2013 04:56:00 +0000 (04:56 +0000)]
Don't default to antennas A+B; some NICs use Antennas B+C to transmit.

10 years agoComments.
Devin Teske [Tue, 12 Nov 2013 04:02:51 +0000 (04:02 +0000)]
Comments.

10 years agoUse the real product name for Edimax rsu(4) id.
Kevin Lo [Tue, 12 Nov 2013 02:34:48 +0000 (02:34 +0000)]
Use the real product name for Edimax rsu(4) id.

10 years agoFix two return values damaged by copy/paste.
Nathan Whitehorn [Tue, 12 Nov 2013 01:28:38 +0000 (01:28 +0000)]
Fix two return values damaged by copy/paste.

10 years agoIndicate that expand_number is case-insensitive.
Eitan Adler [Tue, 12 Nov 2013 00:56:22 +0000 (00:56 +0000)]
Indicate that expand_number is case-insensitive.

Reviewed by: -scsi

10 years agoSilence more 'make {check,delete-old{,libs}}' output if $DESTDIR/usr/tests
Glen Barber [Tue, 12 Nov 2013 00:25:07 +0000 (00:25 +0000)]
Silence more 'make {check,delete-old{,libs}}' output if $DESTDIR/usr/tests
does not exist.

Sponsored by: The FreeBSD Foundation

10 years agoUse the same implementation of copyinout.c for both AIM and Book-E. This
Nathan Whitehorn [Mon, 11 Nov 2013 23:37:16 +0000 (23:37 +0000)]
Use the same implementation of copyinout.c for both AIM and Book-E. This
fixes some bugs in both implementations related to validity checks on
mapping bounds.

10 years agoSwitch default MBR bootcode from /boot/boot0 to /boot/mbr.
Devin Teske [Mon, 11 Nov 2013 21:42:56 +0000 (21:42 +0000)]
Switch default MBR bootcode from /boot/boot0 to /boot/mbr.

Reviewed by: Allan Jude, nwhitehorn
Discussed on: -current

10 years agoRemove useless checks for NULL pointer before free(3)
Bryan Drewery [Mon, 11 Nov 2013 21:42:31 +0000 (21:42 +0000)]
Remove useless checks for NULL pointer before free(3)

Reported by: eadler
Approved by: eadler

10 years agoRemove stray MK_PKGTOOLS leftover from r257444.
Glen Barber [Mon, 11 Nov 2013 21:19:18 +0000 (21:19 +0000)]
Remove stray MK_PKGTOOLS leftover from r257444.

Sponsored by: The FreeBSD Foundation

10 years agocxxfilt: small changes from Apple's developer tools
Pedro F. Giffuni [Mon, 11 Nov 2013 21:18:02 +0000 (21:18 +0000)]
cxxfilt: small changes from Apple's developer tools

From Apple's Developer Tools 4.0 [1]:

demangle.patch
2007-05-05  Geoffrey Keating
(d_name): Detect local-source-name.
(d_prefix): Likewise.
(d_unqualified_name): Implement local-source-name.

libiberty-printf.patch

MFC after: 1 month

[1] http://opensource.apple.com/source/cxxfilt/cxxfilt-9/patches/

10 years agoDisable building the ctl module for the i386 XEN kernel configuration
Dimitry Andric [Mon, 11 Nov 2013 21:16:55 +0000 (21:16 +0000)]
Disable building the ctl module for the i386 XEN kernel configuration
for now, since it causes gcc warnings about casting 64 bit bus_addr_t's
to 32 bit pointers, and vice versa.

Reviewed by: ken
MFC after: 3 days

10 years agoRegen after r258014.
Glen Barber [Mon, 11 Nov 2013 21:14:03 +0000 (21:14 +0000)]
Regen after r258014.

Sponsored by: The FreeBSD Foundation

10 years agoDocument WITH_TESTS src.conf(5) option.
Glen Barber [Mon, 11 Nov 2013 21:13:14 +0000 (21:13 +0000)]
Document WITH_TESTS src.conf(5) option.

Sponsored by: The FreeBSD Foundation

10 years agoRegen after r258012.
Glen Barber [Mon, 11 Nov 2013 21:02:57 +0000 (21:02 +0000)]
Regen after r258012.

Sponsored by: The FreeBSD Foundation

10 years agoRemove WITH_LIBICONV_COMPAT file to chase after r257583.
Glen Barber [Mon, 11 Nov 2013 21:02:26 +0000 (21:02 +0000)]
Remove WITH_LIBICONV_COMPAT file to chase after r257583.

10 years agoMerge upstream LLVM r192118:
Ed Maste [Mon, 11 Nov 2013 19:06:12 +0000 (19:06 +0000)]
Merge upstream LLVM r192118:

  Formally added an explicit enum for DWARF TLS support. No functionality
  change.

Reviewed by: dim@
Sponsored by: DARPA, AFRL

10 years agoMerge upstream LLVM r182803:
Ed Maste [Mon, 11 Nov 2013 19:00:20 +0000 (19:00 +0000)]
Merge upstream LLVM r182803:

  [Mips] Add Mips specific dynamic table entry tags.

This is to support an upcoming LLDB snapshot update.

Reviewed by: dim@
Sponsored by: DARPA, AFRL

10 years agoFollow up r223485, which made AIM use the ABI thread pointer instead of
Nathan Whitehorn [Mon, 11 Nov 2013 17:37:50 +0000 (17:37 +0000)]
Follow up r223485, which made AIM use the ABI thread pointer instead of
PCPU fields for curthread, by doing the same to Book-E. This closes
some potential races switching between CPUs. As a side effect, it turns out
the AIM and Book-E swtch.S implementations were the same to within a few
registers, so move that to powerpc/powerpc.

MFC after: 3 months

10 years agoAdd a brief comment about VM_GUEST and vm_guest_sysctl_names relationship.
Sergey Kandaurov [Mon, 11 Nov 2013 17:07:02 +0000 (17:07 +0000)]
Add a brief comment about VM_GUEST and vm_guest_sysctl_names relationship.

Suggested by: Roger Pau Monne
Reviewed by: Roger Pau Monne

10 years agoConsistently add the relocation offset only when the ELF type is not
Mark Johnston [Mon, 11 Nov 2013 16:57:57 +0000 (16:57 +0000)]
Consistently add the relocation offset only when the ELF type is not
ET_EXEC. This fixes several problems with the DTrace pid provider not
being able to match probes.

Reviewed by: rpaulo
MFC after: 2 weeks

10 years agoMerge nvi-2.1.1 -> 2.1.2
Peter Wemm [Mon, 11 Nov 2013 16:52:02 +0000 (16:52 +0000)]
Merge nvi-2.1.1 -> 2.1.2

10 years agoImport nvi2 2.1.2-95773e17e2751.
Peter Wemm [Mon, 11 Nov 2013 16:38:34 +0000 (16:38 +0000)]
Import nvi2 2.1.2-95773e17e2751.

10 years agoSet description string for VM_GUEST_HV (HyperV guest).
Sergey Kandaurov [Mon, 11 Nov 2013 16:14:33 +0000 (16:14 +0000)]
Set description string for VM_GUEST_HV (HyperV guest).
This fixes fallout from r256425.

Reported by: Pavel Timofeev <timp87@gmail com>
Tested by: Pavel Timofeev <timp87@gmail com>
Reviewed by: Roger Pau Monnц╘
MFC after: 3 days

10 years agoRename the "bare" platform "mpc85xx", which is what it actually is, and
Nathan Whitehorn [Mon, 11 Nov 2013 16:14:25 +0000 (16:14 +0000)]
Rename the "bare" platform "mpc85xx", which is what it actually is, and
add actual platform probing based on PVR. Still needs a little more work:
in particular, the CCRS setup should move here.

Also turn "bare" into a truly bare platform that doesn't pretend to know how
to do anything except get the memory map. This should also be enhanced to
process the FDT reserved memory list, but that is for another day.

10 years agoBe more flexible about which compatible strings to accept. This brings up
Nathan Whitehorn [Mon, 11 Nov 2013 15:44:20 +0000 (15:44 +0000)]
Be more flexible about which compatible strings to accept. This brings up
the PCI Express bus on the RB800 using the firmware device tree.

10 years agoMake tsec work with the device tree present on the RB800. The previous code
Nathan Whitehorn [Mon, 11 Nov 2013 15:43:21 +0000 (15:43 +0000)]
Make tsec work with the device tree present on the RB800. The previous code
assumed that the MDIO bus was a direct child of the Ethernet interface. It
may not be and indeed on many device trees is not. While here, add proper
locking for MII transactions, which may be on a bus shared by several MACs.

Hardware donated by: Benjamin Perrault

10 years agoAllow OF_decode_addr() to also be able to map resources on big-endian
Nathan Whitehorn [Mon, 11 Nov 2013 15:23:35 +0000 (15:23 +0000)]
Allow OF_decode_addr() to also be able to map resources on big-endian
devices. To this end, make PCI device detection rely on the device_type
field rather than name, as per the standard.

10 years agoConsolidate Apple firmware hacks and improve them by switching on the
Nathan Whitehorn [Mon, 11 Nov 2013 15:00:33 +0000 (15:00 +0000)]
Consolidate Apple firmware hacks and improve them by switching on the
presence of mac-io devices in the tree, which uniquely identifies Apple
hardware.

MFC after: 6 weeks

10 years agoInitialize prot variable.
Andrey V. Elsukov [Mon, 11 Nov 2013 13:19:55 +0000 (13:19 +0000)]
Initialize prot variable.

PR: 177417
MFC after: 1 week

10 years agoFix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
Andrey V. Elsukov [Mon, 11 Nov 2013 12:49:00 +0000 (12:49 +0000)]
Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
unlocked route. Use in6_rtalloc() instead of in6_rtalloc1. This helps
simplify the code and remove several now unused variables.

PR: 156283
MFC after: 2 weeks

10 years agoAdd missing line breaks.
Andrey V. Elsukov [Mon, 11 Nov 2013 11:13:12 +0000 (11:13 +0000)]
Add missing line breaks.

PR: 181900
MFC after: 1 week

10 years agoUpdate log message. Picobsd stopped using kgzip a while ago.
Sergey Kandaurov [Mon, 11 Nov 2013 10:54:06 +0000 (10:54 +0000)]
Update log message.  Picobsd stopped using kgzip a while ago.

10 years agoRemove r257748 by accident.
Kevin Lo [Mon, 11 Nov 2013 10:00:19 +0000 (10:00 +0000)]
Remove r257748 by accident.

10 years agoMention the RT5370/RT5372 chipset.
Kevin Lo [Mon, 11 Nov 2013 09:48:57 +0000 (09:48 +0000)]
Mention the RT5370/RT5372 chipset.

10 years agoAdd support for the MediaTek/Ralink RT5370/RT5372 chipset.
Kevin Lo [Mon, 11 Nov 2013 09:47:33 +0000 (09:47 +0000)]
Add support for the MediaTek/Ralink RT5370/RT5372 chipset.

Tested with the TP-Link TL-WN727N (RT5370) and the D-Link DWA-140 (RT5372)
on i386/amd64/arm with WPA.

10 years agoMFV r257952:
Xin LI [Mon, 11 Nov 2013 09:19:58 +0000 (09:19 +0000)]
MFV r257952:

Upgrade to OpenSSH 6.4p1.

Bump VersionAddendum.

Approved by: des

10 years agoVendor import of OpenSSH 6.4p1.
Xin LI [Mon, 11 Nov 2013 09:13:37 +0000 (09:13 +0000)]
Vendor import of OpenSSH 6.4p1.

Approved by: des

10 years agoIf A-MPDU transmission fails entirely, then no BA is received from the
Adrian Chadd [Mon, 11 Nov 2013 09:08:22 +0000 (09:08 +0000)]
If A-MPDU transmission fails entirely, then no BA is received from the
NIC and pushed up to the driver.  Unfortunately this means there's
no rate control notification done.  Thus, if the rate control code
makes a decision that hits a crappy rate that can't succeed, the
rate code would never lower the rate and packet loss would continue.

So, fake some rate control notification in this case.

10 years agoReplace the hard-coded RX queue value check with IWN_UNSOLICITED_RX_NOTIF.
Adrian Chadd [Mon, 11 Nov 2013 08:56:40 +0000 (08:56 +0000)]
Replace the hard-coded RX queue value check with IWN_UNSOLICITED_RX_NOTIF.

10 years agoFix off-by-one. Sorry!
Adrian Chadd [Mon, 11 Nov 2013 08:55:38 +0000 (08:55 +0000)]
Fix off-by-one. Sorry!

10 years agoUse IWN_NBANDS rather than a hard-coded limit.
Adrian Chadd [Mon, 11 Nov 2013 08:54:45 +0000 (08:54 +0000)]
Use IWN_NBANDS rather than a hard-coded limit.

Tested:

* Intel 5100, STA

10 years agoSend EAPOL frames at the management rate, not the data rate.
Adrian Chadd [Mon, 11 Nov 2013 08:53:20 +0000 (08:53 +0000)]
Send EAPOL frames at the management rate, not the data rate.

Without this, a far away station with low signal strength would
associate using the management rate (by default the lowest rate)
and then the EAPOL frames would go out at the current AMRR best
guess.  This would result in association failing authentication.

Tested:

* Intel 5100, STA
* Intel 2230, STA

10 years agoIntroduce seperate mutex lock to protect protect CTL I/O pools, slightly
Alexander Motin [Mon, 11 Nov 2013 08:27:20 +0000 (08:27 +0000)]
Introduce seperate mutex lock to protect protect CTL I/O pools, slightly
reducing global CTL lock scope and congestion.

While there, simplify CTL I/O pools KPI, hiding implementation details.

10 years agoDo not use just freed memory.
Gleb Smirnoff [Mon, 11 Nov 2013 07:44:09 +0000 (07:44 +0000)]
Do not use just freed memory.

Sponsored by: Nginx, Inc.

10 years agoRemove never used ioctls that originate from KAME. The proof
Gleb Smirnoff [Mon, 11 Nov 2013 05:39:42 +0000 (05:39 +0000)]
Remove never used ioctls that originate from KAME. The proof
of their zero usage was exp-run from misc/183538.

10 years agoFix a few style nits.
Glen Barber [Mon, 11 Nov 2013 03:30:14 +0000 (03:30 +0000)]
Fix a few style nits.

MFC after: 3 days
X-MFC-After: 10.0-RELEASE
Sponsored by: The FreeBSD Foundation

10 years agoAdd the necessary bits for dumps on ppc64.
Justin Hibbits [Mon, 11 Nov 2013 03:17:38 +0000 (03:17 +0000)]
Add the necessary bits for dumps on ppc64.

MFC after: 2 weeks

10 years agoSilence bmake(1) errors if TEST_DIRS evaluation is empty.
Glen Barber [Mon, 11 Nov 2013 03:12:43 +0000 (03:12 +0000)]
Silence bmake(1) errors if TEST_DIRS evaluation is empty.

10 years agoCheck the partition scheme before blowing away disks, instead of after.
Devin Teske [Mon, 11 Nov 2013 02:13:47 +0000 (02:13 +0000)]
Check the partition scheme before blowing away disks, instead of after.
The effects of this patch would only be noticeable if you were purposefully
setting a bad value and trying to see what happens; and leaving the disks
intact if a bad value has been set seems fair.

10 years agoRemove the env(1) but keep the var.
Devin Teske [Mon, 11 Nov 2013 02:02:05 +0000 (02:02 +0000)]
Remove the env(1) but keep the var.

10 years agoUnbreak the installer on head/:
Glen Barber [Mon, 11 Nov 2013 01:42:59 +0000 (01:42 +0000)]
Unbreak the installer on head/:

  When bsdinstall(8) sources the bsdconfig(8) common.subr file,
  PKG_ABI is set by calling 'pkg -vv' and searching for the ABI
  pkg(8) will use.

  When pkg(8) is run for the first time, the bootstrap process
  is run, which prompts for 'y/N' input from stdin if running with
  TERM set.

  Since TERM is set and it is the first time pkg(8) is run, which
  happens automatically, bsdinstall(8) hangs waiting for user input
  which is never displayed since a specific line is expected by
  awk(1), and stdin is expected by pkg(8).

  Set ASSUME_ALWAYS_YES=1, which will cause pkg(8) to assume the
  '-y' flag is also used for the bootstrap process, allowing
  bsdinstall(8) to proceed to the keymap lookup, otherwise
  bsdinstall(8) appears to hang after selecting 'Install' from the
  menu on first boot from CDROM.

10 years agoUpdate svn from 1.8.1 to 1.8.4 - minor security fixes and client side
Peter Wemm [Mon, 11 Nov 2013 01:14:58 +0000 (01:14 +0000)]
Update svn from 1.8.1 to 1.8.4 - minor security fixes and client side
merge handling bug fixes (reintegrate, mergeinfo etc)

10 years agoImport svn-1.8.4, which includes fixes for both security and merge
Peter Wemm [Mon, 11 Nov 2013 01:00:29 +0000 (01:00 +0000)]
Import svn-1.8.4, which includes fixes for both security and merge
handling.

10 years agox86 platforms that use an IOAPIC route the legacy timer interrupt (IRQ0) to
Neel Natu [Mon, 11 Nov 2013 00:45:17 +0000 (00:45 +0000)]
x86 platforms that use an IOAPIC route the legacy timer interrupt (IRQ0) to
pin 2 of the IOAPIC.

Add an 'Interrupt Source Override' entry to the MADT to describe this
and start asserting interrupts on pin 2 in the 8254 device model.

Submitted by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)

10 years agoUse relaxed (write-only) memory barriers when writing some of queue index
Alexander Motin [Sun, 10 Nov 2013 23:48:16 +0000 (23:48 +0000)]
Use relaxed (write-only) memory barriers when writing some of queue index
registers (for now on ISP2400+).  We never read those registers back and
AFAIK their semantics does not require any immediate reaction on write.

10 years agoSome more registers access optimizations:
Alexander Motin [Sun, 10 Nov 2013 23:34:32 +0000 (23:34 +0000)]
Some more registers access optimizations:
 - Process ATIO queue only if interrupt status tells so;
 - Do not update queue out pointers after each processed command, do it
only once at the end of the loop.

10 years agosh: Properly quote alias output from command -v.
Jilles Tjoelker [Sun, 10 Nov 2013 23:00:39 +0000 (23:00 +0000)]
sh: Properly quote alias output from command -v.

An alias should be printed by command -v as a command line; therefore, make
the alias definition suitable for re-input to the shell.

10 years agoPrepare for 64-bit. Iow, use Elf_*hdr instead of the 32-bit ones.
Andreas Tobler [Sun, 10 Nov 2013 22:42:56 +0000 (22:42 +0000)]
Prepare for 64-bit. Iow, use Elf_*hdr instead of the 32-bit ones.

10 years agoApparently with "const uint32_t foo = 0x60;" gcc doesn't consider 'foo'
Ian Lepore [Sun, 10 Nov 2013 21:12:42 +0000 (21:12 +0000)]
Apparently with "const uint32_t foo = 0x60;" gcc doesn't consider 'foo'
to be a constant integer suitable for use in a case label, so use #defines.

10 years ago- Add myself as port committer and my mentor's relationship.
Alexey Degtyarev [Sun, 10 Nov 2013 20:24:41 +0000 (20:24 +0000)]
- Add myself as port committer and my mentor's relationship.
- Add myself to calendar.freebsd.

Approved:   wg (mentor)

10 years agoRB_FOREACH_[REVERSE_]FROM() do not require the head pointer. Reword.
Bruce M Simpson [Sun, 10 Nov 2013 19:49:18 +0000 (19:49 +0000)]
RB_FOREACH_[REVERSE_]FROM() do not require the head pointer. Reword.