]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoConvert to using ulzma.
adrian [Mon, 27 Aug 2012 21:49:37 +0000 (21:49 +0000)]
Convert to using ulzma.

11 years agoImprove the sample rate logging.
adrian [Mon, 27 Aug 2012 20:30:07 +0000 (20:30 +0000)]
Improve the sample rate logging.

11 years agoEnsure that all firstep values are available in ANI.
adrian [Mon, 27 Aug 2012 20:10:38 +0000 (20:10 +0000)]
Ensure that all firstep values are available in ANI.

The comparison assumes maxFirstepLevel is a count, rather than a maximum
value.  The array is 3 entries in size however 'maxFirstepLevel' is 2.

This bug also exists in the AR5212 HAL.

11 years agoFix the debugging output to correctly log CCK errors.
adrian [Mon, 27 Aug 2012 20:03:08 +0000 (20:03 +0000)]
Fix the debugging output to correctly log CCK errors.

11 years agoAdd missing parts to zpool-features.5 manual page
mm [Mon, 27 Aug 2012 19:52:55 +0000 (19:52 +0000)]
Add missing parts to zpool-features.5 manual page

Obtained from: vendor/illumos/dist
MFC after: 2 weeks

11 years agoAdd a few other files that are obsolete if WITH_CLANG_EXTRAS is enabled,
dim [Mon, 27 Aug 2012 19:30:21 +0000 (19:30 +0000)]
Add a few other files that are obsolete if WITH_CLANG_EXTRAS is enabled,
and clang is updated to 3.2.

11 years agoShow error messages if nmount() failed.
delphij [Mon, 27 Aug 2012 19:08:47 +0000 (19:08 +0000)]
Show error messages if nmount() failed.

MFC after: 1 month

11 years agoRework the DMA handling in ida(4) and add locking to make this driver
jhb [Mon, 27 Aug 2012 17:24:07 +0000 (17:24 +0000)]
Rework the DMA handling in ida(4) and add locking to make this driver
MPSAFE.
- Preallocate a full set of QCBs during attach rather than allocating new
  ones on demand to avoid allocations in the I/O path.
- Remove the explicit bus space tag/handle and use bus_*() on the
  relevant 'struct resource' instead.
- Defer logical drive probing to an intrhook.
- Fix ida_detach() to detach and delete child devices (logical drives).
- Update the DMA handling to support EINPROGRESS by moving the work to
  submit a mapped request into the bus_dma callback routine as well as
  add support for freezing the queue when EINPROGRESS is encountered.

Tested by: Marco Steinbach  coco executive-computing de

11 years agoDon't build and install the 07.lpd doc if WITHOUT_LPR is set.
jhb [Mon, 27 Aug 2012 17:15:14 +0000 (17:15 +0000)]
Don't build and install the 07.lpd doc if WITHOUT_LPR is set.

MFC after: 1 week

11 years agouse MALLOC_PRODUCTION for picobsd builds, be more frugal in memory usage.
luigi [Mon, 27 Aug 2012 16:42:32 +0000 (16:42 +0000)]
use MALLOC_PRODUCTION for picobsd builds, be more frugal in memory usage.

11 years agoDont cast from char* to struct chrp_header* which has a bigger alignment
rdivacky [Mon, 27 Aug 2012 14:51:26 +0000 (14:51 +0000)]
Dont cast from char* to struct chrp_header* which has a bigger alignment
requirements. Copy it via union instead. Fixes a clang warning about
alignment.

Reviewed by:    sobomax

11 years agoParly revert r239255: reinstate a default maxswzone on i386, where KVA is
des [Mon, 27 Aug 2012 13:22:27 +0000 (13:22 +0000)]
Parly revert r239255: reinstate a default maxswzone on i386, where KVA is
scarce, but set it slightly higher so we can handle 8 GB of swap.

11 years agoTypo in previous change: print half the theoretical maximum as maximum
pluknet [Mon, 27 Aug 2012 10:59:49 +0000 (10:59 +0000)]
Typo in previous change: print half the theoretical maximum as maximum
recommended amount.

Reported by: <site freebsd at orientalsensation com>
Reviewed by: des

11 years agoCorrectly fetch the MAC address.
kientzle [Mon, 27 Aug 2012 04:43:30 +0000 (04:43 +0000)]
Correctly fetch the MAC address.

Break down the bytes directly into the softc;
the intermediate buffer isn't needed here.
Break down the bytes in the correct order.

11 years agoAdd hint and sysctl support for 4 wire mode.
imp [Mon, 27 Aug 2012 04:30:53 +0000 (04:30 +0000)]
Add hint and sysctl support for 4 wire mode.

