]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoAdd const to the copyright variable
Baptiste Daroussin [Sat, 6 Jun 2015 13:13:39 +0000 (13:13 +0000)]
Add const to the copyright variable
Bump WARNS to level 2

9 years agoRemove WARNS keylogin build fine with clang and gcc
Baptiste Daroussin [Sat, 6 Jun 2015 13:09:49 +0000 (13:09 +0000)]
Remove WARNS keylogin build fine with clang and gcc

9 years agoBump WARNS level to 1
Baptiste Daroussin [Sat, 6 Jun 2015 13:08:48 +0000 (13:08 +0000)]
Bump WARNS level to 1

9 years agoRemove unused variable
Baptiste Daroussin [Sat, 6 Jun 2015 13:08:31 +0000 (13:08 +0000)]
Remove unused variable

9 years agoMake global variables static
Baptiste Daroussin [Sat, 6 Jun 2015 12:43:05 +0000 (12:43 +0000)]
Make global variables static
Remove WARNS from Makefile

9 years agoBump level WARNINGS to 3
Baptiste Daroussin [Sat, 6 Jun 2015 12:41:25 +0000 (12:41 +0000)]
Bump level WARNINGS to 3

9 years agoMake global variables static
Baptiste Daroussin [Sat, 6 Jun 2015 12:39:00 +0000 (12:39 +0000)]
Make global variables static
Remove WARNS from Makefile

9 years agoRemove WARNS vtfontcvt builds find with clang and gcc with maximum level warning
Baptiste Daroussin [Sat, 6 Jun 2015 12:34:59 +0000 (12:34 +0000)]
Remove WARNS vtfontcvt builds find with clang and gcc with maximum level warning

9 years agoFix history
Baptiste Daroussin [Sat, 6 Jun 2015 12:10:10 +0000 (12:10 +0000)]
Fix history

9 years agoFix HISTORY and add AUTHORS section
Baptiste Daroussin [Sat, 6 Jun 2015 12:08:10 +0000 (12:08 +0000)]
Fix HISTORY and add AUTHORS section

Obtained from: OpenBSD (by schwarze@)

9 years agoFix history, add AUTHORS section
Baptiste Daroussin [Sat, 6 Jun 2015 12:04:38 +0000 (12:04 +0000)]
Fix history, add AUTHORS section

Obtained from: OpenBSD (by schwarze@)

9 years agoComplete documenting the HISTORY
Baptiste Daroussin [Sat, 6 Jun 2015 12:01:35 +0000 (12:01 +0000)]
Complete documenting the HISTORY

Obtained from: OpenBSD (by schwarze@)

9 years agoFix history (appeared in 1BSD)
Baptiste Daroussin [Sat, 6 Jun 2015 11:58:19 +0000 (11:58 +0000)]
Fix history (appeared in 1BSD)

Obtained from: OpenBSD (by schwarze@)

9 years agoComplete documenting the HISTORY of what remains of the 1BSD heritage
Baptiste Daroussin [Sat, 6 Jun 2015 11:55:35 +0000 (11:55 +0000)]
Complete documenting the HISTORY of what remains of the 1BSD heritage

Obtained from: OpenBSD (by schwarze@)

9 years agoFix history: colrm(1) appeared in 1BSD not 3.0BSD
Baptiste Daroussin [Sat, 6 Jun 2015 11:42:43 +0000 (11:42 +0000)]
Fix history: colrm(1) appeared in 1BSD not 3.0BSD
Add Author section

Obtained from: OpenBSD (change by schwarze@)

9 years agoAdd myself (brnrd / Bernard Spil) to committers docs
Bernard Spil [Sat, 6 Jun 2015 11:19:21 +0000 (11:19 +0000)]
Add myself (brnrd / Bernard Spil) to committers docs

- Add myself and vsevolod (mentor) to committers-ports.dot
- Add koobs and vsevolod as mentors to committers-ports.dot

Submitted by: brnrd@freebsd.org
Approved by: vsevolod (mentor), koobs (mentor)
Differential Revision: https://reviews.freebsd.org/D2648

9 years agoSet the correct register when calling sigprocmask in longjmp.
Andrew Turner [Sat, 6 Jun 2015 10:28:38 +0000 (10:28 +0000)]
Set the correct register when calling sigprocmask in longjmp.

Submitted by: Patrick Wildt <patrick@bitrig.org>
Obtained from: drahn@bitrig.org

9 years agoFinish r283544. In exec case properly detach threads from user space
Dmitry Chagin [Sat, 6 Jun 2015 06:12:14 +0000 (06:12 +0000)]
Finish r283544. In exec case properly detach threads from user space
before suicide.

9 years agoAdd support for dependent options
Simon J. Gerraty [Sat, 6 Jun 2015 01:18:28 +0000 (01:18 +0000)]
Add support for dependent options

Reviewed by: imp

