]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC of r199336
edwin [Thu, 19 Nov 2009 20:40:11 +0000 (20:40 +0000)]
MFC of r199336
MFV of tzdata2009s, r199334

- Fix (harmless) typo in the definitions of Antarctica/David
- Fiji will go into DST from 29 November 2009 to 25 April 2010.

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

14 years agoMFC 199232:
rpaulo [Thu, 19 Nov 2009 15:28:08 +0000 (15:28 +0000)]
MFC 199232:
   Add a missing check for Apple HFS partitions.

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

14 years agoMFC: revision 199219
nyan [Thu, 19 Nov 2009 12:07:00 +0000 (12:07 +0000)]
MFC: revision 199219

  Fix cpu model for PODP5V83.  It is P24T, not P54T.
  Also remove redundant 'Overdrive' word.

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

14 years agoMFC 199477
tuexen [Wed, 18 Nov 2009 15:35:03 +0000 (15:35 +0000)]
MFC 199477
Fix a bug where the system panics when a SHUTDOWN is received with an
illegal TSN.
This bug was reported by Irene Ruengeler.

Approved by: re, rrs (mentor)

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

14 years agoMFC r199188: ANSIfy.
ume [Wed, 18 Nov 2009 14:40:00 +0000 (14:40 +0000)]
MFC r199188: ANSIfy.

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

14 years agoMFC r196964:
mav [Tue, 17 Nov 2009 21:45:28 +0000 (21:45 +0000)]
MFC r196964:
Do not check proper request alignment here in geom_dev in production.
It will be checked any way later by g_io_check() in g_io_schedule_down().
It is only needed here to not trigger panic from additional check, when
INVARIANTS enabled. So cover it with #ifdef INVARIANTS. It saves two
64bit divisions per request.

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

14 years agoMFC r196904:
mav [Tue, 17 Nov 2009 21:43:42 +0000 (21:43 +0000)]
MFC r196904:
Remove msleep() timeout from g_io_schedule_up/down(). It works fine
without it, saving few percents of CPU on high request rates without
need to rearm callout twice per request.

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

14 years agoMFC r196837:
mav [Tue, 17 Nov 2009 21:42:11 +0000 (21:42 +0000)]
MFC r196837:
Remove artificial MAX_IO_SIZE constant, equal to DFLTPHYS * 2. Use MAXPHYS
instead. It is NULL change for GENERIC kernel, but allows 'fast' mode to
work on systems with increased MAXPHYS.

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

14 years agoMFC r199333:
mav [Tue, 17 Nov 2009 21:28:59 +0000 (21:28 +0000)]
MFC r199333:
Do not require payload data to be aligned. It is not mentioned in datasheet
and works fine in practice.

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

14 years agoMFC r199278:
mav [Tue, 17 Nov 2009 21:27:21 +0000 (21:27 +0000)]
MFC r199278:
Check SNCQ HBA capability bit when reporting NCQ support to CAM.

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

14 years agoMFC r199263:
mav [Tue, 17 Nov 2009 21:26:05 +0000 (21:26 +0000)]
MFC r199263:
Do not enable tagged queueing if controller reports 0 tags support.

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

14 years agoMFC r199178:
mav [Tue, 17 Nov 2009 21:23:05 +0000 (21:23 +0000)]
MFC r199178:
- Move tagged queueing control from ADA to ATA XPT. It allows to control
  device command queue length correctly. First step to support < 32 tags.
- Limit queue for non-tagged devices by 2 slots for ahci(4) and siis(4).
- Implement quirk matching for ATA devices.
- Move xpt_schedule_dev_sendq() from header to source file.
- Move delayed queue shrinking to the more expected place - element freeing.
- Remove some SCSIsms in ATA.

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

14 years agoMFC r199176:
mav [Tue, 17 Nov 2009 21:21:27 +0000 (21:21 +0000)]
MFC r199176:
Add set of chip IDs, known to support AHCI.

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

14 years agoMFC r199132:
mav [Tue, 17 Nov 2009 21:20:19 +0000 (21:20 +0000)]
MFC r199132:
Organize device IDs and add some more of them.

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

14 years agoMFC r199079, r199101:
mav [Tue, 17 Nov 2009 21:17:22 +0000 (21:17 +0000)]
MFC r199079, r199101:
Add support for ATA Power Management.

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

14 years agoMFC r198947:
mav [Tue, 17 Nov 2009 21:14:58 +0000 (21:14 +0000)]
MFC r198947:
Implement device stats accounting for ATA commands.

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

