Commit Graph

149704 Commits

Author SHA1 Message Date
Jack F Vogel
95d8c74501 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.
2009-11-16 18:58:45 +00:00
Christian Brueffer
841de8ae65 MFC: r199046
Fix a copy+paste error by checking the correct variable against MM_NULLACT.
2009-11-16 08:26:56 +00:00
Hajimu UMEMOTO
26520868bc MFC r199080, r199081, r199082:
Add ja_JP.UTF-8 and ja_JP.eucJP catalogs.
2009-11-16 03:52:18 +00:00
Doug Barton
c071b1c638 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
2009-11-15 23:48:29 +00:00
Rick Macklem
43bd82988b 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
2009-11-15 19:26:06 +00:00
Jaakko Heinonen
f969a7ac4b 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)
2009-11-15 14:11:26 +00:00
Stanislav Sedov
5b7c45037d - 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.
2009-11-15 11:30:59 +00:00
Robert Noland
1de2992578 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>
2009-11-14 16:14:51 +00:00
Pawel Jakub Dawidek
5f99f88975 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
2009-11-14 11:59:59 +00:00
Hajimu UMEMOTO
864fb934d0 MFC r199173: CURVNET_RESTORE() was not called in certain cases. 2009-11-14 04:46:24 +00:00
Alexander Leidinger
43b4fbd112 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>
2009-11-12 13:09:36 +00:00
Edwin Groothuis
4ab8848ce9 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).
2009-11-12 10:44:29 +00:00
Navdeep Parhar
bbec3bb581 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.
2009-11-12 00:20:31 +00:00
Navdeep Parhar
585be673c5 MFC r197043 2009-11-11 22:31:02 +00:00
Jaakko Heinonen
1a225ffb6a 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)
2009-11-11 19:50:52 +00:00
Ken Smith
7647320449 Shift what stable/8 calls itself to the thing that people who tend to
complain about such things find, on average, the least objectionable.
2009-11-11 14:38:45 +00:00
Andrew Thompson
896fb05783 MFC r198859
Belatedly add an UPDATING message for the usb ethernet ifnet naming in r188412.
2009-11-11 02:07:01 +00:00
Andrew Thompson
41de786582 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
2009-11-11 01:33:06 +00:00
Andrew Thompson
1110a4604f 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
2009-11-11 01:27:58 +00:00
Alexander Motin
58ad43feb1 MFC r198486, r199050:
Increase ATA command timeouts. Introduce define and kernel option
ATA_REQUEST_TIMEOUT to control it.

PR:		kern/111023
2009-11-10 22:37:44 +00:00
Xin LI
01e195f21d 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.
2009-11-10 00:41:22 +00:00
Xin LI
ce5c80071f 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)
2009-11-10 00:34:25 +00:00
Ken Smith
50aa951061 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)
2009-11-09 21:39:42 +00:00
Nathan Whitehorn
006a483528 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
2009-11-09 21:30:45 +00:00
John Baldwin
330ca98cab 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!
2009-11-09 18:56:47 +00:00
Ken Smith
973e10a816 MFC r198719:
> While certain supported Symbios/LSI SCSI chips (532c896, 53c1000, 53c1010)
> 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.
2009-11-09 18:09:10 +00:00
John Baldwin
23cbe16904 Hoist some mergeinfo up to sys/. 2009-11-09 16:32:48 +00:00
Hajimu UMEMOTO
c303f1eb39 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.
2009-11-09 15:11:37 +00:00
Edwin Groothuis
cbd57efc02 MFC of 198831, tzcode2009q
- Cleanup unnecessary local variables in zdump.
- Fix man-page
2009-11-09 11:32:18 +00:00
Oleg Bulyzhin
c366b7c1e2 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
2009-11-09 10:13:24 +00:00
Ulf Lilleengen
6ab1fc9fb1 MFC r198475:
- Add support for Marvell Yukon 88E8042 device.

Submitted by:   Mario Lobo <mlobo -at- digiart.art.br>
2009-11-08 17:59:55 +00:00
Rong-En Fan
79144413ac 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)
2009-11-08 14:28:23 +00:00
Alexander Motin
7d61312277 MFC r198983:
Document support for more chips.
2009-11-08 14:07:58 +00:00
Alexander Motin
7d767be8c7 MFC r198818:
Add IDs for nVidia MCP65/77/79/89 SATA conntrollers.
2009-11-08 14:06:15 +00:00
Christian Brueffer
92eb005cae MFC: r198750
Expand DESCRIPTION and add a basic EXAMPLES section.
2009-11-08 12:08:42 +00:00
Doug Barton
715542d57f 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.
2009-11-07 22:59:04 +00:00
Doug Barton
8bec9b9ee1 MFC r199023:
Move VCS fortune to fortunes-o

MFC 199025:
Sort fortune
2009-11-07 22:27:34 +00:00
Doug Barton
14496b2fd5 MFC r197797:
s/Putluck Pogo/Potluck Pogo/

MFC r198921:
Grammar/formatting fix

MFC 199021:
Remove svn:executable from datfiles/gerrold.limerick
2009-11-07 21:10:48 +00:00
John Baldwin
8da42c8a89 MFC 198620:
When fetching sum stats (vmstat -s) from a crash dump, fetch per-CPU counts
and sum them to form the total counts.
2009-11-06 20:33:40 +00:00
John Baldwin
f6b15c7b77 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.
2009-11-06 20:23:16 +00:00
Attilio Rao
dcf9f13772 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
2009-11-06 15:24:48 +00:00
Alexander Motin
cf236d24db 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.
2009-11-06 10:56:43 +00:00
Alexander Motin
cdcdbef48e MFC r198407:
Do not differentiate 12/16 bytes ATAPI CCB formats when it is not needed.
2009-11-06 10:48:44 +00:00
Alexander Motin
74c174b9a7 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]
2009-11-06 10:45:37 +00:00
Attilio Rao
063e246163 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.
2009-11-06 10:15:15 +00:00
Edward Tomasz Napierala
6451b27464 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>
2009-11-06 09:39:35 +00:00
Christian Brueffer
64af635930 MFC: r198543
Fix date (1) and SEE ALSO section.
2009-11-06 08:08:47 +00:00
Christian Brueffer
c4e480716d MFC: r198684
Add support for Adaptec 39320LPE adapters.
2009-11-06 06:50:45 +00:00
Ed Maste
12fbadae8a MFC r198525:
Whitespace fixup: 8 spaces -> tab
2009-11-05 18:34:01 +00:00
Matt Jacob
699050d8d5 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.
2009-11-05 18:25:26 +00:00