]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r241845,r241934:
eadler [Fri, 26 Oct 2012 00:34:27 +0000 (00:34 +0000)]
MFC r241845,r241934:
Sysinstall has been removed from base.

Approved by: cperciva (implicit)

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

11 years agoMFC r240210:
delphij [Fri, 26 Oct 2012 00:28:29 +0000 (00:28 +0000)]
MFC r240210:

It seems that what the code really meant is that when a write is completed,
do a BUS_DMASYNC_POSTWRITE over the DMA map.  The way it currently is would
only do POSTREAD for read transactions.

Submitted by: Sascha Wildner

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

11 years agoMFC 241555:
n_hibma [Thu, 25 Oct 2012 21:22:05 +0000 (21:22 +0000)]
MFC 241555:

 Implement modem control in u3g. Tested on Option GTM382W, Huawei E220,
 and Sierra Wireless MC8790V. Also implement the .ucom_poll method.

 Note: It resolves ppp hanging during the PPp> phase.

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

11 years agoMFC 241496:
n_hibma [Thu, 25 Oct 2012 20:45:57 +0000 (20:45 +0000)]
MFC 241496:

Some 3G modems return the wrong signature in echo packets and make it
impossible to use LQR/ECHO. They return want_magic instead.

With this change it is now possible to use

enable lqr
set lqrperiod 5
enable echo
set echoperiod 5

in your ppp.conf file.

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

11 years agoMFC r241827:
eadler [Thu, 25 Oct 2012 03:30:06 +0000 (03:30 +0000)]
MFC r241827:
Mark bsdar_errc as __dead2 to help code analysis tools.

PR: bin/172636
Approved by: cperciva (implicit)

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

11 years agoMFC r241825:
eadler [Thu, 25 Oct 2012 03:29:09 +0000 (03:29 +0000)]
MFC r241825:
Print flags as hex instead of an integer.

PR: kern/168210
Approved by: cperciva (implicit)

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

11 years agoMFC r241847:
eadler [Thu, 25 Oct 2012 03:27:53 +0000 (03:27 +0000)]
MFC r241847:
Free buf when its no longer used. This helps eliminate a static analysis
warning.

PR: ports/172566
Approved by: cperciva (implicit)

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

11 years agoMFC r241842:
eadler [Thu, 25 Oct 2012 03:24:24 +0000 (03:24 +0000)]
MFC r241842:
Add support for gjournal to dumpfs

PR: 165821
Approved by: cperciva (implicit)

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

11 years agoMFC r241837:
eadler [Thu, 25 Oct 2012 03:21:43 +0000 (03:21 +0000)]
MFC r241837:
Fix build if COMPAT_43 is defined without one of
COMPAT_FREEBSD[4567]

Approved by: cperciva (implicit)

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

11 years agoMFC r241846:
eadler [Thu, 25 Oct 2012 03:20:00 +0000 (03:20 +0000)]
MFC r241846:
bcd isn't installed setuid.
caesar isn't installed setuid.

For the archaeologists:
it seems this call originally came from NetBSD PR 5970 and 5945

PR: 172566
Approved by: cperciva (implicit)

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

11 years agoMFC r241893:
eadler [Thu, 25 Oct 2012 03:17:02 +0000 (03:17 +0000)]
MFC r241893:
Update re members to reality

Approved by: cperciva (implicit)

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

11 years agoMFC r241832:
eadler [Thu, 25 Oct 2012 03:15:24 +0000 (03:15 +0000)]
MFC r241832:
Covert regression test to python 3

Approved by: cperciva (implicit)

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

11 years agoMFC r241849:
eadler [Thu, 25 Oct 2012 03:14:17 +0000 (03:14 +0000)]
MFC r241849:
Fix typo in error when unable to create TCP socket

PR: bin/172490
Approved by: cperciva (implicit)

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

11 years agoMFC r241834:
eadler [Thu, 25 Oct 2012 03:12:20 +0000 (03:12 +0000)]
MFC r241834:
Make do_uniq work with python3

Approved by: cperciva (implicit)

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

11 years agoMFC r241839:
eadler [Thu, 25 Oct 2012 03:11:18 +0000 (03:11 +0000)]
MFC r241839:
Be a bit more lenient in the maximum number of redirects allowed.
Chrome and Firefox have a limit of 20. IE has a limit of 8.

Approved by: cperciva (implicit)

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