PR: 155241
Submitted by: Ian Lapore

11 years agoMinor style(9) nit.
imp [Mon, 27 Aug 2012 04:08:43 +0000 (04:08 +0000)]
Minor style(9) nit.

11 years agoDon't puprosely overclock the SD bus to 30MHz, make the user
imp [Mon, 27 Aug 2012 04:03:49 +0000 (04:03 +0000)]
Don't puprosely overclock the SD bus to 30MHz, make the user
explicltly enable that.  The driver chose to use 60MHz / 2 (30MHz)
most of the time rather than 60MHz / 4 (15MHz) based on the Linux
driver of the time.  This pushes the spec a little in order to not
suffer the penalty of running at 15MHz.  However, when other bus
masters are active in the system, and the user tries 4-wire mode, the
internal bus arbitration would fail with data loss as a result.

# Comments from PR were reworked to reflect my historical perspective

PR: 155214 (partial)
Submitted by: Ian Lepore

11 years agoIn suspend_common(), don't wait for a thread which is in creation, because
davidxu [Mon, 27 Aug 2012 03:09:39 +0000 (03:09 +0000)]
In suspend_common(), don't wait for a thread which is in creation, because
pthread_suspend_all_np() may have already suspended its parent thread.
Add locking code in pthread_suspend_all_np() to only allow one thread
to suspend other threads, this eliminates a deadlock where two or more
threads try to suspend each others.

11 years agoMove AR71XX (MIPS SoCs family) options to options.mips file.
ray [Sun, 26 Aug 2012 20:22:43 +0000 (20:22 +0000)]
Move AR71XX (MIPS SoCs family) options to options.mips file.

PR: 170859
Submitted by: Luiz Otavio O Souza
Approved by: adrian (mentor)

11 years agoAdd libc++ and libcxxrt related files to OptionalObsoleteFiles.inc.
dim [Sun, 26 Aug 2012 14:30:14 +0000 (14:30 +0000)]
Add libc++ and libcxxrt related files to OptionalObsoleteFiles.inc.

MFC after: 1 week

11 years agoExpose DE4 buttons and switches via a de4bsw device, implemented using
rwatson [Sun, 26 Aug 2012 10:40:13 +0000 (10:40 +0000)]
Expose DE4 buttons and switches via a de4bsw device, implemented using
altera_avgen(4).

Fix white space nit that must have arisen during the merge from Perforce.

Submitted by: brooks
Sponsored by: DARPA, AFRL

11 years agoAdd a altera_sdcardc(4) man page link for altera_sdcard(4), as that is
rwatson [Sun, 26 Aug 2012 10:38:02 +0000 (10:38 +0000)]
Add a altera_sdcardc(4) man page link for altera_sdcard(4), as that is
the name that will appear in dmesg.

Sponsored by: DARPA, AFRL

11 years agoFix function name in keg_cachespread_init() assert.
glebius [Sun, 26 Aug 2012 09:54:11 +0000 (09:54 +0000)]
Fix function name in keg_cachespread_init() assert.

11 years agoAdd terasic_de4led, a led(4) driver for the on-board 8-element LED on the
rwatson [Sun, 26 Aug 2012 09:21:59 +0000 (09:21 +0000)]
Add terasic_de4led, a led(4) driver for the on-board 8-element LED on the
Terasic DE-4 board.  Allow LED configuration to be set using loader
tunables, not just from userspace, and preconfigure LED 8 as a kernel
heartbeat.  For now, this is a Nexus-attached, BERI-only driver, but it
could be used with other hard and soft cores on Altera FPGAs as well, in
principle.

Sponsored by: DARPA, AFRL

11 years agoEnsure that BAR(0) is set for the PCI slot before the ath(4) PCI registers
adrian [Sun, 26 Aug 2012 04:39:20 +0000 (04:39 +0000)]
Ensure that BAR(0) is set for the PCI slot before the ath(4) PCI registers
are written out.

This allows EEPROM-less NICs on the AR7241 PCIe bus to be correctly
initialised.

Tested:

* AP91 (AR7240+AR9285) - the existing board support didn't break;
* AP99 (AR7241+AR9287) - this fixed the configuration of the AR9287 PCI.

11 years agoCreate a skeleton AR724x SoC board configuration for use by AR724x devices.
adrian [Sun, 26 Aug 2012 04:36:59 +0000 (04:36 +0000)]
Create a skeleton AR724x SoC board configuration for use by AR724x devices.