14 years agoMFC r198904, r198905:
mav [Tue, 17 Nov 2009 21:14:02 +0000 (21:14 +0000)]
MFC r198904, r198905:
PMP commands use short format. PMP write doesn't return result.

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

14 years agoMFC r198899:
mav [Tue, 17 Nov 2009 21:09:47 +0000 (21:09 +0000)]
MFC r198899:
- Remove CAM_PERIPH_POLLED flag. It is broken by design. Polling can't be
periph flag. May be SIM, may be CCB, but now it works fine just without it.
- Remove check unused for at least five years. If we will ever have non-BIO
devices in CAM, this check is smallest of what we will need.
- If several controllers complete requests same time, call swi_sched()
only once.

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

14 years agoMFC r198897:
mav [Tue, 17 Nov 2009 21:08:12 +0000 (21:08 +0000)]
MFC r198897:
- Add support for sector size > 512 bytes and physical sector of several
logical sectors, introduced by ATA-7 specification.
- Remove some obsoleted code.

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

14 years agoMFC r198896:
mav [Tue, 17 Nov 2009 21:00:02 +0000 (21:00 +0000)]
MFC r198896:
Do not unarm callout on request completion and change slot selection
algorithm as done in ahci(4). This saves some CPU time on high request
rates.

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

14 years agoMFC r198852:
mav [Tue, 17 Nov 2009 20:59:00 +0000 (20:59 +0000)]
MFC r198852:
- Rework timeout handling, to make it more graceful for devices sharing
controller port (with PMP). Wait for other commands completion/timeout
before initiating recovery.
- Handle timeouts and fatal errors with port hard-reset. The rest of
recovery will be done by XPT on receiving async event. More gracefull
per-device soft-reset recovery can be implemented later.

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

14 years agoMFC r198851:
mav [Tue, 17 Nov 2009 20:57:35 +0000 (20:57 +0000)]
MFC r198851:
- Handle timeouts and fatal errors with port hard-reset. The rest of
recovery will be done by XPT on receiving async event. More gracefull
per-device soft-reset recovery can be implemented later.
- Add workaround for ATI SB600/SB700 PMP probe related bug, to speedup boot.

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

14 years agoMFC r198849:
mav [Tue, 17 Nov 2009 20:56:24 +0000 (20:56 +0000)]
MFC r198849:
Improve reporting ATA Status error details.

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

14 years agoMFC r198832:
mav [Tue, 17 Nov 2009 20:54:52 +0000 (20:54 +0000)]
MFC r198832:
Provide the same sanity check on the sector size in dagetcapacity as when the
disk is first probed. dagetcapacity is called whenever the disk is opened from
geom via d_open(), a zero sector size will cause geom to panic later on.

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

14 years agoMFC r198748, r198782:
mav [Tue, 17 Nov 2009 20:49:26 +0000 (20:49 +0000)]
MFC r198748, r198782:
Fix reference counting bug, when device unreferenced before
invalidated. To do it, do not handle validity flag as another
reference, but explicitly modify reference count each time flag is
modified.
The async callback could free the device. If it is a broadcast async,
it doesn't hold device reference, so take our own reference.

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

14 years agoMFC r198709:
mav [Tue, 17 Nov 2009 20:45:49 +0000 (20:45 +0000)]
MFC r198709:
Sync connection speed reporting with kernel.
Report speed in identify command, same as done by inquiry.

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

14 years agoMFC r198708:
mav [Tue, 17 Nov 2009 20:43:04 +0000 (20:43 +0000)]
MFC r198708:
- Reduce code duplication in ATA XPT and PMP driver.
- Move PIO size setting from ada driver to ATA XPT. It is XPT business
to negotiate transfer details. ada driver is now stateless.
- Report PIO size to SIM. It is required for correct PATA SIM operation.
- Tune PMP scan timings. It workarounds some problems with SiI.
- If reset hapens during PMP initialization - restart it.
- Introduce early-initialized periph drivers, which are used during initial
scan process. Use it for xpt, probe, aprobe and pmp. It gives pmp chance
to finish scan before mountroot and numerate devices in right order.

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

14 years agoMFC r198705:
mav [Tue, 17 Nov 2009 20:41:15 +0000 (20:41 +0000)]
MFC r198705:
Ensure target/lun passed from user-level supported on this bus.
Scanning unsupported IDs causes different issues from duplicate
devices to system crash.

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

14 years agoMFC r198426:
mav [Tue, 17 Nov 2009 20:35:29 +0000 (20:35 +0000)]
MFC r198426:
Reimplement device reset sequence in more controller-specific way.

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

