]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC 198043:
jhb [Tue, 17 Nov 2009 15:56:45 +0000 (15:56 +0000)]
MFC 198043:
Move the USB wireless drivers down into their own section next to the USB
ethernet drivers.

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

14 years agoMFC 198856: Fix a couple of comment typos.
jhb [Tue, 17 Nov 2009 15:30:16 +0000 (15:30 +0000)]
MFC 198856: Fix a couple of comment typos.

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

14 years agoMFC 198820:
jhb [Tue, 17 Nov 2009 15:28:14 +0000 (15:28 +0000)]
MFC 198820:
Ensure 'kvm' is always initialized.  If "-M" was not specified and the
garbage value on the stack was not zero, then 'ddb capture' would try to
use the garbage value as a kvm_t pointer.

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

14 years agoMFC r198381:
mav [Tue, 17 Nov 2009 15:16:21 +0000 (15:16 +0000)]
MFC r198381:
Remove some obsoleted comments.

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

14 years agoMFC r198372, r198377:
mav [Tue, 17 Nov 2009 15:14:13 +0000 (15:14 +0000)]
MFC r198372, r198377:
Implement cam_ccbq_fini().
This is effectively NULL change, but makes this API a bit more consistent.

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

14 years agoMFC r198333:
mav [Tue, 17 Nov 2009 15:08:01 +0000 (15:08 +0000)]
MFC r198333:
Do not search for bus when it is not needed.

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

14 years agoMFC r198331:
mav [Tue, 17 Nov 2009 15:04:58 +0000 (15:04 +0000)]
MFC r198331:
Separate CAM_DEV_IDENTIFY_DATA_VALID flag from CAM_DEV_INQUIRY_DATA_VALID.
Add workaround for very old devices without support for mode setting.
Add some PATA bus scanning support.
Remove some SCSIsms.

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

14 years agoMFC r198328:
mav [Tue, 17 Nov 2009 14:56:00 +0000 (14:56 +0000)]
MFC r198328:
Add support for PIO-only devices.
Fix maxio values and 256 sectors transactions for 28bits commands.
Implement periodic ordered commands insertion, sames as da driver does.
Remove some SCSIsms.

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

14 years agoMFC r198322:
mav [Tue, 17 Nov 2009 14:49:35 +0000 (14:49 +0000)]
MFC r198322:
Report real max_target = 15. SIM doesn't need to know that target 15 is PMP.
It is XPT business.

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

14 years agoMFC r196907:
mav [Tue, 17 Nov 2009 14:47:40 +0000 (14:47 +0000)]
MFC r196907:
To save small bit of CPU time, hide part of SNTF register read latency
behind other reads.

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

14 years agoMFC r197541:
mav [Tue, 17 Nov 2009 14:38:47 +0000 (14:38 +0000)]
MFC r197541:
Report SATA 3.x devices.

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

14 years agoMFC r197421:
mav [Tue, 17 Nov 2009 14:37:20 +0000 (14:37 +0000)]
MFC r197421:
If on sense request device returns no sence, give up and return,
or we may loop forever.

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

14 years agoMFC r198049:
bz [Tue, 17 Nov 2009 14:30:09 +0000 (14:30 +0000)]
MFC r198049:

  Immediately after clearing a pending callout that didn't make it due
  to the lock we hold, disable interrupts, and announce to the firmware
  that we are shutting down. Especially do this before disabling blocks.

  This makes some types of machines with asf enabled no longer hang upon
  boot, when we start configuring the interface.

PR: i386/96382, kern/100410, kern/122252, kern/116328

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

14 years agoMFC r196983:
mav [Tue, 17 Nov 2009 14:14:07 +0000 (14:14 +0000)]
MFC r196983:
Free the correct buffer in an error case.

Submitted by:   phk

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

14 years agoMove mergeinfo for netinet6 up to sys.
jhb [Tue, 17 Nov 2009 14:08:42 +0000 (14:08 +0000)]
Move mergeinfo for netinet6 up to sys.

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

14 years agoMFC r196903:
mav [Tue, 17 Nov 2009 13:48:27 +0000 (13:48 +0000)]
MFC r196903:
Remove duplicate qfrozen_cnt variable from struct cam_ed.
ccbq.queue.qfrozen_cnt should be used instead.

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