9 years agoUpdate SW4 to the Intel ixl/ixlv drivers. This is primarily a shared
Jack F Vogel [Fri, 5 Jun 2015 22:52:42 +0000 (22:52 +0000)]
Update SW4 to the Intel ixl/ixlv drivers. This is primarily a shared
code update, with supporting changes in the CORE. Changes for the extended
media types, VF driver has virtual channel protocol changes, and some
register use corrections.  This software change should be coordinated with
Firmware updates to your hardware, contact your support channels for that.

MFC after: 1 week

9 years agoFix some clang warnings:
Baptiste Daroussin [Fri, 5 Jun 2015 21:45:35 +0000 (21:45 +0000)]
Fix some clang warnings:
Add missing headers
Add parenthesis when using the result of an assignment as a condition

9 years agoFix typos
Baptiste Daroussin [Fri, 5 Jun 2015 21:35:20 +0000 (21:35 +0000)]
Fix typos

9 years agoThe 'verify_gla()' function is used to ensure that the effective address
Neel Natu [Fri, 5 Jun 2015 21:22:26 +0000 (21:22 +0000)]
The 'verify_gla()' function is used to ensure that the effective address
after decoding the instruction matches the one provided by hardware.

Prior to r283293 'vie->num_valid' used to contain the actual length of
the instruction whereas now it contains the maximum instruction length
possible. This introduced a bug when calculating a RIP-relative base address.

Fix this by using 'vie->num_processed' rather than 'vie->num_valid' as the
length of the emulated instruction.

Reported and tested by: tychon
MFC after: 1 week

9 years agoFix wrong function name in error message.
Alexander Motin [Fri, 5 Jun 2015 20:30:36 +0000 (20:30 +0000)]
Fix wrong function name in error message.

MFC after: 3 days

9 years agoRevert 284029, update imgact_binmisctl.c change mtx to reader count, at the
Sean Bruno [Fri, 5 Jun 2015 18:16:10 +0000 (18:16 +0000)]
Revert 284029, update imgact_binmisctl.c change mtx to reader count, at the
request of the submitter.

Will attempt to use an sx_lock for this fix to WITNESS crashes in a later
revision.

Submitted by: sson

9 years agoSilence clang warning about extraneous parenthesis
Sean Bruno [Fri, 5 Jun 2015 17:18:10 +0000 (17:18 +0000)]
Silence clang warning about extraneous parenthesis

Verified that this exists upstream already:
https://git.kernel.org/cgit/utils/dtc/dtc.git/tree/checks.c#n628

Differential Revision: https://reviews.freebsd.org/D913
Reviewed by: imp

9 years agodnode_read: fixup r284025, BP_IS_HOLE macro expects a pointer
Andriy Gapon [Fri, 5 Jun 2015 17:02:21 +0000 (17:02 +0000)]
dnode_read: fixup r284025, BP_IS_HOLE macro expects a pointer

PR: 199804
Reported by: sbruno
Pointyhat to: avg
MFC after: 10 days
X-MFC with: r284025

9 years agoThis change uses a reader count instead of holding the mutex for the
Sean Bruno [Fri, 5 Jun 2015 16:21:43 +0000 (16:21 +0000)]
This change uses a reader count instead of holding the mutex for the
interpreter list to avoid the problem of holding a non-sleep lock during
a page fault as reported by witness.  In addition, it consistently uses
memset()/memcpy() instead of bzero()/bcopy() except in the case where
bcopy() is required (i.e. overlapping copy).

Differential Revision: https://reviews.freebsd.org/D2123
Submitted by: sson
MFC after: 2 weeks
Relnotes: Yes

9 years agodnode_read: handle hole blocks in zfs boot code
Andriy Gapon [Fri, 5 Jun 2015 15:32:04 +0000 (15:32 +0000)]
dnode_read: handle hole blocks in zfs boot code

A hole block pointer can be encountered at any level and the hole
can cover multiple data blocks, but we are reading the data blocks
one by one, so we care only about the current one.

PR: 199804
Reported by: Toomas Soome <tsoome@me.com>
Submitted by: Toomas Soome <tsoome@me.com> (earlier version)
Tested by: Toomas Soome <tsoome@me.com>
MFC after: 11 days

9 years agobhyve/vmrun.sh: pass all existing readable disks to bhyveload(8)
Andriy Gapon [Fri, 5 Jun 2015 15:16:26 +0000 (15:16 +0000)]
bhyve/vmrun.sh: pass all existing readable disks to bhyveload(8)

This is done if the installation mode is not requested or auto-detected.
This is useful when a kernel has to be loaded from multiple disks.
For example from a RAID-Z pool or a ZFS pool with multiple top level
vdevs.

Differential Revision: https://reviews.freebsd.org/D2723
Reviewed by: neel
MFC after: 8 days

