Commit Graph

151401 Commits

Author SHA1 Message Date
Konstantin Belousov
43042bbaf1 MFC r207363:
Remove caddr_t casts.
2010-05-09 12:32:10 +00:00
Doug Barton
ad14656b57 MFC 207346:
Fix named-checkconf in the situation where named_chroot_autoupdate
is NOT set, but named_chrootdir IS set.

Remove required_files for named.conf, named-checkconf is enough.
2010-05-08 22:24:01 +00:00
Doug Barton
5857a1b3a6 MFC r206686:
Make 'stop' work even if ${name}_enable is not set.
2010-05-08 21:18:22 +00:00
Konstantin Belousov
19effccdee MFC r204051 (by imp):
n64 has a different size for KINFO_PROC_SIZE.

Approved by:	imp

MFC r207152:
Move the constants specifying the size of struct kinfo_proc into
machine-specific header files. Add KINFO_PROC32_SIZE for struct
kinfo_proc32 for architectures providing COMPAT_FREEBSD32. Add
CTASSERT for the size of struct kinfo_proc32.

MFC r207269:
Style: use #define<TAB> instead of #define<SPACE>.
2010-05-08 18:54:47 +00:00
Alexander Motin
c200853a4b MFC r207511:
Enable PCI busmastering explicitly to be sure.
2010-05-08 16:10:54 +00:00
Alexander Motin
967b11e3ef MFC r207499:
Make SATA XPT negotiate and enable some additional SATA features, such as:
 - device initiated power management (some devices support only this way);
 - Automatic Partial to Slumber Transition (more power saving);
 - DMA auto-activation (expected to slightly improve performance).
More features could be added later, when hardware supports.
2010-05-08 16:06:54 +00:00
Alexander Motin
a19b488e19 MFC r207498:
Add -d and -f arguments to `camcontrol cmd`, to execute DMA ATA commands.
2010-05-08 13:12:52 +00:00
Alexander Motin
6cd4144f88 MFC r207433:
Revert r198705.
As scottl@ noticed, max_target/max_lun was intended to be only a hint for
existing bus scanner. Some FC/SAS SIMs report fake values there, that are
smaller then maximum supported IDs. In that case this check makes impossible
manual scan outside hinted range.

For ATA/SATA SIMs respective check was instead implemented at SIM level.
Newer SCSI SIMs expected to have these checks at driver or firmware level.
Some older SCSI SIMs have no this check and the issues will get back there.
2010-05-08 13:09:36 +00:00
Alexander Motin
16dd0aa252 MFC r207432:
Add Target/LUN ID checks.
2010-05-08 13:07:50 +00:00
Alexander Motin
6e2b58a6e8 MFC r207431:
Add Target/LUN ID checks and deny access to targets 1-14 when PMP absent.
2010-05-08 13:05:27 +00:00
Alexander Motin
57a1dc2264 MFC r207430:
Add Target/LUN ID checks and deny access to targets 1-14 when PMP absent.
Enforce PMA bit clearing when PMP detached to avoid further scan timeouts.
2010-05-08 13:02:52 +00:00
Alexander Motin
78e93514f4 MFC r207428:
Report PMP absence using target 15, same as for precence (not a wildcard),
to not confuse target ID checks at SIMs.
2010-05-08 12:58:22 +00:00
Konstantin Belousov
5d3f8936f8 MFC r207463:
Remove debugging code that was not used once since commit.
2010-05-08 12:40:38 +00:00
Jilles Tjoelker
f1ce4e8acf MFC r207449: telnet: Fix infinite loop if local output generates SIGPIPE.
Instead of catching SIGPIPE and jumping out of the signal handler with
longjmp, ignore it and handle write errors to the local output by exiting
from there. I have changed the error message to mention the local output
instead of NetBSD's wrong "Connection closed by foreign host". Write errors
to the network were already handled by exiting immediately and this now
applies to EPIPE too.

The code assumed that SIGPIPE could only be generated by the network
connection; if it was generated by the local output, it would longjmp out of
the signal handler and write an error message which caused another SIGPIPE.