14 years agoMFC: r198952
brueffer [Tue, 17 Nov 2009 13:37:27 +0000 (13:37 +0000)]
MFC: r198952

Fix two memory leaks in error cases.

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

14 years agoMFC r196901:
mav [Tue, 17 Nov 2009 13:04:05 +0000 (13:04 +0000)]
MFC r196901:
Remove unneeded CAM_SIM_MPSAFE check.

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

14 years agoMFC r196898:
mav [Tue, 17 Nov 2009 13:01:17 +0000 (13:01 +0000)]
MFC r196898:
Report scbusX in xpt_announce_periph() to less confuse users by two
different bus addressing schemes.

MFC r196900:
s/bus %d/scbus%d/ in some messages to correct terminology.

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

14 years agoMFC r196897:
mav [Tue, 17 Nov 2009 12:58:07 +0000 (12:58 +0000)]
MFC r196897:
Avoid extra swi_sched() call, if this SIM is already queued.
It reduces overhead for coalesced command completions.

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

14 years agoMFC r197540, r198587, r198865:
mav [Tue, 17 Nov 2009 12:42:27 +0000 (12:42 +0000)]
MFC r197540, r198587, r198865:
Add more defines for bits from ATA and CF specifications.

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

14 years agoMFC r199074:
mav [Tue, 17 Nov 2009 12:30:06 +0000 (12:30 +0000)]
MFC r199074:

Add more ICH10 chip IDs.

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

14 years agoMFC r198583:
mav [Tue, 17 Nov 2009 12:25:34 +0000 (12:25 +0000)]
MFC r198583:
Add some magic taken from OS X and Linux to support early revision K2
SATA controllers, like those found on the G5 Xserve.

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

14 years agoMFC r198582:
mav [Tue, 17 Nov 2009 12:23:14 +0000 (12:23 +0000)]
MFC r198582:
Turn off use of ATA_A_4BIT on modern hardware. This flag was already
obsoleted in 1996 by ATA-2, and crashes some modern hardware like some
revisions of the Serverworks K2 SATA controller. Even very ancient
hardware seems not to require it. In the unlikely event this causes
problems, the previous behavior can be re-enabled by defining
ATA_LEGACY_SUPPORT at the top of this file.

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

14 years agoMFC r198519:
mav [Tue, 17 Nov 2009 12:18:14 +0000 (12:18 +0000)]
MFC r198519:
Don't ignore the return value of g_modevent() in acd_modevent().

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

14 years agoMFC r199137:
kib [Tue, 17 Nov 2009 11:46:55 +0000 (11:46 +0000)]
MFC r199137:
Detect the slashdot lookup for RENAME or REMOVE in lookup(), and return
EINVAL.

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

14 years agoMFC r198853:
kib [Tue, 17 Nov 2009 11:43:53 +0000 (11:43 +0000)]
MFC r198853:
If socket buffer space appears to be lower then sum of count of
already prepared bytes and next portion of transfer, inner loop of
kern_sendfile() aborts, not preparing next mbuf for socket buffer, and
not modifying any outer loop invariants. The thread loops in the outer
loop forever.

Instead of breaking from inner loop, prepare only bytes that fit into
the socket buffer space.

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

14 years agoMFC r199287:
bms [Tue, 17 Nov 2009 10:59:51 +0000 (10:59 +0000)]
MFC r199287:
  Fix a functional regression in multicast.

  Userland daemons need to see IGMP traffic regardless of the group;
  omit the imo filter check if the proto is IGMP. The kernel part
  of IGMP will have already filtered appropriately at this point.

Submitted by:   Franz Struwig
Reported by:    Ivor Prebeg, Franz Struwig

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

14 years agoMFC r199015: ichwd: don't attach to isa pnp device(s) by accident
avg [Tue, 17 Nov 2009 09:35:13 +0000 (09:35 +0000)]
MFC r199015: ichwd: don't attach to isa pnp device(s) by accident

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

14 years agoOn a 32 bit kernel the igb driver may cause a page
jfv [Mon, 16 Nov 2009 18:58:45 +0000 (18:58 +0000)]
On a 32 bit kernel the igb driver may cause a page
fault panic due to a failed bounce page allocation
during RX mbuf setup. The large demand on bounce pages
is due to the alignment requirement in the tag. This
restriction was removed in the ixgbe driver with no
ill effects and so is being removed here also.

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