11 years agoMFC r241833:
eadler [Thu, 25 Oct 2012 01:27:01 +0000 (01:27 +0000)]
MFC r241833:
Make xen python scripts work with python3

Approved by: cperciva (implicit)

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

11 years agoMFC r241838:
eadler [Thu, 25 Oct 2012 01:23:41 +0000 (01:23 +0000)]
MFC r241838:
Remove unused variable. Newer versions of gcc care.

Approved by: cperciva (implicit)

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

11 years agoMFC r241829:
eadler [Thu, 25 Oct 2012 01:20:19 +0000 (01:20 +0000)]
MFC r241829:
Fix conditional expression: previously a bit vector was being operated
on by a logical not instead of the entire expression.

Approved by: cperciva (implicit)

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

11 years agoMFC r241835:
eadler [Thu, 25 Oct 2012 01:19:02 +0000 (01:19 +0000)]
MFC r241835:
Fix conditional expression: previously a bitvector would be operated
on by a logical not.

Approved by: cperciva (implicit)

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

11 years agoMFC: r241582
rmacklem [Thu, 25 Oct 2012 00:45:51 +0000 (00:45 +0000)]
MFC: r241582
Add a comment describing why r241097 was done.

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

11 years agoMerge r240680 from head:
gavin [Wed, 24 Oct 2012 19:22:43 +0000 (19:22 +0000)]
Merge r240680 from head:

  Align the PCI Express #defines with the style used for the PCI-X
  #defines.  This has the advantage that it makes the names more
  compact, and also allows us to correct the non-uniform naming of
  the PCIM_LINK_* defines, making them all consistent amongst themselves.

  This is a mostly mechanical rename:
    s/PCIR_EXPRESS_/PCIER_/g
    s/PCIM_EXP_/PCIEM_/g
    s/PCIM_LINK_/PCIEM_LINK_/g

  In this MFC, #defines have been added for the old names to assist
  out-of-tree drivers.

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

11 years agoMerge r240680 from head:
gavin [Wed, 24 Oct 2012 19:04:17 +0000 (19:04 +0000)]
Merge r240680 from head:

  Align the PCI Express #defines with the style used for the PCI-X
  #defines.  This has the advantage that it makes the names more
  compact, and also allows us to correct the non-uniform naming of
  the PCIM_LINK_* defines, making them all consistent amongst themselves.

  This is a mostly mechanical rename:
    s/PCIR_EXPRESS_/PCIER_/g
    s/PCIM_EXP_/PCIEM_/g
    s/PCIM_LINK_/PCIEM_LINK_/g

  In this MFC, #defines have been added for the old names to assist
  out-of-tree drivers.

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

11 years agoMerge r241482, r241491 from head:
glebius [Wed, 24 Oct 2012 10:44:07 +0000 (10:44 +0000)]
Merge r241482, r241491 from head:
  Be more explicit on how "intact" incoming packets in raw sockets are.

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

11 years agoMerge r240386, r240735 from head:
glebius [Wed, 24 Oct 2012 10:36:33 +0000 (10:36 +0000)]
Merge r240386, r240735 from head:
  Document conditions for IP_SENDSRCADDR socket option.

  Obtained from:        r167342 commit message

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

11 years agoMerge r240385 from head:
glebius [Wed, 24 Oct 2012 10:32:39 +0000 (10:32 +0000)]
Merge r240385 from head:
  Describe in detail required conditions for receiving the SCM_CREDS
  control message and suggest to use LOCAL_CREDS setsockopt() for
  reliability.

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

11 years agoMerge r240354 from head:
glebius [Wed, 24 Oct 2012 10:30:40 +0000 (10:30 +0000)]
Merge r240354 from head:
  Do not count kernel threads as processes for hrSystemProcesses OID.

  PR:           bin/160494
  Submitted by: Jeremy Chadwick <freebsd jdc.parodius.com>

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

11 years agoMerge r240234, r240271, r240734 from head:
glebius [Wed, 24 Oct 2012 10:28:12 +0000 (10:28 +0000)]
Merge r240234, r240271, r240734 from head:

r240234:
  The first part of check_priv() function, that attempts to obtain creds
  from the control message, actually never worked. This means check_priv()
  didn't work for local dgram sockets.

  The SCM_CREDS control messages is received only in two cases:

  1) If we did setsockopt(LOCAL_CREDS) on our socket, and in this case
     the message is struct sockcred.
  2) If sender did supplied SCM_CREDS control message in his sendmsg()
     syscall. In this case the message is struct cmsgcred.

  We can't rely on 2), so we will use 1) for dgram sockets. For stream
  sockets it is more reliable to obtain accept-time credentials, since
  SCM_CREDS control message is attached only on first read. Thus:

  o Do setsockopt(LOCAL_CREDS) on local dgram sockets.
  o Split check_priv() into check_priv_stream() and check_priv_dgram(),
    and call them from recv_stream() and recv_dgram() respectively.
  o Don't provide space for SCM_CREDS control message in recv_stream().
  o Provide space for SCM_CREDS control message in recv_dgram(), but there
    is no need to initialize anything in it.
  o In recv_dgram() do not blindly expect that first message is SCM_CREDS,
    instead use correct search cycle through control messages.

r240271:
  For UDP transport set IP_RECVDSTADDR sockopt on the socket, and provide
  IP_SENDSRCADDR control with datagram message we reply with. This makes
  bsnmpd reply from exactly same address that request was sent to, thus
  successfully bypassing stateful firewalls or other kinds of strict checking.

r240734:
  Re-do r240271:
  - Set IP_RECVDSTADDR sockopt on the socket only in case if
    it is INADDR_ANY bound.
  - Supply IP_SENDSRCADDR control message only if we did receive
    IP_RECVDSTADDR control message.

  This fixes operation of snmpd bound to a specific local IP address.

PR: bin/171279

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

11 years agoMerge r240214 from head:
glebius [Wed, 24 Oct 2012 10:14:21 +0000 (10:14 +0000)]
Merge r240214 from head:
  Supply the pr_ctloutput method for local datagram sockets,
  so that setsockopt() and getsockopt() work on them.

  This makes 'tools/regression/sockets/unix_cmsg -t dgram'
  more successful.

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

11 years agoMerge 240073 from head:
glebius [Wed, 24 Oct 2012 09:53:34 +0000 (09:53 +0000)]
Merge 240073 from head:
  Provide a sysctl switch that allows to install ARP entries
  with multicast bit set. FreeBSD refuses to install such
  entries since 9.0, and this broke installations running
  Microsoft NLB, which are violating standards.

  Tested by:    Tarasov Oleg <oleg_tarasov sg-tea.com>

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

11 years agoMerge r240072 from head:
glebius [Wed, 24 Oct 2012 09:46:52 +0000 (09:46 +0000)]
Merge r240072 from head:
  Explicitly document all variables in the net.link.ether.inet MIB.

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

11 years agoMerge 239090 from head:
glebius [Wed, 24 Oct 2012 09:39:07 +0000 (09:39 +0000)]
Merge 239090 from head:
  Add supported device.

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

11 years agoMerge r237975 from head:
glebius [Wed, 24 Oct 2012 09:32:34 +0000 (09:32 +0000)]
Merge r237975 from head:
  - Call bus_generic_attach() at end of hdspe_attach().
  - Use own devclass_t in DRIVER_MODULE().

  This fixes operation of hdspe(4) when built as loadable module.

  Submitted by: Ruslan Bukin <br bsdpad.com>

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

11 years agoMFC r241975: Add the release package directory for 9.1-RELEASE.
kensmith [Wed, 24 Oct 2012 02:00:54 +0000 (02:00 +0000)]
MFC r241975: Add the release package directory for 9.1-RELEASE.

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

11 years agoUpdate the make version required to use an empty command for
jhb [Tue, 23 Oct 2012 19:04:05 +0000 (19:04 +0000)]
Update the make version required to use an empty command for
NORMAL_CTFCONVERT to require the most recent MFC to 9.

Submitted by: Petr Lampa  lampa  fit vutbr cz

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

11 years agoMFC r241418:
mav [Tue, 23 Oct 2012 15:48:42 +0000 (15:48 +0000)]
MFC r241418:
NULL-ify last previously used pointer instead of last possible pointer.
This should be only a cosmetic change.

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

11 years agoMFC r239175:
mav [Tue, 23 Oct 2012 15:46:02 +0000 (15:46 +0000)]
MFC r239175:
Add missing FAILED event to g_raid_subdisk_event2str() to print it properly
in debug messages.

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

11 years agoMFC r241536:
mav [Tue, 23 Oct 2012 15:37:57 +0000 (15:37 +0000)]
MFC r241536:
Add explicit check for not set time inside cam_periph_freeze_after_event().

