]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r202578 and r202579:
ru [Thu, 21 Jan 2010 13:15:14 +0000 (13:15 +0000)]
MFC r202578 and r202579:

If CTAGS is not set or set to something other than "ctags" or "gtags",
"cleandepend" was not removing the .depend file; fixed. [1]

Allow the CTAGS to be set to something other than "gtags" or "ctags",
but assume it supports a ctags(1)-compatible syntax. [2]

PR: 126747 [1], 46676 [2]

git-svn-id: svn://svn.freebsd.org/base/stable/8@202747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of 202280, 202281
edwin [Thu, 21 Jan 2010 10:16:21 +0000 (10:16 +0000)]
MFC of 202280, 202281

- Remove -d option, whois.nic.mil doesn't exist anymore.

- Make whois capable of searching for IPv6 addresses just like it can
  do for IPv4 addresses without having to explicetly specify that the
  ARIN server should be used to get the initial information.

PR: bin/142507, bin/128725
Submitted by: Dan Mahoney <danm@prime.gushi.org>, "Matt D. Harris" <mdh_lists@yahoo.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201416:
np [Thu, 21 Jan 2010 10:12:21 +0000 (10:12 +0000)]
MFC r201416:

Avoid NULL dereference in arpresolve.

Requested by: kib@

git-svn-id: svn://svn.freebsd.org/base/stable/8@202739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201907,202671,202678
np [Thu, 21 Jan 2010 03:06:52 +0000 (03:06 +0000)]
MFC r201907,202671,202678

r201907:
Extra parantheses to keep certain compilers happy.

r202671:
Fix for a cxgb(4) panic.  cxgb_ioctl can be called by the IP and IPv6
layers with non-sleepable locks held.  Don't (potentially) sleep in
those situations.

r202678:
Complain if freelist queue sizes are significantly less than desired.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202406:
yongari [Thu, 21 Jan 2010 00:53:00 +0000 (00:53 +0000)]
MFC r202406:
  Don't free mbuf chains when bge(4) fails to collapse the mbuf
  chains. This part of code is to enhance performance so failing the
  collapsing should not free TX frames. Otherwise bge(4) will
  unnecessarily drop frames which in turn can freeze the network
  connection.

  Reported by: Igor Sysoev (is <> rambler-co dot ru)
  Tested by: Igor Sysoev (is <> rambler-co dot ru)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202294:
yongari [Thu, 21 Jan 2010 00:49:14 +0000 (00:49 +0000)]
MFC r202294:
  Add check for fiber mode for BCM5714 PHY. This PHY supports both
  copper and fiber interfaces over GMII so an explicit check is
  necessary to know whether it was configured for fiber interface.
  This change make BCM5715S work.

  Tested by: olli
  PR: kern/122551

git-svn-id: svn://svn.freebsd.org/base/stable/8@202728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202293:
yongari [Thu, 21 Jan 2010 00:45:12 +0000 (00:45 +0000)]
MFC r202293:
  For controllers that has dual mode PHY(copper or fiber) interfaces
  over GMII, make sure to enable GMII. With this change brgphy(4) is
  used to handle the dual mode PHY. Since we still don't have a sane
  way to pass PHY specific information to mii(4) layer special
  handling is needed in brgphy(4) to determine which mode of PHY was
  configured in parent interface.
  This change make BCM5715S work.

  Tested by: olli
  Obtained from: OpenBSD
  PR: kern/122551

git-svn-id: svn://svn.freebsd.org/base/stable/8@202726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202269:
yongari [Thu, 21 Jan 2010 00:37:14 +0000 (00:37 +0000)]
MFC r202269:
  Add BCM5754 PHY id that is found on Dell Studio XPS 16.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200018:
nwhitehorn [Wed, 20 Jan 2010 16:28:39 +0000 (16:28 +0000)]
MFC r200018:

Bump limits on PowerPC. This allows large executables like parts of LLVM
to function.