14 years agoMFC: r199046
brueffer [Mon, 16 Nov 2009 08:26:56 +0000 (08:26 +0000)]
MFC: r199046

Fix a copy+paste error by checking the correct variable against MM_NULLACT.

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

14 years agoMFC r199080, r199081, r199082:
ume [Mon, 16 Nov 2009 03:52:18 +0000 (03:52 +0000)]
MFC r199080, r199081, r199082:
Add ja_JP.UTF-8 and ja_JP.eucJP catalogs.

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

14 years agoMFC r199127:
dougb [Sun, 15 Nov 2009 23:48:29 +0000 (23:48 +0000)]
MFC r199127:
Add a note about no hostname leading to "Amnesiac" on the console

The text is inspired by the PR, but more in line with the existing text

PR: docs/140434
Submitted by: Jason Helfman <jhelfman@e-e.com>

MFC r199152:
s/a default/the default/

Submitted by: remko

MFC r199299:
In r199127/r199152 I forgot to bump .Dd

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

14 years agoMFC: r199053
rmacklem [Sun, 15 Nov 2009 19:26:06 +0000 (19:26 +0000)]
MFC: r199053
Add a check for the connection being shut down to the krpc
client just before queuing a request for the connection. The
code already had a check for the connection being shut down
while the request was queued, but not one for the shut down
having been initiated by the server before the request was
in the queue. This fixes some cases of problems w.r.t. reconnecting
to a NFS server that drops inactive TCP connections.

Tested by: Olaf Seibert, Daniel Braniss
Reviewed by: dfr

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

14 years agoMFC r197956:
jh [Sun, 15 Nov 2009 14:11:26 +0000 (14:11 +0000)]
MFC r197956:

- Catch SIGHUP to perform cleanup before exiting.
- Exit if getch() returns with an error other than EINTR. Otherwise
  systat(1) may get stuck in an infinite loop if it doesn't receive
  SIGHUP when terminal closes.
- Remove attempt to clear stdio error indicators. getch() doesn't use
  stdio, making it useless.
- Remove unneeded masking of getch() return value.

PR: bin/107171
Approved by: trasz (mentor)

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

14 years ago- MFC r198320:
stas [Sun, 15 Nov 2009 11:30:59 +0000 (11:30 +0000)]
- MFC r198320:
  Introduce new option BCE_JUMBO_HDRSPLIT that allows user to enable header
  in bce(4) instead of (ab)using ZERO_COPY_SOCKETS that was not
  into if_bce.c anyway.  It is disabled by default.

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

14 years agoMFC r199241
rnoland [Sat, 14 Nov 2009 16:14:51 +0000 (16:14 +0000)]
MFC r199241

This patch addresses an overflow in the the zfs boot code and allows
users to boot from zfs raidz volumes.  This has been tested by a number
of users and does not impact those which are not booting from zfs raidz
volumes.

Submitted by: Matt Reimer <mattjreimer@gmail.com>

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

14 years agoMFC r198703,r199156,r199157:
pjd [Sat, 14 Nov 2009 11:59:59 +0000 (11:59 +0000)]
MFC r198703,r199156,r199157:

r198703:

- zfs_zaccess() can handle VAPPEND too, so map V_APPEND to VAPPEND and call
  zfs_access() instead of vaccess() in this case as well.
- If VADMIN is specified with another V* flag (unlikely) call both
  zfs_access() and vaccess() after spliting V* flags.

This fixes "dirtying snapshot!" panic.

PR: kern/139806
Reported by: Carl Chave <carl@chave.us>
In co-operation with: jh

r199156:

Avoid passing invalid mountpoint to getnewvnode().

Reported by: rwatson
Tested by: rwatson

r199157:

Be careful which vattr fields are set during setattr replay.
Without this fix strange things can appear after unclean shutdown like
files with mode set to 07777.

Reported by: des

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

14 years agoMFC r199173: CURVNET_RESTORE() was not called in certain cases.
ume [Sat, 14 Nov 2009 04:46:24 +0000 (04:46 +0000)]
MFC r199173: CURVNET_RESTORE() was not called in certain cases.

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

14 years agoMFC r198945:
netchild [Thu, 12 Nov 2009 13:09:36 +0000 (13:09 +0000)]
MFC r198945:
  Fix typo in kernel message. The fix is based upon the patch in the PR.

  PR: kern/140279
  Submitted by: Alexander Best <alexbestms@math.uni-muenster.de>

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