PR:		19773
Obtained from:	NetBSD
2010-05-07 20:58:50 +00:00
Michael Tuexen
0bd5a0aeb4 MFC 206758, 206840, 206891, 206892, 207099, 207191, 207197
* Fix a bug where SACKs are not sent when they should.
* Get delayed SACK working again.
* Really print the nr_mapping array when it should be printed.
* Update highest_tsn variables when sliding mapping arrays.
* Sending a FWDTSN chunk should not affect the retran count.
* Cleanups.
2010-05-07 20:02:36 +00:00
Konstantin Belousov
bb45d7918d MFC r207606:
Fix typo in comment.
2010-05-07 11:11:58 +00:00
Pyun YongHyeon
4f135ef6f8 MFC r207447:
Marvell 88E8059(Yukon Optima) is now supported.
2010-05-06 18:52:59 +00:00
Pyun YongHyeon
50e9463eb2 MFC r207446:
Add Marvell PHYG65G Gigabit PHY which is found on 88E8059 Yukon Optima.

  Tested by:	James LaLagna < jameslalagna <> gmail dot com >
2010-05-06 18:50:23 +00:00
Pyun YongHyeon
0deeb1ec10 MFC r207445:
Add basic support for Marvell 88E8059 Yukon Optima.

  Tested by:	James LaLagna < jameslalagna <> gmail dot com >
2010-05-06 18:47:16 +00:00
Pyun YongHyeon
6c3a42ef44 MFC r207409,207442:
r207409:
  Both RX_GMF_LP_THR and RX_GMF_UP_THR must be 16 bits register. If
  it is 8bits register then RX FIFO size can't exceed 2KB which is
  not true for almost all Yukon II controller.

r207442:
  Disable non-ASF packet flushing on Yukon Extreme as vendor's driver
  does. Without this change, Yukon Extreme seems to generate lots of
  RX FIFO overruns even though controller has available RX buffers.
  These excessive RX FIFO overruns generated lots of pause frames
  which in turn killed devices plugged into switch. It seems there is
  still occasional RX frame corruption on Yukon Extreme but this
  change seems to fix the pause frame storm.

  Reported by:	jhb
  Tested by:	jhb
2010-05-06 18:43:00 +00:00
Pyun YongHyeon
0fcc3770ff MFC r207381:
Now sge(4) supports hardware VLAN tag insertion/stripping.
2010-05-06 18:37:39 +00:00
Pyun YongHyeon
854e8c0af1 MFC r207380:
Enable VLAN hardware tag insertion/stripping. Due to lack of SiS190
  controller, I'm not sure whether this is also applicable to SiS190
  so this feature is only activated on SiS191 controller.
  In theory, controller reinitialization is not needed when VLAN tag
  configuration is changed, but xclin said controller was not stable
  whenever toggling VLAN tag bit. To address that, sge(4)
  reinitialize controller for VLAN configuration which seems to work
  as expected. VLAN tag information for TX/RX descriptor and
  configure bit of RxMacControl register was found by xclin.

  Submitted by:	xclin <xclin <> cs dot nctu dot edu dot tw > (initial version)
  Tested by:	xclin <xclin <> cs dot nctu dot edu dot tw >
2010-05-06 18:34:15 +00:00
Pyun YongHyeon
c033f53b7e MFC r207379:
Enable FCS stripping and padding 10 bytes bit of RX MAC control
  register. Due to lack of SiS190 controller, I'm not sure whether
  this is also applicable to SiS190 so this feature is only activated
  on SiS191 controller.
  The controller can pad 10 bytes before DMAing a received frame to
  RX buffer and received bytes include the padded bytes. This padding
  is very useful on strict-alignment architectures because driver
  does not have to copy received frame to align IP header on 4 bytes
  boundary. It also gives better RX performance on non-strict
  alignment architectures. Special thanks to xclin to give me
  valuable register information. Without his enthusiastic trial and
  errors this wouldn't be even possible.

  While I'm here tighten validity check of received frame. Controller
  clears RDS_CRCOK bit when it received bad CRC frames. xclin found
  that using loop back testing.

  Tested by:	xclin <xclin <> cs dot nctu dot edu dot tw >
2010-05-06 18:30:46 +00:00
Pyun YongHyeon
ac61735c1d MFC r207375-207377.
r207375:
  Preserve unknown bits of RX MAC control register when driver
  programs RX filter configuration. It seems RX MAC control register
  is one of key registers to get various offloading features as well
  as performance. Blindly clearing unrelated bits can result in
  unexpected results.

  Tested by:    xclin <xclin <> cs dot nctu dot edu dot tw >