9 years agobhyve/vmrun.sh: support passing disk options same as for bhyve(8)
Andriy Gapon [Fri, 5 Jun 2015 15:14:54 +0000 (15:14 +0000)]
bhyve/vmrun.sh: support passing disk options same as for bhyve(8)

Differential Revision: https://reviews.freebsd.org/D2723
Reviewed by: neel
MFC after: 8 days

9 years agoaic7xxx: Do not support device IDs 0x8081, 0x8088 and 0x8089 to avoid
Achim Leubner [Fri, 5 Jun 2015 11:37:54 +0000 (11:37 +0000)]
aic7xxx: Do not support device IDs 0x8081, 0x8088 and 0x8089 to avoid
conflicts with the new PMC Adaptec controller families supported by aacraid

9 years agoFor now, just default to presenting "found" channels as 11g, not 11b.
Adrian Chadd [Fri, 5 Jun 2015 06:49:08 +0000 (06:49 +0000)]
For now, just default to presenting "found" channels as 11g, not 11b.

The intel 7260 driver under development requires this - the scans come
in as normal frames but with the frequency provided.  The correct method
is to have the driver provide flags (so we can determine if it's 11b
or 11g); this will have to do in the meantime.

Without this, the channel found is 11b, and no ERP (ie "11g") bits
are negotiated with the AP.

This allows the 7260 in 2ghz mode to operate in 11bg, rather than
just 11b.

Tested:

* intel 7260 driver, 11bg channels

9 years agoAllow setting only WWNN or only WWPN.
Alexander Motin [Fri, 5 Jun 2015 06:46:11 +0000 (06:46 +0000)]
Allow setting only WWNN or only WWPN.

MFC after: 2 weeks

9 years agoDisable VGA PCI interrupts until a chipset driver is loaded for VGA
Hans Petter Selasky [Fri, 5 Jun 2015 06:23:03 +0000 (06:23 +0000)]
Disable VGA PCI interrupts until a chipset driver is loaded for VGA
PCI devices. Else unhandled display adapter interrupts might freeze
the CPU or consume a lot of CPU.

PR: 156596
MFC after: 1 week

9 years agoDon't wait forever for USB data to be flushed.
Hans Petter Selasky [Fri, 5 Jun 2015 06:06:07 +0000 (06:06 +0000)]
Don't wait forever for USB data to be flushed.

MFC after: 1 week

9 years agoWork around a potential bug in pw(8) when '-m' is specified.
Glen Barber [Fri, 5 Jun 2015 02:22:04 +0000 (02:22 +0000)]
Work around a potential bug in pw(8) when '-m' is specified.
According to the manual page, '-m' should create the user home
directory, however rigorous testing suggests it does not, and
it is unclear if this is an implementation or expectation issue.

Sponsored by: The FreeBSD Foundation

9 years agocxgbe: set the minimum burst size when fetching fl buffers to 128B for
Navdeep Parhar [Fri, 5 Jun 2015 00:37:46 +0000 (00:37 +0000)]
cxgbe: set the minimum burst size when fetching fl buffers to 128B for
netmap rx queues too.  This should have gone in as part of r283858.

9 years agoMake sure /home exists within the DESTDIR before creating the
Glen Barber [Thu, 4 Jun 2015 23:11:24 +0000 (23:11 +0000)]
Make sure /home exists within the DESTDIR before creating the
'freebsd' user account.

Sponsored by: The FreeBSD Foundation

9 years agoSome hostap setups may result in raw frames being transmitted with
Adrian Chadd [Thu, 4 Jun 2015 23:07:21 +0000 (23:07 +0000)]
Some hostap setups may result in raw frames being transmitted with
no parameters set.  So, don't unconditionally call things.

Thanks to jkim@ for pointing this out!

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agostrchr(3): Mdoc fixes.
Jilles Tjoelker [Thu, 4 Jun 2015 21:54:46 +0000 (21:54 +0000)]
strchr(3): Mdoc fixes.

9 years agoAdd a CHILD_REQUIRE macro similar to ATF_REQUIRE for use in child processes
John Baldwin [Thu, 4 Jun 2015 21:07:27 +0000 (21:07 +0000)]
Add a CHILD_REQUIRE macro similar to ATF_REQUIRE for use in child processes
of the main test process.

Differential Revision: https://reviews.freebsd.org/D2664
Reviewed by: ngie (previous version)

9 years agoRemove compatibility shims for FreeBSD versions older than 8.0.
John Baldwin [Thu, 4 Jun 2015 20:36:16 +0000 (20:36 +0000)]
Remove compatibility shims for FreeBSD versions older than 8.0.

9 years agoAdd a new file operations hook for mmap operations. File type-specific
John Baldwin [Thu, 4 Jun 2015 19:41:15 +0000 (19:41 +0000)]
Add a new file operations hook for mmap operations.  File type-specific
logic is now placed in the mmap hook implementation rather than requiring
it to be placed in sys/vm/vm_mmap.c.  This hook allows new file types to
support mmap() as well as potentially allowing mmap() for existing file
types that do not currently support any mapping.

