]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoWhen checking to see if a video output's _ADR matches an entry in the
jhb [Fri, 19 Oct 2012 19:17:43 +0000 (19:17 +0000)]
When checking to see if a video output's _ADR matches an entry in the
parent adapter's _DOD list, only check the low 16 bits of both _ADR and
_DOD.  The language in the ACPI spec seems to indicate that the _ADR values
should exactly match the entries in _DOD.  However, I assume that the
masking added to _DOD values was added to work around some known busted
machines (the commit history doesn't indicate either way), and the ACPI
spec does require that the low 16 bits are unique for all video outputs,
so only check the low 16 bits should be fine.

This fixes recognition of video outputs that use the new standardized
device ID scheme in ACPI 3.0 that set bit 31 such as certain Dell laptops.

Tested by: Juergen Lock  nox  jelal kn-bremen de
MFC after: 3 days

11 years agoRemove trailing whitespace.
joel [Fri, 19 Oct 2012 18:30:50 +0000 (18:30 +0000)]
Remove trailing whitespace.

11 years agoUpdate man page crossreferences to sandybridge xeon class
sbruno [Fri, 19 Oct 2012 17:21:10 +0000 (17:21 +0000)]
Update man page crossreferences to sandybridge xeon class

MFC after: 2 weeks

11 years ago- Remove an unused header.
marius [Fri, 19 Oct 2012 17:12:55 +0000 (17:12 +0000)]
- Remove an unused header.
- Don't waste a delay slot.

MFC after: 3 days

11 years agoFix kernel build with options ZFS after r240868.
marius [Fri, 19 Oct 2012 17:03:50 +0000 (17:03 +0000)]
Fix kernel build with options ZFS after r240868.

11 years agoUpdate hwpmc to support the Xeon class of Sandybridge processors.
sbruno [Fri, 19 Oct 2012 17:01:27 +0000 (17:01 +0000)]
Update hwpmc to support the Xeon class of Sandybridge processors.
(Model 0x2D     /* Per Intel document 253669-044US 08/2012. */)

Add manpage to document all the goodness that is available in this
processor model.

No support for uncore events at this time.

Submitted by: hiren panchasara <hiren.panchasara@gmail.com>
Reviewed by: jimharris@ fabient@
Obtained from: Yahoo! Inc.
MFC after:   2 weeks

11 years agoMore -Wmissing-variable-declarations fixes.
ed [Fri, 19 Oct 2012 14:49:42 +0000 (14:49 +0000)]
More -Wmissing-variable-declarations fixes.

In addition to adding `static' where possible:

- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.

11 years agoAdd missing const keywords.
ed [Fri, 19 Oct 2012 14:29:03 +0000 (14:29 +0000)]
Add missing const keywords.

11 years ago- Update cachelimit after hashsize and bucketlimit were set.
zont [Fri, 19 Oct 2012 14:00:03 +0000 (14:00 +0000)]
- Update cachelimit after hashsize and bucketlimit were set.

Reported by: az
Reviewed by: melifaro
Approved by: kib (mentor)
MFC after: 1 week

11 years agoLet SCHED_ULE give affinity to the CPU the tick interrupt triggered on
marius [Fri, 19 Oct 2012 13:32:37 +0000 (13:32 +0000)]
Let SCHED_ULE give affinity to the CPU the tick interrupt triggered on
when running tick_process(), similarly to what the x86 equivalents of
this function do, however employing the less racy sequence also used in
intr_event_handle().

MFC after: 3 days

11 years agoPrefer __containerof() over __member2struct().
ed [Fri, 19 Oct 2012 13:26:40 +0000 (13:26 +0000)]
Prefer __containerof() over __member2struct().

The former works better with qualifiers, but also properly type checks
the input pointer.

11 years agoReplace our version of the pwcache(3) API with NetBSD's implementation.
brooks [Fri, 19 Oct 2012 12:44:22 +0000 (12:44 +0000)]
Replace our version of the pwcache(3) API with NetBSD's implementation.

This adds two features:
 * uid_from_user() and gid_from_group() as the reverse of user_from_uid()
   and groups_from_gid().
 * pwcache_userdb() and pwcache_groupdb() which allow alternative lookup
   functions to be used.  For example lookups from passwd and group
   databases in a non-standard location.

11 years agoCorrect the order of the MFU and MRU labels. I had reversed them.
jhb [Fri, 19 Oct 2012 12:28:26 +0000 (12:28 +0000)]
Correct the order of the MFU and MRU labels.  I had reversed them.

Submitted by: Nikolay Denev  ndenev gmail
Pointy hat to: jhb
MFC after: 3 days

11 years agoMove socket UMA zone initialization functionality together into
andre [Fri, 19 Oct 2012 12:16:29 +0000 (12:16 +0000)]
Move socket UMA zone initialization functionality together into
one place.

11 years agoFix minor whitespace issues.
joel [Fri, 19 Oct 2012 10:38:32 +0000 (10:38 +0000)]
Fix minor whitespace issues.

11 years agoMove UMA socket zone initialization from uipc_domain.c to uipc_socket.c
andre [Fri, 19 Oct 2012 10:15:32 +0000 (10:15 +0000)]
Move UMA socket zone initialization from uipc_domain.c to uipc_socket.c
into one place next to its other related functions to avoid confusion.

11 years agoUpdate to previous r241688 to use __func__ instead of spelled out function
andre [Fri, 19 Oct 2012 10:07:55 +0000 (10:07 +0000)]
Update to previous r241688 to use __func__ instead of spelled out function
name in log(9) message.

Suggested by: glebius

11 years agoRemove splimp() comment from sysinit table and attribute SI_SUB_PROTO_BEGIN
andre [Fri, 19 Oct 2012 10:04:43 +0000 (10:04 +0000)]
Remove splimp() comment from sysinit table and attribute SI_SUB_PROTO_BEGIN
and SI_SUB_PROTO_END to VNET related initializations.

MFC after: 3 days

11 years agoFix build.
glebius [Fri, 19 Oct 2012 09:41:45 +0000 (09:41 +0000)]
Fix build.

11 years agoReplace deprecated M_DONTWAIT with M_NOWAIT.
kientzle [Fri, 19 Oct 2012 05:50:56 +0000 (05:50 +0000)]
Replace deprecated M_DONTWAIT with M_NOWAIT.

11 years agoFix warnings found by -Wmising-variable-declarations.
ed [Fri, 19 Oct 2012 05:43:38 +0000 (05:43 +0000)]
Fix warnings found by -Wmising-variable-declarations.

This self-written compiler warning, which is hopefully going to be
committed into LLVM sources soon, warns about potentially missing
`static' keywords, similar to -Wmissing-prototypes.

- bin/pax: Move external declaration of chdname and s_mask into extern.h.
- bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h.
- sbin/mount_fusefs: Remove char *progname; use getprogname().
- others: add `static' where possible.

11 years agoThis is an import of code, mostly from Giuseppe Lettieri,
luigi [Fri, 19 Oct 2012 04:13:12 +0000 (04:13 +0000)]
This is an import of code, mostly from Giuseppe Lettieri,
that revises the netmap memory allocator so that the
various parameters (number and size of buffers, rings, descriptors)
can be modified at runtime through sysctl variables.
The changes become effective when no netmap clients are active.

The API is mostly unchanged, although the NIOCUNREGIF ioctl now
does not bring the interface back to normal mode: and you
need to close the file descriptor for that.
This change was necessary to track who is using the mapped region,
and since it is a simplification of the API there was no
incentive in trying to preserve NIOCUNREGIF.
We will remove the ioctl from the kernel next time we need
a real API change (and version bump).

Among other things, buffer allocation when opening devices is
now much faster: it used to take O(N^2) time, now it is linear.

Submitted by: Giuseppe Lettieri

11 years agoest(4) man page update to document the exposed sysctl r/o variables
sbruno [Thu, 18 Oct 2012 22:22:01 +0000 (22:22 +0000)]
est(4) man page update to document the exposed sysctl r/o variables
available to the user.  Should be applicable to all branches and versions
where est(4) exists.

thanks to gjb for reviewing and suggesting nits

Reviewed by: gjb@
MFC after: 2 weeks

11 years agoExplicitly specify 'np' so that getty(8) does not simulate even parity on
peterj [Thu, 18 Oct 2012 22:20:02 +0000 (22:20 +0000)]
Explicitly specify 'np' so that getty(8) does not simulate even parity on
local.9600.  Whilst the actual binary termios(4) definitions and preceeding
comments for local.9600 indicate that parity is disabled, getty(8)
internally simulates parity based on the presence or absence of the 'np'
flag.

PR: conf/76226
Submitted by: peter
Approved by: grog (co-mentor)
MFC after: 1 month

11 years agoIt seems that it is preferable to keep support for glabel also for
attilio [Thu, 18 Oct 2012 22:18:11 +0000 (22:18 +0000)]
It seems that it is preferable to keep support for glabel also for
filesystems that we don't support natively.
Revert part of r241636 to do so.

This patch is not targeted for MFC.

Requested by: gleb, jhb

11 years agoRemove unnecessary includes from sosend_copyin() and fix
andre [Thu, 18 Oct 2012 21:04:30 +0000 (21:04 +0000)]
Remove unnecessary includes from sosend_copyin() and fix
a couple of style issues.

11 years agoRemove double-wrapping of #ifdef ZERO_COPY_SOCKETS within
andre [Thu, 18 Oct 2012 20:22:17 +0000 (20:22 +0000)]
Remove double-wrapping of #ifdef ZERO_COPY_SOCKETS within
zero copy specialized sosend_copyin() helper function.

11 years agoRemove unneeded D_NEEDMINOR.
ed [Thu, 18 Oct 2012 19:28:31 +0000 (19:28 +0000)]
Remove unneeded D_NEEDMINOR.

This is only needed when using clonelists. This got remove in r238693.

11 years agoMore-accurately replicate the help system from sysinstall(8). However, also
dteske [Thu, 18 Oct 2012 18:43:54 +0000 (18:43 +0000)]
More-accurately replicate the help system from sysinstall(8). However, also
improve upon the system by giving the user a "Help" button instead of requiring
the user to press F1.

NOTE: In FreeBSD-9 and higher, dialog(1) does not support the F1 hook, so the
      mechanism for providing help to the user had to be changed to a button.

This now means we can resurrect *.hlp files from usr.sbin/sysinstall/help/ as-
is and reusing them as-needed in bsdconfig (holding to the goal of losing as
little functionality from sysinstall as possible).

Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)

11 years agoFix a bug where blank lines were not being counted (because awk's split()
dteske [Thu, 18 Oct 2012 17:09:45 +0000 (17:09 +0000)]
Fix a bug where blank lines were not being counted (because awk's split()
function returns zero when $0 is the NULL string).

Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)

11 years agomake sure that socket's send and receive buffers are properly sized
emax [Thu, 18 Oct 2012 16:34:00 +0000 (16:34 +0000)]
make sure that socket's send and receive buffers are properly sized

Submitted by: Iain Hibbert plunky at rya-online dot net
MFC after: 3 weeks

11 years agoDocument NetBSD 6.0
pluknet [Thu, 18 Oct 2012 15:52:00 +0000 (15:52 +0000)]
Document NetBSD 6.0

11 years agoTake advantage of if_baudrate_pf and calculate an effective baud rate on
jhb [Thu, 18 Oct 2012 15:44:27 +0000 (15:44 +0000)]
Take advantage of if_baudrate_pf and calculate an effective baud rate on
all platforms (not just amd64) to compute an equivalent IB rate.

11 years agoUse if_initbaudrate().
jhb [Thu, 18 Oct 2012 15:43:19 +0000 (15:43 +0000)]
Use if_initbaudrate().

11 years agoRemove WARNS=6 lines.
ed [Thu, 18 Oct 2012 15:39:29 +0000 (15:39 +0000)]
Remove WARNS=6 lines.

WARNS=6 is already implied at this point.

11 years agoUse if_initbaudrate().
jhb [Thu, 18 Oct 2012 15:14:13 +0000 (15:14 +0000)]
Use if_initbaudrate().

11 years agoFix build after r241659.
glebius [Thu, 18 Oct 2012 14:25:33 +0000 (14:25 +0000)]
Fix build after r241659.

11 years agoUse LOG_WARNING level in in_attachdomain1() instead of printf().
andre [Thu, 18 Oct 2012 14:08:26 +0000 (14:08 +0000)]
Use LOG_WARNING level in in_attachdomain1() instead of printf().

Submitted by: vijju.singh-at-gmail.com

11 years agoUtilize new macro to initialize if_baudrate.
glebius [Thu, 18 Oct 2012 13:57:28 +0000 (13:57 +0000)]
Utilize new macro to initialize if_baudrate.

11 years agoMechanically remove the last stray remains of spl* calls from net*/*.
andre [Thu, 18 Oct 2012 13:57:24 +0000 (13:57 +0000)]
Mechanically remove the last stray remains of spl* calls from net*/*.
They have been Noop's for a long time now.

11 years agoLooks like support.h is really not needed here.
glebius [Thu, 18 Oct 2012 13:46:26 +0000 (13:46 +0000)]
Looks like support.h is really not needed here.

11 years agoAllow LOCAL_(DIRS,LIBS) to install files in directories not found in the
brooks [Thu, 18 Oct 2012 12:32:51 +0000 (12:32 +0000)]
Allow LOCAL_(DIRS,LIBS) to install files in directories not found in the
system mtree files via a LOCAL_MTREE variable which contains a list of
mtree files to be applyed along with the base mtree files to the tmp root
and DESTDIR.

11 years agoRecord the full non-MPSAFE pack filesystem disconnect.
attilio [Thu, 18 Oct 2012 12:11:13 +0000 (12:11 +0000)]
Record the full non-MPSAFE pack filesystem disconnect.

11 years agoDisconnect non-MPSAFE SMBFS from the build in preparation for dropping
attilio [Thu, 18 Oct 2012 12:04:56 +0000 (12:04 +0000)]
Disconnect non-MPSAFE SMBFS from the build in preparation for dropping
GIANT from VFS. In addition, disconnect also netsmb, which is a base
requirement for SMBFS.

In the while SMBFS regular users can use FUSE interface and smbnetfs
port to work with their SMBFS partitions.

Also, there are ongoing efforts by vendor to support in-kernel smbfs,
so there are good chances that it will get relinked once properly locked.

This is not targeted for MFC.

11 years agoIt turns out that as documented, PCF8563_R_SECOND_VL (i.e. battery low)
marius [Thu, 18 Oct 2012 10:29:16 +0000 (10:29 +0000)]
It turns out that as documented, PCF8563_R_SECOND_VL (i.e. battery low)
doesn't automatically clear when VDD rises above Vlow again and needs to be
cleared manually. However, apparently this needs all of the time registers
to be set, i.e. pcf8563_settime(), and not just PCF8563_R_SECOND in order
for PCF8563_R_SECOND_VL to stick. Thus, we just issue a warning during
pcf8563_attach() rather than failing with ENXIO in case it is set.

MFC after: 3 days

11 years agoUtilize new macro to initialize if_baudrate.
glebius [Thu, 18 Oct 2012 09:59:50 +0000 (09:59 +0000)]
Utilize new macro to initialize if_baudrate.

11 years agoUtilize new macro to initialize if_baudrate().
glebius [Thu, 18 Oct 2012 09:57:56 +0000 (09:57 +0000)]
Utilize new macro to initialize if_baudrate().

11 years agoVendor import of mdocml 1.12.1
uqs [Thu, 18 Oct 2012 09:55:16 +0000 (09:55 +0000)]
Vendor import of mdocml 1.12.1

It is a suite of ISC licensed tools to compile and render mdoc/man pages and
will replace groff for formatting manpages in the base system.

http://mdocml.bsd.lv/

11 years agoFix typo.
dteske [Thu, 18 Oct 2012 07:55:09 +0000 (07:55 +0000)]
Fix typo.

Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)

11 years agoFully backout latest changes.
sobomax [Thu, 18 Oct 2012 06:27:03 +0000 (06:27 +0000)]
Fully backout latest changes.

Pointy hat to: sobomax

11 years agoAdd ability to queue nvme_request objects if no nvme_trackers are available.
jimharris [Thu, 18 Oct 2012 00:45:53 +0000 (00:45 +0000)]
Add ability to queue nvme_request objects if no nvme_trackers are available.

This eliminates the need to manage queue depth at the nvd(4) level for
Chatham prototype board workarounds, and also adds the ability to
accept a number of requests on a single qpair that is much larger
than the number of trackers allocated.

Sponsored by: Intel

11 years agoPreallocate a limited number of nvme_tracker objects per qpair, rather
jimharris [Thu, 18 Oct 2012 00:44:39 +0000 (00:44 +0000)]
Preallocate a limited number of nvme_tracker objects per qpair, rather
than dynamically creating them at runtime.

Sponsored by: Intel

11 years agoCreate nvme_qpair_submit_request() which eliminates all of the code
jimharris [Thu, 18 Oct 2012 00:43:25 +0000 (00:43 +0000)]
Create nvme_qpair_submit_request() which eliminates all of the code
duplication between the admin and io controller-level submit
functions.

Sponsored by: Intel

11 years agoSimplify how the qpair lock is acquired and released.
jimharris [Thu, 18 Oct 2012 00:41:31 +0000 (00:41 +0000)]
Simplify how the qpair lock is acquired and released.

Sponsored by: Intel

11 years agoCleanup uio-related code to use struct nvme_request and
jimharris [Thu, 18 Oct 2012 00:40:40 +0000 (00:40 +0000)]
Cleanup uio-related code to use struct nvme_request and
nvme_ctrlr_submit_io_request().

While here, also fix case where a uio may have more than 1 iovec.
NVMe's definition of SGEs (called PRPs) only allows for the first SGE to
start on a non-page boundary.  The simplest way to handle this is to
construct a temporary uio for each iovec, and submit an NVMe request
for each.

Sponsored by: Intel

11 years agoAdd nvme_ctrlr_submit_[admin|io]_request functions which consolidates
jimharris [Thu, 18 Oct 2012 00:39:29 +0000 (00:39 +0000)]
Add nvme_ctrlr_submit_[admin|io]_request functions which consolidates
code for allocating nvme_tracker objects and making calls into
bus_dmamap_load for commands which have payloads.

Sponsored by: Intel

11 years agoAdd struct nvme_request object which contains all of the parameters passed
jimharris [Thu, 18 Oct 2012 00:38:28 +0000 (00:38 +0000)]
Add struct nvme_request object which contains all of the parameters passed
from an NVMe consumer.

This allows us to mostly build NVMe command buffers without holding the
qpair lock, and also allows for future queueing of nvme_request objects
in cases where the submission queue is full and no nvme_tracker objects
are available.

Sponsored by: Intel

11 years agoMerge struct nvme_prp_list into struct nvme_tracker.
jimharris [Thu, 18 Oct 2012 00:37:11 +0000 (00:37 +0000)]
Merge struct nvme_prp_list into struct nvme_tracker.

This simplifies the driver significantly where it is constructing
commands to be submitted to hardware.  By reducing the number of
PRPs (NVMe parlance for SGE) from 128 to 32, it ensures we do not
allocate too much memory for more common smaller I/O sizes, while
still supporting up to 128KB I/O sizes.

This also paves the way for pre-allocation of nvme_tracker objects
for each queue which will simplify the I/O path even further.

Sponsored by: Intel

11 years agoAdd return codes to all functions used for submitting commands to I/O
jimharris [Thu, 18 Oct 2012 00:32:07 +0000 (00:32 +0000)]
Add return codes to all functions used for submitting commands to I/O
queues.

Sponsored by: Intel

11 years agoput another bandaid on the build until i figure out bsnmp headers
emax [Thu, 18 Oct 2012 00:20:02 +0000 (00:20 +0000)]
put another bandaid on the build until i figure out bsnmp headers

11 years agoAdd missing initialization for do_prefix.
mm [Wed, 17 Oct 2012 22:14:09 +0000 (22:14 +0000)]
Add missing initialization for do_prefix.
Corrects porting error in r238391

Vendor issue and changeset reference:
2883 changing "canmount" property to "on" should not always remount dataset
https://www.illumos.org/issues/2883
Changeset 13743:95aba6e49b9f

Reported by: Guido Falsi <mad@madpilot.net>, avg
Obtained from: illumos (issue #2883)
MFC after: 1 week

11 years agofix build
emax [Wed, 17 Oct 2012 21:53:38 +0000 (21:53 +0000)]
fix build

MFC after: 1 week

11 years agoAsk to become root via sudo(8) and give user ability to save this preference.
dteske [Wed, 17 Oct 2012 21:48:45 +0000 (21:48 +0000)]
Ask to become root via sudo(8) and give user ability to save this preference.

Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)

11 years agoDon't redefine macros defined in if.h and ethernet.h.
glebius [Wed, 17 Oct 2012 21:30:16 +0000 (21:30 +0000)]
Don't redefine macros defined in if.h and ethernet.h.

11 years agoRemove harmless, but superfluous local change that creeped in along
sobomax [Wed, 17 Oct 2012 21:26:35 +0000 (21:26 +0000)]
Remove harmless, but superfluous local change that creeped in along
with the r241649.

11 years agoFix VIMAGE build.
glebius [Wed, 17 Oct 2012 21:19:27 +0000 (21:19 +0000)]
Fix VIMAGE build.

Reported by: Nikolai Lifanov <lifanov mail.lifanov.com>
Pointy hat to: glebius

11 years agoRevert latest changes to cron, until better version is worked out (I hope).
sobomax [Wed, 17 Oct 2012 20:45:48 +0000 (20:45 +0000)]
Revert latest changes to cron, until better version is worked out (I hope).

Requested by:   few

11 years agoAvoid potential bad pointer dereference.
emaste [Wed, 17 Oct 2012 20:23:07 +0000 (20:23 +0000)]
Avoid potential bad pointer dereference.

Previously RuleAdd would leave entry->la unset for the first entry in
the proxyList.

Sponsored by: ADARA Networks
MFC After: 1 week

11 years agoprovide helper if_initbaudrate() to set if_baudrate_pf and if_baudrate_pf.
emax [Wed, 17 Oct 2012 19:24:13 +0000 (19:24 +0000)]
provide helper if_initbaudrate() to set if_baudrate_pf and if_baudrate_pf.
again, use ixgbe(4) as an example of how to use new helper function.

Reviewed by: jhb
MFC after: 1 week

11 years agoRemove the netncp and nwfs files from here. They will be moved to the
andreast [Wed, 17 Oct 2012 19:21:52 +0000 (19:21 +0000)]
Remove the netncp and nwfs files from here. They will be moved to the
ObsoleteFiles.inc file later.

Discussed with: attilio

11 years agoAvoid panic when a netmap instance cannot obtain memory.
emaste [Wed, 17 Oct 2012 18:21:14 +0000 (18:21 +0000)]
Avoid panic when a netmap instance cannot obtain memory.

A uint32_t is always >= 0.

Sponsored by: ADARA Networks

11 years agoAlways provide sndbuf and MSS values in a flowc command, even when the
np [Wed, 17 Oct 2012 16:37:16 +0000 (16:37 +0000)]
Always provide sndbuf and MSS values in a flowc command, even when the
driver is going to abort the connection right after the flowc.

MFC after: 3 days

11 years agoInclude a piece that was left out during r241629.
attilio [Wed, 17 Oct 2012 13:04:05 +0000 (13:04 +0000)]
Include a piece that was left out during r241629.

Pointy hat to: me

11 years agoDisconnect non-MPSAFE NTFS from the build in preparation for dropping
attilio [Wed, 17 Oct 2012 11:30:00 +0000 (11:30 +0000)]
Disconnect non-MPSAFE NTFS from the build in preparation for dropping
GIANT from VFS. This code is particulary broken and fragile and other
in-kernel implementations around, found in other operating systems,
don't really seem clean and solid enough to be imported at all.
If someone wants to reconsider in-kernel NTFS implementation for
inclusion again, a fair effort for completely fixing and cleaning it
up is expected.

In the while NTFS regular users can use FUSE interface and ntfs-3g
port to work with their NTFS partitions.

This is not targeted for MFC.

11 years agoDisconnect non-MPSAFE NWFS from the build in preparation for dropping
attilio [Wed, 17 Oct 2012 11:16:17 +0000 (11:16 +0000)]
Disconnect non-MPSAFE NWFS from the build in preparation for dropping
GIANT from VFS. In addition, disconnect also netncp, which is a base
requirement for NWFS.

In the possibility of a future maintenance of the code and later
readd to the FreeBSD base, maybe we should think about a better location
for netncp. I'm not entirely sure the / top location is actually right,
however I will let network people to comment on that more specifically.

This is not targeted for MFC.

11 years agozfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget
avg [Wed, 17 Oct 2012 10:59:56 +0000 (10:59 +0000)]
zfs: make use of getnewvnode_reserve in zfs_mknode and zfs_zget

getnewvnode_reserve helps to avoid "recursing" back into zfs code
via getnewvnode when that latter needs to reclaim some vnodes.
zfs code may hold a number of locks around getnewvnode and doesn't
expect any recursion to happen on those locks, because that never
happens in solaris.

I believe that this change also eleiminates a need for the delayed
znode destruction via the taskqueue.

Many thanks to kib for devising getnewvnode_reserve.

Reported by: flo
Tested by: bapt, kwm, swills
MFC after: 2 weeks
X-MFC after: r241556

11 years agoFix build.
delphij [Wed, 17 Oct 2012 08:19:08 +0000 (08:19 +0000)]
Fix build.

11 years agoWhitespace cleanup.
np [Wed, 17 Oct 2012 05:08:35 +0000 (05:08 +0000)]
Whitespace cleanup.

MFC after: 3 days

11 years agoo Use nanosleep(2) to sleep exact amount of time till the next second,
sobomax [Wed, 17 Oct 2012 00:44:34 +0000 (00:44 +0000)]
o Use nanosleep(2) to sleep exact amount of time till the next second,
not multiple of 1 second, which results in actual time to drift back
and forth every run within 1 second of the actual action has
been set for.

Suggested by:   Ian Lepore

o Schedule the first run in 1 second after starting up, not on the
boundary of the next minute, which results in the every_second jobs
not being run.

11 years agoreport total number of ports for each lagg(4) interface
emax [Tue, 16 Oct 2012 22:43:14 +0000 (22:43 +0000)]
report total number of ports for each lagg(4) interface
via net.link.lagg.X.count sysctl

MFC after: 1  week

11 years agoProperly handle non-keyword case by setting e->second to 0.
sobomax [Tue, 16 Oct 2012 21:34:02 +0000 (21:34 +0000)]
Properly handle non-keyword case by setting e->second to 0.

11 years agointroduce concept of ifi_baudrate power factor. the idea is to work
emax [Tue, 16 Oct 2012 20:18:15 +0000 (20:18 +0000)]
introduce concept of ifi_baudrate power factor. the idea is to work
around the problem where high speed interfaces (such as ixgbe(4))
are not able to report real ifi_baudrate. bascially, take a spare
byte from struct if_data and use it to store ifi_baudrate power
factor. in other words,

real ifi_baudrate = ifi_baudrate * 10 ^ ifi_baudrate power factor

this should be backwards compatible with old binaries. use ixgbe(4)
as an example on how drivers would set ifi_baudrate power factor

Discussed with: kib, scottl, glebius
MFC after: 1 week

11 years agoAdd support for samsung HM250JI
eadler [Tue, 16 Oct 2012 17:49:14 +0000 (17:49 +0000)]
Add support for samsung HM250JI

PR: usb/121474
Submitted by: Ben Stuyts <ben@altesco.nl>
Approved by: cperciva (implicit)
MFC after: 3 days

11 years agoObey the value of "MK_BMAKE".
obrien [Tue, 16 Oct 2012 15:43:16 +0000 (15:43 +0000)]
Obey the value of "MK_BMAKE".

11 years agoFix aha(4) build with i386 LINT (which includes 'device mca').
pluknet [Tue, 16 Oct 2012 15:25:04 +0000 (15:25 +0000)]
Fix aha(4) build with i386 LINT (which includes 'device mca').

11 years agoMake the "struct if_clone" opaque to users of the cloning API. Users
glebius [Tue, 16 Oct 2012 13:37:54 +0000 (13:37 +0000)]
Make the "struct if_clone" opaque to users of the cloning API. Users
now use function calls:

  if_clone_simple()
  if_clone_advanced()

to initialize a cloner, instead of macros that initialize if_clone
structure.

Discussed with: brooks, bz, 1 year ago

11 years agoDisconnect non-MPSAFE CODAFS from the build in preparation for dropping
attilio [Tue, 16 Oct 2012 10:09:21 +0000 (10:09 +0000)]
Disconnect non-MPSAFE CODAFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.

11 years agoDisconnect non-MPSAFE XFS from the build in preparation for dropping
attilio [Tue, 16 Oct 2012 10:04:00 +0000 (10:04 +0000)]
Disconnect non-MPSAFE XFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.

11 years agoDisconnect non-MPSAFE PORTALFS from the build in preparation for dropping
attilio [Tue, 16 Oct 2012 09:59:10 +0000 (09:59 +0000)]
Disconnect non-MPSAFE PORTALFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.

11 years agoFix build of dpt(4).
pluknet [Tue, 16 Oct 2012 09:57:34 +0000 (09:57 +0000)]
Fix build of dpt(4).

11 years agoDisconnect non-MPSAFE HPFS from the build in preparation for dropping
attilio [Tue, 16 Oct 2012 09:55:31 +0000 (09:55 +0000)]
Disconnect non-MPSAFE HPFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.

11 years agoFix build of aha(4).
glebius [Tue, 16 Oct 2012 08:40:09 +0000 (08:40 +0000)]
Fix build of aha(4).

Submitted by: delphij

11 years agoAdd a bunch more example completions.
eadler [Tue, 16 Oct 2012 02:52:30 +0000 (02:52 +0000)]
Add a bunch more example completions.

Submitted by: wblock
Approved by: cperciva (implicit)
MFC after: 3 days

11 years agoSplit sdhci driver in two parts: sdhci and sdhci_pci.
gonzo [Tue, 16 Oct 2012 01:10:43 +0000 (01:10 +0000)]
Split sdhci driver in two parts: sdhci and sdhci_pci.
sdchi encapsulates a generic SD Host Controller logic that relies on
actual hardware driver for register access.

sdhci_pci implements driver for PCI SDHC controllers using new SDHCI
interface

No kernel config modifications are required, but if you load sdhc
as a module you must switch to sdhci_pci instead.

11 years agoAcquire the rangelock for truncate(2) as well.
kib [Mon, 15 Oct 2012 18:15:18 +0000 (18:15 +0000)]
Acquire the rangelock for truncate(2) as well.

Reported and reviewed by: avg
Tested by: pho
MFC after: 1 week

11 years agoExclude potential circular symlink
emaste [Mon, 15 Oct 2012 17:19:47 +0000 (17:19 +0000)]
Exclude potential circular symlink

This does not occur with normal release builds but can happen when reusing
these release parts for other purposes.

11 years agoAdd my new association with bcr and jkois.
eadler [Mon, 15 Oct 2012 17:10:41 +0000 (17:10 +0000)]
Add my new association with bcr and jkois.

Thanks!

MFC after: 3 days

11 years agoAdd locking to the dpt(4) driver and mark it MPSAFE.
jhb [Mon, 15 Oct 2012 16:29:08 +0000 (16:29 +0000)]
Add locking to the dpt(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Remove the global dpt_softcs list and use devclass_get_device() instead.
- Use pci_enable_busmaster() rather than frobbing the PCI command register
  directly.

Tested by: no one

11 years agoAdd locking to the bt(4) driver and mark it MPSAFE.
jhb [Mon, 15 Oct 2012 16:13:55 +0000 (16:13 +0000)]
Add locking to the bt(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Return an errno value from bt_eisa_attach() if an error occurs rather
  than -1.
- Use BUS_PROBE_DEFAULT rather than 0.

Tested by: no one

11 years agoAdd locking to the aic(4) driver and mark it MPSAFE.
jhb [Mon, 15 Oct 2012 16:09:59 +0000 (16:09 +0000)]
Add locking to the aic(4) driver and mark it MPSAFE.
- Move 'free_scbs' into the softc rather than having it be a global list
  and convert it to an SLIST instead of a hand-rolled linked-list.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Don't call device_set_desc() in the pccard attach routine, instead
  set a default description during the pccard probe if the matching
  product doesn't have a name.

Tested by: no one