System time is set later on boot process then initial bus scan by CAM.
Until that moment microtime() is equal to microuptime(), and if system
boots quickly, the value can be close to zero. That causes settle time
waiting even for buses that don't use reset during probe.

On my test system this reduces boot time by 1 second if USB enabled, or
by 4 seconds if USB disabled.  CAM waited for ctl2cam0 bus "settle".

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

11 years agoMFC r241510:
mav [Tue, 23 Oct 2012 15:36:23 +0000 (15:36 +0000)]
MFC r241510:
Don't exclude XPT SIM from locking in xpt_create_path_unlocked().
We don't want xpt periph, device, target or bus disappeared because of
incorrect reference counting.

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

11 years agoMFC r241509:
mav [Tue, 23 Oct 2012 15:34:51 +0000 (15:34 +0000)]
MFC r241509:
Use xpt_create_path_unlocked() for initial debug path compilation because
we are not holding respective SIM lock.

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

11 years agoMFC r241508:
mav [Tue, 23 Oct 2012 15:33:32 +0000 (15:33 +0000)]
MFC r241508:
Extend SIM lock coverage during the bus registration process.

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

11 years agoMFC r241504:
mav [Tue, 23 Oct 2012 15:31:50 +0000 (15:31 +0000)]
MFC r241504:
Fix XPT_DEBUG paths operations locking:
 - Extend the lock to cover xpt_path_release() for the new path.
 - While xpt_action() is called while holding right SIM lock for the new
   bus, the old path release may require different SIM lock. So we have
   to temporary drop the new lock and get the old one.

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

11 years agoMFC r241485:
mav [Tue, 23 Oct 2012 15:27:32 +0000 (15:27 +0000)]
MFC r241485:
Protect xpt_getattr() calls with the SIM lock and assert that.

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

11 years agoMFC r241456:
mav [Tue, 23 Oct 2012 15:25:19 +0000 (15:25 +0000)]
MFC r241456:
Use separate malloc buckets for CAM devices, CCBs and paths. This will
make it easier to track down the source of any use after free problems.

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

11 years agoMFC r241455:
mav [Tue, 23 Oct 2012 15:22:11 +0000 (15:22 +0000)]
MFC r241455:
Don't duplicate path/ccb allocation code, use existing functions.

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

11 years agoMFC r241410:
mav [Tue, 23 Oct 2012 15:20:59 +0000 (15:20 +0000)]
MFC r241410:
There are SCSI conditions that are not an errors. In those cases cderror()
returns zero while request status is not CAM_REQ_CMP.  That could cause
partial device attach or other unexpected results.

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

11 years agoMFC r241405:
mav [Tue, 23 Oct 2012 15:18:16 +0000 (15:18 +0000)]
MFC r241405:
Really handle xpt_compile_path() error in xpt_bus_register() instead of
print error message and probably crash just after it on NULL dereference.

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

11 years agoMFC r241404:
mav [Tue, 23 Oct 2012 15:16:50 +0000 (15:16 +0000)]
MFC r241404:
Remove 'periph == NULL' check from bunch of periph drivers.
This condition can never be true as functions are called from single place
and the checks just pollute the code and confuse Clang Static Analyzer.

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

11 years agoMFC r241028:
mav [Tue, 23 Oct 2012 15:15:16 +0000 (15:15 +0000)]
MFC r241028:
Change queue overflow checks from DIAGNOSTIC+panic() to KASSERT() to make
them enabled on HEAD by default. It is probably better to do single compare
then hunt for unexpected memory corruption.

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

11 years agoUpdate the make version required to use an empty command for CTFCONVERT_CMD
jhb [Tue, 23 Oct 2012 12:37:44 +0000 (12:37 +0000)]
Update the make version required to use an empty command for CTFCONVERT_CMD
to require the most recent MFC to 9.

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