14 years agoMFC of r199107, tzdata2009r:
edwin [Thu, 12 Nov 2009 10:44:29 +0000 (10:44 +0000)]
MFC of r199107, tzdata2009r:

- Three Australian stations in Antarctica have changed their time zone:
  Casey moved from UTC+8 to UTC+11
  Davis moved from UTC+7 to UTC+5
  Mawson moved from UTC+6 to UTC+5
  The changes occurred on 2009-10-18 at 02:00 (local times).

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

14 years agoMFC r197791
np [Thu, 12 Nov 2009 00:20:31 +0000 (00:20 +0000)]
MFC r197791

cxgb(4) updates, including:
- support for the new Gen-2, BT, and LP-CR cards.
- T3 firmware 7.7.0
- shared "common code" updates.

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

14 years agoMFC r197043
np [Wed, 11 Nov 2009 22:31:02 +0000 (22:31 +0000)]
MFC r197043

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

14 years agoMFC r197833:
jh [Wed, 11 Nov 2009 19:50:52 +0000 (19:50 +0000)]
MFC r197833:

When run() returns an error, print the error message also in
non-interactive mode. Previously error messages were printed only in
interactive mode.

PR: bin/124517
Approved by: trasz (mentor)

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

14 years agoShift what stable/8 calls itself to the thing that people who tend to
kensmith [Wed, 11 Nov 2009 14:38:45 +0000 (14:38 +0000)]
Shift what stable/8 calls itself to the thing that people who tend to
complain about such things find, on average, the least objectionable.

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

14 years agoMFC r198859
thompsa [Wed, 11 Nov 2009 02:07:01 +0000 (02:07 +0000)]
MFC r198859

 Belatedly add an UPDATING message for the usb ethernet ifnet naming in r188412.

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

14 years agoMFC r199058
thompsa [Wed, 11 Nov 2009 01:33:06 +0000 (01:33 +0000)]
MFC r199058

 Integrate lost interrupts patch from the old USB stack.

 Some EHCI chips from VIA / ATI seem to trigger interrupts before writing back
 the qTD status, or miss signalling occasionally under heavy load.  If the host
 machine is too fast, we can miss transaction completion - when we scan the
 active list the transaction still seems to be active. This generally exhibits
 itself as a umass stall that never recovers.

 We work around this behaviour by setting up this callback after any softintr
 that completes with transactions still pending, giving us another chance to
 check for completion after the writeback has taken place

Submitted by: Alexander Nedotsuko

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

14 years agoMFC r199055
thompsa [Wed, 11 Nov 2009 01:27:58 +0000 (01:27 +0000)]
MFC r199055

 - fix refcounting error during data transfer
 - fix a memory leak on the USB backend
 - fix invalid pointer computations (in one case memory outside the allocated
   area was written in LibUSB v1.0)
 - make sure memory is always initialised, also in failing cases
 - add missing functions from v1.0.4

PR: usb/140325

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

14 years agoMFC r198486, r199050:
mav [Tue, 10 Nov 2009 22:37:44 +0000 (22:37 +0000)]
MFC r198486, r199050:
Increase ATA command timeouts. Introduce define and kernel option
ATA_REQUEST_TIMEOUT to control it.

PR: kern/111023

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

14 years agoMFC r198846:
delphij [Tue, 10 Nov 2009 00:41:22 +0000 (00:41 +0000)]
MFC r198846:

  Set umask to 0x077 instead of the default.  This prevents non-root user
  from reading crashinfo output, which could contain some sensitive
  information.

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

14 years agoMFC revision 199069:
delphij [Tue, 10 Nov 2009 00:34:25 +0000 (00:34 +0000)]
MFC revision 199069:

Initialize the whole message unit's DMA buffer to zero, this fixes a panic
during boot when ARC1200 is being used with certain motherboard models.

This commit brings the driver to the same state of vendor's 1.20.00.16
release.  Many thanks to Areca for their continued support to FreeBSD.

This instant MFC was requested by re@ (kensmith) in preparation for
8.0-RC3.

Reported by: Jirka Mikulas <jiri mikulas com>
Submitted by: Erich Chen (Areca)

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