14 years agoMFC r198394:
mav [Tue, 17 Nov 2009 20:20:56 +0000 (20:20 +0000)]
MFC r198394:
Make "Retrying Command" to be printed before actual retrying.
It should make debug/error log a bit more readable.

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

14 years agoMFC r198390:
mav [Tue, 17 Nov 2009 20:19:20 +0000 (20:19 +0000)]
MFC r198390:
Revert interrupt reason check order back.
ATAPI errors may set IF bit together with TFE.

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

14 years agoMFC r198389:
mav [Tue, 17 Nov 2009 20:17:48 +0000 (20:17 +0000)]
MFC r198389:
Move Port Multiplier support code out of ATA XPT into pmp periph driver.
This is convinient, as PMP itself is a bus target and has own state.

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

14 years agoMFC r197545:
mav [Tue, 17 Nov 2009 19:52:51 +0000 (19:52 +0000)]
MFC r197545:
Fethch more information from IDENTIFY result.

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

14 years agoMFC r197419:
mav [Tue, 17 Nov 2009 19:51:39 +0000 (19:51 +0000)]
MFC r197419:
Reduce code duplication.

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

14 years agoMFC r198321
mav [Tue, 17 Nov 2009 19:42:06 +0000 (19:42 +0000)]
MFC r198321
Freeze device queue on error to permit periph driver to do proper recovery.

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

14 years agoMFC r198319:
mav [Tue, 17 Nov 2009 19:40:39 +0000 (19:40 +0000)]
MFC r198319:
On error, freeze device queue, to allow periph driver to do proper recovery.
Freeze SIM queue only in some cases, when it is needed to protect SIM.

Implement better command timeout detection logic for non-queued commands.
This fixes false positives when command with short timeout waiting for the
long one. For example, when hald tastes CD during burning process.

Read and clear SERR register on interrupt.

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

14 years agoMFC r198382, r198385:
mav [Tue, 17 Nov 2009 19:38:19 +0000 (19:38 +0000)]
MFC r198382, r198385:
Replace most of priority numbers with defines. No logical changes.

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

14 years agoMFC r197838:
mav [Tue, 17 Nov 2009 19:36:06 +0000 (19:36 +0000)]
MFC r197838:
On command timeout handle frozen command first, to not run it inside
XXX_end_transaction().

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

14 years agoMFC r198505:
kib [Tue, 17 Nov 2009 18:38:00 +0000 (18:38 +0000)]
MFC r198505:
When protection of wired read-only mapping is changed to read-write,
install new shadow object behind the map entry and copy the pages
from the underlying objects to it. This makes the mprotect(2) call to
actually perform the requested operation instead of silently do nothing
and return success, that causes SIGSEGV on later write access to the
mapping.

Reuse vm_fault_copy_entry() to do the copying, modifying it to behave
correctly when src_entry == dst_entry.

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

14 years agoMFC r198476 (by alc):
kib [Tue, 17 Nov 2009 18:31:09 +0000 (18:31 +0000)]
MFC r198476 (by alc):
Simplify the inner loop of vm_fault_copy_entry().

Approved by: alc

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

14 years agoMFC 198986:
jhb [Tue, 17 Nov 2009 16:50:57 +0000 (16:50 +0000)]
MFC 198986:
Fix a copy-paste bug when reading data from the last 3 (7 for PAE) bytes of
a page mapped by a large page in the kernel.

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

14 years agoHoist mergeinfo from sys/net/ up to sys/.
jhb [Tue, 17 Nov 2009 16:30:57 +0000 (16:30 +0000)]
Hoist mergeinfo from sys/net/ up to sys/.

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

14 years agoMFC 198990:
jhb [Tue, 17 Nov 2009 16:17:11 +0000 (16:17 +0000)]
MFC 198990:
Several years ago a feature was added to TCP that casued soreceive() to
send an ACK right away if data was drained from a TCP socket that had
previously advertised a zero-sized window.  The current code requires the
receive window to be exactly zero for this to kick in.  If window scaling is
enabled and the window is smaller than the scale, then the effective window
that is advertised is zero.  However, in that case the zero-sized window
handling is not enabled because the window is not exactly zero.  The fix
changes the code to check the raw window value against zero.

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

14 years agoMFC r197286, r197306:
ume [Tue, 17 Nov 2009 16:11:53 +0000 (16:11 +0000)]
MFC r197286, r197306:
V_irtualize the lltables list, making ARP and ND reasonably
usable again with options VIMAGE kernels.

Discussed with: hrs

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

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