The vm_mmap() function is now split up into two functions.  A new
vm_mmap_object() function handles the "back half" of vm_mmap() and accepts
a referenced VM object to map rather than a (handle, handle_type) tuple.
vm_mmap() is now reduced to converting a (handle, handle_type) tuple to a
a VM object and then calling vm_mmap_object() to handle the actual mapping.
The vm_mmap() function remains for use by other parts of the kernel
(e.g. device drivers and exec) but now only supports mapping vnodes,
character devices, and anonymous memory.

The mmap() system call invokes vm_mmap_object() directly with a NULL object
for anonymous mappings.  For mappings using a file descriptor, the
descriptors fo_mmap() hook is invoked instead.  The fo_mmap() hook is
responsible for performing type-specific checks and adjustments to
arguments as well as possibly modifying mapping parameters such as flags
or the object offset.  The fo_mmap() hook routines then call
vm_mmap_object() to handle the actual mapping.

The fo_mmap() hook is optional.  If it is not set, then fo_mmap() will
fail with ENODEV.  A fo_mmap() hook is implemented for regular files,
character devices, and shared memory objects (created via shm_open()).

While here, consistently use the VM_PROT_* constants for the vm_prot_t
type for the 'prot' variable passed to vm_mmap() and vm_mmap_object()
as well as the vm_mmap_vnode() and vm_mmap_cdev() helper routines.
Previously some places were using the mmap()-specific PROT_* constants
instead.  While this happens to work because PROT_xx == VM_PROT_xx,
using VM_PROT_* is more correct.

Differential Revision: https://reviews.freebsd.org/D2658
Reviewed by: alc (glanced over), kib
MFC after: 1 month
Sponsored by: Chelsio

9 years agoChange directory permissions in pre-order.
Sergey Kandaurov [Thu, 4 Jun 2015 19:18:58 +0000 (19:18 +0000)]
Change directory permissions in pre-order.
In this order, it won't try to recurse into a directory for which
it doesn't have permission, before changing that permission.
This follows an existing behavior in other BSDs, linux, OS X.

Obtained from: NetBSD

9 years agoTag outbound raw 802.11 frames with both the node and an mbuf tag
Adrian Chadd [Thu, 4 Jun 2015 17:54:41 +0000 (17:54 +0000)]
Tag outbound raw 802.11 frames with both the node and an mbuf tag
with the transmit params.

This allows raw 802.11 frames to be queued in the driver if necessary,
rather than requiring it to be direct-dispatched into the hardware.

Tested:

* ath(4), STA mode
* iwn(4), STA mode

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agoFix a whitespace nit.
Glen Barber [Thu, 4 Jun 2015 16:33:29 +0000 (16:33 +0000)]
Fix a whitespace nit.

Sponsored by: The FreeBSD Foundation

9 years agoAdd initial support for building images for the Duovero Gumstix
Glen Barber [Thu, 4 Jun 2015 16:32:16 +0000 (16:32 +0000)]
Add initial support for building images for the Duovero Gumstix
board.

Sponsored by: The FreeBSD Foundation

9 years agoRe-implement endian-aware services_mkdb(8) in the 'distribute'
Glen Barber [Thu, 4 Jun 2015 15:02:05 +0000 (15:02 +0000)]
Re-implement endian-aware services_mkdb(8) in the 'distribute'
target.  This effectively reverts r261142, which reverted both
r261031 and r261044.

Prodded by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoExport a pointer to the SCTP socket. This is needed to add SCTP support
Michael Tuexen [Thu, 4 Jun 2015 12:46:56 +0000 (12:46 +0000)]
Export a pointer to the SCTP socket. This is needed to add SCTP support
to sockstat.

MFC after: 3 days

9 years agoFix the build by hiding ieee80211_add_xmit_params and
Andrew Turner [Thu, 4 Jun 2015 10:55:36 +0000 (10:55 +0000)]
Fix the build by hiding ieee80211_add_xmit_params and
ieee80211_get_xmit_params from userspace.

9 years agoAfter r283981 it is no more needed to specify endianness when generating the
Baptiste Daroussin [Thu, 4 Jun 2015 08:05:44 +0000 (08:05 +0000)]
After r283981 it is no more needed to specify endianness when generating the
passwd database

9 years agorevert r283969,283970 not needed anymore after r283981
Baptiste Daroussin [Thu, 4 Jun 2015 08:00:11 +0000 (08:00 +0000)]
revert r283969,283970 not needed anymore after r283981

9 years agoDocument the disable of legacy entries in password database in UPDATING
Xin LI [Thu, 4 Jun 2015 07:37:09 +0000 (07:37 +0000)]
Document the disable of legacy entries in password database in UPDATING
and bump __FreeBSD_version after r283981.