14 years agoComment out the sbp(4) entry for GENERIC config files that contain it.
kensmith [Mon, 9 Nov 2009 21:39:42 +0000 (21:39 +0000)]
Comment out the sbp(4) entry for GENERIC config files that contain it.
There are known issues with this driver that are beyond what can be
fixed for 8.0-RELEASE and the bugs can cause boot failure on some systems.
It's not clear if it impacts all systems and there is interest in getting
the problem fixed so for now just comment it out instead of remove it.

Commit straight to stable/8, this is an 8.0-RELEASE issue.  Head was left
alone so work on it can continue there.

Reviewed by: Primary misc. architecture maintainers (marcel, marius)

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

14 years agoInsta-MFC of r199084,199108:
nwhitehorn [Mon, 9 Nov 2009 21:30:45 +0000 (21:30 +0000)]
Insta-MFC of r199084,199108:
   Increase the size of the OFW translations buffer to handle G5 systems
   that use many translation regions in firmware, and add bounds checking
   to prevent buffer overflows in case even the new value is exceeded.

Short MFC requested by re since the problem this fixes breaks CD boot on
most G5 systems, making them uninstallable.

Reported by: Jacob Lambert
Approved by: re (kensmith,kib)
Requested by: re

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

14 years agoCleanup mergeinfo for libc. Part of the damage was caused by a merge from
jhb [Mon, 9 Nov 2009 18:56:47 +0000 (18:56 +0000)]
Cleanup mergeinfo for libc.  Part of the damage was caused by a merge from
a partial checkout of libc in a user branch up to head.  Don't do merges
from sparse trees!

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

14 years agoMFC r198719:
kensmith [Mon, 9 Nov 2009 18:09:10 +0000 (18:09 +0000)]
MFC r198719:
> While certain supported Symbios/LSI SCSI chips (532c89653c100053c1010)
> do support 64bit addresses, the current SCRIPTS code supports only 32bit
> addresses causing data corruption for buffer addresses >4GB. This problem
> affects 64bit machines with more than 4GB RAM or amd64 with 4GB and
> memory hole remapping.
> Work-around this problem with a bus_dma tag that requests bounce-buffers
> for addresses >4GB. This causes some overhead, but given the maximum SCSI
> bus speed of 160MB/s compared, the effect should hardly be noticeable.
> The problem was reported by Mike Watters (mike at mwatters net) who also
> verified that this fix cures the problem.
>
> Since this change is a NOOP on systems with less than 4GB RAM and fixes
> data corruption (in RAM and on disk) on systems with more than 4GB, I hope
> that this change is accepted for 8.0.

Requested by: Stefan Esser (se at freebsd dot org)[1]
Reviewed by: jhb, scottl

[1] Stefan requested this be part of 8.0 but has been unavailable to do
    the MFC since submitting the request.  We want to get 8.0-RC3 started
    so I'm doing the merges with re@ hat on.

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

14 years agoHoist some mergeinfo up to sys/.
jhb [Mon, 9 Nov 2009 16:32:48 +0000 (16:32 +0000)]
Hoist some mergeinfo up to sys/.

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

14 years agoMFC r198976, r198993:
ume [Mon, 9 Nov 2009 15:11:37 +0000 (15:11 +0000)]
MFC r198976, r198993:
 - Don't call LLE_FREE() after nd6_free().
 - Make nd6_llinfo_timer() does its job, again.  ln->la_expire was
   greater than time_second, in most cases.

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

14 years agoMFC of 198831, tzcode2009q
edwin [Mon, 9 Nov 2009 11:32:18 +0000 (11:32 +0000)]
MFC of 198831, tzcode2009q

- Cleanup unnecessary local variables in zdump.
- Fix man-page

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

14 years agoMFC r198845:
oleg [Mon, 9 Nov 2009 10:13:24 +0000 (10:13 +0000)]
MFC r198845:
Fix two issues that can lead to exceeding configured pipe bandwidth:
- do not expire queues which are not ready to be expired.
- properly calculate available burst size.

MFC r199073:
style(9): add missing parentheses

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

14 years agoMFC r198475:
lulf [Sun, 8 Nov 2009 17:59:55 +0000 (17:59 +0000)]
MFC r198475:

- Add support for Marvell Yukon 88E8042 device.

Submitted by:   Mario Lobo <mlobo -at- digiart.art.br>

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

