]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoo Implement more standard ioctls.
ray [Thu, 5 Dec 2013 00:12:52 +0000 (00:12 +0000)]
o Implement more standard ioctls.
o Translate old ioctls to new ones for compat with FREEBSD6/FREEBSD5/FREEBSD4.
o Fix style(9) on "return"s.
o Remove some extra debug.

Sponsored by: The FreeBSD Foundation

10 years agoFix build.
nwhitehorn [Sat, 30 Nov 2013 22:49:26 +0000 (22:49 +0000)]
Fix build.

10 years agoWork around false positive errors from GCC.
nwhitehorn [Sat, 30 Nov 2013 22:46:43 +0000 (22:46 +0000)]
Work around false positive errors from GCC.

10 years agoSwap HOME/END for ScrollLocked mode. This fix confusion when End key move
ray [Sun, 24 Nov 2013 00:15:57 +0000 (00:15 +0000)]
Swap HOME/END for ScrollLocked mode. This fix confusion when End key move
history to begin point.

Sponsored by: The FreeBSD Foundation

10 years agoImplement minimum ioctls set for framebuffer device.
ray [Fri, 22 Nov 2013 23:36:41 +0000 (23:36 +0000)]
Implement minimum ioctls set for framebuffer device.

Sponsored by: The FreeBSD Foundation

10 years agoRemove atomic_(set|clear)_int from mouse control too. Same as in r258408.
ray [Wed, 20 Nov 2013 23:02:09 +0000 (23:02 +0000)]
Remove atomic_(set|clear)_int from mouse control too. Same as in r258408.

Sponsored by: The FreeBSD Foundation

10 years agoRevert r258324. There mutexes should be used instead of atomics.
ray [Wed, 20 Nov 2013 22:54:09 +0000 (22:54 +0000)]
Revert r258324. There mutexes should be used instead of atomics.

Pointed by: kib, nwhitehorn

Sponsored by: The FreeBSD Foundation

10 years agoNotify terminal about process on current terminal start to use mouse on a
ray [Mon, 18 Nov 2013 22:55:50 +0000 (22:55 +0000)]
Notify terminal about process on current terminal start to use mouse on a
different "mouse level".

Sponsored by: The FreeBSD Foundation

10 years agoSwitch to use atomic ops for VT window flags, because some modifications can
ray [Mon, 18 Nov 2013 22:39:34 +0000 (22:39 +0000)]
Switch to use atomic ops for VT window flags, because some modifications can
come from another thread.

Sponsored by: The FreeBSD Foundation

10 years agoMove mode_config up one level. DRM drivers call drm_fb_helper_restore_fbdev_mode
ray [Mon, 18 Nov 2013 22:35:02 +0000 (22:35 +0000)]
Move mode_config up one level. DRM drivers call drm_fb_helper_restore_fbdev_mode
with that lock already held.

Suggested by: avg

Sponsored by: The FreeBSD Foundation

10 years agoLock mode_config before call drm_crtc_helper_set_config.
ray [Sun, 17 Nov 2013 00:49:55 +0000 (00:49 +0000)]
Lock mode_config before call drm_crtc_helper_set_config.

Submitted by: avg
Sponsored by: The FreeBSD Foundation

10 years agoRemove accidental line break.
ray [Fri, 15 Nov 2013 11:35:31 +0000 (11:35 +0000)]
Remove accidental line break.

Sponsored by: The FreeBSD Foundation

10 years agoAdd VT_ALT_TO_ESC_HACK enabled by default. This will prepend ESC sequence before
ray [Fri, 15 Nov 2013 11:33:36 +0000 (11:33 +0000)]
Add VT_ALT_TO_ESC_HACK enabled by default. This will prepend ESC sequence before
any chars when any of ALT keys is down.
! Not sure if it right way, but now it is possible to use Alt keys in vim.

Sponsored by: The FreeBSD Foundation

10 years agoDone cut/paste "word" selection mode support.
ray [Thu, 14 Nov 2013 15:44:22 +0000 (15:44 +0000)]
Done cut/paste "word" selection mode support.
It still selects everything which is not space around.

Sponsored by: The FreeBSD Foundation

Sponsored by: The FreeBSD Foundation

10 years agowrap long lines.
ray [Thu, 14 Nov 2013 15:14:27 +0000 (15:14 +0000)]
wrap long lines.

Sponsored by: The FreeBSD Foundation
Sponsored by: The FreeBSD Foundation