11 years agoMove this magic check to only occur if no eeprom data is given.
adrian [Sun, 26 Aug 2012 04:26:49 +0000 (04:26 +0000)]
Move this magic check to only occur if no eeprom data is given.

Tested on:

* AP99 (AR7241+AR9287)

11 years agoAdd EEPROM data hooks for the AR9287.
adrian [Sun, 26 Aug 2012 04:26:25 +0000 (04:26 +0000)]
Add EEPROM data hooks for the AR9287.

Tested:
* AP99 Reference board (AR7241 + AR9287)

11 years agoAdd ARM11 support for elf trampoline
gonzo [Sun, 26 Aug 2012 02:34:03 +0000 (02:34 +0000)]
Add ARM11 support for elf trampoline

11 years agoAdd support for ARM11 cpufunc
gonzo [Sun, 26 Aug 2012 02:23:21 +0000 (02:23 +0000)]
Add support for ARM11 cpufunc

Obtained from: NetBSD (partially)

11 years agoGrammar fix: s/NIC's/NICs/
gjb [Sun, 26 Aug 2012 01:21:02 +0000 (01:21 +0000)]
Grammar fix: s/NIC's/NICs/

MFC after: 3 days

11 years agoCall set_pcpu for ARMv6 architecture too
gonzo [Sun, 26 Aug 2012 00:53:00 +0000 (00:53 +0000)]
Call set_pcpu for ARMv6 architecture too

11 years agoMerge fix for hang on ARM11 from NetBSD
gonzo [Sun, 26 Aug 2012 00:46:57 +0000 (00:46 +0000)]
Merge fix for hang on ARM11 from NetBSD

11 years agoPiggyback MIPS changes and add ARM syscons support for devices with
gonzo [Sat, 25 Aug 2012 23:59:31 +0000 (23:59 +0000)]
Piggyback MIPS changes and add ARM syscons support for devices with
framebuffer

While here - sort #if defined() order alphabetically

11 years agoFor building libstdc++ and libsupc++, filter out any -stdlib=libc++
dim [Sat, 25 Aug 2012 23:08:24 +0000 (23:08 +0000)]
For building libstdc++ and libsupc++, filter out any -stdlib=libc++
option from CXXFLAGS, otherwise these libraries will not build.
Similarly, filter out any -std=xxx options that aren't supported.

Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
MFC after: 2 weeks

11 years agoReturn "locally assigned" Enclosure Logical Identifier instead of 8 zero
mav [Sat, 25 Aug 2012 23:01:57 +0000 (23:01 +0000)]
Return "locally assigned" Enclosure Logical Identifier instead of 8 zero
bytes. Zeroes there are incorrect and tend to cause false device ID matches.

11 years agoAdd terasic_mtl(4), a device driver for the Terasic Multi-Touch LCD,
rwatson [Sat, 25 Aug 2012 22:35:29 +0000 (22:35 +0000)]
Add terasic_mtl(4), a device driver for the Terasic Multi-Touch LCD,
used with Terasic's DE-4 and other similar FPGA boards.  This display
is 800x480 and includes a capacitive touch screen, multi-touch
gesture recognition, etc.  This device driver depends on a Cambridge-
provided IP core that allows the MTL device to be hooked up to the
Altera Avalon SoC bus, and also provides a VGA-like text frame buffer.

Although it is compiled as a single device driver, it actually
implements a number of different device nodes exporting various
aspects of this multi-function device to userspace:

- Simple memory-mapped driver for the MTL 24-bit pixel frame buffer.
- Simple memory-mapped driver for the MTL control register set.
- Simple memory-mapped driver for the MTL text frame buffer.
- syscons attachment for the MTL text frame buffer.

This driver attaches directly to Nexus as is common for SoC device
drivers, and for the time being is considered BERI-specific, although
in principle it might be used with other hard and soft cores on
Altera FPGAs.

Control registers, including touchscreen input, are simply memory
mapped; in the future it would be desirable to hook up a more
conventional device node that can stream events, support kqueue(2)/
poll(2)/select(2), etc.

This is the first use of syscons on MIPS, as far as I can tell, and
there are some loose ends, such as an inability to use the hardware
cursor.  More fundamentally, it appears that syscons(4) assumes that
either a host is PC-like (i386, amd64) *or* it must be using a
graphical frame buffer.  While the MTL supports a graphical frame
buffer, using the text frame buffer is preferable for console use.
Fixing this issue in syscons(4) requires non-trivial changes, as the
text frame buffer support assumes that direct memory access can be
done to the text frame buffer without using bus accessor methods,
which is not the case on MIPS.  As a workaround for this, we instead
double-buffer and pretend to be a graphical frame buffer exposing
text accessor methods, leading to some quirks in syscons behaviour.