14 years agoMFC r198948 from HEAD:
rafan [Sun, 8 Nov 2009 14:28:23 +0000 (14:28 +0000)]
MFC r198948 from HEAD:

 Revert the spelling of Taiwan to be politically neutral in accordance
 with the policy published at http://www.freebsd.org/internal/i18n.html.

 Requested by: core (murray)

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

14 years agoMFC r198983:
mav [Sun, 8 Nov 2009 14:07:58 +0000 (14:07 +0000)]
MFC r198983:
Document support for more chips.

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

14 years agoMFC r198818:
mav [Sun, 8 Nov 2009 14:06:15 +0000 (14:06 +0000)]
MFC r198818:
Add IDs for nVidia MCP65/77/79/89 SATA conntrollers.

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

14 years agoMFC: r198750
brueffer [Sun, 8 Nov 2009 12:08:42 +0000 (12:08 +0000)]
MFC: r198750

Expand DESCRIPTION and add a basic EXAMPLES section.

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

14 years agoMFC r198162:
dougb [Sat, 7 Nov 2009 22:59:04 +0000 (22:59 +0000)]
MFC r198162:

Allow $name_program to override $command in a more robust way that
will not cause the value to be null if $command is not set.

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

14 years agoMFC r199023:
dougb [Sat, 7 Nov 2009 22:27:34 +0000 (22:27 +0000)]
MFC r199023:
Move VCS fortune to fortunes-o

MFC 199025:
Sort fortune

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

14 years agoMFC r197797:
dougb [Sat, 7 Nov 2009 21:10:48 +0000 (21:10 +0000)]
MFC r197797:
s/Putluck Pogo/Potluck Pogo/

MFC r198921:
Grammar/formatting fix

MFC 199021:
Remove svn:executable from datfiles/gerrold.limerick

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

14 years agoMFC 198620:
jhb [Fri, 6 Nov 2009 20:33:40 +0000 (20:33 +0000)]
MFC 198620:
When fetching sum stats (vmstat -s) from a crash dump, fetch per-CPU counts
and sum them to form the total counts.

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

14 years agoMFC 198367:
jhb [Fri, 6 Nov 2009 20:23:16 +0000 (20:23 +0000)]
MFC 198367:
Set the devclass_t pointer specified in the DRIVER_MODULE() macro
sooner so it is always valid when a driver's identify routine is
called.

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

14 years agoMFC r197070:
attilio [Fri, 6 Nov 2009 15:24:48 +0000 (15:24 +0000)]
MFC r197070:
Consolidate CPUID to CPU family/model macros for amd64 and i386 to reduce
unnecessary #ifdef's for shared code between them.

This MFC should unbreak the kernel build breakage introduced by
r198977.

Reported by: kib
Pointy hat to: me

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

14 years agoMFC r198700:
mav [Fri, 6 Nov 2009 10:56:43 +0000 (10:56 +0000)]
MFC r198700:
Add support for different request block format used by Gen-IIe Marvell SATA.
This adds support for Marvell 6042/7042 chips and Adaptec 1430SA controller.

MFC r198718:
Allow newly added controllers to use full I/O sizes.

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

14 years agoMFC r198407:
mav [Fri, 6 Nov 2009 10:48:44 +0000 (10:48 +0000)]
MFC r198407:
Do not differentiate 12/16 bytes ATAPI CCB formats when it is not needed.

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

14 years agoMFC r197783:
mav [Fri, 6 Nov 2009 10:45:37 +0000 (10:45 +0000)]
MFC r197783:
- Revert r191568 partially.  Forcing AHCI mode by changing device subclass
and progif is evil.  It doesn't work reliably[1] and we should honor BIOS
configuration by the user.
- If the SATA controller is enbled but combined mode is disabled, mask off
the emulated IDE channel on the legacy IDE controller.

Pointed out by: mav[1]

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

14 years agoMFC r198868, r198950:
attilio [Fri, 6 Nov 2009 10:15:15 +0000 (10:15 +0000)]
MFC r198868, r198950:
Opteron rev E family of processor expose a bug where acq memory barriers
can be broken, resulting in random breakages.
Printout a warning message if affecred family and model are found.

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

14 years agoMFC r197789:
trasz [Fri, 6 Nov 2009 09:39:35 +0000 (09:39 +0000)]
MFC r197789:

Fix ACL support on sparc64.  Turns out that fuword(9) fetches 64 bits
instead of sizeof(int), and on sparc64 that resulted in fetching wrong
value for acl_maxcnt, which in turn caused __acl_get_link(2) to fail
with EINVAL.

PR: sparc64/139304
Submitted by: Dmitry Afanasiev <KOT at MATPOCKuH.Ru>

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

14 years agoMFC: r198543
brueffer [Fri, 6 Nov 2009 08:08:47 +0000 (08:08 +0000)]
MFC: r198543

Fix date (1) and SEE ALSO section.

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

14 years agoMFC: r198684
brueffer [Fri, 6 Nov 2009 06:50:45 +0000 (06:50 +0000)]
MFC: r198684

Add support for Adaptec 39320LPE adapters.

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

14 years agoMFC r198525:
emaste [Thu, 5 Nov 2009 18:34:01 +0000 (18:34 +0000)]
MFC r198525:

  Whitespace fixup: 8 spaces -> tab

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

14 years agoUnbreak SBus cards which have been broken (apparently) for a while.
mjacob [Thu, 5 Nov 2009 18:25:26 +0000 (18:25 +0000)]
Unbreak SBus cards which have been broken (apparently) for a while.
Most of the pieces came from Marius- correct settings for channels
and resource management. The one piece missing was that you cannot
for SBus cards replace 32 bit operations with A64 operations- not
supported. This is an MFC of r198822.

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

14 years agoMFC r198518:
emaste [Thu, 5 Nov 2009 13:54:35 +0000 (13:54 +0000)]
MFC r198518:

  Add link for callout_schedule(9).

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

14 years agoMFC r196511:
netchild [Thu, 5 Nov 2009 08:31:42 +0000 (08:31 +0000)]
MFC r196511:
  - Update config to doxygen 1.5.2 (I use this with 1.5.9).
  - Add linprocfs and linsysfs to the linuxulator dox.
  - Take the generated includes from the .m files from a subdirectory
    instead of putting everything into $(.OBJDIR). This imporves the
    human readbility of the source directory contents a lot, if you do not
    create a separate OBJDIR.
  - Assume UTF-8 encoding for every input file.
  - Strip the source and dest path from the output, we are not interested
    in the absolute location on the machine where the docs are created,
    relative the the root of the FreeBSD source is what interests us.
  - Exclude .svn directories.
  - Switch to alphabetic index.
  - Use one line per INCLUDE_PATH member in the common dox-config.
  - Bump the __FreeBSD__ version to 9. [here in the MFC: to 8]
  - Switch from hardcoded .m files to an run-time generated one. Takes
    a little bit more time to get started with actual work, but at least
    is more future-proof. If you generate dox for all subsystems, the
    time to find all .m files in the source is magnitutes lower than
    producing the docs.
  - Make the *DEST_PATH overidable from the environment. This allows to
    produce the output directly in the docroot of a webserver.
  - Fix the path when telling the user where he can find the API docs.

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

14 years agoMFC r197437:
emaste [Thu, 5 Nov 2009 02:27:56 +0000 (02:27 +0000)]
MFC r197437:

  Use %zu for size_t, not %zd.

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

14 years agoMFC 198554:
jhb [Wed, 4 Nov 2009 20:49:14 +0000 (20:49 +0000)]
MFC 198554:
Fix some problems with effective mmap() offsets > 32 bits.  This was
partially fixed on amd64 earlier.  Rather than forcing linux_mmap_common()
to use a 32-bit offset, have it accept a 64-bit file offset.  This offset
is then passed to the real mmap() call.  Rather than inventing a structure
to hold the normal linux_mmap args that has a 64-bit offset, just pass
each of the arguments individually to linux_mmap_common() since that more
closes matches the existing style of various kern_foo() functions.

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

14 years agoMFC r197586:
yongari [Wed, 4 Nov 2009 18:31:43 +0000 (18:31 +0000)]
MFC r197586:
  It seems some 82559ER controllers do not support Rx checksum
  offloading. Datasheet said nothing about the limitation of 82559ER
  except WOL. Explicitly disable Rx checksum offloading for
  controllers that is known to lack the capability.

  PR: kern/138135
  Tested by: Gooderum, Mark < mgooderum <> websense dot com >

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