10 years agoSave last mouse event and check if the button1-up event happen w/o movement,
ray [Thu, 14 Nov 2013 13:25:47 +0000 (13:25 +0000)]
Save last mouse event and check if the button1-up event happen w/o movement,
then ignore it. Otherwise such events broke double/triple click sequence.

Sponsored by: The FreeBSD Foundation

10 years agoCorrect copy/paste mistake.
ray [Thu, 14 Nov 2013 00:02:18 +0000 (00:02 +0000)]
Correct copy/paste mistake.

Sponsored by:   The FreeBSD Foundation

10 years agoSimplify a bit vtbuf_set_mark.
ray [Thu, 14 Nov 2013 00:00:55 +0000 (00:00 +0000)]
Simplify a bit vtbuf_set_mark.

Sponsored by:   The FreeBSD Foundation

10 years agoPanic/DDB check should only affect mouse, screen redraw allowed. :)
ray [Wed, 13 Nov 2013 23:58:45 +0000 (23:58 +0000)]
Panic/DDB check should only affect mouse, screen redraw allowed. :)

10 years agoDo not add <CR><LF> for last (single) line of paste buffer.
ray [Wed, 13 Nov 2013 14:35:00 +0000 (14:35 +0000)]
Do not add <CR><LF> for last (single) line of paste buffer.

Sponsored by: The FreeBSD Foundation

10 years agoMFC @r258091.
ray [Wed, 13 Nov 2013 13:41:36 +0000 (13:41 +0000)]
MFC @r258091.

10 years agoMove vt_mouse_event out of sysmouse lock.
ray [Wed, 13 Nov 2013 12:34:24 +0000 (12:34 +0000)]
Move vt_mouse_event out of sysmouse lock.

Sponsored by: The FreeBSD Foundation

10 years agoo Simplify POS_INDEX macro calculation.
ray [Wed, 13 Nov 2013 12:32:41 +0000 (12:32 +0000)]
o Simplify POS_INDEX macro calculation.
o New macro POS_COPY to copy between term_pos_t.
o Add vtbuf_wth/vtbuf_htw helpers, to translate between screen coordinates and
circular history buffer location.
o Update vtbuf_iscursor to mark region selected by mouse.
o New helper vtbuf_flush_mark, to update regions where copy/paste mark changed.
o New method vtbuf_get_marked_len to get storage size for paste buffer.
o vtbuf_extract_marked fill (caller allocated buffer) with selected region data.
o Simplify mouse handler for copy/paste, and use vtbuf_flush_mark to update.
o New method vtbuf_scroll_mode, to help indicate Scroll mode by hiding cursor.
o Update header with new vtbuf methods.
o Add new vt_driver method vd_markedwin, to hold last window with selection.
o Enable paste support in core module.

Sponsored by: The FreeBSD Foundation
Pointed by: Claude Buisson <clbuisson@orange.fr> (Scroll mode indication)

10 years agoLeave a note that the 5300 is a 3x3 NIC.
adrian [Wed, 13 Nov 2013 09:32:11 +0000 (09:32 +0000)]
Leave a note that the 5300 is a 3x3 NIC.

10 years agoRemove useless comparisions of assigned offset and resid with the
kib [Wed, 13 Nov 2013 08:55:09 +0000 (08:55 +0000)]
Remove useless comparisions of assigned offset and resid with the
sources from uio.  Both uio_offset and offset, and uio_resid and resid
have the same types for some time.

Add check for buflen overflow by comparing the buflen with both offset
and resid (vs. comparing with offset only, as it is currently done).

Reported and tested by: pho
Approved by: des (pseudofs maintainer)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoStrip the -pN patch level from the VERSION string which gets encoded into
cperciva [Wed, 13 Nov 2013 08:08:56 +0000 (08:08 +0000)]
Strip the -pN patch level from the VERSION string which gets encoded into
CTF data.  Otherwise FreeBSD Update builds think every kernel file has
changed every time there's a security advisory, since the FreeBSD Update
build code isn't smart enough to look inside CTF data to ignore those
changes.

Pointy hat to: cperciva
MFC after: 1 day, or before the next BETA

10 years agoCorrectly initialise the 2-chain antenna mask in the link quality table.
adrian [Wed, 13 Nov 2013 07:09:00 +0000 (07:09 +0000)]
Correctly initialise the 2-chain antenna mask in the link quality table.

The previous code simply hard-coded IWN_ANT_AB which is only correct for
some of the NICs.