Sponsored by: DARPA, AFRL

11 years agoStyle cleanup
gonzo [Sat, 25 Aug 2012 21:13:00 +0000 (21:13 +0000)]
Style cleanup

11 years agoDo not swap byte order if we assign default value for intr_cells
gonzo [Sat, 25 Aug 2012 20:18:12 +0000 (20:18 +0000)]
Do not swap byte order if we assign default value for intr_cells

11 years agoARM11 might have more then 32 interrupts, e.g. BCM2835: 72 interrupts
gonzo [Sat, 25 Aug 2012 20:13:19 +0000 (20:13 +0000)]
ARM11 might have more then 32 interrupts, e.g. BCM2835: 72 interrupts

11 years agoAdd clrex, strex , ldrex, strex and variants
gonzo [Sat, 25 Aug 2012 20:01:31 +0000 (20:01 +0000)]
Add clrex, strex , ldrex, strex and variants

Submitted by: Alexander Rybalko

11 years agoWhen using -stdlib=libc++, add the correct dependency to .depend in
dim [Sat, 25 Aug 2012 19:30:15 +0000 (19:30 +0000)]
When using -stdlib=libc++, add the correct dependency to .depend in
bsd.prog.mk.

Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
MFC after: 2 weeks

11 years agoAdd isf(4), a driver for the Intel StrataFlash family of NOR flash parts.
brooks [Sat, 25 Aug 2012 18:08:20 +0000 (18:08 +0000)]
Add isf(4), a driver for the Intel StrataFlash family of NOR flash parts.

The driver attempts to support all documented parts, but has only been
tested with the 512Mbit part on the Terasic DE4 FPGA board.  It should be
trivial to adapt the driver's attach routine to other embedded boards
using with any parts in the family.

Also import isfctl(8) which can be used to erase sections of the flash.

Sponsored by: DARPA, AFRL

11 years agoAdd MD syscons header file for MIPS.
rwatson [Sat, 25 Aug 2012 17:57:50 +0000 (17:57 +0000)]
Add MD syscons header file for MIPS.

Sponsored by: DARPA, AFRL

11 years agoDon't include syscons in the config just yet. We haven't imported the
brooks [Sat, 25 Aug 2012 17:34:48 +0000 (17:34 +0000)]
Don't include syscons in the config just yet.  We haven't imported the
touchscreen driver yet.

11 years agoUnbreak tinderbox.
rpaulo [Sat, 25 Aug 2012 17:15:33 +0000 (17:15 +0000)]
Unbreak tinderbox.

11 years agoRetire PV_TABLE_MOD. When we destroy or write protect a dirty mapping,
alc [Sat, 25 Aug 2012 16:55:38 +0000 (16:55 +0000)]
Retire PV_TABLE_MOD.  When we destroy or write protect a dirty mapping,
we call vm_page_dirty().  Maintaining the PV_TABLE_MOD flag, in addition,
serves no useful purpose.

11 years agoAdd libcxxrt's objects (prefixing them with cxxrt_ to avoid collisions)
dim [Sat, 25 Aug 2012 13:15:44 +0000 (13:15 +0000)]
Add libcxxrt's objects (prefixing them with cxxrt_ to avoid collisions)
to libc++.a and libc++_p.a, to make static linking of C++ executables
with libc++ easier.  This is similar to the approach used in libstdc++.

MFC after: 2 weeks

11 years agoAdd reference kernel configurations for FreeBSD/beri in simulation, on the
rwatson [Sat, 25 Aug 2012 12:02:13 +0000 (12:02 +0000)]
Add reference kernel configurations for FreeBSD/beri in simulation, on the
Terasic DE-4, and Terasic tPad Altera-based boards.

Sponsored by: DARPA, AFRL

11 years agoMinor mdoc fix.
joel [Sat, 25 Aug 2012 11:34:55 +0000 (11:34 +0000)]
Minor mdoc fix.

11 years agoAdd altera_jtag_uart(4), a device driver for Altera's JTAG UART soft core,
rwatson [Sat, 25 Aug 2012 11:30:36 +0000 (11:30 +0000)]
Add altera_jtag_uart(4), a device driver for Altera's JTAG UART soft core,
which presents a UART-like interface over the Avalon bus that can be
addressed over JTAG.  This IP core proves extremely useful, allowing us to
connect trivially to the FreeBSD console over JTAG for FPGA-embedded hard
and soft cores.  As interrupts are optionally configured for this soft
core, we support both interrupt-driven and polled modes of operation,
which must be selected using device.hints.  UART instances appear in /dev
as ttyu0, ttyu1, etc.