9 years agoWhitespace changes for r283981. No actual code changes.
Xin LI [Thu, 4 Jun 2015 07:25:40 +0000 (07:25 +0000)]
Whitespace changes for r283981.  No actual code changes.

9 years agoIn r113596, version 4 of entries have been added but pwd_mkdb have
Xin LI [Thu, 4 Jun 2015 07:24:56 +0000 (07:24 +0000)]
In r113596, version 4 of entries have been added but pwd_mkdb have
been generating both new (machine independent) and legacy version
entries (endianness sensitive).

The base system have been using the new format for quite some time,
so disable the generation by default.

An interim option, -l, have been added to re-enable old behavior.
The -l, -B and -L options are considered deprecated and will be
removed in FreeBSD 12.0 release.

9 years agoFirst pass of adding transmit parameters as an option for outbound
Adrian Chadd [Thu, 4 Jun 2015 06:30:39 +0000 (06:30 +0000)]
First pass of adding transmit parameters as an option for outbound
802.11 mbufs.

The raw transmit path currently doesn't make it easy to queue
these frames:

* there's no node reference stored in the mbuf, like for the normal
  path, and
* the bpf supplied raw transmit parameters (rate, rts/cts, etc)
  are passed in as an argument, not as an mbuf tag.

In order to support driver queuing of these frames, we need to
be able to put the above into the mbuf before the driver gets it,
so the driver /can/ put it into a queue if needed.

Use an mbuf tag and for now just verbatim copy the bpf parameters
into it.  Later on it may grow to include more options but this
will do for now.

Why would you want to queue raw frames? Well, in the case of
iwn(4), we can't send the firmware frames to transmit before
we hear a beacon - the firmware will consider passive channels
as unavailable until it hears a beacon.  The firmware "passive"
channel state is cleared upon each RXON command, which is sent to
update association status.  So, when we attempt association and
authorisation, the RXON command causes the firmware to clear out
what it's already seen, and so we have to wait for a beacon before
we can transmit.

Before people get overly excited - this alone doesn't "fix" 5GHz
operation - it just makes it (more) possible.

The aim here is to convert all the drivers over to use a raw_xmit()
API that doesn't include the node and params - instead they'd get
those from the mbuf.  Then raw_xmit() becomes just a side-channel
version of the normal transmit path for management traffic.

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agoDisable bgscan for now - it interferes with 11n activity and general
Adrian Chadd [Thu, 4 Jun 2015 05:37:07 +0000 (05:37 +0000)]
Disable bgscan for now - it interferes with 11n activity and general
stability.

I'll re-enable it once the scan overhaul is done - the NIC itself
can do bgscan, but not how we're doing it.

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.

9 years agoRemove unused variable and silence clang warnings.
Marcelo Araujo [Thu, 4 Jun 2015 02:50:13 +0000 (02:50 +0000)]
Remove unused variable and silence clang warnings.

Differential Revision: D2681
Reviewed by: rodrigc

9 years agoClean up unused variable and silence clang warnings.
Marcelo Araujo [Thu, 4 Jun 2015 02:48:04 +0000 (02:48 +0000)]
Clean up unused variable and silence clang warnings.

Differential Revision: D2682
Reviewed by: rodrigc

9 years agoRemove unused variables and silence clang warnings.
Marcelo Araujo [Thu, 4 Jun 2015 02:44:37 +0000 (02:44 +0000)]
Remove unused variables and silence clang warnings.

Differential Revision: D2686
Reviewed by: rodrigc

9 years agoUse tunable 'hw.vmm.svm.features' to disable specific SVM features even
Neel Natu [Thu, 4 Jun 2015 02:12:23 +0000 (02:12 +0000)]
Use tunable 'hw.vmm.svm.features' to disable specific SVM features even
though they might be available in hardware.

Use tunable 'hw.vmm.svm.num_asids' to limit the number of ASIDs used by
the hypervisor.

MFC after: 1 week

9 years agoCapitalize the list of accepted variables
Baptiste Daroussin [Wed, 3 Jun 2015 22:01:13 +0000 (22:01 +0000)]
Capitalize the list of accepted variables

Suggested by: wblock

9 years agoAdd a pw_mkdb2(3) function which does the same thing as pw_mkdb(3) except
Baptiste Daroussin [Wed, 3 Jun 2015 20:48:28 +0000 (20:48 +0000)]
Add a pw_mkdb2(3) function which does the same thing as pw_mkdb(3) except
it takes a new argument allowing to specify the endianness of the database
to generate

Differential Revision: https://reviews.freebsd.org/D2730
Reviewed by: ian

9 years agoSyncing a directory vnode might drop the vnode lock in the
Konstantin Belousov [Wed, 3 Jun 2015 20:48:00 +0000 (20:48 +0000)]
Syncing a directory vnode might drop the vnode lock in the
softdep_sync() similarly to the regular vnode sync.  Allow retry for
both vnode types.

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