Reviewed by: grehan
Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@202706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198470, r198521:
kib [Wed, 20 Jan 2010 15:24:24 +0000 (15:24 +0000)]
MFC r198470, r198521:
Syncronize iwn(4) manpages with HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198429, r198439, r198468, r201209, r201822, r201882:
kib [Wed, 20 Jan 2010 15:22:34 +0000 (15:22 +0000)]
MFC r198429, r198439, r198468, r201209, r201822, r201882:
Syncronize iwn(4) driver in stable/8 with HEAD.

Approved by: rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@202704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198344:
jhb [Wed, 20 Jan 2010 15:13:38 +0000 (15:13 +0000)]
MFC 198344:
Change gcc to assume a default machine architecture of 486 instead of 386
on "i386".  Doing it in the compiler is deemed to be less fragile then
attempting to provide a default -march setting via bsd.cpu.mk.  FreeBSD
itself has not supported plain 386 CPUs since 5.x.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202285:
jhb [Wed, 20 Jan 2010 14:48:42 +0000 (14:48 +0000)]
MFC 202285:
- Note that if_xname, if_dname, and if_dunit are usually initialized via
  if_initname().
- Document if_drv_flags and replace references to IFF_(RUNNING|OACTIVE)
  with references to IFF_DRV_(RUNNING|OACTIVE).
- Complete truncated sentence in the description of if_transmit by copying
  from the description in if_qflush.
- Add missing line breaks for translators.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201690:
delphij [Wed, 20 Jan 2010 01:14:54 +0000 (01:14 +0000)]
MFC r201690:

Space cleanup for revision 202669 committed separately for easier review.
This commit is purely space changes.

Submitted by: Matt Reimer
Sponsored by: VPOP Technologies, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201689:
delphij [Wed, 20 Jan 2010 01:13:52 +0000 (01:13 +0000)]
MFC r201689:

Instead of assuming all vdevs are healthy, check the newest vdev label
for each vdev's status.  Booting from a degraded vdev should now be
more robust.

Submitted by: Matt Reimer <mattjreimer at gmail.com>
Sponsored by: VPOP Technologies, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200802:
delphij [Wed, 20 Jan 2010 00:53:44 +0000 (00:53 +0000)]
MFC r200802:

Use vsprintf instead of rolling our own.

PR: bin/140496
Submitted by: Jeremy Huddleston <jeremyhu apple.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200800:
delphij [Wed, 20 Jan 2010 00:53:03 +0000 (00:53 +0000)]
MFC r200800:

Use vsscanf instead of rolling our own.

PR: bin/140530
Submitted by: Jeremy Huddleston <jeremyhu apple.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200799:
delphij [Wed, 20 Jan 2010 00:52:24 +0000 (00:52 +0000)]
MFC r200799:

K&R -> ANSI prototype.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200795:
delphij [Wed, 20 Jan 2010 00:43:15 +0000 (00:43 +0000)]
MFC r200795:

Add support of using environment variable BURNCD_SPEED to specify
recodring speed.

PR: bin/140530
Submitted by: Alexander Best <alexbestms wwu.de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202453
marius [Tue, 19 Jan 2010 22:09:41 +0000 (22:09 +0000)]
MFC: r202453

Update the sparc64 hardware list regarding machines that will be supported
by 7.3-RELEASE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202157:
fabient [Tue, 19 Jan 2010 20:55:57 +0000 (20:55 +0000)]
MFC 202157:
 Bug fix: add a missing initializer.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202284,202650:
jhb [Tue, 19 Jan 2010 20:48:23 +0000 (20:48 +0000)]
MFC 202284,202650:
- Update required headers for namei() to add <sys/fcntl.h> and remove
  <sys/proc.h>.
- Add RETURN VALUES and ERROR sections for namei()'s error return values.
- Add a missing link to NDHASGIANT.9.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202176
brueffer [Tue, 19 Jan 2010 17:09:18 +0000 (17:09 +0000)]
MFC: r202176

Miscellaneous mdoc, spelling and inconsistency fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201603
brueffer [Tue, 19 Jan 2010 16:51:51 +0000 (16:51 +0000)]
MFC: r201603

Fix a double free().

