]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
12 years agoMFC r233390:
trociny [Fri, 6 Apr 2012 16:32:29 +0000 (16:32 +0000)]
MFC r233390:

When displaying binary information show also osreldate.

Suggested by: kib

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

12 years agoMFC r233389:
trociny [Fri, 6 Apr 2012 16:30:17 +0000 (16:30 +0000)]
MFC r233389:

Add a sysctl to set and retrieve binary osreldate of another process.

Suggested by: kib
Reviewed by: kib

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

12 years agoMFC r228648:
trociny [Thu, 5 Apr 2012 18:43:27 +0000 (18:43 +0000)]
MFC r228648:

On start most of sysctl_kern_proc functions use the same pattern:
locate a process calling pfind() and do some additional checks like
p_candebug(). To reduce this code duplication a new function pget() is
introduced and used.

As the function may be useful not only in kern_proc.c it is in the
kernel name space.

Suggested by: kib
Reviewed by: kib

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

12 years agoUpdate relevant to the 9.6-ESV-R6 release.
dougb [Thu, 5 Apr 2012 04:32:57 +0000 (04:32 +0000)]
Update relevant to the 9.6-ESV-R6 release.

Add Bv9ARM.pdf to the list of docs to install.

(Direct commit because this file varies widely between BIND versions)

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

12 years agoUpdate to version 9.6-ESV-R6, the latest from ISC, which contains numerous
dougb [Thu, 5 Apr 2012 04:31:17 +0000 (04:31 +0000)]
Update to version 9.6-ESV-R6, the latest from ISC, which contains numerous
bug fixes.

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

12 years agoMFC: r233747, r233748
marius [Wed, 4 Apr 2012 21:19:24 +0000 (21:19 +0000)]
MFC: r233747, r233748