9 years agoIn r282297 \fC was wrong changed to \fCW.) when it should have been \fCW
Baptiste Daroussin [Wed, 3 Jun 2015 20:04:39 +0000 (20:04 +0000)]
In r282297 \fC was wrong changed to \fCW.) when it should have been \fCW

Reported by: carsten.kunze@arcor.de (heirloom doctools)

9 years agoMFV: r283965
Jung-uk Kim [Wed, 3 Jun 2015 19:39:59 +0000 (19:39 +0000)]
MFV: r283965

- Update GUIDs for new NFIT tables.
- Fix ill-formed GUID strings for NFIT tables.
- Fix a possible fault when performing a UUID search.

9 years ago- Update for new NFIT table GUIDs.
Jung-uk Kim [Wed, 3 Jun 2015 19:27:36 +0000 (19:27 +0000)]
- Update for new NFIT table GUIDs.
- Fix ill-formed GUID strings for NFIT tables.
- Fix a possible fault when performing a UUID search.

https://github.com/acpica/acpica/commit/83727be
https://github.com/acpica/acpica/commit/6005294
https://github.com/acpica/acpica/commit/4a1cca9

9 years agoFix typo
Baptiste Daroussin [Wed, 3 Jun 2015 19:22:16 +0000 (19:22 +0000)]
Fix typo

9 years agoUse the new pw(8) '-R' option to create the users/groups.
Glen Barber [Wed, 3 Jun 2015 19:19:25 +0000 (19:19 +0000)]
Use the new pw(8) '-R' option to create the users/groups.

MFC after: 1 week
X-MFC-after: r283961
Sponsored by: The FreeBSD Foundation

9 years agoDocument pw(8) '-R' option, added in r283961.
Glen Barber [Wed, 3 Jun 2015 19:17:45 +0000 (19:17 +0000)]
Document pw(8) '-R' option, added in r283961.

MFC after: 1 week
X-MFC-after: r283961
Sponsored by: The FreeBSD Foundation

9 years agoNew pw -R rootdir option
Baptiste Daroussin [Wed, 3 Jun 2015 19:08:25 +0000 (19:08 +0000)]
New pw -R rootdir option

This allows to set an alternate root directory in which the users/groups will be
manipulated

Requested by: gjb, ian
Tested by: gjb

9 years agoChange EM_MULTIQUEUE to a real kernconf entry and enable support for
Sean Bruno [Wed, 3 Jun 2015 18:01:09 +0000 (18:01 +0000)]
Change EM_MULTIQUEUE to a real kernconf entry and enable support for
up to 2 rx/tx queues for the 82574.

Program the 82574 to enable 5 msix vectors, assign 1 to each rx queue,
1 to each tx queue and 1 to the link handler.

Inspired by DragonFlyBSD, enable some RSS logic for handling tx queue
handling/processing.

Move multiqueue handler functions so that they line up better in a diff
review to if_igb.c

Always enqueue tx work to be done in em_mq_start, if unable to acquire
the TX lock, then this will be processed in the background later by the
taskqueue.  Remove mbuf argument from em_start_mq_locked() as the work
is always enqueued.  (stolen from igb)

Setup TARC, TXDCTL and RXDCTL registers for better performance and stability
in multiqueue and singlequeue implementations. Handle Intel errata  3 and
generic multiqueue behavior with the initialization of TARC(0) and TARC(1)

Bind interrupt threads to cpus in order.  (stolen from igb)

Add 2 new DDB functions, one to display the queue(s) and their settings and
one to reset the adapter.  Primarily used for debugging.

In the multiqueue configuration, bump RXD and TXD ring size to max for the
adapter (4096).  Setup an RDTR of 64 and an RADV of 128 in multiqueue configuration
to cut down on the number of interrupts.  RADV was arbitrarily set to 2x RDTR
and can be adjusted as needed.

Cleanup the display in top a bit to make it clearer where the taskqueue threads
are running and what they should be doing.

Ensure that both queues are processed by em_local_timer() by writing them both
to the IMS register to generate soft interrupts.

Ensure that an soft interrupt is generated when em_msix_link() is run so that
any races between assertion of the link/status interrupt and a rx/tx interrupt
are handled.

Document existing tuneables: hw.em.eee_setting, hw.em.msix, hw.em.smart_pwr_down, hw.em.sbp

Document use of hw.em.num_queues and the new kernel option EM_MULTIQUEUE

Thanks to Intel for their continued support of FreeBSD.

Reviewed by: erj jfv hiren gnn wblock
Obtained from: Intel Corporation
MFC after: 2 weeks
Relnotes: Yes
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D1994

9 years agofix missing backslash..
John-Mark Gurney [Wed, 3 Jun 2015 17:10:52 +0000 (17:10 +0000)]
fix missing backslash..