git-svn-id: svn://svn.freebsd.org/base/stable/8@202630 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201222:
mav [Tue, 19 Jan 2010 13:36:12 +0000 (13:36 +0000)]
MFC r201222:
Usually these controllers are able to automatically decode command code to
get required command protocol. But they have no idea about new commands,
such as DATA SET MANAGEMENT (TRIM). As soon as this info any way provided
by CAM, give controller specific instructions.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200814:
mav [Tue, 19 Jan 2010 13:33:31 +0000 (13:33 +0000)]
MFC r200814:
Clear all ports interrupt status bits in single write. Clearing one by one
causes additional MSIs messages sent if several ports asked for attention
same time. Time window before clearing is not important, as these interrupts
are level triggered by interrupt source.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201993:
mav [Tue, 19 Jan 2010 13:27:54 +0000 (13:27 +0000)]
MFC r201993:
Report which of IXP700 legacy ATA channels are SATA.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200857:
mav [Tue, 19 Jan 2010 13:26:45 +0000 (13:26 +0000)]
MFC r200857:
Add support for Intel SCH PATA controller.

PR:             kern/140251

git-svn-id: svn://svn.freebsd.org/base/stable/8@202621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200817:
mav [Tue, 19 Jan 2010 13:25:31 +0000 (13:25 +0000)]
MFC r200817:
Spell AMD properly.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200754:
mav [Tue, 19 Jan 2010 13:24:11 +0000 (13:24 +0000)]
MFC r200754:
Add VIA CX700/VX800 chipsets SATA/PATA support.

PR:             kern/121521

git-svn-id: svn://svn.freebsd.org/base/stable/8@202619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200753:
mav [Tue, 19 Jan 2010 13:21:25 +0000 (13:21 +0000)]
MFC r200753:
Fairly set master/slave shared PIO/WDMA timings on ITE 821x controllers.
Previous implementation could only limit mode, but not rise it back.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200655:
mav [Tue, 19 Jan 2010 13:07:25 +0000 (13:07 +0000)]
MFC r200655:
Serverworks OSB4 has no 0x4a (piomode) register, do not touch it.
Also OSB4 has some problems with UDMA transfers, limit it to WDMA2.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201990:
mav [Tue, 19 Jan 2010 13:00:33 +0000 (13:00 +0000)]
MFC r201990:
- Report SATA in legacy emulation mode still as SATA.
- Make ATA XPT able to handle such case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201139:
mav [Tue, 19 Jan 2010 12:58:29 +0000 (12:58 +0000)]
MFC r201139:
Add BIO_DELETE support to ada(4):
- For SSDs use TRIM feature of DATA SET MANAGEMENT command, as defined by
ACS-2 specification working draft.
- For CompactFlash use CFA ERASE command, same as ad(4) does.

With this patch, `newfs -E /dev/ada1` was able to restore write speed of
my heavily weared OCZ Vertex SSD (firmware 1.4) up to the initial level
for the most part of it's capacity.

I have no idea whether it is normal, but for some reason it takes 200ms
to handle any TRIM command on this drive, that was making delete extremely
slow. But TRIM command is able to accept long list of LBAs and the length of
that list seems doesn't affect it's execution time. Implemented request
clusting algorithm allowed me to rise delete rate up to reasonable numbers,
when many parallel DELETE requests running.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202085
alc [Mon, 18 Jan 2010 21:17:03 +0000 (21:17 +0000)]
MFC r202085
  Simplify pmap_init().  Additionally, correct a harmless misbehavior on
  i386.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202591 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200447,201703,201709-201710:
attilio [Mon, 18 Jan 2010 14:43:44 +0000 (14:43 +0000)]
MFC r200447,201703,201709-201710:
In current code, threads performing an interruptible sleep
will leave the waiters flag on forcing the owner to do a wakeup even
when the waiter queue is empty.
That operation may lead to a deadlock in the case of doing a fake wakeup
on the "preferred" queue while the other queue has real waiters on it,
because nobody is going to wakeup the 2nd queue waiters and they will
sleep indefinitively.
A similar bug, is present, for lockmgr in the case the waiters are
sleeping with LK_SLEEPFAIL on.

Add a sleepqueue interface which does report the actual number of waiters
on a specified queue of a waitchannel and track if at least one sleepfail
waiter is present or not. In presence of this or empty "preferred" queue,
wakeup both waiters queues.