14 years agoMFC 197772:
jhb [Wed, 4 Nov 2009 16:58:26 +0000 (16:58 +0000)]
MFC 197772:
When the timeout backoff hits the maximum value, leave it capped at the
maximum value rather than setting it to the result of a boolean expression
that is always true.

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

14 years agoMFC 198586: Include the output of the ddb(4) capture buffer.
jhb [Wed, 4 Nov 2009 16:05:09 +0000 (16:05 +0000)]
MFC 198586: Include the output of the ddb(4) capture buffer.

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

14 years agoMFC 198585:
jhb [Wed, 4 Nov 2009 16:03:47 +0000 (16:03 +0000)]
MFC 198585:
When extracting the capture buffer from a crashdump, only read the valid
portion of the capture buffer.

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

14 years agoMFC: r198542
brueffer [Wed, 4 Nov 2009 13:40:04 +0000 (13:40 +0000)]
MFC: r198542

Initialize f_rabuf in the raw device case. A subsequent close()
later on would try to free it, leading to a crash.

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

14 years agoMFC: r198539
brueffer [Wed, 4 Nov 2009 13:30:32 +0000 (13:30 +0000)]
MFC: r198539

Close a stream file descriptor leak.

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

14 years agoMFC: r198537
brueffer [Wed, 4 Nov 2009 13:06:09 +0000 (13:06 +0000)]
MFC: r198537

Close a file descriptor leak in an error case.

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

14 years agoMFC: r198546
brueffer [Wed, 4 Nov 2009 12:35:35 +0000 (12:35 +0000)]
MFC: r198546

Remove spurious `)`

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

14 years agoMFC of r198825: tzdata2009q
edwin [Wed, 4 Nov 2009 10:46:55 +0000 (10:46 +0000)]
MFC of r198825: tzdata2009q

- New region: Asia/Novokuznetsk
- Kemerovo oblast' (Kemerovo region) in Russia will change current
  time zone on 29 March 2010
- Add historical data for Hongkong 1941 - 1980
- Syria will go to winter time in the last weekend of October 2009.

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

14 years agoMFC r198775
thompsa [Wed, 4 Nov 2009 01:50:25 +0000 (01:50 +0000)]
MFC r198775

 Fix a corner case where usbd_transfer_drain() can return too early if the
 callback has dropped the mutex, leading to a panic.

Submitted by: HPS

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

14 years agoMFC r198581:
rpaulo [Tue, 3 Nov 2009 23:26:31 +0000 (23:26 +0000)]
MFC r198581:
 Update the route's sequence number upon receiving a RANN.

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

14 years agoMFC r197334,r197433:
mlaier [Tue, 3 Nov 2009 21:57:00 +0000 (21:57 +0000)]
MFC r197334,r197433:
    Extract svn and git version info from git-svn repos.

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

14 years agoMFC r197524
alc [Mon, 2 Nov 2009 18:44:01 +0000 (18:44 +0000)]
MFC r197524
  Make malloc(3) superpage aware.

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

14 years agoMFC r197011:
emaste [Mon, 2 Nov 2009 16:54:23 +0000 (16:54 +0000)]
MFC r197011:

  Increase AAC_CMD_TIMEOUT from 30s to 120s to help avoid spurious
  "COMMAND 0x........ TIMEOUT AFTER .. SECONDS" messages.  Any commands
  that get truly stuck will still trigger the warning and the hardware
  health check, just a little bit later.

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

14 years agoMFC r197082:
emaste [Mon, 2 Nov 2009 16:46:06 +0000 (16:46 +0000)]
MFC r197082:

If the pxe client is told to use / as the root path, honour that rather
of trying to mount /pxeroot instead.

PR: i386/106493
Submitted by: Andrey Russev

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

14 years agoMFC r197692:
emaste [Mon, 2 Nov 2009 16:32:32 +0000 (16:32 +0000)]
MFC r197692:

  In fill_kinfo_thread, copy the thread's name into struct kinfo_proc even
  if it is empty.  Otherwise the previous thread's name would remain in the
  struct and then be reported for this thread.

Submitted by: Ryan Stone

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

14 years agoMFC r198029:
emaste [Mon, 2 Nov 2009 16:27:34 +0000 (16:27 +0000)]
MFC r198029:

  Correct typo: thetime -> the time

PR: docs/139447
Submitted by: Guido Falsi  mad at madpilot dot net

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