- Fix panic on kernel traps having a mapping in trap_sig b0rked in r206086
  (MFC'ed to stable/8 in r206198).
  Reported by: David E. Cross
- Remove checks that are redundant due to tf_type being unsigned.

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

12 years agoMFC r225610: Print the package name on deletion errors.
pluknet [Wed, 4 Apr 2012 13:22:10 +0000 (13:22 +0000)]
MFC r225610: Print the package name on deletion errors.

PR: bin/160516
Approved by: portmgr (pav)
Obtained from: NetBSD

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

12 years agoMFC r232165, r232247 (partial), r232307:
mm [Wed, 4 Apr 2012 09:14:16 +0000 (09:14 +0000)]
MFC r232165, r232247 (partial), r232307:

MFC r232165:
Introduce the "ruleset=number" option for devfs(5) mounts.
Add support for updating the devfs mount (currently only changing the
ruleset number is supported).
Check mnt_optnew with vfs_filteropt(9).

This new option sets the specified ruleset number as the active ruleset
of the new devfs mount and applies all its rules at mount time. If the
specified ruleset doesn't exist, a new empty ruleset is created.

MFC r232247 (partial):
mdoc(7) type - start new sentences on new line

MFC r232307:
Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it.
Fixes mountd warnings.

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

12 years agoMFC r230397, r230438, r232064:
mm [Wed, 4 Apr 2012 08:19:13 +0000 (08:19 +0000)]
MFC r230397, r230438, r232064:

MFC r230397 (pjd):
By default turn off prefetch when listing snapshots.
In my tests it makes listing snapshots 19% faster with cold cache and
47% faster with warm cache.

MFC r230438 (pjd):
Dramatically optimize listing snapshots when user requests only snapshot
names and wants to sort them by name, ie. when executes:

# zfs list -t snapshot -o name -s name

Because only name is needed we don't have to read all snapshot properties.

Below you can find how long does it take to list 34509 snapshots from a single
disk pool before and after this change with cold and warm cache:

before:

# time zfs list -t snapshot -o name -s name > /dev/null
cold cache: 525s
warm cache: 218s

after:

# time zfs list -t snapshot -o name -s name > /dev/null
cold cache: 1.7s
warm cache: 1.1s

MFC r232064:
Import illumos changeset 13608 [1]:

add support for "-t <datatype>" argument to zfs get

References:
https://www.illumos.org/issues/1936

Update zfs(8) manpage in respect of [1].
Fix typo in zfs(8) manpage.

Obtained from: illumos (issue #1936) [1]

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

12 years agoMFC r233608:
kib [Wed, 4 Apr 2012 05:33:28 +0000 (05:33 +0000)]
MFC r233608:
Microoptimize: in qsync loop over mount vnodes, only unlock mount
interlock after we committed to try to vget() the vnode.

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

12 years agoMFC r233571:
bschmidt [Tue, 3 Apr 2012 17:08:34 +0000 (17:08 +0000)]
MFC r233571:
strip (R) to match manpage and pci_vendors

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

12 years agoMFC r233568:
bschmidt [Tue, 3 Apr 2012 17:05:26 +0000 (17:05 +0000)]
MFC r233568:
Add a list of available devices which matches the names shown by pciconf.
While here add 2 missing firmware modules.

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

12 years agoMFC r233567:
bschmidt [Tue, 3 Apr 2012 17:03:33 +0000 (17:03 +0000)]
MFC r233567:
Add support for 6150 series devices.

Tested by: Shane Riddle <sh4neriddle at yahoo dot com>

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

12 years agoMFC r233544:
fabient [Tue, 3 Apr 2012 07:48:58 +0000 (07:48 +0000)]
MFC r233544:
Fix random deadlock on pmcstat exit:
- Exit the thread when soft shutdown is requested
- Wakeup owner thread.

Reproduced/tested by looping pmcstat measurement:
pmcstat -S instructions -O/tmp/test ls

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

12 years agoMFC 232700:
jhb [Mon, 2 Apr 2012 20:34:41 +0000 (20:34 +0000)]
MFC 232700:
Add a new sched_clear_name() method to the scheduler interface to clear
the cached name used for KTR_SCHED traces when a thread's name changes.
This way KTR_SCHED traces (and thus schedgraph) will notice when a thread's
name changes, most commonly via execve().

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

12 years agoMFC: r233701
marius [Mon, 2 Apr 2012 20:14:40 +0000 (20:14 +0000)]
MFC: r233701

- Remove erroneous trailing semicolon. [1]
- Correctly determine the maximum payload size for setting the TX link
  frequent NACK latency and replay timer thresholds.

Submitted by: stefanf [1]

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

12 years agoMFC r231976:
trociny [Mon, 2 Apr 2012 18:54:10 +0000 (18:54 +0000)]
MFC r231976:

unp_connect() may use a shared lock on the vnode to fetch the socket.

Suggested by: jhb
Reviewed by: jhb, kib, rwatson

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

12 years agoMFC: r233702
jkim [Mon, 2 Apr 2012 18:27:06 +0000 (18:27 +0000)]
MFC: r233702

Work around Erratum 721 for AMD Family 10h and 12h processors.

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

12 years agoMFC: r233619
jkim [Mon, 2 Apr 2012 17:34:50 +0000 (17:34 +0000)]
MFC: r233619

Add a PNP ID for Japanese 106-key keyboard.

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

12 years agoMFC Revision 233465
gibbs [Mon, 2 Apr 2012 16:50:48 +0000 (16:50 +0000)]
MFC Revision 233465

Correct failure to attach the PV block front device on Citrix
XenServer configurations that advertise the multi-page ring extension,
but only allow a single page of ring space.

sys/dev/xen/blkfront/blkfront.c:
If only one page of ring space is being used, do not publish
in the XenStore the number of pages in use (1), via either
of the supported multi-page ring extension schemes.

Single page operation is the same with or without the
ring-page extension being negotiated.   Relying on the
legacy behavior avoids an incompatible difference in how
the two ring-page extension schemes that are out in the
wild deal with the base case of a single page.  The
Amazon/Red Hat drivers use the same XenStore variable as
if the extension was not negotiated.  The Citrix drivers
assume the new ring reference XenStore variables will be
available.

Reported by: Oliver Schonefeld <schonefeld@ids-mannheim.de>

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

12 years agoMFC r233663:
jimharris [Mon, 2 Apr 2012 16:36:44 +0000 (16:36 +0000)]
MFC r233663:

Fix bug where isci(4) would report only 15 bytes of returned data on a
READ_CAP_16 comnmand to a SATA target.

Sponsored by: Intel
Approved by: sbruno

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

12 years agoMFC r233622:
jimharris [Mon, 2 Apr 2012 16:31:53 +0000 (16:31 +0000)]
MFC r233622:

Ensure consistent target IDs for direct-attached devices.

Sponsored by: Intel
Reported by: sbruno, Ravi Pokala <rpokala at panasas dot com>
Tested by: Ravi Pokala <rpokala at panasas dot com>
Approved by: sbruno

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

12 years agoMFC r232828:
kib [Sun, 1 Apr 2012 21:35:34 +0000 (21:35 +0000)]
MFC r232828:
ELF image can have several PT_NOTE program headers.  Look for the ELF
brand note in each header, instead of using only first one.

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

12 years agoMFC r233101:
kib [Sun, 1 Apr 2012 21:13:13 +0000 (21:13 +0000)]
MFC r233101:
Add sysctl vfs.nfs.nfs_keep_dirty_on_error to switch the nfs client
behaviour on error from write RPC back to behaviour of old nfs client.
When set to not zero, the pages for which write failed are kept dirty.

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

12 years agoMFC r233607:
kib [Sun, 1 Apr 2012 21:08:56 +0000 (21:08 +0000)]
MFC r233607:
Update comment.

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

12 years agoMFC r208190, r229667, r230541, r230869, r231909, r231910, r231911, r231912:
trociny [Sun, 1 Apr 2012 20:56:07 +0000 (20:56 +0000)]
MFC r208190, r229667, r230541, r230869, r231909, r231910, r231911, r231912:

r208190 (ivoras):

Slightly improve wording.

r229667, r230541, r230869 (ghelmer):

Change the notes about the pidfile to include Doug's preference
for pre-creating the pidfile with appropriate owner and permissions.

Requested by dougb

r231909:

The pidfile_open(3) is going to be fixed to set close-on-exec in order
not to leak the descriptor after exec(3). This raises the issue for
daemon(3) of the pidfile lock to be lost when the child process
executes.

To solve this and also to have the pidfile cleaned up when the program
exits, if a pidfile is specified, spawn a child to exec the command
and wait in the parent keeping the pidfile locked until the child
process exits and remove the file.

Reported by: Andrey Zonov <andrey zonov org>
Suggested by: pjd
Reviewed by: pjd

r231910:

If the supervising process receives SIGTERM, forward it to the spawned
process.  Normally it will cause the child to exit followed by the
termination of the supervisor after removing the pidfile.

This looks like desirable behavior, because termination of a
supervisor usually supposes termination of its charge. Also it will
fix the issue with stale pid files after reboot due to init kills a
supervisor before its child exits.

r231911:

Add -r option to restart the program if it has been terminated.

Suggested by: Andrey Zonov <andrey zonov org>

r231912:

If permitted protect the supervisor against pageout kill.

Suggested by: Andrey Zonov <andrey zonov org>

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

12 years agoMFC r233256
alc [Sat, 31 Mar 2012 18:29:24 +0000 (18:29 +0000)]
MFC r233256
  Eliminate vm.pmap.shpgperproc and vm.pmap.pv_entry_max because they no
  longer serve any purpose.

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

12 years agoMFC: r233427
marius [Sat, 31 Mar 2012 10:47:40 +0000 (10:47 +0000)]
MFC: r233427

Add cas(4), gem(4) and hme(4) to x86 GENERICs as suggested by netchild@ in
<20120222095239.Horde.0hpYHJjmRSRPRKzXsoFRbYk@webmail.leidinger.net>.
According to some private emails received, it apparently is not unpopular
to use at least Quad GigaSwift cards driven by cas(4) in x86 machines.

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

12 years agoMFC: r233425
marius [Sat, 31 Mar 2012 10:27:00 +0000 (10:27 +0000)]
MFC: r233425

Consistently update to the MPI header set version 01.05.20 after r224761
(MFC'ed to stable/8 in r224820).
Requested by: mjacob

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

12 years agoMFC: r233426
marius [Sat, 31 Mar 2012 10:20:50 +0000 (10:20 +0000)]
MFC: r233426

Add QGE-X to the list of known-working cards.

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

12 years agoMFC r233328,r233382:
bschmidt [Sat, 31 Mar 2012 08:46:11 +0000 (08:46 +0000)]
MFC r233328,r233382:
Fix incorrect parameter usage.

Submitted by: Monthadar Al Jaberi

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

12 years agoMFC: r233423
marius [Sat, 31 Mar 2012 01:21:53 +0000 (01:21 +0000)]
MFC: r233423

Initialize the mutexes used for the NVM and the swflag as MTX_DUPOK in
order to avoid otherwise harmless witness warnings when these are acquired
at the same time and due to both using MTX_NETWORK_LOCK as their type.
The right fix actually would be to use different, descriptive types for
these. However, the latter would require undesirable changes to the shared
code base. Another approach would be to just supply NULL as the type, which
was deemed as less desirable though as it would cause the unique but cryptic
name also to be used for the type and to diverge from the type used by other
network device drivers.

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

12 years agoMFC: r233421
marius [Sat, 31 Mar 2012 00:13:46 +0000 (00:13 +0000)]
MFC: r233421

Given that this is a host-PCI-Express bridge driver, create the parent
DMA tag with a 4 GB boundary as required by PCI-Express. With r232403
(MFC'ed to stable/8 in r233394) in place this actually is redundant.
However, the host-PCI-Express bridge driver is the more appropriate
place for implementing this restriction.

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

12 years agoMFC: r233403, r233404
marius [Sat, 31 Mar 2012 00:10:17 +0000 (00:10 +0000)]
MFC: r233403, r233404

- Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here.
  Note that this driver additionally probes some device IDs for the most
  part not know to other MPT drivers, if at all. So rename the macros not
  present in mpi_cnfg.h to match the naming scheme in the latter and but
  suffix them with a _FB in order to not cause conflicts.
- Like mpt_set_config_regs(), comment out mpt_read_config_regs() as the
  content of the registers read isn't actually used and both functions
  aren't exactly up to date regarding the possible layouts of the BARs
  (these function might be helpful for debugging though, so don't remove
  them completely).
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.
- Remove an unusual check for the softc being NULL.
- Remove redundant zeroing of the softc.
- Remove an overly banal and actually partly incorrect as well as partly
  outdated comment regarding the allocation of the memory resource.

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

12 years agoMFC: r233287
marius [Sat, 31 Mar 2012 00:07:54 +0000 (00:07 +0000)]
MFC: r233287

Use the common/shared CRC-32 implementation instead of duplicating it.

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

12 years agoMFC: r233282
marius [Fri, 30 Mar 2012 23:56:19 +0000 (23:56 +0000)]
MFC: r233282

- First pass at const'ifying ata(4) as appropriate.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

12 years agoMFC: r233274
marius [Fri, 30 Mar 2012 23:50:26 +0000 (23:50 +0000)]
MFC: r233274

Remove remnants of ATA_LOCKING uses in the ATA_CAM case and wrap it
along with functions, SYSCTLs and tunables that are not used with
ATA_CAM in #ifndef ATA_CAM, similar to the existing #ifdef'ed ATA_CAM
code for the other way around. This makes it easier to understand
which parts of ata(4) actually are used in the new world order and
to later on remove the !ATA_CAM bits. It also makes it obvious that
there is something fishy with the C-bus front-end as well as in the
ATP850 support, as these used ATA_LOCKING which is defunct in the
ATA_CAM case. When fixing the former, ATA_LOCKING probably needs to
be brought back in some form or other.

Reviewed by: mav

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

12 years agoMFC: r226179
marius [Fri, 30 Mar 2012 23:48:15 +0000 (23:48 +0000)]
MFC: r226179

Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernel
option is defined.  This sysctl can be queried by feature_present(3).

Query for this feature in /sbin/atacontrol and /usr/sbin/burncd.
If these utilities detect that ATA_CAM is enabled, then these utilities
will error out.  These utilities are compatible with the old ATA
driver, but are incomptible with the new ATA_CAM driver.  By erroring out,
we give end-users an idea as to what remedies to use, and reduce the need for them
to file PR's.  For atacontrol, camcontrol must be used instead,
and for burncd, alternative utilties from the ports collection must be used
such as sysutils/cdrtools.

In future, maybe someone can re-write burncd to work with ATA_CAM,
but at least for now, we give a somewhat useful error message to end users.

PR: 160979
Reviewed by: jh, Arnaud Lacombe <lacombar at gmail dot com>
Reported by: Joe Barbish <fbsd8 at a1poweruser dot com>

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

12 years agoMFC 232669:
jhb [Fri, 30 Mar 2012 17:38:57 +0000 (17:38 +0000)]
MFC 232669:
Use bus_get_dma_tag() to inherit the 4G boundary restriction from the
parent PCI bus and remove the home-grown version in this driver.

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

12 years agoMFC r231300, r231328:
eadler [Thu, 29 Mar 2012 23:58:16 +0000 (23:58 +0000)]
MFC r231300, r231328:
Permit the use of relative paths for the prefix argument.
Remove an unnecessary cwd from created plists when -p is specified

Approved by: cperciva (implicit)

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

12 years agoAdjust for the set of packages that will ship with 8.3-RELEASE. At this
kensmith [Thu, 29 Mar 2012 12:03:06 +0000 (12:03 +0000)]
Adjust for the set of packages that will ship with 8.3-RELEASE.  At this
point only the English documentation package fits on disc1.  All of the
documentation packages will be provided on the memstick images but no
other packages.  The DVD image will have enough packages to set up a
basic graphical workstation.

Reviewed by: portmgr, re

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

12 years agoMFC r233291
alc [Thu, 29 Mar 2012 06:01:11 +0000 (06:01 +0000)]
MFC r233291
  Handle spurious page faults that may occur in no-fault sections of the
  kernel.

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

12 years agoMFC r227489:
eadler [Thu, 29 Mar 2012 02:45:50 +0000 (02:45 +0000)]
MFC r227489:
- fix duplicate "a a" in some comments

Approved by: cperciva (implicit)

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

12 years agoMFC r233136, r233432:
eadler [Thu, 29 Mar 2012 01:46:30 +0000 (01:46 +0000)]
MFC r233136, r233432:
Restore the ability to use a non-standard LOCALBASE to sshd
Add the ability to use a non-standard LOCALBASE to ssh

Approved by: cperciva (implicit)

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

12 years agoMFC: r233313
jkim [Wed, 28 Mar 2012 16:33:08 +0000 (16:33 +0000)]
MFC: r233313

Add ACPI_LV_REPAIR debug level, available since ACPICA 20091214.

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

12 years agoMFC r232517:
zec [Wed, 28 Mar 2012 12:46:12 +0000 (12:46 +0000)]
MFC r232517:
  Change SYSINIT priorities so that ip_mroute_modevent() is executed
  before vnet_mroute_init(), since vnet_mroute_init() depends on mfchashsize
  tunable to be set, and that is done in in ip_mroute_modevent().
  Apparently I broke that ordering with r208744 almost 2 years ago...

  PR:           kern/162201
  Submitted by: Stevan Markovic (mcafee.com)
  MFC after:    3 days

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

12 years agoMFC 232487:
zec [Wed, 28 Mar 2012 12:41:17 +0000 (12:41 +0000)]
MFC 232487:
  Properly restore curvnet context when returning early from
  ether_input_internal().

  This change only affects options VIMAGE kernel builds.

  PR:           kern/165643
  Submitted by: Vijay Singh
  MFC after:    3 days

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

12 years agoMFC r233276:
ae [Wed, 28 Mar 2012 06:49:29 +0000 (06:49 +0000)]
MFC r233276:
  Acquire modules lock before call module_getname() in the KLD_DEBUG case.

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

12 years agoMFC r230348:
eadler [Wed, 28 Mar 2012 02:34:28 +0000 (02:34 +0000)]
MFC r230348:
 - Fix warning when compiling with gcc46:
        error: variable 'extra_async_bytes' set but not used

Approved by: cperciva (implicit)

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

12 years agoMFC: r233313
jkim [Wed, 28 Mar 2012 00:11:57 +0000 (00:11 +0000)]
MFC: r233313

Add ACPI_LV_REPAIR debug level, available since ACPICA 20091214.

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

12 years agoMFC r233428:
eadler [Tue, 27 Mar 2012 00:51:53 +0000 (00:51 +0000)]
MFC r233428:
 - Direct users to csup instead of cvsup in the csup-file boilerplate text.

Approved by: cperciva (implicit)

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

12 years agoMFC r232951,232953,233158:
yongari [Mon, 26 Mar 2012 05:15:44 +0000 (05:15 +0000)]
MFC r232951,232953,233158:
r232951:
  fxp(4) does not handle deferred dma map loading.  Tell
  bus_dmamap_load(9) that it should return immediately with error
  when there are insufficient mapping resources.

r232953:
  Fix white space nits.

r233158:
  Do not change current media when driver is already running.  If
  driver is running driver would have already completed flow control
  configuration.  This change removes unnecessary media changes in
  controller reconfiguration cases such that it does not trigger link
  reestablishment for configuration change requests like promiscuous
  mode change.

  Reported by: Many
  Tested by: Mike Tancsa <mike <> sentex dot net>

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

12 years agoMFC r232849-232850:
yongari [Mon, 26 Mar 2012 04:49:57 +0000 (04:49 +0000)]
MFC r232849-232850:
r232849:
  Show PCI bus speed and width as well as running mode of PCI-X
  device in device attach.  This would help to narrow down issue to a
  specific controller and operating mode of the controller.
  While I'm here rename BGE_MISCCFG_BOARD_ID with
  BGE_MISCCFG_BOARD_ID_MASK.

r232850:
  Make if_ierrors updated whenever any of the following counters are
  updated.
   o Number of times NIC ran out of RX buffer descriptors
   o Number of inbound packet errors
   o Number of inbound packets that were chosen to be discarded
  Previously only the discarded packet counter was used to update
  if_ierrors.  This change fixes wrong if_ierrors counter on
  BCM570[0-4] controllers.  For BCM5705 and later controllers bge(4)
  already correctly counted it.

  Reported by: Eugene Grosbein <egrosbein <> rdtc dot ru>

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

12 years agoMFC r232848:
yongari [Mon, 26 Mar 2012 04:37:42 +0000 (04:37 +0000)]
MFC r232848:
  Add workaround for PCI-X BCM5704 controller that live behind
  AMD-8131 PCI-X bridge.  The bridge seems to reorder write access to
  mailbox registers such that it caused watchdog timeouts by
  out-of-order TX completions.

  Tested by: Michael L. Squires <mikes <> siralan dot org >

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

12 years agoMFC r232246:
yongari [Mon, 26 Mar 2012 04:29:06 +0000 (04:29 +0000)]
MFC r232246:
  Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to
  extract a link status of PHY when parent driver is re(4).
  RGEPHY_MII_SSR register does not seem to report correct PHY status
  on some integrated PHYs used with re(4).
  Unfortunately, RealTek PHYs have no additional information to
  differentiate integrated PHYs from external ones so relying on PHY
  model number is not enough to know that.  However, it seems
  RGEPHY_MII_SSR register exists for external RealTek PHYs so
  checking parent driver would be good indication to know which PHY
  was used. In other words, for non-re(4) controllers, the PHY is
  external one and its revision number is greater than or equal to 2.
  This change fixes intermittent link UP/DOWN messages reported on
  RTL8169 controller.

  Also, mii_attach(9) is tried after setting interface name since
  rgephy(4) have to know parent driver name.

  PR: kern/165509

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

12 years agoMFC r232145:
yongari [Mon, 26 Mar 2012 03:55:45 +0000 (03:55 +0000)]
MFC r232145:
  Use correct Config registers for RTL8139 family. Unlike RTL8168 and
  RTL810x family , RTL8139 has different register map for Config
  registers.

  While here, follow the lead of re(4) in WOL configuration.
   - Disable WOL_UCAST and WOL_MCAST capabilities by default.
   - Config5 register write does not need to unlock EEPROM access
     on RTL8139 family but unlocking EEPROM access does not affect
     its operation and make it consistent with re(4).

  Reported by: Matt Renzelmann  mjr <> cs dot wisc dot edu

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

12 years agoMFC r232019,232021,232025,232027,232029,232040:
yongari [Mon, 26 Mar 2012 03:48:21 +0000 (03:48 +0000)]
MFC r232019,232021,232025,232027,232029,232040:
r232019:
  Give hardware chance to drain active DMA cycles.

r232021:
  If there are not enough RX buffers, release partially allocated RX
  buffers.

r232025:
  Introduce sf_ifmedia_upd_locked() and have driver reset PHY before
  switching to selected media.  While here, set if_drv_flags before
  switching to selected media.

r232027:
  No need to reprogram hardware RX filter when driver is not running.

r232029:
  Remove taskqueue based MII stat change handler.
  Driver does not need deferred link state change processing.
  While I'm here, do not report current link status if interface is
  not UP.

r232040:
  Add check for IFF_DRV_RUNNING flag after serving an interrupt and
  don't give RX path more priority than TX path.
  Also remove infinite loop in interrupt handler and limit number of
  iteration to 32. This change addresses system load fluctuations
  under high network load.

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

12 years agoMFC r233138:
eadler [Mon, 26 Mar 2012 01:16:34 +0000 (01:16 +0000)]
MFC r233138:
 draft-ietf-ipv6-scoping-arch-02.txt is now RFC 4007

PR: phk
Approved by: cperciva (implicit)

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

12 years agoMFC r233132: fts(3): Mention that FTS_NOCHDIR imposes {PATH_MAX} limits on
jilles [Sun, 25 Mar 2012 20:09:02 +0000 (20:09 +0000)]
MFC r233132: fts(3): Mention that FTS_NOCHDIR imposes {PATH_MAX} limits on
the returned pathnames.

With the current API (no *at functions), FTS_NOCHDIR requires that the
fts_accpath start with the original path passed to fts_open(); therefore,
the depth that can be reached is limited by the {PATH_MAX} constraint on
this pathname.

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

12 years agoMFC r233130: fts(3): Document cases where FTS_NOCHDIR is set implicitly.
jilles [Sun, 25 Mar 2012 20:07:50 +0000 (20:07 +0000)]
MFC r233130: fts(3): Document cases where FTS_NOCHDIR is set implicitly.

PR: docs/166091
Submitted by: Matthew Story

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

12 years agoMFC: r233105
marius [Sun, 25 Mar 2012 16:24:53 +0000 (16:24 +0000)]
MFC: r233105

Declare some variables static in order to reduce the object size and
redo r232822 (MFC'ed to stable/8 in 232963) in a less hackish way.

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

12 years agoMFC r233283:
bschmidt [Sun, 25 Mar 2012 11:42:59 +0000 (11:42 +0000)]
MFC r233283:
Load the firmware during init not attach, as a root filesystem might
not yet be available. While here, also print the firmware version.

Submitted by: PseudoCylon

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

12 years agoMFC of r233445, tzdata2012a
edwin [Sun, 25 Mar 2012 02:19:02 +0000 (02:19 +0000)]
MFC of r233445, tzdata2012a

- Updates to various locations in Antarctica.
- Armenia will abolish DST this year.
- Not only Samoa has moved to UTC+14, also Fakaofo did.
- There will be a leap second in 30 June 2012.
- Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston.
- Chili stays on DST until 28 April 2012
- The Falkland islands will stay on DST this year.

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

12 years agoMFC 232362,232363,232463,232553,232569,232571:
jhb [Fri, 23 Mar 2012 20:58:27 +0000 (20:58 +0000)]
MFC 232362,232363,232463,232553,232569,232571:
- Sort function prototypes.
- Update the documentation on pci_get/set_powerstate().  These methods are
  not ACPI-specific at all, but deal with PCI power states.  Also,
  pci_set_powerstate() fails with EOPNOTSUPP if a request is made that the
  underlying device does not support rather than falling back to somehow
  setting D0.
- Document the following routines: pci_alloc_msi(), pci_alloc_msix(),
  pci_find_cap(), pci_get_max_read_req(), pci_get_vpd_ident(),
  pci_get_vpd_readonly(), pci_msi_count(), pci_msix_count(),
  pci_pending_msix(), pci_release_msi(),  pci_remap_msix(), and
  pci_set_max_read_req().
- Group the functions into five sub-sections: raw configuration access,
  locating devices, device information, device configuration, and
  message signaled interrupts.
- Discourage use of pci_disable_io() and pci_enable_io() in device drivers.
  The PCI bus driver handles this automatically as resources are activated.

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

12 years agoMFC 232403,232667:
jhb [Fri, 23 Mar 2012 20:47:49 +0000 (20:47 +0000)]
MFC 232403,232667:
- Add a bus_dma tag to each PCI bus that is a child of a Host-PCI bridge.
  The tag enforces a single restriction that all DMA transactions must not
  cross a 4GB boundary.  Note that while this restriction technically only
  applies to PCI-express, this change applies it to all PCI devices as it
  is simpler to implement that way and errs on the side of caution.
- Add a softc structure for PCI bus devices to hold the bus_dma tag and
  a new pci_attach_common() routine that performs actions common to the
  attach phase of all PCI bus drivers.  Right now this only consists of
  a bootverbose printf and the allocate of a bus_dma tag if necessary.
- Adjust all PCI bus drivers to allocate a PCI bus softc and to call
  pci_attach_common() from their attach routines.

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

12 years agoMFC 232401:
jhb [Fri, 23 Mar 2012 18:29:28 +0000 (18:29 +0000)]
MFC 232401:
Similar to the fixes in 226967 and 226987, purge any name cache entries
associated with the previous vnode (if any) associated with the target of
a rename().  Otherwise, a lookup of the target pathname concurrent with a
rename() could re-add a name cache entry after the namei(RENAME) lookup
in kern_renameat() had purged the target pathname.

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

12 years agoMFC 232367:
jhb [Fri, 23 Mar 2012 18:22:38 +0000 (18:22 +0000)]
MFC 232367:
Properly handle failures in igb_setup_msix() by returning 0 if MSI or MSI-X
allocation fails.

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

12 years agoMFC 232360:
jhb [Fri, 23 Mar 2012 18:03:38 +0000 (18:03 +0000)]
MFC 232360:
Add pci_save_state() and pci_restore_state() wrappers around
pci_cfg_save() and pci_cfg_restore() for device drivers to use when
saving and restoring state (e.g. to handle device-specific resets).

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

12 years agoMFC 232570,232754:
jhb [Fri, 23 Mar 2012 17:24:52 +0000 (17:24 +0000)]
MFC 232570,232754:
Fix boot2 to handle boot config files that only contain a custom path to
a loader or kernel.  Specifically, kname cannot be pointed at cmd[] since
it's value is change to be an empty string after the initial call to
parse, and cmd[]'s value can be changed (thus losing a prior setting for
kname) due to user input at the boot prompt.  While here, ensure that that
initial boot config file text is nul-terminated, that ops is initialized
to zero, and that kname is always initialized to a valid string.

In addition, include other changes to ensure boot2 still builds with
Clang.

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

12 years agoMFC r233371:
jimharris [Fri, 23 Mar 2012 17:11:36 +0000 (17:11 +0000)]
MFC r233371:

Call xpt_bus_register during attach context, then freeze and do not release
until domain discovery is complete.  This fixes an isci(4) bug on FreeBSD 7.x
where devices weren't always appearing after boot without an explicit rescan.

Sponsored by: Intel
Reported and tested by: <rpokala at panasas dot com>
Reviewed by: scottl
Approved by: scottl

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

12 years agoMFC r232793:
mav [Fri, 23 Mar 2012 16:19:14 +0000 (16:19 +0000)]
MFC r232793:
Revert r175376 and tune cpufreq(4) frequency comparison logic instead.
Instead of using 25MHz equality threshold, look for the nearest value when
handling dev.cpu.0.freq sysctl and for exact match when it is expected.

ACPI may report extra level with frequency 1MHz above the nominal to
control Intel Turbo Boost operation. It is not a bug, but feature:
dev.cpu.0.freq_levels: 2934/106000 2933/95000 2800/82000 ...
In this case value 2933 means 2.93GHz, but 2934 means 3.2-3.6GHz.

I've found that my Core i7 based systems have Intel Turbo Boost not used
by default and without this change it was absolutely invisible and hard
to control.

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

12 years agoMFC r223889:
kib [Fri, 23 Mar 2012 15:37:41 +0000 (15:37 +0000)]
MFC r223889:
Add a facility to disable processing page faults. When activated,
uiomove generates EFAULT if any accessed address is not mapped, as
opposed to handling the fault.

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

12 years agoMFC 232218:
jhb [Fri, 23 Mar 2012 12:06:32 +0000 (12:06 +0000)]
MFC 232218:
Clear the a device's description string anytime it's driver changes.
Descriptions are specific to drivers and we don't change drivers on attached
devices.  This fixes a few places where we were not clearing the description
when detaching a driver (e.g. if device_attach() failed).  While here, fix
a few other nits:
- Remove spurious call to remove a device's driver from
  devclass_driver_deleted().  device_detach() removes it already.
- Fix a typo.

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

12 years agoMFC 232265:
jhb [Fri, 23 Mar 2012 12:02:00 +0000 (12:02 +0000)]
MFC 232265:
Properly clear a device's devclass if DEVICE_ATTACH() fails if the device
does not have a fixed devclass.

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

12 years agoMFC 230547:
jhb [Thu, 22 Mar 2012 21:08:14 +0000 (21:08 +0000)]
MFC 230547:
Add a timeout on positive name cache entries in the NFS client.  That is,
we will only trust a positive name cache entry for a specified amount of
time before falling back to a LOOKUP RPC, even if the ctime for the file
handle matches the cached copy in the name cache entry.  The timeout is
configured via a new 'nametimeo' mount option and defaults to 60 seconds.
It may be set to zero to disable positive name caching entirely.

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

12 years agoMFC 232116:
jhb [Thu, 22 Mar 2012 20:52:00 +0000 (20:52 +0000)]
MFC 232116:
Adjust the nfs_skip_wcc_data_onerr setting so that it does not block
post-op attributes for ENOENT errors now that the name caching logic
depends on working post-op attributes.

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

12 years agoMFC r233037 and r233039:
hselasky [Thu, 22 Mar 2012 17:02:05 +0000 (17:02 +0000)]
MFC r233037 and r233039:
Fix cross-platform issue about the file-format in which
usbdump stores data.

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

12 years agoMFC r210525:
pluknet [Thu, 22 Mar 2012 11:43:54 +0000 (11:43 +0000)]
MFC r210525:

 Missing IFCAP_* macro descriptions in ifnet(9).

PR: docs/148952
Submitted by: Lars Hartmann <lars@chaotika.org>

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

12 years agoMFC 230394,230441,230489,230552,232420:
jhb [Wed, 21 Mar 2012 20:50:47 +0000 (20:50 +0000)]
MFC 230394,230441,230489,230552,232420:
Close a race in NFS lookup processing that could result in stale name cache
entries on one client when a directory was renamed on another client.  The
root cause for the stale entry being trusted is that each per-vnode nfsnode
structure has a single 'n_ctime' timestamp used to validate positive name
cache entries.  However, if there are multiple entries for a single vnode,
they all share a single timestamp.  To fix this, extend the name cache
to allow filesystems to optionally store a timestamp value in each name
cache entry.  The NFS clients now fetch the timestamp associated with
each name cache entry and use that to validate cache hits instead of the
timestamps previously stored in the nfsnode.  Another part of the fix is
that the NFS clients now use timestamps from the post-op attributes of
RPCs when adding name cache entries rather than pulling the timestamps out
of the file's attribute cache.  The latter is subject to races with other
lookups updating the attribute cache concurrently.

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

12 years agoMFC r224546 (by glebius):
ae [Wed, 21 Mar 2012 10:03:52 +0000 (10:03 +0000)]
MFC r224546 (by glebius):
  Don't leak kld_sx lock in kldunloadf().

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

12 years agoMFC r233005:
tuexen [Tue, 20 Mar 2012 19:47:59 +0000 (19:47 +0000)]
MFC r233005:
Clean up, no functional change.

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

12 years agoMFC r233004:
tuexen [Tue, 20 Mar 2012 19:45:25 +0000 (19:45 +0000)]
MFC r233004:
Fix bugs which can result in a panic when an non-SCTP socket it
used with an sctp_ system-call which expects an SCTP socket.

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

12 years agoMFC r232866:
tuexen [Tue, 20 Mar 2012 19:42:40 +0000 (19:42 +0000)]
MFC r232866:
This fixes PR 165210. Basically we just
add in the netgraph interface to the list of
acceptable interfaces. A todo at the next
IETF code blitz, though is we need to review
why we screen interfaces, there was a reason ;-).
From rrs@.

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

12 years agoMFC r232724:
tuexen [Tue, 20 Mar 2012 19:39:44 +0000 (19:39 +0000)]
MFC r232724:
Add support for stf interfaces.

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

12 years agoMFC r231895:
tuexen [Tue, 20 Mar 2012 19:37:05 +0000 (19:37 +0000)]
MFC r231895:
Remove two clang warnings.

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

12 years agoMFC: r232991
jkim [Mon, 19 Mar 2012 22:26:02 +0000 (22:26 +0000)]
MFC: r232991

Add a PCI quirk to ignore PCI map registers from configuration space.
This works around a resource conflict, e. g., MSI K9AGM2 motherboard.

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

12 years agoWe seem to be having issues with a bug in the loader that causes it to
kensmith [Mon, 19 Mar 2012 22:20:47 +0000 (22:20 +0000)]
We seem to be having issues with a bug in the loader that causes it to
estimate the program header size for the kernel wrong.  It can result
in the kernel build failing with the message:

ld: kernel.debug: Not enough room for program headers (allocated 5, need 6)
ld: final link failed: Bad value

Tinderbox builds were failing with this message a short time ago, and
I encountered it while preparing the i386 build machine for the 8.3-RC2
builds.

Konstantin has looked at it and believes the issue was fixed in recent
versions of binutils.  It is a bit too late in the release process to
be messing around with the loader and/or binutils.  This workaround
seems to take care of the problem for now.

Reviewed by: kib

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

12 years agoMFC 232072: Pretty-print the advice constants passed to posix_fadvise(2).
jhb [Mon, 19 Mar 2012 21:33:35 +0000 (21:33 +0000)]
MFC 232072: Pretty-print the advice constants passed to posix_fadvise(2).

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

12 years agoMFC 229621:
jhb [Mon, 19 Mar 2012 20:49:42 +0000 (20:49 +0000)]
MFC 229621:
Convert all users of IF_ADDR_LOCK to use new locking macros that specify
either a read lock or write lock.

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

12 years agoMFC 225096:
jhb [Mon, 19 Mar 2012 20:15:18 +0000 (20:15 +0000)]
MFC 225096:
Fix if_addr_mtx recursion in mld6.

mld_set_version() is called only from mld_v1_input_query() and
mld_v2_input_query() both holding the if_addr_mtx lock, and then calling
into mld_v2_cancel_link_timers() acquires it the second time, which results
in mtx recursion. To avoid that, delay if_addr_mtx acquisition until after
mld_set_version() is called; while here, further reduce locking scope
to protect only the needed pieces: if_multiaddrs, in6m_lookup_locked().

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

12 years agoBump the version of perl used as part of the release build from 5.10
kensmith [Mon, 19 Mar 2012 13:19:02 +0000 (13:19 +0000)]
Bump the version of perl used as part of the release build from 5.10
to 5.12.

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

12 years agoMFC r233041:
kib [Mon, 19 Mar 2012 11:32:42 +0000 (11:32 +0000)]
MFC r233041:
Remove write-only variable.

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

12 years agoMFC r232541:
kib [Mon, 19 Mar 2012 11:27:54 +0000 (11:27 +0000)]
MFC r232541:
Apply inlined vn_vget_ino() algorithm for ".." lookup in pseudofs.

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

12 years agoMFC r232505:
eadler [Mon, 19 Mar 2012 01:56:52 +0000 (01:56 +0000)]
MFC r232505:
Remove outdated comment of seven years

PR: docs/116116
Approved by: cperciva

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

12 years agoMFC r231306:
eadler [Mon, 19 Mar 2012 01:51:53 +0000 (01:51 +0000)]
MFC r231306:
Fix NULL ptr dereference in setusercontext if pwd is null,
LOGIN_SETPRIORITY is set, and setting the priority (rtprio or
setpriority) fails.

PR: kern/164238
Approved by: cperciva

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

12 years agoMFC r232504:
eadler [Mon, 19 Mar 2012 01:32:53 +0000 (01:32 +0000)]
MFC r232504:
Remove reference to gcc's non-standard -fwritable-strings, which
doesn't exist in recent releases (and is bad advice anyway)

PR: docs/163119
Approved by: cperciva

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

12 years agoMFC r232503:
eadler [Mon, 19 Mar 2012 01:27:55 +0000 (01:27 +0000)]
MFC r232503:
POSIX mandates that swab do nothing when len < 0

PR: 140690
Approved by: cperciva

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

12 years agoMFC r232506:
eadler [Mon, 19 Mar 2012 01:18:46 +0000 (01:18 +0000)]
MFC r232506:
Explicitly list dependency

PR: misc/160463
Approved by: cperciva

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

12 years agoMFC r232501:
eadler [Mon, 19 Mar 2012 01:16:11 +0000 (01:16 +0000)]
MFC r232501:
ehci tunables are only available when kernel is compiled with USB_DEBUG

PR: docs/163646
Approved by: cperciva

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

12 years agoMFC r232466, r232469:
eadler [Mon, 19 Mar 2012 01:04:46 +0000 (01:04 +0000)]
MFC r232466, r232469:
Direct users to swapinfo and pstat from df

PR: bin/165321
Approved by: cperciva

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