Discussed with: kib
Tested by: Pete French <petefrench at ticketswitch dot com>,
Justin Head <justin at encarnate dot com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: Sync Groff with trunk except libulog addition.
ru [Mon, 18 Jan 2010 13:11:37 +0000 (13:11 +0000)]
MFC: Sync Groff with trunk except libulog addition.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 201415
nyan [Mon, 18 Jan 2010 11:03:39 +0000 (11:03 +0000)]
MFC: revision 201415

  Re-enable more options and devices.  Now kernel size problem is gone.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 201392
nyan [Mon, 18 Jan 2010 10:55:29 +0000 (10:55 +0000)]
MFC: revision 201392

  Use UFS2 as default filesystem on pc98.  Now pc98's boot2 works for UFS2.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: revision 201391
nyan [Mon, 18 Jan 2010 10:53:03 +0000 (10:53 +0000)]
MFC: revision 201391

  Do kgzip to the loader on pc98, too.  Now pc98's boot2 works for ELF.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201532:
ed [Mon, 18 Jan 2010 09:04:53 +0000 (09:04 +0000)]
MFC r201532:

  Make TIOCSTI work again.

  It looks like I didn't implement this when I imported MPSAFE TTY.
  Applications like mail(1) still use this. I think it's conceptually bad.

  Tested by:    Pete French <petefrench ticketswitch com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202129:
delphij [Mon, 18 Jan 2010 05:03:40 +0000 (05:03 +0000)]
MFC r202129:

Report ZFS filesystem version instead of the zpool version when we say it.

Reported by: Yuri Pankov (on -fs@)
Submitted by: delphij

git-svn-id: svn://svn.freebsd.org/base/stable/8@202549 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r210520:
delphij [Mon, 18 Jan 2010 04:58:14 +0000 (04:58 +0000)]
MFC r210520:

Test index value is within the range before using it to reference
array member.

PR: bin/141838
Submitted by: Henning Petersen <henning.petersen@t-online.de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202019:
imp [Mon, 18 Jan 2010 00:53:21 +0000 (00:53 +0000)]
MFC r202019:
  Add INCLUDE_CONFIG_FILE in GENERIC on all non-embedded platforms.
  # This is the resolution of removing it from DEFAULTS...

git-svn-id: svn://svn.freebsd.org/base/stable/8@202536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201442
rmacklem [Sun, 17 Jan 2010 20:49:34 +0000 (20:49 +0000)]
MFC: r201442
The test for "same client" for the experimental nfs server over NFSv4
was broken w.r.t. byte range lock conflicts when it was the same client
and the request used the open_to_lock_owner4 case, since lckstp->ls_clp
was not set. This patch fixes it by using "clp" instead of "lckstp->ls_clp".

git-svn-id: svn://svn.freebsd.org/base/stable/8@202525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201439
rmacklem [Sun, 17 Jan 2010 20:18:59 +0000 (20:18 +0000)]
MFC: r201439
Fix three related problems in the experimental nfs client when
checking for conflicts w.r.t. byte range locks for NFSv4.
1 - Return 0 instead of EACCES when a conflict is found, for F_GETLK.
2 - Check for "same file" when checking for a conflict.
3 - Don't check for a conflict for the F_UNLCK case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoHook up uhso to the build.
thompsa [Sun, 17 Jan 2010 18:37:36 +0000 (18:37 +0000)]
Hook up uhso to the build.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202515 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202054
thompsa [Sun, 17 Jan 2010 18:36:22 +0000 (18:36 +0000)]
MFC r202054

 Add the Globetrotter GE40x.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202514 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201766
thompsa [Sun, 17 Jan 2010 18:33:47 +0000 (18:33 +0000)]
MFC r201766

 Remove unneeded includes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201714
thompsa [Sun, 17 Jan 2010 18:33:05 +0000 (18:33 +0000)]
MFC r201714

 Fix debug printf on 64bit arches.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201701
thompsa [Sun, 17 Jan 2010 18:32:20 +0000 (18:32 +0000)]
MFC r201701

 Add new umass quirks for Western Digital MYBook and JMicron JM20337.

PR: usb/142225, usb/142228
Submitted by: Thomas Ward, Yoshikazu GOTO

