]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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

11 years agoAdd locking to the ahb(4) driver and mark it MPSAFE.
jhb [Mon, 15 Oct 2012 16:05:02 +0000 (16:05 +0000)]
Add locking to the ahb(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.
- Compare pointers against NULL.
- Let new-bus allocate a softc rather than doing it by hand.

Tested by: no one

11 years agoAdd locking to the aha(4) driver and mark it MPSAFE.
jhb [Mon, 15 Oct 2012 15:59:13 +0000 (15:59 +0000)]
Add locking to the aha(4) driver and mark it MPSAFE.
- Remove use of explicit bus space handles and tags.

Tested by: no one

11 years agoAdd locking to the adw(4) driver and mark it MPSAFE.
jhb [Mon, 15 Oct 2012 15:26:00 +0000 (15:26 +0000)]
Add locking to the adw(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_nameunit() instead of adw_name().
- Remove use of explicit bus space handles and tags.
- Use pci_enable_busmaster() rather than frobbing the PCI command register
  directly.
- Use the softc provided by new-bus rather than allocating a new one.

Tested by: no one

11 years agomx1 -> smarthost.ysv
peter [Mon, 15 Oct 2012 14:14:21 +0000 (14:14 +0000)]
mx1 -> smarthost.ysv

11 years agoAdd a comment describing why r241097 was done.
rmacklem [Mon, 15 Oct 2012 13:38:25 +0000 (13:38 +0000)]
Add a comment describing why r241097 was done.

Suggested by: rwatson
MFC after: 1 week

11 years agoFix minor nits:
eadler [Mon, 15 Oct 2012 13:20:08 +0000 (13:20 +0000)]
Fix minor nits:
use a comma after "i.e."
sentences begin on new lines.

No .Dd bump for trivial modification.

Approved by: wblock
MFC after: 3 days

11 years agoAdd support for the USB DISK Pro PMAP.
eadler [Mon, 15 Oct 2012 12:33:53 +0000 (12:33 +0000)]
Add support for the USB DISK Pro PMAP.

This patch has sit for 6 years in the PR database.

PR: usb/96381
Submitted by: jhs
Reviewed by: mav
Approved by: cperciva (implicit)
MFC after: 3 days

11 years agoMask data to only 16 bits to be sure on write into switch reg.
ray [Mon, 15 Oct 2012 12:28:14 +0000 (12:28 +0000)]
Mask data to only 16 bits to be sure on write into switch reg.

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

11 years agoLocking for etherswitch framework:
ray [Mon, 15 Oct 2012 12:20:40 +0000 (12:20 +0000)]
Locking for etherswitch framework:
* add lock/unlock methods;
* add lock/unlock default implementation;
* surround switch IOCTLs with locking;
* add lock/unlock implementation for arswitch;

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

11 years agoDefaulting to id "0" if ar7240_probe(dev) success, fix warning when building
ray [Mon, 15 Oct 2012 12:03:11 +0000 (12:03 +0000)]
Defaulting to id "0" if ar7240_probe(dev) success, fix warning when building
with DEBUG.

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

11 years agoAdd per-second scheduling into the cron(8). Right now it's
sobomax [Mon, 15 Oct 2012 08:21:49 +0000 (08:21 +0000)]
Add per-second scheduling into the cron(8). Right now it's
only available via the new @every_second shortcut. ENOTIME to
implement crontab(5) format extensions to allow more flexible
scheduling.

In order to address some concerns expressed by Terry Lambert
while discussing the topic few years ago, about per-second cron
possibly causing some bad effects on /etc/crontab by stat()ing
it every second instead of every minute now (i.e. atime update),
only check that database needs to be reloaded on every 60-th
loop run. This should be close enough to the current behaviour.

Add "@every_minute" shortcut while I am here.

MFC after: 1 month

11 years agoWe don't need to convert ip6_len to host byte order before
glebius [Mon, 15 Oct 2012 07:57:55 +0000 (07:57 +0000)]
We don't need to convert ip6_len to host byte order before
ip6_output(), the IPv6 stack is working in net byte order.

The reason this code worked before is that ip6_output()
doesn't look at ip6_plen at all and recalculates it based
on mbuf length.

11 years agoFix an mbuf leak in cpsw driver, clean up mbuf management:
kientzle [Mon, 15 Oct 2012 04:10:49 +0000 (04:10 +0000)]
Fix an mbuf leak in cpsw driver, clean up mbuf management:
 * Record TX mbufs when we get them so we can release them.
 * Set TX/RX mbuf slots to NULL when we are no longer responsible for them
 * Move dma sync on RX into RX intr routine

11 years agoAdd a description for the '-S' option to the mountd man page.
rmacklem [Mon, 15 Oct 2012 00:24:23 +0000 (00:24 +0000)]
Add a description for the '-S' option to the mountd man page.
This is a content change.

Reviewed by: kib
MFC after: 2 weeks

11 years agoAdd a new '-S' option to mountd, which tells it to suspend
rmacklem [Mon, 15 Oct 2012 00:17:16 +0000 (00:17 +0000)]
Add a new '-S' option to mountd, which tells it to suspend
execution of the nfsd threads while it is reloading the exports.
This avoids clients from getting intermittent access errors
when the exports are being reloaded non-atomically.
It is not an ideal solution, since requests will back up while
the nfsd threads are suspended. Also, when this option is used,
if mountd crashes while reloading exports, mountd will have to
be restarted to get the nfsd threads to resume execution.
This has been tested by Vincent Hoffman (vince at unsane.co.uk)
and John Hickey (jh at deterlab.net).
The nfse patch offers a more comprehensive solution for this issue.

PR: kern/9619, kern/131342
Reviewed by: kib
MFC after: 2 weeks

11 years agoTrack the total number of software queued frames in an atomic variable
adrian [Mon, 15 Oct 2012 00:07:18 +0000 (00:07 +0000)]
Track the total number of software queued frames in an atomic variable
stashed away in ath_node.

As much as I tried to stuff that behind the ATH_NODE lock, unfortunately
the locking is just too plain hairy (for me! And I wrote it!) to do
cleanly. Hence using atomics here instead of a lock. The ATH_NODE lock
just isn't currently used anywhere besides the rate control updates.

If in the future everything gets migrated back to using a single ATH_NODE
lock or a single global ATH_TX lock (ie, a single TX lock for all TX and
TX completion) then fine, I'll remove the atomics.

11 years agoStop abusing the ATH_TID_*() queue macros for filtered frames and give
adrian [Sun, 14 Oct 2012 23:52:30 +0000 (23:52 +0000)]
Stop abusing the ATH_TID_*() queue macros for filtered frames and give
them their own macro set.

11 years agoMirror the changes made in SVN r240798:
dteske [Sun, 14 Oct 2012 23:45:56 +0000 (23:45 +0000)]
Mirror the changes made in SVN r240798:

Replace "( : ${var?} )" syntax with better "[ ${var+set} ]" syntax.

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

11 years agoCut-and-paste dropped semicolon.
kientzle [Sun, 14 Oct 2012 23:07:54 +0000 (23:07 +0000)]
Cut-and-paste dropped semicolon.

11 years agoName cpsw_stop to cpsw_stop_locked consistently with other functions
kientzle [Sun, 14 Oct 2012 23:00:24 +0000 (23:00 +0000)]
Name cpsw_stop to cpsw_stop_locked consistently with other functions
in this file that assume locks are already held.

11 years agoReturn correct packet size.
kientzle [Sun, 14 Oct 2012 22:58:12 +0000 (22:58 +0000)]
Return correct packet size.

11 years agoAdd two new options to the nfssvc(2) syscall that allow
rmacklem [Sun, 14 Oct 2012 22:33:17 +0000 (22:33 +0000)]
Add two new options to the nfssvc(2) syscall that allow
processes running as root to suspend/resume execution
of the kernel nfsd threads. An earlier version of this
patch was tested by Vincent Hoffman (vince at unsane.co.uk)
and John Hickey (jh at deterlab.net).

Reviewed by: kib
MFC after: 2 weeks

11 years agoPush the actual TX processing into the ath taskqueue, rather than having
adrian [Sun, 14 Oct 2012 20:44:08 +0000 (20:44 +0000)]
Push the actual TX processing into the ath taskqueue, rather than having
it run out of multiple concurrent contexts.

Right now the ath(4) TX processing is a bit hairy. Specifically:

* It was running out of ath_start(), which could occur from multiple
  concurrent sending processes (as if_start() can be started from multiple
  sending threads nowdays.. sigh)

* during RX if fast frames are enabled (so not really at the moment, not
  until I fix this particular feature again..)

* during ath_reset() - so anything which calls that

* during ath_tx_proc*() in the ath taskqueue - ie, TX is attempted again
  after TX completion, as there's now hopefully some ath_bufs available.

* Then, the ic_raw_xmit() method can queue raw frames for transmission
  at any time, from any net80211 TX context. Ew.

This has caused packet ordering issues in the past - specifically,
there's absolutely no guarantee that preemption won't occuring _during_
ath_start() by the TX completion processing, which will call ath_start()
again. It's a mess - 802.11 really, really wants things to be in
sequence or things go all kinds of loopy.

So:

* create a new task struct for TX'ing;
* make the if_start method simply queue the task on the ath taskqueue;
* make ath_start() just be called by the new TX task;
* make ath_tx_kick() just schedule the ath TX task, rather than directly
  calling ath_start().

Now yes, this means that I've taken a step backwards in terms of
concurrency - TX -and- RX now occur in the same single-task taskqueue.
But there's nothing stopping me from separating out the TX / TX completion
code into a separate taskqueue which runs in parallel with the RX path,
if that ends up being appropriate for some platforms.

This fixes the CCMP/seqno concurrency issues that creep up when you
transmit large amounts of uni-directional UDP traffic (>200MBit) on a
FreeBSD STA -> AP, as now there's only one TX context no matter what's
going on (TX completion->retry/software queue,
userland->net80211->ath_start(), TX completion -> ath_start());
but it won't fix any concurrency issues between raw transmitted frames
and non-raw transmitted frames (eg EAPOL frames on TID 16 and any other
TID 16 multicast traffic that gets put on the CABQ.)  That is going to
require a bunch more re-architecture before it's feasible to fix.

In any case, this is a big step towards making the majority of the TX
path locking irrelevant, as now almost all TX activity occurs in the
taskqueue.

Phew.

11 years agoBreak the RX processing up into smaller chunks of 128 frames each.
adrian [Sun, 14 Oct 2012 20:31:38 +0000 (20:31 +0000)]
Break the RX processing up into smaller chunks of 128 frames each.

Right now processing a full 512 frame queue takes quite a while (measured
on the order of milliseconds.) Because of this, the TX processing ends up
sometimes preempting the taskqueue:

* userland sends a frame
* it goes in through net80211 and out to ath_start()
* ath_start() will end up either direct dispatching or software queuing a
  frame.

If TX had to wait for RX to finish, it would add quite a few ms of
additional latency to the packet transmission.  This in the past has
caused issues with TCP throughput.

Now, as part of my attempt to bring sanity to the TX/RX paths, the first
step is to make the RX processing happen in smaller 'parts'. That way
when TX is pushed into the ath taskqueue, there won't be so much latency
in the way of things.

The bigger scale change (which will come much later) is to actually
process the frames in the ath_intr taskqueue but process _frames_ in
the ath driver taskqueue.  That would reduce the latency between
processing and requeuing new descriptors. But that'll come later.

The actual work:

* Add ATH_RX_MAX at 128 (static for now);
* break out of the processing loop if npkts reaches ATH_RX_MAX;
* if we processed ATH_RX_MAX or more frames during the processing loop,
  immediately reschedule another RX taskqueue run.  This will handle
  the further frames in the taskqueue.

This should have very minimal impact on the general throughput case,
unless the scheduler is being very very strange or the ath taskqueue
ends up spending a lot of time on non-RX operations (such as TX
completion.)

11 years agoAdd a KPI to allow to reserve some amount of space in the numvnodes
kib [Sun, 14 Oct 2012 19:43:37 +0000 (19:43 +0000)]
Add a KPI to allow to reserve some amount of space in the numvnodes
counter, without actually allocating the vnodes. The supposed use of
the getnewvnode_reserve(9) is to reclaim enough free vnodes while the
code still does not hold any resources that might be needed during the
reclamation, and to consume the slack later for getnewvnode() calls
made from the innards. After the critical block is finished, the
caller shall free any reserve left, by getnewvnode_drop_reserve(9).

Reviewed by: avg
Tested by: pho
MFC after: 1 week

11 years agoImplement modem control in u3g. Tested on Option GTM382W, Huawei E220,
n_hibma [Sun, 14 Oct 2012 19:15:54 +0000 (19:15 +0000)]
Implement modem control in u3g. Tested on Option GTM382W, Huawei E220,
and Sierra Wireless MC8790V. Also implement the .ucom_poll method.

Note: This makes it possible to use lqr/echo in ppp.conf. And it
resolves ppp hanging during the PPp> phase.

Reviewed by: hps
MFC after: 1 week

11 years agoGrammar fixes.
kib [Sun, 14 Oct 2012 18:13:33 +0000 (18:13 +0000)]
Grammar fixes.

Submitted by: bf
MFC after: 1 week

11 years agoAdd support for the extrememory Snippy
eadler [Sun, 14 Oct 2012 17:26:45 +0000 (17:26 +0000)]
Add support for the extrememory Snippy

PR: usb/159611
Submitted by: Fabian Keil <fk@fabiankeil.de>
Approved by: cperciva (implicit)
MFC after: 3 days

11 years agoAdd support for Feiya Elango USB MicroSD
eadler [Sun, 14 Oct 2012 17:26:40 +0000 (17:26 +0000)]
Add support for  Feiya Elango USB MicroSD

PR: usb/153599
Submitted by: CyberLeo <cyberleo@cyberleo.net>
Approved by: cperciva (implicit)
MFC after: 3 days

11 years agoAdd support for the Buffalo RUF2 flash drive.
eadler [Sun, 14 Oct 2012 17:26:32 +0000 (17:26 +0000)]
Add support for the Buffalo RUF2 flash drive.

PR: usb/166848
Submitted by: Andrew Gregory <andrew@scss.com.au>
Reviewed by: hselasky
Approved by: cperciva (implicit)
MFC after: 3 days

11 years agoMFamd64: add machdep.uprintf_signal.
kib [Sun, 14 Oct 2012 17:09:50 +0000 (17:09 +0000)]
MFamd64: add machdep.uprintf_signal.

MFC after: 1 week

11 years agoPrint the %rip value for uprintf_signal.
kib [Sun, 14 Oct 2012 17:08:46 +0000 (17:08 +0000)]
Print the %rip value for uprintf_signal.

MFC after: 1 week

11 years agoReplace the XXX comment with the proper description.
kib [Sun, 14 Oct 2012 17:07:34 +0000 (17:07 +0000)]
Replace the XXX comment with the proper description.

MFC after: 1 week

11 years agoFix a miss from r241344: in ip_mloopback() we need to go to
glebius [Sun, 14 Oct 2012 15:08:07 +0000 (15:08 +0000)]
Fix a miss from r241344: in ip_mloopback() we need to go to
net byte order prior to calling in_delayed_cksum().

Reported by:  Olivier Cochard-Labbe <olivier cochard.me>

11 years agoFix defines in r241245. We actually don't define FreeBSD.
glebius [Sun, 14 Oct 2012 15:03:06 +0000 (15:03 +0000)]
Fix defines in r241245. We actually don't define FreeBSD.

Reported & tested by: Oleg Ginzburg

11 years agomdoc: avoid nested displays.
joel [Sun, 14 Oct 2012 14:45:54 +0000 (14:45 +0000)]
mdoc: avoid nested displays.

11 years agomdoc: don't nest displays. The markup here isn't adding anything anyway.
joel [Sun, 14 Oct 2012 13:59:17 +0000 (13:59 +0000)]
mdoc: don't nest displays. The markup here isn't adding anything anyway.
Fixes a mandoc lint warning.

Discussed with: brueffer, Jason McIntyre <jmc@kerhand.co.uk>

11 years agoBump .Dd
eadler [Sun, 14 Oct 2012 13:45:13 +0000 (13:45 +0000)]
Bump .Dd
Approved by: joel

11 years agoDon't document the PORTSSUPFILE variable. Even though this still works,
eadler [Sun, 14 Oct 2012 13:41:42 +0000 (13:41 +0000)]
Don't document the PORTSSUPFILE variable. Even though this still works,
try to discourage users from depending on it.

Approved by: joel
MFC after: 3 days

11 years agoMinor mdoc improvements. Also remove unnecessary csup reference.
joel [Sun, 14 Oct 2012 10:26:29 +0000 (10:26 +0000)]
Minor mdoc improvements. Also remove unnecessary csup reference.

11 years agopciereg_cfg*: use assembly to access the mem-mapped cfg space
avg [Sun, 14 Oct 2012 10:13:50 +0000 (10:13 +0000)]
pciereg_cfg*: use assembly to access the mem-mapped cfg space

AMD BKDG for CPU families 10h and later requires that the memory
mapped config is always read into or written from al/ax/eax register.

Discussed with: kib, alc
Reviewed by: kib (earlier version)
MFC after: 25 days

11 years agoRemove cvs/cvsup reference.
joel [Sun, 14 Oct 2012 10:12:32 +0000 (10:12 +0000)]
Remove cvs/cvsup reference.

11 years agoacpi_thermal: when _ACx is tripped, all _ALi i>= x should be on
avg [Sun, 14 Oct 2012 09:32:38 +0000 (09:32 +0000)]
acpi_thermal: when _ACx is tripped, all _ALi i>= x should be on

... and not just _ALx as it is now.

MFC after: 20 days

11 years agoacpi_wmi: move wmi_info_list into sc
avg [Sun, 14 Oct 2012 09:31:11 +0000 (09:31 +0000)]
acpi_wmi: move wmi_info_list into sc

different instances of acpi_wmi couldn't properly share it and, in fact,
there was no reason to do that

MFC after: 10 days

11 years agoAdd explicit check for not set time inside cam_periph_freeze_after_event().
mav [Sun, 14 Oct 2012 08:50:05 +0000 (08:50 +0000)]
Add explicit check for not set time inside cam_periph_freeze_after_event().

System time is set later on boot process then initial bus scan by CAM.
Until that moment microtime() is equal to microuptime(), and if system
boots quickly, the value can be close to zero. That causes settle time
waiting even for buses that don't use reset during probe.

On my test system this reduces boot time by 1 second if USB enabled, or
by 4 seconds if USB disabled.  CAM waited for ctl2cam0 bus "settle".

11 years agoRemove trailing whitespace.
joel [Sun, 14 Oct 2012 07:22:56 +0000 (07:22 +0000)]
Remove trailing whitespace.

11 years agoMinor mdoc and language fixes.
joel [Sun, 14 Oct 2012 07:19:42 +0000 (07:19 +0000)]
Minor mdoc and language fixes.

11 years agoSince the introduction of the new advanced boot menu (r222417), options like
dteske [Sun, 14 Oct 2012 06:52:49 +0000 (06:52 +0000)]
Since the introduction of the new advanced boot menu (r222417), options like
"boot verbose", "single user mode", "ACPI" and more are now stateful boolean
menuitems rather than direct action-items.

A short-coming in this new menu system is that when a user sets a non-default
value in loader.conf(5), this non-default state is not reflected in the menu
-- leading to confusion as to whether the option was taking effect or not.

This patch adds dynamic menuitem constructors _and_ the necessary Forth
callbacks to initialize these stateful menuitems -- causing the aforementioned
menuitems to adhere to loader.conf(5) settings.

PR: bin/172529
Approved by: adrian (co-mentor)
MFC after: 21 days

11 years agogetopt_long() returns an int. Use the return value accordingly.
attilio [Sun, 14 Oct 2012 03:59:17 +0000 (03:59 +0000)]
getopt_long() returns an int. Use the return value accordingly.

Pointy hat to: me
MFC after: 2 months
X-MFC: r241519,241521

11 years agoRename s/DEBUG()/FS_DEBUG() and s/DEBUG2G()/FS_DEBUG2G() in order to
attilio [Sun, 14 Oct 2012 03:51:59 +0000 (03:51 +0000)]
Rename s/DEBUG()/FS_DEBUG() and s/DEBUG2G()/FS_DEBUG2G() in order to
avoid a name clash in sparc64.

MFC after: 2 months
X-MFC: r241519

11 years agoCorrect an error in pmap_pv_reclaim(). It can legitimately encounter
alc [Sun, 14 Oct 2012 03:40:08 +0000 (03:40 +0000)]
Correct an error in pmap_pv_reclaim().  It can legitimately encounter
wired mappings.  If it does, it should just skip them.

11 years agoImport a FreeBSD port of the FUSE Linux module.
attilio [Sat, 13 Oct 2012 23:54:26 +0000 (23:54 +0000)]
Import a FreeBSD port of the FUSE Linux module.
This has been developed during 2 summer of code mandates and being revived
by gnn recently.
The functionality in this commit mirrors entirely content of fusefs-kmod
port, which doesn't need to be installed anymore for -CURRENT setups.

In order to get some sparse technical notes, please refer to:
http://lists.freebsd.org/pipermail/freebsd-fs/2012-March/013876.html

or to the project branch:
svn://svn.freebsd.org/base/projects/fuse/

which also contains granular history of changes happened during port
refinements. This commit does not came from the branch reintegration
itself because it seems svn is not behaving properly for this functionaly
at the moment.

Partly Sponsored by: Google, Summer of Code program 2005, 2011
Originally submitted by: ilya, Csaba Henk <csaba-ml AT creo DOT hu >
In collabouration with: pho
Tested by: flo, gnn, Gustau Perez,
Kevin Oberman <rkoberman AT gmail DOT com>
MFC after: 2 months

11 years agoMove vm_page_requeue() to the only file that uses it.
alc [Sat, 13 Oct 2012 20:19:43 +0000 (20:19 +0000)]
Move vm_page_requeue() to the only file that uses it.

MFC after: 3 weeks

11 years ago* Update the comment that explains the choice of values in the
kargl [Sat, 13 Oct 2012 19:53:11 +0000 (19:53 +0000)]
* Update the comment that explains the choice of values in the
  table and the requirement on trailing zero bits.

* Remove the __aligned() compiler directives as these were found
  to have a negative effect on the produced code.

Submitted by: bde
Approved by: das (mentor)

11 years ago- Fix typo
gabor [Sat, 13 Oct 2012 19:37:58 +0000 (19:37 +0000)]
- Fix typo

Spotted by: glebius

11 years ago- Regen after GNU sort removal
gabor [Sat, 13 Oct 2012 19:29:38 +0000 (19:29 +0000)]
- Regen after GNU sort removal

11 years ago- Remove WITH_GNU_SORT support
gabor [Sat, 13 Oct 2012 19:29:07 +0000 (19:29 +0000)]
- Remove WITH_GNU_SORT support

11 years agoEliminate the conditional for releasing the page queues lock in
alc [Sat, 13 Oct 2012 18:46:46 +0000 (18:46 +0000)]
Eliminate the conditional for releasing the page queues lock in
vm_page_sleep().  vm_page_sleep() is no longer called with this lock
held.

Eliminate assertions that the page queues lock is NOT held.  These
assertions won't translate well to having distinct locks on the active
and inactive page queues, and they really aren't that useful.

MFC after: 3 weeks

11 years ago- Remove GNU sort and the WITH_GNU_SORT knob
gabor [Sat, 13 Oct 2012 18:40:39 +0000 (18:40 +0000)]
- Remove GNU sort and the WITH_GNU_SORT knob

11 years agoDon't exclude XPT SIM from locking in xpt_create_path_unlocked().
mav [Sat, 13 Oct 2012 18:24:52 +0000 (18:24 +0000)]
Don't exclude XPT SIM from locking in xpt_create_path_unlocked().
We don't want xpt periph, device, target or bus disappeared because of
incorrect reference counting.

11 years agoUse xpt_create_path_unlocked() for initial debug path compilation because
mav [Sat, 13 Oct 2012 18:11:50 +0000 (18:11 +0000)]
Use xpt_create_path_unlocked() for initial debug path compilation because
we are not holding respective SIM lock.

11 years agoExtend SIM lock coverage during the bus registration process.
mav [Sat, 13 Oct 2012 17:55:06 +0000 (17:55 +0000)]
Extend SIM lock coverage during the bus registration process.

11 years agoMake a command for pkg_info changeable like pkg_version in
ume [Sat, 13 Oct 2012 14:45:42 +0000 (14:45 +0000)]
Make a command for pkg_info changeable like pkg_version in
/etc/periodic/weekly/400.status-pkg to be friendly with pkgng.

MFC after: 1 week

11 years agoFix XPT_DEBUG paths operations locking:
mav [Sat, 13 Oct 2012 11:23:16 +0000 (11:23 +0000)]
Fix XPT_DEBUG paths operations locking:
 - Extend the lock to cover xpt_path_release() for the new path.
 - While xpt_action() is called while holding right SIM lock for the new
   bus, the old path release may require different SIM lock. So we have
   to temporary drop the new lock and get the old one.

11 years agoXPT_DEV_MATCH is probably the only xpt_action() method that is called
mav [Sat, 13 Oct 2012 10:18:36 +0000 (10:18 +0000)]
XPT_DEV_MATCH is probably the only xpt_action() method that is called
without holding SIM lock. It really doesn't need that lock, but adding it
removes that specific exception, allowing to assert locking there later.

Submitted by: ken@ (earlier version)

11 years agoCleanup documentation: cloning route support has been removed in r186119.
melifaro [Sat, 13 Oct 2012 09:31:01 +0000 (09:31 +0000)]
Cleanup documentation: cloning route support has been removed in r186119.

MFC after: 2 weeks

11 years agoAdd forgotten documentation for new NGM_NETFLOW_V9INFO message.
melifaro [Sat, 13 Oct 2012 09:25:29 +0000 (09:25 +0000)]
Add forgotten documentation for new NGM_NETFLOW_V9INFO message.

Submitted by: Dmitry Luhtionov <dmitryluhtionov at gmail.com>
MFC with: r241446

11 years agoFix the non-TDMA build.
adrian [Sat, 13 Oct 2012 06:27:34 +0000 (06:27 +0000)]
Fix the non-TDMA build.

11 years agoSVN r240684 broke the ability of the dot module to map include dependencies.
dteske [Sat, 13 Oct 2012 03:56:33 +0000 (03:56 +0000)]
SVN r240684 broke the ability of the dot module to map include dependencies.
Teach the dot module about the new location these includes moved to (as part
of r240684) and clean things up a bit.

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

11 years agoReplace all uses of the vm page queues lock by a new R/W lock.
alc [Fri, 12 Oct 2012 23:26:00 +0000 (23:26 +0000)]
Replace all uses of the vm page queues lock by a new R/W lock.
Unfortunately, this lock cannot be defined as static under Xen because it
is (ab)used to serialize queued page table changes.

Tested by: sbruno

11 years agoSome 3G modems return the wrong signature in echo packets and make it
n_hibma [Fri, 12 Oct 2012 22:48:33 +0000 (22:48 +0000)]
Some 3G modems return the wrong signature in echo packets and make it
impossible to use LQR/ECHO. They return want_magic instead.

With this change it is now possible to use

enable lqr
set lqrperiod 5
enable echo
set echoperiod 5

in your ppp.conf file.

MFC after: 3 days