11 years agoMFC 228157:
jhb [Tue, 23 Oct 2012 12:37:02 +0000 (12:37 +0000)]
MFC 228157:
- Fix segmentation fault when running "+command" when run with -jX -n due
  to Compat_RunCommand() being called with `cmd' that is not on the
  node->commands list
- Make ellipsis ("..." command) handling consistent: check for "..." command
  in job make after variables expansion to match compat make behavior
- Fix empty command handling (after variables expansion and @+- modifiers
  are processed): now empty commands are ignored in compat make and are not
  printed in job make case

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

11 years agoMFC r241626, r241642.
np [Mon, 22 Oct 2012 17:56:15 +0000 (17:56 +0000)]
MFC r241626, r241642.

r241626:
Whitespace cleanup.

r241642:
Always provide sndbuf and MSS values in a flowc command, even when the
driver is going to abort the connection right after the flowc.

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

11 years agoMerge r240892,r240893
melifaro [Mon, 22 Oct 2012 12:39:57 +0000 (12:39 +0000)]
Merge r240892,r240893

Permit table to be used as IPv6 address.
Whitespace fixes

Reported by: Serhiy Popov <sergiuspso@ukr.net>

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

11 years agoMFC: r241740
marius [Mon, 22 Oct 2012 11:10:14 +0000 (11:10 +0000)]
MFC: r241740

- Remove an unused header.
- Don't waste a delay slot.

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

11 years agoMFC: r241734
marius [Mon, 22 Oct 2012 11:07:59 +0000 (11:07 +0000)]
MFC: r241734

Let SCHED_ULE give affinity to the CPU the tick interrupt triggered on
when running tick_process(), similarly to what the x86 equivalents of
this function do, however employing the less racy sequence also used in
intr_event_handle().

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

11 years agoMerge of 241869
edwin [Mon, 22 Oct 2012 10:31:28 +0000 (10:31 +0000)]
Merge of 241869

Import of tzdata2012g

 - Fix end of DST in Gaza and Hebron
 - Western Samoa: DST start at 30 Septembet 2012 and finished at 7 April 2013.

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

11 years agoMFC r241597:
kib [Mon, 22 Oct 2012 09:07:12 +0000 (09:07 +0000)]
MFC r241597:
Acquire the rangelock for truncate(2) as well.

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

11 years agoMFC r236852: touch: Add the -d option from POSIX.1-2008.
jilles [Sun, 21 Oct 2012 21:47:58 +0000 (21:47 +0000)]
MFC r236852: touch: Add the -d option from POSIX.1-2008.

This is much like -t but with a different format which is ISO8601-like and
allows fractions of a second.

The precision is limited to microseconds because of utimes() and friends,
even though stat() returns nanoseconds.

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

11 years agoMFC r241556:
kib [Sun, 21 Oct 2012 12:33:38 +0000 (12:33 +0000)]
MFC r241556:
Add a KPI to allow to reserve some amount of space in the numvnodes
counter, without actually allocating the vnodes.

For KBI stability, the td_vp_reserv was moved to the end of struct thread.

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

11 years agoMFC r241550:
kib [Sun, 21 Oct 2012 12:17:22 +0000 (12:17 +0000)]
MFC r241550:
MFamd64: add machdep.uprintf_signal.

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

11 years agoMFC r241549:
kib [Sun, 21 Oct 2012 12:15:58 +0000 (12:15 +0000)]
MFC r241549:
Print the %rip value for uprintf_signal.

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

11 years agoMFC: r241679
marius [Sun, 21 Oct 2012 11:43:43 +0000 (11:43 +0000)]
MFC: r241679

It turns out that as documented, PCF8563_R_SECOND_VL (i.e. battery low)
doesn't automatically clear when VDD rises above Vlow again and needs to be
cleared manually. However, apparently this needs all of the time registers
to be set, i.e. pcf8563_settime(), and not just PCF8563_R_SECOND in order
for PCF8563_R_SECOND_VL to stick. Thus, we just issue a warning during
pcf8563_attach() rather than failing with ENXIO in case it is set.

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

11 years agoMFC r239382:
kuriyama [Sun, 21 Oct 2012 10:19:07 +0000 (10:19 +0000)]
MFC r239382:

- Allow to pass extra parameters for each jails.
- To achieve above, convert jail(8) invocation to use new style
  command line "-c" flag.

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

11 years agoMFC r228120:
brooks [Sun, 21 Oct 2012 09:31:48 +0000 (09:31 +0000)]
MFC r228120:

Allow NO_FOO to override WITH_FOO that could be specified in /etc/src.conf.

This is required to override knobs (e.g. WITH_PROFILE) during buildworld
stages in Makefile.inc1 (otherwise the build is stopped due to both WITH_FOO
and WITHOUT_FOO defined).

PR: misc/172873

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

11 years agoMFC r241507: Make a command for pkg_info changeable like
ume [Sat, 20 Oct 2012 17:27:57 +0000 (17:27 +0000)]
MFC r241507: Make a command for pkg_info changeable like
pkg_version in /etc/periodic/weekly/400.status-pkg to be
friendly with pkgng.

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

11 years agoMFC r241297: zvol: set mediasize in geom provider right upon its creation
avg [Sat, 20 Oct 2012 09:25:28 +0000 (09:25 +0000)]
MFC r241297: zvol: set mediasize in geom provider right upon its creation

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

11 years agoMFC r241280: make: report :M or :N pattern in debug mode
avg [Sat, 20 Oct 2012 09:22:57 +0000 (09:22 +0000)]
MFC r241280: make: report :M or :N pattern in debug mode

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

11 years agoMFC r241753:
delphij [Sat, 20 Oct 2012 07:38:42 +0000 (07:38 +0000)]
MFC r241753:

Integrate changes from LSI vendor driver 10.80.00.005 to FreeBSD.

PR: kern/172833
Submitted by: "Charles O'Donnell" <cao bus net>

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

11 years agoMFC r241444:
mav [Fri, 19 Oct 2012 19:27:33 +0000 (19:27 +0000)]
MFC r241444:
Increase device CCB queue array size by CAM_RL_VALUES - 1 (4) elements.
It is required to store extra recovery requests in case of bus resets.
On ATA/SATA this fixes assertion panics on HEAD with INVARIANTS enabled or
possible memory corruptions otherwise if timeout/reset happens when device
CCB queue is already full.

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

11 years agoMFC r241375:
mav [Fri, 19 Oct 2012 17:39:15 +0000 (17:39 +0000)]
MFC r241375:
Cast vendor-specific spell on VIA VT1818S codecs alike to VT1708S to
make analog input loopback and dual-stream playback work by enabling
signal mixing by nid 22, as it should be according to info returned by
the CODEC.  Otherwise pin nid 28 receives only signal from DAC nid 16.

PR:             kern/169124

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

11 years agoMFC r241613:
eadler [Fri, 19 Oct 2012 00:32:17 +0000 (00:32 +0000)]
MFC r241613:
Add support for samsung HM250JI

PR: usb/121474
Approved by: cperciva (implicit)

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

11 years agoMFC r241602:
eadler [Fri, 19 Oct 2012 00:26:18 +0000 (00:26 +0000)]
MFC r241602:

Add a bunch more example completions.
Approved by: cperciva (implicit)

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

11 years agoMFC 227429,228121,228124,228137,228140,228141,228147,228153,228158,228311,
jhb [Fri, 19 Oct 2012 00:22:09 +0000 (00:22 +0000)]
MFC 227429,228121,228124,228137,228140,228141,228147,228153,228158,228311,
241395,241396:
Various fixes to WITH_CTF:
- Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif)
  instead of executing a shell on every object or executable/library file.
- CTF knob is now implemented using common scheme: MK_CTF=yes/no is
  defined based on WITH/WITHOUT_CTF settings, default is WITHOUT_CTF,
  NO_CTF overrides WITH_CTF (used by Makefile.inc1)
- Add missing calls to ctfconvert/ctfmerge for various edge cases.

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

11 years agoMFC: r239941
marius [Thu, 18 Oct 2012 15:24:43 +0000 (15:24 +0000)]
MFC: r239941

Add a global MD macro for the VIS block size instead of duplicating
it and using magic values all over the place.

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

11 years agoMFC: r239089
marius [Thu, 18 Oct 2012 15:20:37 +0000 (15:20 +0000)]
MFC: r239089

- Merge from NetBSD:
  When issuing a non-DMA command, make sure to set the "remaining length of
  command to be transferred via DMA" (sc_cmdlen) to zero up-front, otherwise
  we might get confused on command competition interrupt (no DMA active but
  still data left to transfer).
- Implement handling of MSG_IGN_WIDE_RESIDUE which some targets produce, as
  just rejecting these leads to a resend and disconnect loop.
  Reported and tested by: mjacob

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

11 years agoRevert unintended part of r241681.
marius [Thu, 18 Oct 2012 12:22:12 +0000 (12:22 +0000)]
Revert unintended part of r241681.

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

11 years agoMFC: r239864
marius [Thu, 18 Oct 2012 12:06:26 +0000 (12:06 +0000)]
MFC: r239864

- Unlike cache invalidation and TLB demapping IPIs, reading registers from
  other CPUs doesn't require locking so get rid of it. As the latter is used
  for the timecounter on certain machine models, using a spin lock in this
  case can lead to a deadlock with the upcoming callout(9) rework.
- Merge r134227/r167250 from x86:
  Avoid cross-IPI SMP deadlock by using the smp_ipi_mtx spin lock not only
  for smp_rendezvous_cpus() but also for the MD cache invalidation and TLB
  demapping IPIs.
- Mark some unused function arguments as such.

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

11 years agoMFC r241581:
eadler [Thu, 18 Oct 2012 01:14:22 +0000 (01:14 +0000)]
MFC r241581:

Fix minor nits:
use a comma after "i.e."
sentences begin on new lines.

No .Dd bump for trivial modification.

Approved by: cperciva (implicit)

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

11 years agoMFC r241580:
eadler [Thu, 18 Oct 2012 01:12:15 +0000 (01:12 +0000)]
MFC r241580:
Add support for the USB DISK Pro PMAP.

This patch has sit for 6 years in the PR database.

PR: usb/96381
Approved by: cperciva (implicit)

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

11 years agoMFC r241305: ata_da: set disk::d_ident from serial number
avg [Wed, 17 Oct 2012 11:35:06 +0000 (11:35 +0000)]
MFC r241305: ata_da: set disk::d_ident from serial number

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

11 years agoMFC r241304: procstat_getprocs: honor kvm_getprocs interface - cnt is signed
avg [Wed, 17 Oct 2012 11:33:32 +0000 (11:33 +0000)]
MFC r241304: procstat_getprocs: honor kvm_getprocs interface - cnt is signed

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

11 years agoMFC r241295: cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit
avg [Wed, 17 Oct 2012 11:30:14 +0000 (11:30 +0000)]
MFC r241295: cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit

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

11 years agoMFC r240831: zfs: allow a zvol to be used as a pool vdev, again
avg [Wed, 17 Oct 2012 11:28:21 +0000 (11:28 +0000)]
MFC r240831: zfs: allow a zvol to be used as a pool vdev, again

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

11 years agoMFC r241303: kvm_getprocs: gracefully handle errors from kvm_deadprocs
avg [Wed, 17 Oct 2012 11:26:27 +0000 (11:26 +0000)]
MFC r241303: kvm_getprocs: gracefully handle errors from kvm_deadprocs

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

11 years agoMFC r241291: zfs boot spa_status: print bootfs for each reported pool
avg [Wed, 17 Oct 2012 11:24:06 +0000 (11:24 +0000)]
MFC r241291: zfs boot spa_status: print bootfs for each reported pool

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

11 years agoMFC r241552:
eadler [Wed, 17 Oct 2012 00:33:10 +0000 (00:33 +0000)]
MFC r241552:
Add support for  Feiya Elango USB MicroSD

PR: usb/153599
Approved by: cperciva (implicit)

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

11 years agoMFC r241551:
eadler [Wed, 17 Oct 2012 00:30:33 +0000 (00:30 +0000)]
MFC r241551:
Add support for the Buffalo RUF2 flash drive.

PR: usb/166848
Approved by: cperciva (implicit)

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

11 years agoMFC r241542:
eadler [Wed, 17 Oct 2012 00:27:29 +0000 (00:27 +0000)]
MFC r241542:
Don't document the PORTSSUPFILE variable. Even though this still works,
try to discourage users from depending on it.

Approved by: cperciva (implicit)

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

11 years agoMFC r240955 (partial):
mm [Tue, 16 Oct 2012 19:58:15 +0000 (19:58 +0000)]
MFC r240955 (partial):
Remove unsupported "-r" option from zfs send.

Illumos issued covered:
2811 missing implementation: zfs send -r

PR: kern/171761

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

11 years agoMFC r240164, r240203:
fabient [Tue, 16 Oct 2012 13:27:20 +0000 (13:27 +0000)]
MFC r240164, r240203:
Add Intel Ivy Bridge support to hwpmc(9).
Update offcore RSP token for Sandy Bridge.
Note: No uncore support.

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

11 years agoMFC r241143:
pfg [Tue, 16 Oct 2012 01:37:17 +0000 (01:37 +0000)]
MFC r241143:

rpc: be sure to free cl_netid and cl_tp.

When creating a client with clnt_tli_create, it uses strdup to copy
strings for these fields if nconf is passed in. clnt_dg_destroy frees
these strings already. Make sure clnt_vc_destroy frees them in the same
way.

Tested by: David Wolfskill
Obtained from: Bull GNU/Linux NFSv4 Project (libtirpc)

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

11 years agoMFC: r241214
jkim [Mon, 15 Oct 2012 21:53:26 +0000 (21:53 +0000)]
MFC: r241214

Do not install incomplete unwind.h from clang.

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

11 years agomx1 -> smarthost.ysv
peter [Mon, 15 Oct 2012 14:14:47 +0000 (14:14 +0000)]
mx1 -> smarthost.ysv

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

11 years agoMFC r241401, r241416.
np [Mon, 15 Oct 2012 06:48:50 +0000 (06:48 +0000)]
MFC r241401, r241416.

r241401:
Add an "i2c" subcommand to cxgbetool.  You can use this to read
information from the transceivers connected to the ports of a
cxgbe(4) based card.

# cxgbetool t4nex0 i2c <port_id> <dev_addr> <addr> [<count>]

For example:
# cxgbetool t4nex0 i2c 0 0xa0 3
0x10 [16]

(As per SFF-8472 the SFP+ module is at 0xa0 and bit 4 in the value at
address 3 indicates it's a 10Gbase-SR module, which it is.)

r241416:
Add a "clearstats" subcommand to cxgbetool that lets you clear the
MAC statistics for any port.

For example:
# cxgbetool t4nex0 clearstats 0

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

11 years agoMFC r241397-241399, r241409, r241493-24194.
np [Mon, 15 Oct 2012 06:41:54 +0000 (06:41 +0000)]
MFC r241397-241399, r241409, r241493-24194.

r241397:
Remove unused item.  cxgbe's rx queue's lock was removed a long time ago.

r241398:
There is no need to report the same error twice.

r241399:
Add a driver ioctl to read a byte from any device on a port's i2c bus.
This lets userspace read arbitrary information from the SFP+ modules
etc. on this bus.

Reading multiple bytes in the same transaction isn't possible right now.
I'll update the driver once the chip's firmware supports this.

r241409:
Add a driver ioctl to clear a port's MAC statistics.

r241493:
Use global knob in the TP_PARA_REG3 register to disable congestion
drops if the user has chosen this behaviour.

r241494:
Temporary fix for kern/172364.

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

11 years agoMFC: r241097
rmacklem [Mon, 15 Oct 2012 01:09:33 +0000 (01:09 +0000)]
MFC: r241097
Attila Bogar and Herbert Poeckl both reported similar problems
w.r.t. a Linux NFS client doing a krb5 NFS mount against the
FreeBSD server. We determined this was a Linux bug:
http://www.spinics.net/lists/linux-nfs/msg32466.html, however
the mount failed to work, because the Destroy operation with a
bogus encrypted checksum destroyed the authenticator handle.
This patch changes the rpcsec_gss code so that it doesn't
Destroy the authenticator handle for this case and, as such,
the Linux mount will work.

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

11 years agoMFC r241302: kvm_proclist: ignore processes in larvae state
avg [Sun, 14 Oct 2012 07:54:54 +0000 (07:54 +0000)]
MFC r241302: kvm_proclist: ignore processes in larvae state

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

11 years agoMFC r241282: zfs boot: chose a "first" pool if none is explicitly requested
avg [Sun, 14 Oct 2012 07:52:25 +0000 (07:52 +0000)]
MFC r241282: zfs boot: chose a "first" pool if none is explicitly requested

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

11 years agoMFC r241290: boot/zfs: a small whitespace cleanup
avg [Sun, 14 Oct 2012 07:45:40 +0000 (07:45 +0000)]
MFC r241290: boot/zfs: a small whitespace cleanup

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

11 years agoMFC r240339: openssl: change SHLIB_VERSION_NUMBER to reflect the reality
avg [Sun, 14 Oct 2012 07:28:21 +0000 (07:28 +0000)]
MFC r240339: openssl: change SHLIB_VERSION_NUMBER to reflect the reality

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

11 years agoMFC r240634: acpi_cpu: explicitly notify userland about c-state changes
avg [Sun, 14 Oct 2012 07:17:55 +0000 (07:17 +0000)]
MFC r240634: acpi_cpu: explicitly notify userland about c-state changes

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