git-svn-id: svn://svn.freebsd.org/base/stable/8@202511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201681
thompsa [Sun, 17 Jan 2010 18:31:27 +0000 (18:31 +0000)]
MFC r201681

 Improve u3g device ejecting by providing additional methods for the eject
 command in the usb_msctest routines, as well as a general tidyup.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201680
thompsa [Sun, 17 Jan 2010 18:30:37 +0000 (18:30 +0000)]
MFC r201680

 scratch_size was incorrectly passed as language ID when retrieving the language
 ID table, this broke string retrieval on some devices.

Submitted by: Hans Petter Selasky
Reported by: Renato Botelho

git-svn-id: svn://svn.freebsd.org/base/stable/8@202509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201318
thompsa [Sun, 17 Jan 2010 18:29:30 +0000 (18:29 +0000)]
MFC r201318

 Add new device ID to uipaq driver

PR: usb/141936
Submitted by: HASHI Hiroaki

git-svn-id: svn://svn.freebsd.org/base/stable/8@202508 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202026
thompsa [Sun, 17 Jan 2010 18:27:53 +0000 (18:27 +0000)]
MFC r202026

 Print error messages to stderr.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202507 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201922
thompsa [Sun, 17 Jan 2010 18:27:13 +0000 (18:27 +0000)]
MFC r201922

 Add missing library dependency.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201705
thompsa [Sun, 17 Jan 2010 18:26:21 +0000 (18:26 +0000)]
MFC r201705

 Sync to p4
  - Add new quirks commands and the '-d' option optionally to specify the ugen device.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202505 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202025
thompsa [Sun, 17 Jan 2010 18:24:40 +0000 (18:24 +0000)]
MFC r202025

 Reset variable fields in case the transfer is opened again

git-svn-id: svn://svn.freebsd.org/base/stable/8@202504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202181,202243,202270
thompsa [Sun, 17 Jan 2010 18:22:42 +0000 (18:22 +0000)]
MFC r202181,202243,202270

 Add a driver by Fredrik Lindberg for Option HSDPA USB devices. These differ
 from standard 3G wireless units by supplying a raw IP/IPv6 endpoint rather than
 using PPP over serial. uhsoctl(1) is used to initiate and close the WAN
 connection.

Obtained from: Fredrik Lindberg <fli@shapeshifter.se>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 201523
tuexen [Sun, 17 Jan 2010 18:18:01 +0000 (18:18 +0000)]
MFC 201523

Correct usage of parenthesis.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r197056 by des
brueffer [Sun, 17 Jan 2010 18:17:00 +0000 (18:17 +0000)]
MFC: r197056 by des

Fix comment about KERNFAST.

PR:             142854
Submitted by:   Nikolay Denev <ndenev@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202501 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 199459
tuexen [Sun, 17 Jan 2010 17:49:28 +0000 (17:49 +0000)]
MFC 199459

Get rid of unused fields addr_over which is never really used,
only copied around.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 199374
tuexen [Sun, 17 Jan 2010 17:46:48 +0000 (17:46 +0000)]
MFC 199374

Fix a bug where queued ASCONF messags are not sent out.
From Irene Ruengeler.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198621
tuexen [Sun, 17 Jan 2010 17:45:09 +0000 (17:45 +0000)]
MFC 198621

Improve round robin stream scheduler and cleanup some code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 197341
tuexen [Sun, 17 Jan 2010 17:41:43 +0000 (17:41 +0000)]
MFC 197341

Fix errnos.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201870, r201889
brueffer [Sun, 17 Jan 2010 17:31:53 +0000 (17:31 +0000)]
MFC: r201870, r201889

Various language fixes.  Also fixed the URL to totd, obtained from NetBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198499
tuexen [Sun, 17 Jan 2010 17:10:17 +0000 (17:10 +0000)]
MFC 198499

Improve the round robin stream scheduler.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 199437
tuexen [Sun, 17 Jan 2010 17:05:59 +0000 (17:05 +0000)]
MFC 199437

Use always LIST_EMPTY instead of sometime SCTP_LIST_EMPTY,
which is defined as LIST_EMPTY.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 199372
tuexen [Sun, 17 Jan 2010 17:03:40 +0000 (17:03 +0000)]
MFC 199372