However, it also contains a number of quirks, which make it difficult to
tell when JTAG is connected, and some buffering issues.  We work around
these as best we can, using various heuristics.

While the majority of this device driver is not only not BERI-specific,
but also not MIPS-specific, for now add its defines in the BERI files
list, as the console-level parts are aware of where the first JTAG UART
is mapped on Avalon, and contain MIPS-specific address translation, to
use before Newbus and device.hints are available.

Sponsored by: DARPA, AFRL

11 years agoAdd a device driver for the Altera University Program SD Card IP Core,
rwatson [Sat, 25 Aug 2012 11:19:20 +0000 (11:19 +0000)]
Add a device driver for the Altera University Program SD Card IP Core,
which can be synthesised in Altera FPGAs.  An altera_sdcardc device
probes during the boot, and /dev/altera_sdcard devices come and go as
inserted and removed.  The device driver attaches directly to the
Nexus, as is common for system-on-chip device drivers.

This IP core suffers a number of significant limitations, including a
lack of interrupt-driven I/O -- we must implement timer-driven polling,
only CSD 0 cards (up to 2G) are supported, there are serious memory
access issues that require the driver to verify writes to memory-mapped
buffers, undocumented alignment requirements, and erroneous error
returns.  The driver must therefore work quite hard, despite a fairly
simple hardware-software interface.  The IP core also supports at most
one outstanding I/O at a time, so is not a speed demon.

However, with the above workarounds, and subject to performance
problems, it works quite reliably in practice, and we can use it for
read-write mounts of root file systems, etc.

Sponsored by: DARPA, AFRL

11 years agoAdd altera_avgen(4), a generic device driver to be used by hard and soft
rwatson [Sat, 25 Aug 2012 11:07:43 +0000 (11:07 +0000)]
Add altera_avgen(4), a generic device driver to be used by hard and soft
CPU cores on Altera FPGAs.  The device driver allows memory-mapped devices
on Altera's Avalon SoC bus to be exported to userspace via device nodes.
device.hints directories dictate device name, permissible access methods,
physical address and length, and I/O alignment.  Devices can be accessed
using read(2)/write(2), but also memory mapped in userspace using mmap(2).

Devices attach directly to the Nexus, as is common for embedded device
drivers; in the future something more mature might be desirable.  There is
currently no facility to support directing device-originated interrupts to
userspace.

In the future, this device driver may be renamed to socgen(4), as it can
in principle also be used with other system-on-chip (SoC) busses, such as
Axi on ASICs and FPGAs.  However, we have only tested it on Avalon busses
with memory-mapped ROMs, frame buffers, etc.

Sponsored by: DARPA, AFRL

11 years ago(g_multipath_rotate): Fix algorithm so that it does rotate over all good
thomas [Sat, 25 Aug 2012 10:36:31 +0000 (10:36 +0000)]
(g_multipath_rotate): Fix algorithm so that it does rotate over all good
providers, not just the last two.

PR: kern/170379
Reviewed by: mav
MFC after: 2 weeks

11 years agoThis small change takes care of a race condition
rrs [Sat, 25 Aug 2012 09:26:37 +0000 (09:26 +0000)]
This small change takes care of a race condition
that can occur when both sides close at the same time.
If that occurs, without this fix the connection enters
FIN1 on both sides and they will forever send FIN|ACK at
each other until the connection times out. This is because
we stopped processing the FIN|ACK and thus did not advance
the sequence and so never ACK'd each others FIN. This
fix adjusts it so we *do* process the FIN properly and
the race goes away ;-)

MFC after: 1 month

11 years agoAdd preliminary support for the SRI International / University of Cambridge
rwatson [Sat, 25 Aug 2012 08:31:21 +0000 (08:31 +0000)]
Add preliminary support for the SRI International / University of Cambridge
Bluespec Extensible RISC Implementation (BERI) processor.  BERI is a 64-bit
MIPS ISA soft CPU core that can be synthesised to Altera and Xilinx FPGAs,
and is being used for CPU and OS research at several institutions.

Sponsored by:   DARPA, AFRL

11 years agoProvide basic glue to allow syscons to be used on MIPS, modelled
rwatson [Sat, 25 Aug 2012 08:09:37 +0000 (08:09 +0000)]
Provide basic glue to allow syscons to be used on MIPS, modelled
on PowerPC support.  This was clearly not something syscons was
designed to do (very specific assumptions about the nature of VGA
consoles on PCs), but fortunately others have long since blazed
the way on making it work regardless of that.