Now, if the NIC is a 1-stream TX, you need to set IWN_ANT_AB and _not_
just a single antenna.  The Intel 5100 firmware panics the moment the
link quality table is updated.

So!

* no secondary antenna? Set it to IWN_ANT_AB;
* two-stream device? Transmit on the full transmit antenna configuration.

Tested:

* Intel 5100, STA
* Intel 2200 (eadler)

Obtained from: Linux iwlwifi

10 years agoSomewhat mimic how the devel/subversion port prepopulates
gjb [Wed, 13 Nov 2013 05:25:49 +0000 (05:25 +0000)]
Somewhat mimic how the devel/subversion port prepopulates
'Sponsored by:' in the FreeBSD commit template.

Support for this has already existed ^/head/contrib/subversion
but it was not enabled in usr.bin/svn/svn/Makefile.

To use the pre-populated 'Sponsored by:' entry, set ORGANIZATION
in make.conf(5), for example:

    ORGANIZATION=   "The FreeBSD Foundation"

Reviewed by: peter
Sponsored by: The FreeBSD Foundation

10 years agoRemove a couple of unused macros.
kevlo [Wed, 13 Nov 2013 05:22:39 +0000 (05:22 +0000)]
Remove a couple of unused macros.

10 years ago- Use bit twiddling macro to set IEEE80211_MODE_11A
kevlo [Wed, 13 Nov 2013 05:21:41 +0000 (05:21 +0000)]
- Use bit twiddling macro to set IEEE80211_MODE_11A
- On the RT3572 chipset, there's no need to configure BBP register 86

10 years agogcc: Backport fixes for -W parentheses in C++
pfg [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
jpaetzel [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.
jhibbits [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.
jhibbits [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 [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 [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 [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
jimharris [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.
pjd [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
pluknet [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 agodrm/radeon: Fix build of radeon_fb.c on i386
dumbbell [Tue, 12 Nov 2013 19:44:45 +0000 (19:44 +0000)]
drm/radeon: Fix build of radeon_fb.c on i386

10 years agoAdd a pre-world mode of updating similar to the -p option that can be
jhb [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
pjd [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
jhb [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
jhb [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
jhb [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
br [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
alc [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/
dteske [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
emaste [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
sbruno [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
nwhitehorn [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
nwhitehorn [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
loos [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.
glebius [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.
loos [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
loos [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
loos [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
loos [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.
trasz [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.
trasz [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).
trasz [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.
kib [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.
markj [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 [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 [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 [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 [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 [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 [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.
dteske [Tue, 12 Nov 2013 04:02:51 +0000 (04:02 +0000)]
Comments.

10 years agoUse the real product name for Edimax rsu(4) id.
kevlo [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.
nwhitehorn [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.
eadler [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
gjb [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
nwhitehorn [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 agoAdd kern.vt.suspendswitch tunable. This will allow to disable default behavior
ray [Mon, 11 Nov 2013 22:07:56 +0000 (22:07 +0000)]
Add kern.vt.suspendswitch tunable. This will allow to disable default behavior
(switch to VT0 on suspend, switch back on resume).
If 0 - disabled, other values - enabled.

Requested by: jhb
Sponsored by:   The FreeBSD Foundation

10 years agoSwitch default MBR bootcode from /boot/boot0 to /boot/mbr.
dteske [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)
bdrewery [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.
gjb [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
pfg [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
dim [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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:
emaste [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:
emaste [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
nwhitehorn [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.
pluknet [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
markj [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 [Mon, 11 Nov 2013 16:52:02 +0000 (16:52 +0000)]
Merge nvi-2.1.1 -> 2.1.2

10 years agoSet description string for VM_GUEST_HV (HyperV guest).
pluknet [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
nwhitehorn [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
nwhitehorn [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
nwhitehorn [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
nwhitehorn [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
nwhitehorn [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 agoUpdate vd_bitbltchr_t type to handle operation mask (to not touch pixels which
ray [Mon, 11 Nov 2013 13:25:49 +0000 (13:25 +0000)]
Update vd_bitbltchr_t type to handle operation mask (to not touch pixels which
 is not defined in mask) and bpl (bytes per source line).
Only vt_fb driver handle handle bpl yet.
Add protector for case when blitting image can be drawn partially out of screen,
like mouse cursor.

Mouse cursor and its movements works fine, copy/paste not yet.

Sponsored by: The FreeBSD Foundation

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

PR: 177417
MFC after: 1 week