Do not start the iterator when there are no associations.
This fixes a bug found by Irene Ruengeler.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202490 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 199369
tuexen [Sun, 17 Jan 2010 17:01:01 +0000 (17:01 +0000)]
MFC 199369

Do not hold the lock longer than necessary.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198522:
tuexen [Sun, 17 Jan 2010 16:58:37 +0000 (16:58 +0000)]
MFC 198522:

Bugfix: Use formula from section 7.2.3 of RFC 4960. Reported by Martin Becke.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201806:
bz [Sun, 17 Jan 2010 15:20:34 +0000 (15:20 +0000)]
MFC r201806:
  Switch traceroute over to make use of proper in-kernel source
  address selection.

  Reviewed by:  rwatson, fenner
  PR:           kern/139454
  Tested by:    Frank Steinborn (steinex nognu.de)

MFC r201897:
  Correct spelling.

  Submitted by: (pluknet gmail.com)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202116:
bz [Sun, 17 Jan 2010 13:42:07 +0000 (13:42 +0000)]
MFC r202116:
  Adjust a comment to reflect reality, as we have proper source
  address selection, even for IPv4, since r183571.

  Pointed out by: Jase Thew (bazerka beardz.net)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201995:
bz [Sun, 17 Jan 2010 13:38:11 +0000 (13:38 +0000)]
MFC r201995:
  Correct a typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201898:
bz [Sun, 17 Jan 2010 13:36:13 +0000 (13:36 +0000)]
MFC r201898:
  Add comments trying to explain what bad things happen here, i.e.
  how hashed MD5/SHA are implemented, abusing Final() for padding and
  sw_octx to transport the key from the beginning to the end.

  Enlightened about what was going on here by: cperciva
  Reviewed by:  cperciva

git-svn-id: svn://svn.freebsd.org/base/stable/8@202477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201742:
bz [Sun, 17 Jan 2010 13:28:06 +0000 (13:28 +0000)]
MFC r201742:
  After adding an SDT provider for opencrypto in r199884 we should also
  depend on opt_kdtrace.h for the module build.

  Submitted by: (Andre.Albsmeier siemens.com)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202473 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201688:
bz [Sun, 17 Jan 2010 13:23:53 +0000 (13:23 +0000)]
MFC r201688:

  Correct a typo.

  Submitted by: sn_ (sn_ gmx.net) on hackers@

git-svn-id: svn://svn.freebsd.org/base/stable/8@202470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r197308 from head (originally by ed):
gavin [Sun, 17 Jan 2010 11:20:53 +0000 (11:20 +0000)]
Merge r197308 from head (originally by ed):

  Spell Israel correctly.

PR: bin/138580
Submitted by: Alexey Savartsov <asavartsov gmail com>
Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r201440, r201445 from head:
gavin [Sun, 17 Jan 2010 11:10:24 +0000 (11:10 +0000)]
Merge r201440, r201445 from head:

  Don't complain when we encounter the "cache" source, it's valid.  Also fix
  the error message to include a line feed and not include a stray comma.

  Submitted by: Artis Caune  artis.caune gmail.com

  While here, change "> /dev/stderr" for more usual ">&2"

  Submitted by: jilles

PR: bin/121671
Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r201429:
gavin [Sun, 17 Jan 2010 10:58:59 +0000 (10:58 +0000)]
Merge r201429:
  Fix return code in the case of successful file transfer, broken in
  tftp.c 1.13

PR: bin/117452
Submitted by: Spencer Minear  minear securecomputing.com
Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202462 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201605: Update acpi_ibm syctl nodes on resume.
iwasaki [Sun, 17 Jan 2010 06:24:09 +0000 (06:24 +0000)]
MFC r201605: Update acpi_ibm syctl nodes on resume.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200587:
gavin [Sat, 16 Jan 2010 15:00:35 +0000 (15:00 +0000)]
MFC r200587:
  ifconfig(8) is documented to take a ISO 3166-1 country code to set the
  regulatory domain with the "country" parameter, but will also take a full
  country name.  The man page warns that only the ISO code is unambiguous.
  In reality, however, the first match on either would be accepted, leading
  to "DE" being interpreted as the "DEBUG" country rather than Germany, and
  "MO" selecting Morocco rather than the correct country, Macau.

  Fix this by always checking for an ISO CC match first, and only search on
  the full country name if that fails.