r207376:
  Remove wrong link state chage.

r207377:
  Explicitly marks SiS190 to differentiate it from SiS191.
2010-05-06 18:17:36 +00:00
Xin LI
71bd361a5f MFC r207382:
bwn(4) will first appear in FreeBSD 8.1-RELEASE.
2010-05-06 17:03:27 +00:00
Marko Zec
eeb631840d MFC r207572:
When destroying a vnet, shut down all netgraph nodes tied to that vnet
  before proceeding with dismantling other protocol domains.

  This change only affects options VIMAGE builds.

  Reviewed by:  julian, bz
2010-05-06 09:54:01 +00:00
Marko Zec
ee17e64f2c MFC r207475:
Remove a redundant variable assignment.

  Reviewed by:  bz, rwatson
2010-05-06 09:52:32 +00:00
Bjoern A. Zeeb
480d7c6c41 MFC r207369:
MFP4: @176978-176982, 176984, 176990-176994, 177441

  "Whitspace" churn after the VIMAGE/VNET whirls.

  Remove the need for some "init" functions within the network
  stack, like pim6_init(), icmp_init() or significantly shorten
  others like ip6_init() and nd6_init(), using static initialization
  again where possible and formerly missed.

  Move (most) variables back to the place they used to be before the
  container structs and VIMAGE_GLOABLS (before r185088) and try to
  reduce the diff to stable/7 and earlier as good as possible,
  to help out-of-tree consumers to update from 6.x or 7.x to 8 or 9.

  This also removes some header file pollution for putatively
  static global variables.

  Revert VIMAGE specific changes in ipfilter::ip_auth.c, that are
  no longer needed.

  Reviewed by:	jhb
  Discussed with:	rwatson
  Sponsored by:	The FreeBSD Foundation
  Sponsored by:	CK Software GmbH
2010-05-06 06:44:19 +00:00
Konstantin Belousov
d4b0face18 MFC r207570:
Style and comment adjustements.
2010-05-06 04:57:10 +00:00
Rick Macklem
175abb7ed7 MFC: r207350
For the experimental NFS client, it should always flush dirty
buffers before closing the NFSv4 opens, as the comment states.
This patch deletes the call to nfscl_mustflush() which would
return 0 for the case where a delegation still exists, which
was incorrect and could cause crashes during recovery from
an expired lease.
2010-05-06 01:08:36 +00:00
Rick Macklem
5783c9fe30 MFC: r207349
Delete a diagnostic statement that is no longer useful from
the experimental NFS client.
2010-05-06 00:49:10 +00:00
Jilles Tjoelker
3a425b8d28 MFC r206760: getcwd(3): Clarify that EACCES may or may not be checked.
POSIX permits but does not require checking access on the current and parent
directories.

Because various programs do not like it if getcwd(3) fails, it seems best
to avoid checking access as much as possible. There are various reports in
GNATS about this (search for getcwd).

Our getcwd(3) implementation first queries the kernel for the pathname
directly, which does not check any permissions but sometimes fails, and then
falls back to reading all parent directories for the names.

PR:		standards/44425
2010-05-05 22:17:17 +00:00
Jilles Tjoelker
2239c5fda0 MFC r207190: unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY
like rmdir() for non-empty directories.

POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer ENOTEMPTY,
following BSD tradition.
2010-05-05 22:12:56 +00:00
Jilles Tjoelker
ad5308635f MFC r207186: sysctl(3): Update description of various kern.* variables.
Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3)
(which is a more convenient way to access some of the variables).

PR:		116480
2010-05-05 22:00:57 +00:00
Ken Smith
8946c3d8ce Merge r206423:
> Shift the version of perl used by the release build process over to
> perl-5.10.  This aligns the release build process with the current
> default version of perl in the ports tree.
2010-05-05 16:58:29 +00:00
Ken Smith
7f4bf2302e Merge r206422:
> Pass the HTTP_PROXY and FTP_PROXY environment variables through in addition
> to FTP_PASSIVE_MODE so release building works for a machine that needs
> to use a proxy.

PR:		misc/137688
Submitted by:	Michael Leun
2010-05-05 16:25:57 +00:00
Gavin Atkinson
d0fc28afaa Merge r205386 from head:
Fix command example, presumed leftovers of old markup.
2010-05-05 12:39:44 +00:00
Gavin Atkinson
e85a0af436 Merge r205155 from head:
Add extra Xrefs