Sponsored by: DARPA, AFRL

11 years agoOn MIPS, when printing page fault information for an unexpected exception
rwatson [Sat, 25 Aug 2012 08:02:46 +0000 (08:02 +0000)]
On MIPS, when printing page fault information for an unexpected exception
type, explicitly print out "unknown" rather than the empty string, and
include the exception type number for ease of debugging.

Sponsored by: DARPA, AFRL

11 years agoIn the gxemul console, check the RB_SERIAL boot flag, and change the
rwatson [Sat, 25 Aug 2012 07:48:52 +0000 (07:48 +0000)]
In the gxemul console, check the RB_SERIAL boot flag, and change the
relative priority of the gxemul console in line with its role as a
"seiral console".  This allows it to override video console drivers
that might otherwise take precdence, subject to that boot flag.

Sponsored by: DARPA, AFRL

11 years agoRename the gxemul console device to "ttyu0" to match the expectations of
rwatson [Sat, 25 Aug 2012 07:47:12 +0000 (07:47 +0000)]
Rename the gxemul console device to "ttyu0" to match the expectations of
the default MIPS /etc/ttys.

Sponsored by: DARPA, AFRL

11 years agoSet mdp only under #ifdef WII.
rpaulo [Sat, 25 Aug 2012 00:47:55 +0000 (00:47 +0000)]
Set mdp only under #ifdef WII.

11 years agoClear freeze bit before calling xpt_release_devq.
jimharris [Fri, 24 Aug 2012 22:04:16 +0000 (22:04 +0000)]
Clear freeze bit before calling xpt_release_devq.

This ensures that any ccbs which immediately start during the call to
xpt_release_devq see an accurate picture of the frozen_lun_mask.

Sponsored by: Intel
MFC after: 3 days

11 years agoFix confirmation logic when detecting a tty
bapt [Fri, 24 Aug 2012 21:45:52 +0000 (21:45 +0000)]
Fix confirmation logic when detecting a tty

Reported by: mjg

11 years ago- change ALWAYS_ASSUME_YES to ASSUME_ALWAYS_YES for consistency with pkg(8)
bapt [Fri, 24 Aug 2012 21:08:56 +0000 (21:08 +0000)]
- change ALWAYS_ASSUME_YES to ASSUME_ALWAYS_YES for consistency with pkg(8)
- if not on a tty prompt about the missing pkg(8) but default on 'no' except if
  ASSUME_ALWAYS_YES is set

MFC after: 2 days

11 years agoRemove the hard-coded AR5416-series parameters and instead use the
adrian [Fri, 24 Aug 2012 17:39:57 +0000 (17:39 +0000)]
Remove the hard-coded AR5416-series parameters and instead use the
DFS parameters fetched from the HAL.

Check whether the specific chipset supports RADAR reporting before
enabling DFS; or some of the (unset) DFS methods may fail.

Tested:

* AR5210 (correctly didn't enable radar PHY reporting)
* AR5212 (correctly enabled radar PHY reporting w/ the correct default
  parameters.)

TODO:

* Now that I have this capability check in place, I could remove the
  (empty) DFS methods from AR5210/AR5211.
* Test on AR5416, AR9160, AR9280.

PR: kern/170904

11 years agoCorrectly handle the "pe_enabled" flag - both when configuring DFS and
adrian [Fri, 24 Aug 2012 17:37:51 +0000 (17:37 +0000)]
Correctly handle the "pe_enabled" flag - both when configuring DFS and
fetching the current DFS configuration.

PR: kern/170904

11 years agoAdd an accessor macro for getting access to the default DFS parameters.
adrian [Fri, 24 Aug 2012 17:37:12 +0000 (17:37 +0000)]
Add an accessor macro for getting access to the default DFS parameters.

PR: kern/170904

11 years agoFix scsi_da's BIO_DELETE->SCSI_UNMAP translation to use correct local
jimharris [Fri, 24 Aug 2012 17:08:02 +0000 (17:08 +0000)]
Fix scsi_da's BIO_DELETE->SCSI_UNMAP translation to use correct local
variable when determining various sizes related to SCSI UNMAP block
descriptor lists.

Sponsored by: Intel
Reviewed by: mav
MFC after: 3 days

11 years agoDont use -Werror when building libbfd and gnu as on powerpc64 with clang
rdivacky [Fri, 24 Aug 2012 16:37:00 +0000 (16:37 +0000)]
Dont use -Werror when building libbfd and gnu as on powerpc64 with clang
as there are warnings.

Reviewed by:    nwhitehorn

11 years agoDocument update of 802.11s IE identifiers.
bschmidt [Fri, 24 Aug 2012 13:55:22 +0000 (13:55 +0000)]
Document update of 802.11s IE identifiers.

11 years agoAdd default values for the NumTxMaps capability.
adrian [Fri, 24 Aug 2012 07:35:18 +0000 (07:35 +0000)]
Add default values for the NumTxMaps capability.

11 years agoAdd the method to fetch the default DFS parameters for the AR5212 PHY.
adrian [Fri, 24 Aug 2012 07:32:35 +0000 (07:32 +0000)]
Add the method to fetch the default DFS parameters for the AR5212 PHY.

I need to check whether new parameters were added for the AR5413 NIC.

PR: kern/170904

11 years agoA workaround in r238563 was for makes (notably bmake) without the
ru [Fri, 24 Aug 2012 06:55:16 +0000 (06:55 +0000)]
A workaround in r238563 was for makes (notably bmake) without the
internal knowledge that "cd" is a shell's built-in.  Such makes
may attempt to exec() "cd" that in turn will fail on systems that
lack the "cd" executable.

Reworked this by eliminating the root cause.

Submitted by: Simon Gerraty <sjg@juniper.net>

11 years agoImplement an API to fetch the default DFS parameters for the given chip.
adrian [Fri, 24 Aug 2012 01:29:46 +0000 (01:29 +0000)]
Implement an API to fetch the default DFS parameters for the given chip.

The only chip this is currently implemented for is the AR5416 HAL family.
A follow-up commit will add AR5212 support.

PR: kern/170904

11 years agoBring over some new EEPROM regulatory domain flags.
adrian [Fri, 24 Aug 2012 01:14:00 +0000 (01:14 +0000)]
Bring over some new EEPROM regulatory domain flags.

Obtained from: Qualcomm Atheros

11 years agoAdd some basic definitions for a future htree implementation.
pfg [Fri, 24 Aug 2012 01:12:07 +0000 (01:12 +0000)]
Add some basic definitions for a future htree implementation.

MFC after: 3 days

11 years agoOops, another copy/paste issue.
adrian [Fri, 24 Aug 2012 00:54:31 +0000 (00:54 +0000)]
Oops, another copy/paste issue.

11 years agoAdd ath_hal_get_curmode() - this is used by the Osprey HAL.
adrian [Fri, 24 Aug 2012 00:52:37 +0000 (00:52 +0000)]
Add ath_hal_get_curmode() - this is used by the Osprey HAL.

Obtained from: Qualcomm Atheros

11 years agoAdd rfkill HAL accessor methods.
adrian [Fri, 24 Aug 2012 00:43:10 +0000 (00:43 +0000)]
Add rfkill HAL accessor methods.

11 years agoOops, fix copy/paste silliness.
adrian [Fri, 24 Aug 2012 00:40:01 +0000 (00:40 +0000)]
Oops, fix copy/paste silliness.

11 years agoAdd some more capabilities (unused at the present.)
adrian [Fri, 24 Aug 2012 00:36:47 +0000 (00:36 +0000)]
Add some more capabilities (unused at the present.)

Obtained from: Qualcomm Atheros

11 years agoAdd the MFP capability to ath_hal_getcapability().
adrian [Fri, 24 Aug 2012 00:33:25 +0000 (00:33 +0000)]
Add the MFP capability to ath_hal_getcapability().

Obtained from: Qualcomm Atheros

11 years agoAdd some more diagnostic codes.
adrian [Fri, 24 Aug 2012 00:17:39 +0000 (00:17 +0000)]
Add some more diagnostic codes.

Obtained from: Qualcomm Atheros

11 years agoWrap this a little so it's slightly easier on the eyes.
adrian [Fri, 24 Aug 2012 00:15:26 +0000 (00:15 +0000)]
Wrap this a little so it's slightly easier on the eyes.

11 years agoAdd some new flags:
adrian [Fri, 24 Aug 2012 00:09:49 +0000 (00:09 +0000)]
Add some new flags:

* mfp support;
* 4.9ghz support in the HAL;
* device type - specifically, the bus type and whether it's a HB63
  NIC (which requires some subtle chainmask handling differences
  in the AR5416 HAL.)

Obtained from: Qualcomm Atheros

11 years agoFetch the chip select in the bridge driver, like all the other spi
imp [Thu, 23 Aug 2012 22:38:37 +0000 (22:38 +0000)]
Fetch the chip select in the bridge driver, like all the other spi
bridges do.

11 years agoRemove duplicated GEOM_PART_* options.
ray [Thu, 23 Aug 2012 22:23:56 +0000 (22:23 +0000)]
Remove duplicated GEOM_PART_* options.

PR: 170931
Approved by: adrian

11 years agoAllow nmbjumbop, nmbjumbo9, and nmbjumbo16 to be set directly via loader
np [Thu, 23 Aug 2012 21:32:02 +0000 (21:32 +0000)]
Allow nmbjumbop, nmbjumbo9, and nmbjumbo16 to be set directly via loader
tunables.

MFC after: 1 month

11 years agoUse proper resource type when freeing.
imp [Thu, 23 Aug 2012 21:31:52 +0000 (21:31 +0000)]
Use proper resource type when freeing.

Submitted by: Ian Lapore (indirectly in a larger patch)

11 years agoApply fix for vendor pull request #17:
mm [Thu, 23 Aug 2012 19:40:28 +0000 (19:40 +0000)]
Apply fix for vendor pull request #17:
Support appending to empty archives

References:
  https://github.com/libarchive/libarchive/pull/17

Submitted by: myself
Obtained from: libarchive master branch on github

11 years agoPartially roll back r239601 - keep parameter strings both length-delimited
jamie [Thu, 23 Aug 2012 19:39:23 +0000 (19:39 +0000)]
Partially roll back r239601 - keep parameter strings both length-delimited
and null-terminated at the same time, because they're later passed to
libjail as null-terminated.  That means I also need to add a nul byte when
comma-combining array parameters.

MFC after: 6 days

11 years agoMerge recent vendor changes:
mm [Thu, 23 Aug 2012 19:32:57 +0000 (19:32 +0000)]
Merge recent vendor changes:
3086 unnecessarily setting DS_FLAG_INCONSISTENT on async destroyed datasets
3090 vdev_reopen() during reguid causes vdev to be treated as corrupt
3102 vdev_uberblock_load() and vdev_validate() may read the wrong label

Referenes:
  https://www.illumos.org/issues/3086
  https://www.illumos.org/issues/3090
  https://www.illumos.org/issues/3102

PR: kern/170912, kern/170914
Obtained from: illumos (changeset #13776, #13777)
MFC after: 2 weeks

11 years agoPull in r162360 from upstream clang trunk:
dim [Thu, 23 Aug 2012 18:14:59 +0000 (18:14 +0000)]
Pull in r162360 from upstream clang trunk:

  Merge existing attributes before processing pragmas in friend template
  declarations.
  Fixes pr13662.

This should help when building Firefox with libc++.

11 years agoSince our clang now supports the tls_model attribute, remove the
dim [Thu, 23 Aug 2012 17:58:22 +0000 (17:58 +0000)]
Since our clang now supports the tls_model attribute, remove the
workaround for it in jemalloc_FreeBSD.h.

Reviewed by: jasone

11 years agoAdd tunable for XHCI port routing.
hselasky [Thu, 23 Aug 2012 17:40:20 +0000 (17:40 +0000)]
Add tunable for XHCI port routing.

MFC after: 1 week

11 years agoSprinkle a bit of style.Makefile(5) across various clang Makefiles. No
dim [Thu, 23 Aug 2012 17:08:07 +0000 (17:08 +0000)]
Sprinkle a bit of style.Makefile(5) across various clang Makefiles.  No
functional changes.

MFC after: 3 days

11 years agoMake sure bsd.dep.mk does not filter out -stdlib=xxx from CXXFLAGS,
dim [Thu, 23 Aug 2012 17:03:33 +0000 (17:03 +0000)]
Make sure bsd.dep.mk does not filter out -stdlib=xxx from CXXFLAGS,
since this determines parts of the C++ include path.

MFC after: 1 week

11 years agoCheck the return value of sbuf_finish().
jh [Thu, 23 Aug 2012 16:25:36 +0000 (16:25 +0000)]
Check the return value of sbuf_finish().

11 years ago- Put arguments for print_syscall_ret() function in proper order.
zont [Thu, 23 Aug 2012 12:20:29 +0000 (12:20 +0000)]
- Put arguments for print_syscall_ret() function in proper order.
  Bug was introduced in r192025.

Approved by: kib (mentor)

11 years agoEliminate redundant code, _thr_spinlock_init() has already been called
davidxu [Thu, 23 Aug 2012 05:15:15 +0000 (05:15 +0000)]
Eliminate redundant code, _thr_spinlock_init() has already been called
in init_private(), don't call it again in fork() wrapper.