PR: bin/140571
Tested by: Dirk Meyer dirk.meyer dinoex.sub.org
Reviewed by: sam
Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201899
marius [Sat, 16 Jan 2010 12:18:44 +0000 (12:18 +0000)]
MFC: r201899

Some style(9) fixes

git-svn-id: svn://svn.freebsd.org/base/stable/8@202439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201896
marius [Sat, 16 Jan 2010 12:16:38 +0000 (12:16 +0000)]
MFC: r201896

As nfsm_srvmtofh_xx() assumes the 4-byte alignment required by XDR
ensure the mbuf data is aligned accordingly by calling nfs_realign()
in fha_extract_info(). This fix is orthogonal to the problem solved
by r199274/r199284 (MFC'ed to stable/8 in r199733).

PR: 142102 (second part)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201888
brueffer [Sat, 16 Jan 2010 09:17:33 +0000 (09:17 +0000)]
MFC: r201888

bridge(4) acts like a switch, not like a hub.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoPartially revert r202428. There is no bus_describe_intr() on RELENG_8.
mav [Sat, 16 Jan 2010 07:55:46 +0000 (07:55 +0000)]
Partially revert r202428. There is no bus_describe_intr() on RELENG_8.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 201941:
marcel [Sat, 16 Jan 2010 04:34:03 +0000 (04:34 +0000)]
MFC rev 201941:
Remove file system support based on the simple file system protocol.

MFC rev 201966:
Remove debugging printf().

git-svn-id: svn://svn.freebsd.org/base/stable/8@202430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 201937:
marcel [Sat, 16 Jan 2010 04:24:10 +0000 (04:24 +0000)]
MFC rev 201937:
Implement the fo_readdir method.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202011:
mav [Fri, 15 Jan 2010 23:58:37 +0000 (23:58 +0000)]
MFC r202011:
While AHCI specification tells that multi-vector MSI doesn't use global IS
register, nVidia chipsets have different oppinion, requiring every interrupt
to be acknowledged there.

While there, add interrupt descriptions in multi-vector MSI mode.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201645:
mav [Fri, 15 Jan 2010 23:56:19 +0000 (23:56 +0000)]
MFC r201645:
Change the way in which zero stripesize is handled. Instead of reporting
zero stripeoffset in such case (as if device has no stripes), report offset
from the beginning of the media (as if device has single infinite stripe).

This gives partitioning tools information, required to guess better
partition alignment, in case if hardware doesn't report it's stripe size.
For example, it should give disklabel info about odd offset made by fdisk.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201658:
mav [Fri, 15 Jan 2010 23:52:31 +0000 (23:52 +0000)]
MFC r201658:
Increase default block size from 4K to 64K. It was reduces 6 yeard ago,
when trees were big and FAST mode was enabled by default.

So small block size doesn't benefits linear I/O operations in FAST and
significantly slowdowns in ECONOMIC (default) mode. For single stream random
I/Os so small block doesn't give much benefits, as access time is usually
bigger then transfer time there. Same time it requires all heads to seek
together for every single request, reducing performance on parallel load.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201890:
kib [Fri, 15 Jan 2010 22:19:51 +0000 (22:19 +0000)]
MFC r201890:
Set md_ldt after md_ldt_sd is populated.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201052, r201200, r202003, r202010, r202023
marius [Fri, 15 Jan 2010 21:45:46 +0000 (21:45 +0000)]
MFC: r201052, r201200, r202003, r202010, r202023

Add a driver for the `Fire' JBus to PCIe bridges found in at least
the Sun Fire V215/V245 and Sun Ultra 25/45 machines. This driver also
already includes all the code to support the `Oberon' Uranus to PCIe
bridges found in the Fujitsu-Siemens based Mx000 machines but due to
lack of access to such a system for testing, probing of these bridges
is currently disabled.
Unfortunately, the event queue mechanism of these bridges for MSIs/
MSI-Xs matches our current MD and MI interrupt frameworks like square
pegs fit into round holes so for now we are generous and use one event
queue per MSI, which limits us to 35 MSIs/MSI-Xs per Host-PCIe-bridge
(we use one event queue for the PCIe error messages). This seems
tolerable as long as most devices just use one MSI/MSI-X anyway.
Adding knowledge about MSIs/MSI-Xs to the MD interrupt code should
allow us to decouple the 1:1 mapping at the cost of no longer being
able to bind MSIs/MSI-Xs to specific CPUs as we currently have no
reliable way to quiesce a device during the transition of its MSIs/
MSI-Xs to another event queue. This would still require the problem
of interrupt storms generated by devices which have no one-shot
behavior or can't/don't mask interrupts while the filter/handler is
executed (like the older PCIe NICs supported by bge(4)) to be solved
though.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202419 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202159
brueffer [Fri, 15 Jan 2010 19:53:36 +0000 (19:53 +0000)]
MFC: r202159

Remove useless .TE groff macro.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201836
brueffer [Fri, 15 Jan 2010 19:42:09 +0000 (19:42 +0000)]
MFC: r201836

Remove unnecessary quoting and markup, add missing punctuation.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202006
marius [Fri, 15 Jan 2010 19:12:33 +0000 (19:12 +0000)]
MFC: r202006

Add epic(4), a driver for the front panel LEDs in Sun Fire V215/V245.
It's named after the driver doing the same job in OpenSolaris.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202410 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201932
marius [Fri, 15 Jan 2010 19:06:33 +0000 (19:06 +0000)]
MFC: r201932

- Add code allowing a network device to only be open and closed once
  by keeping it opened after the first open and closing it via the
  cleanup handler when NETIF_OPEN_CLOSE_ONCE is defined in order to
  avoid the open-close-dance on every file access which with firmware
  that for example performs an auto-negotiation on every open causes
  netbooting to take horribly long. Basically the behavior with this
  knob enabled resembles the one employed between r60506 and r177108
  (and for sparc64 also again since r182919) with the addition that
  the network device now is closed eventually before entering the
  kernel and before rebooting. Actually I think this should be the
  desired MI behavior, however the U-Boot loader actually requires
  net_close() to be called after every transaction in order for some
  local shutdown operations to be performed (and which I think thus
  will break on concurrent opens, i.e. when netdev_opens is > 1, like
  the loader does at least for disks when LOADER_GZIP_SUPPORT is
  enabled).
- Use NETIF_OPEN_CLOSE_ONCE to replace the hack, which artificially
  increased netdev_opens for sparc64 in order to keep the network
  device opened forever, as at least some firmware versions require
  the network device to be closed eventually before entering the
  kernel or otherwise will DMA received packets to stale memory.
  The powerpc OFW loader probably wants NETIF_OPEN_CLOSE_ONCE to be
  set as well for the same reasons.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202408 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201901
marius [Fri, 15 Jan 2010 16:57:49 +0000 (16:57 +0000)]
MFC: r201901

Remove clause 3 and 4 from TNF licenses (this was the only 4-clause TNF
license FreeBSD had in sys/boot).

Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@202404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201396, r201410
marius [Fri, 15 Jan 2010 16:54:59 +0000 (16:54 +0000)]
MFC: r201396, r201410

- Demapping unused kernel TLB slots has proven to work reliably so move
  the associated debugging under bootverbose.
- Remove freebsd4_sigreturn(); given that FreeBSD 4 didn't supported
  sparc64 this only ever served as a transition aid prior to FreeBSD
  5.0 and is unused by default since COMPAT_FREEBSD4 was removed from
  GENERIC in r143072 nearly 5 years ago.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201395
marius [Fri, 15 Jan 2010 16:46:03 +0000 (16:46 +0000)]
MFC: r201395

- Preserve the PROM IOMMU in order to allow OFW drivers to continue to
  work.
- Sanity check the parameters passed to the implementations of the
  pcib_{read,write}_config() methods. Using illegal values can cause
  no real harm but it doesn't hurt to avoid unnecessary data error
  traps requiring to flush and re-enable the level 1 caches.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f