9 years agoinstall nanobsd.sh as a MLINK as that is the .Nm of the man page..
John-Mark Gurney [Wed, 3 Jun 2015 17:10:11 +0000 (17:10 +0000)]
install nanobsd.sh as a MLINK as that is the .Nm of the man page..
really the man page should be renamed as nanobsd.sh is not installed
as nanobsd..

9 years agoFix spelling.
Hans Petter Selasky [Wed, 3 Jun 2015 15:43:55 +0000 (15:43 +0000)]
Fix spelling.

9 years agoFix wrong variable name in the previous commit.
Luiz Otavio O Souza [Wed, 3 Jun 2015 15:18:32 +0000 (15:18 +0000)]
Fix wrong variable name in the previous commit.

Pointy hat to: loos
Reported by: araujo

9 years agoFix the OACTIVE handling on if_dwc.
Luiz Otavio O Souza [Wed, 3 Jun 2015 14:48:03 +0000 (14:48 +0000)]
Fix the OACTIVE handling on if_dwc.

Previously the OACTIVE flag was being set when the tx descriptors are fully
allocated but it wasn't unset anywhere.

As soon as a packet is transmitted, unset the OACTIVE flag and call start
routine to push any pending packets from the tx queue.

This closes another race where a full tx queue would jam the tx path (tx
queue is full, new packets cannot be added to queue and dwc_txstart never
gets called).

9 years agoBetter handling of userland sysarch() requests to flush icache.
Ian Lepore [Wed, 3 Jun 2015 14:07:50 +0000 (14:07 +0000)]
Better handling of userland sysarch() requests to flush icache.

On armv6, cache maintenance can trigger page faults.  Add handling so that
these turn into SIGSEGV that kills the process rather than panics that kill
the kernel.

Differential Revision: https://reviews.freebsd.org/D2035
Submitted by: Michal Meloun <meloun@miracle.cz>

9 years agoRevert r283938 it is not needed anymore and broken
Baptiste Daroussin [Wed, 3 Jun 2015 13:43:04 +0000 (13:43 +0000)]
Revert r283938 it is not needed anymore and broken

gzip(1) cannot be used as bootstrap tools as it depends on syscalls that only
exists on HEAD

9 years agoReplace the gunzip(1) system by a minimalistic zlib based implementation.
Baptiste Daroussin [Wed, 3 Jun 2015 13:32:28 +0000 (13:32 +0000)]
Replace the gunzip(1) system by a minimalistic zlib based implementation.

This allows to not depend on gunzip(1) at bootstrap time, and is good enough to
wait for upstream real implementation using zlib.

9 years agouserboot: enable bzipfs support
Andriy Gapon [Wed, 3 Jun 2015 10:10:00 +0000 (10:10 +0000)]
userboot: enable bzipfs support

Additionally, sort all real filesystems before the virtual ones.

Differential Revision: https://reviews.freebsd.org/D2709
Reviewed by: grehan
MFC after: 5 days

9 years agomandoc's makewhatis requires gnuzip to be in the path when deadling with
Baptiste Daroussin [Wed, 3 Jun 2015 06:02:49 +0000 (06:02 +0000)]
mandoc's makewhatis requires gnuzip to be in the path when deadling with
with compressed manpages.

This should fix spam during installworld: "exec: No such file or directory"

Reported by: many

9 years agoRestore AHCI quirks printing as base16.
Alexander Motin [Tue, 2 Jun 2015 23:11:12 +0000 (23:11 +0000)]
Restore AHCI quirks printing as base16.

smh@ at r278034 made it base17, that is somewhat odd. :)

MFC after: 3 days

9 years agoMake the last revision compilable.
Gleb Smirnoff [Tue, 2 Jun 2015 22:45:28 +0000 (22:45 +0000)]
Make the last revision compilable.

Remove extra argument from iwi_wme_setparams(), a softc has 1 to 1
accordance with ieee80211com.

9 years agoThe argument passed to the iwi_update_wme() is softc, not ieee80211com.
Gleb Smirnoff [Tue, 2 Jun 2015 22:39:16 +0000 (22:39 +0000)]
The argument passed to the iwi_update_wme() is softc, not ieee80211com.

This fatal mismatch appeared to be absolutely harmless, since both structs
have pointer to struct ifnet as their first member, and they both point to
the same ifnet.  And the first member is the only one used from the argument.

9 years agoAdd comments to indicate where the flag for later abort" originates.
Devin Teske [Tue, 2 Jun 2015 22:23:20 +0000 (22:23 +0000)]
Add comments to indicate where the flag for later abort" originates.

MFC after: 3 days
X-MFC-to: stable/10

9 years agoCorrect grdc(1) 12-hour display between 12:00 and 13:00
Ed Maste [Tue, 2 Jun 2015 20:53:17 +0000 (20:53 +0000)]
Correct grdc(1) 12-hour display between 12:00 and 13:00

PM starts at 12:00, not 13:00.