PR:		docs/114184
Submitted by:	Julian Stacey  <jhs berklix.org>
2010-05-05 12:38:22 +00:00
Gavin Atkinson
4810d94317 Merge r203684 from head (mainly to make future merges easier for people):
Update .Dt on these man pages: the kernel modules and corresponding
  man pages are installed on more platforms than just i386.
2010-05-05 12:37:07 +00:00
Konstantin Belousov
5e7622a371 MFC r207009:
C language does not has references, it provides pointers.
2010-05-05 09:29:34 +00:00
Alexander Motin
5d86e524cf MFC r207282:
Update device identify data and serial number when device change detected.
Reprobe immediately following this should have fresh data.
2010-05-05 05:18:08 +00:00
Alexander Motin
79206e9340 MFC r207490:
Add xpt_schedule_dev_sendq() call, lost at r203108. It is not needed in
usual operation, but required in some conditions to make queue running
after being shrinked.
2010-05-05 05:11:12 +00:00
Xin LI
9120f4c885 MFC r206973:
When CPUTYPE is defined to any value, on amd64 platform "mmx" is
available through MACHINE_CPU, indicating the CPU supports that
feature, as done by revision 138685.

This changeset adds "mmx" into the default amd64 MACHINE_CPU list
when no CPUTYPE is specified to provide consistent behavior.

PR:		amd64/145593
Submitted by:	mm
2010-05-05 00:38:20 +00:00
Andrew Thompson
ba752236ec MFC r201797
Remove unused uhci_dump_qhs().
2010-05-04 21:16:01 +00:00
Xin LI
9ea9cdd0e0 MFC r196981, r200844, r201630, r203977, r203978, r204352:
r196981 (rdivacky):

Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups.

Obtained from:	NetBSD

r200844 (jh):

Don't print the archive name with -p and -q options.

PR:		bin/141280

r201630 (kientzle):

When restoring files, use the mode for the mode.

Thanks to: Jun Kuriyama for pointing this out

r203977 (gavin):

Implement the rename query, for when a file with the same name as the one
about to be extracted already exists.  The question, and interpretation
of the response is deliberately compatible with Info-Zip.

This change was originally obtained from NetBSD, but has three changes:
 - better compatibility with Info-Zip in the handling of ^D
 - Use getdelim() rather than getline()
 - bug fix: != changed to == in the "file rename" code

I suspect the latter is also a bug in NetBSD, but I can't easily confirm
this.

PR:		bin/143307
Reviewed by:	rdivacky (change to unzip.c only)
Obtained from:	NetBSD src/usr.bin/unzip/unzip.c 1.8

r203978 (gavin):

Bump .Dd for r203977

r204352 (ru):

Fixed static linkage.

==

Requested by:	Alex Kozlov <spam rm-rf kiev ua>
2010-05-04 19:18:00 +00:00
Martin Matuska
8d0dcb5513 MFC r207480:
Change description of tunable group vfs.zfs.txg to be more
understandable.

Approved by:    pjd, delphij (mentor)
2010-05-04 08:37:28 +00:00
Edwin Groothuis
35c5f1fc0b MFC of r201613, r201627
Be able to specify a certain date and/or time for which to calculate
the phase of the moon.
While not worlds best improvements, it will help calendar(1) later on.

Also closed bin/79008

PR:		bin/79008
2010-05-04 08:06:53 +00:00
Konstantin Belousov
14d447de52 MFC r206893:
Slightly modernize realpath(3).

SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().

MFC r206898:
Free() is not allowed to modify errno, remove safety brackets around it.
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.

MFC r206997:
Move realpath(3) prototype to a POSIX section.

MFC r206998:
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration.
2010-05-04 05:34:18 +00:00
Konstantin Belousov
22df1496d2 MFC r206894:
The cache_enter(9) function shall not be called for doomed dvp.
Assert this.

Verify that dvp is not reclaimed before calling cache_enter().
2010-05-04 05:25:48 +00:00
Konstantin Belousov
88389d6103 MFC r206264:
When OOM searches for a process to kill, ignore the processes already
killed by OOM. When killed process waits for a page allocation, try to
satisfy the request as fast as possible.
2010-05-04 05:14:43 +00:00