PR: 194291, 200133
Submitted by: Nick Price
MFC after: 1 week

9 years agoSimilar to r280178, don't hide command for building static library.
Bryan Drewery [Tue, 2 Jun 2015 19:05:02 +0000 (19:05 +0000)]
Similar to r280178, don't hide command for building static library.

9 years agoProvide vnode in memory map info for files on tmpfs
Eric van Gyzen [Tue, 2 Jun 2015 18:37:04 +0000 (18:37 +0000)]
Provide vnode in memory map info for files on tmpfs

When providing memory map information to userland, populate the vnode pointer
for tmpfs files.  Set the memory mapping to appear as a vnode type, to match
FreeBSD 9 behavior.

This fixes the use of tmpfs files with the dtrace pid provider,
procstat -v, procfs, linprocfs, pmc (pmcstat), and ptrace (PT_VM_ENTRY).

Submitted by:   Eric Badger <eric@badgerio.us> (initial revision)
Obtained from:  Dell Inc.
PR:             198431
MFC after:      2 weeks
Reviewed by:    jhb
Approved by:    kib (mentor)

9 years agoSimplify hang detection by stealing the techniques used in ixl(4) and
Sean Bruno [Tue, 2 Jun 2015 18:28:41 +0000 (18:28 +0000)]
Simplify hang detection by stealing the techniques used in ixl(4) and
applying them to em(4).

Rely on iterations through the local timer, and the tx queue state to
determine if an actual hang has occurred. Any time a descriptor is used
(packet sent), the tx queue is flagged as busy. Then when txeof runs, it
either clears the flag when all is clean, or resets it to 1 if ANY are
cleaned, if nothing is cleaned it increments the flag.

Local timer simply checks to see if busy ever reaches MAX (10, which
is compile time configurable), and then sets it as HUNG, at that point
there is one more timer cycle in which to have any cleans, if not a
watchdog reset will occur.

Differential Revision: https://reviews.freebsd.org/D2019
Submitted by: jfv
Reviewed by: hiren
Obtained from: Intel Corporation
MFC after: 2 weeks
Relnotes: Yes
Sponsored by: Limelight Networks

9 years agoFix for control endpoint handling in the DWC OTG driver. The data
Hans Petter Selasky [Tue, 2 Jun 2015 17:40:52 +0000 (17:40 +0000)]
Fix for control endpoint handling in the DWC OTG driver. The data
stage processing is only allowed after the setup complete event has
been received. Else a race may occur and the OUT data can be corrupted.
While at it ensure resetting a FIFO has the required wait loop.

MFC after: 3 days

9 years agoAdd a configuration file to support the Cubox/Hummingboard SoC.
Glen Barber [Tue, 2 Jun 2015 17:03:31 +0000 (17:03 +0000)]
Add a configuration file to support the Cubox/Hummingboard SoC.

Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing tabs to avoid spamming stdout with long lines.
Glen Barber [Tue, 2 Jun 2015 17:00:31 +0000 (17:00 +0000)]
Remove trailing tabs to avoid spamming stdout with long lines.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoAdd a missing wakeup when releasing ownership of the SPI hardware.
Ian Lepore [Tue, 2 Jun 2015 16:07:28 +0000 (16:07 +0000)]
Add a missing wakeup when releasing ownership of the SPI hardware.

Also, validate the chipselect parameter before grabbing ownership of the
hardware, and report timeout errors after releasing it.

PR: 200584

9 years agoPass the '-b' argument to pw(8) so the '/home' directory is created
Glen Barber [Tue, 2 Jun 2015 15:02:30 +0000 (15:02 +0000)]
Pass the '-b' argument to pw(8) so the '/home' directory is created
in the correct place.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove unused variables reported by clang.
Marcelo Araujo [Tue, 2 Jun 2015 09:05:45 +0000 (09:05 +0000)]
Remove unused variables reported by clang.

Differential Revision: D2688
Reviewed by: rodrigc, mav

9 years agoRemove unused variable allocated_ctx reported by clang.
Marcelo Araujo [Tue, 2 Jun 2015 09:03:15 +0000 (09:03 +0000)]
Remove unused variable allocated_ctx reported by clang.

Differential Revision: D2684
Reviewed by: rodrigc

9 years agoFix bug in r278331: unlike some other options MaxRecvDataSegmentLength
Alexander Motin [Tue, 2 Jun 2015 01:47:12 +0000 (01:47 +0000)]
Fix bug in r278331: unlike some other options MaxRecvDataSegmentLength
is not negotiated as minimum, but only reported by sides to each other.

MFC after: 1 week

9 years agoAdd example howto configure gre(4) tunnel with the same inner and
Andrey V. Elsukov [Tue, 2 Jun 2015 00:47:38 +0000 (00:47 +0000)]
Add example howto configure gre(4) tunnel with the same inner and
outer addresses using multiple FIBs.

X-MFC after: r282809