]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoand wrong place too!
luigi [Mon, 15 Mar 2010 17:54:01 +0000 (17:54 +0000)]
and wrong place too!

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

14 years agowrong name for this file...
luigi [Mon, 15 Mar 2010 17:52:55 +0000 (17:52 +0000)]
wrong name for this file...

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

14 years agoMFC r204872: Pass the correct size to memset().
jh [Mon, 15 Mar 2010 16:39:52 +0000 (16:39 +0000)]
MFC r204872: Pass the correct size to memset().

PR: bin/128094

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

14 years agoMFC r204519:
bruno [Mon, 15 Mar 2010 15:33:32 +0000 (15:33 +0000)]
MFC r204519:
Deliver siginfo when signal is generated by thr_kill(2) (SI_USER with properly
filled si_uid and si_pid).

PR: 141956

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

14 years agoMFC r204410: Include terminated threads in ps's process cpu time field.
jilles [Sun, 14 Mar 2010 13:07:40 +0000 (13:07 +0000)]
MFC r204410: Include terminated threads in ps's process cpu time field.

When a kinfo_proc is filled, first fill_kinfo_proc_only() fills in
ki_runtime using p->p_rux.rux_runtime (all cpu time used by the process
including terminated threads). If information for a specific thread is
requested, fill_kinfo_thread() then overwrites this with the thread's
td->td_runtime (good). If not, fill_kinfo_aggregate() overwrote it with
the sum of all threads' td->td_runtime which does not include terminated
threads.

This affects ps(1)'s TIME field, not its %CPU field nor anything in
top(1).

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

14 years agoMFC 204462,204463,204476: fix multicast hashes
ticso [Sat, 13 Mar 2010 16:37:17 +0000 (16:37 +0000)]
MFC 204462,204463,204476: fix multicast hashes

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

14 years agoMFC r204447:
jh [Fri, 12 Mar 2010 06:56:51 +0000 (06:56 +0000)]
MFC r204447:

In _gettemp(), check that the length of the path doesn't exceed
MAXPATHLEN. Otherwise the path name (or part of it) may not fit to
carrybuf causing a buffer overflow.

PR: bin/140228

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

14 years ago(r205011) The "number" argument is everything but optional.
joerg [Fri, 12 Mar 2010 05:16:24 +0000 (05:16 +0000)]
(r205011) The "number" argument is everything but optional.

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

14 years agoMFC r203760: Improve time precision for grdc(6):
delphij [Fri, 12 Mar 2010 00:51:13 +0000 (00:51 +0000)]
MFC r203760: Improve time precision for grdc(6):

Traditionally, grdc would obtain time through time(3) which in turn gets
only the second part of clock (CLOCK_SECOND), and sleep for 1 second after
each screen refresh.

This approach would have two problems.  First, we are not guaranteed to
be waken up at the beginning of a whole second, which will typically
exhibit as a "lag" on second number.  Second, because we sleep for whole
second, and the refresh process would take some time, the error would
accumulate from time to time, making the lag variable.

Make grdc(6) to use time(3) to get time only at the beginning, and sample
time in CLOCK_REALTIME_FAST granularity after refreshing, and use the
nanosecond part to caculate how much time we want to sleep.

PR: bin/120813

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

14 years agoMFC r203934:
bschmidt [Thu, 11 Mar 2010 17:15:40 +0000 (17:15 +0000)]
MFC r203934:
Fix for the Intel WiFi Link 1000.  The EEPROM image is in the OTPROM block
before the last block, not in the last block itself.

Approved by: rpaulo (mentor)
Obtained from: OpenBSD

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

14 years agoMFC r204213:
bschmidt [Thu, 11 Mar 2010 17:11:07 +0000 (17:11 +0000)]
MFC r204213:
Fix some typos.

Approved by: rpaulo (mentor)

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

14 years agoMFC r203785: acpi: drop the second bus_generic_attach pass
avg [Thu, 11 Mar 2010 08:58:13 +0000 (08:58 +0000)]
MFC r203785: acpi: drop the second bus_generic_attach pass

X-MFCto7 after: 1 week

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

14 years agoMFC r203776: acpi cpu: probe+attach before all other enumerated children
avg [Thu, 11 Mar 2010 08:55:03 +0000 (08:55 +0000)]
MFC r203776: acpi cpu: probe+attach before all other enumerated children

X-MFCto7 after: 1 week

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

14 years agoMFC r204878:
fabient [Thu, 11 Mar 2010 07:36:45 +0000 (07:36 +0000)]
MFC r204878:
 Change the way shutdown is handled for log file.

 pmc_flush_logfile is now non-blocking and just ask the kernel
 to shutdown the file. From that point, no more data is
 accepted by the log thread and when the last buffer is flushed
 the file is closed.

 This will remove a deadlock between pmcstat asking for
 flush while it cannot flush the pipe itself.

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

14 years agoMFC r204878:
fabient [Thu, 11 Mar 2010 07:35:30 +0000 (07:35 +0000)]
MFC r204878:
 Change the way shutdown is handled for log file.

 pmc_flush_logfile is now non-blocking and just ask the kernel
 to shutdown the file. From that point, no more data is
 accepted by the log thread and when the last buffer is flushed
 the file is closed.

 This will remove a deadlock between pmcstat asking for
 flush while it cannot flush the pipe itself.

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

14 years agoMFC r204647:
yongari [Wed, 10 Mar 2010 22:21:07 +0000 (22:21 +0000)]
MFC r204647:
  Remove programming LED register and enable 25MHz TX clock for
  88E1149 PHY. This will fix intermittent watchdog timeouts as well
  as very slow network performance on 88E8072 Yukon Extreme.

  PR: kern/144148

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

14 years agoMFC 204638:
jhb [Wed, 10 Mar 2010 19:47:05 +0000 (19:47 +0000)]
MFC 204638:
Allow lseek(SEEK_END) to work on disk devices by using the DIOCGMEDIASIZE
to determine the media size.

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

14 years agoMFC: r197438, r203810, r203813, r203935, r203936
jkim [Wed, 10 Mar 2010 17:58:32 +0000 (17:58 +0000)]
MFC: r197438, r203810, r203813, r203935, r203936

Sync acpi_video(4) with HEAD.

r197438:
Uninline an instance of STAILQ_FOREACH_SAFE().

r203810:
Implement LCD brightness control notify handler.

r203813:
Make sanity check slightly more useful and tweak an error message.

r203935:
Add support for `cycle' and `zero' events for LCD brightness control.

r203936:
Rename some macros to clarify their intentions and fix style nits.

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

14 years agoMerge r204053 from head:
gavin [Wed, 10 Mar 2010 13:40:37 +0000 (13:40 +0000)]
Merge r204053 from head:

  The correct value of DEL is 0x7f, not 0xff.  This is purely a documentation
  issue - od(1) and hexdump(1) behave as expected.

PR: docs/143869
Submitted by: gcooper

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

14 years agoMerge mergeinfo for netinet up to sys.
jhb [Tue, 9 Mar 2010 21:16:36 +0000 (21:16 +0000)]
Merge mergeinfo for netinet up to sys.

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

14 years agoMFC r204590:
kib [Tue, 9 Mar 2010 13:32:50 +0000 (13:32 +0000)]
MFC r204590:
Correct mfip module dependency on mfi. This allows mfip to be loaded as
module when mfi is a module itself.

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

14 years agoMFC 204518:
jhb [Mon, 8 Mar 2010 21:36:20 +0000 (21:36 +0000)]
MFC 204518:
Print the contents of the miscellaneous (MISC) register to the console if
it is valid along with the other register values when a machine check is
encountered.

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

14 years agoMFC 204402
qingli [Mon, 8 Mar 2010 21:30:12 +0000 (21:30 +0000)]
MFC 204402

Use reference counting instead of locking to secure an address while
that address is being used to generate temporary IPv6 address. This
approach is sufficient and avoids recursive locking.

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

14 years agoMFC of tzdata2010e, r204887
edwin [Mon, 8 Mar 2010 21:29:00 +0000 (21:29 +0000)]
MFC of tzdata2010e, r204887

- Adjust beginning / end of DST in Bangladesh (minimal impact)
- Fiji ends DST one month earlier to last Sunday of March
- Samoa changes
- Chile extends DST until 3 April this year.

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

14 years agoMFC r204648:
mav [Mon, 8 Mar 2010 16:53:58 +0000 (16:53 +0000)]
MFC r204648:
Several changes to fix livelock under high load, introduced by r203489:
 - change the way in which command queue overflow is handled;
 - do not expose to CAM two command slots, used for driver's internal purposes;
 - allow driver to use up to 1024 command slots, instead of 256 before.

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

14 years agoMFC main build script and missing directory
luigi [Mon, 8 Mar 2010 13:37:14 +0000 (13:37 +0000)]
MFC main build script and missing directory

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

14 years agoMFC r204783:
fabient [Mon, 8 Mar 2010 07:53:44 +0000 (07:53 +0000)]
MFC r204783:
 Bug fixed:
 - no display on serial terminal in top mode.
 - display alignment for continuation string.
 - correct invalid value used for display limit.

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

14 years agoMFC qemu configuration
luigi [Sun, 7 Mar 2010 16:24:33 +0000 (16:24 +0000)]
MFC qemu configuration

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

14 years agoreduce diffs from HEAD
luigi [Sun, 7 Mar 2010 15:07:24 +0000 (15:07 +0000)]
reduce diffs from HEAD

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

14 years agoMFC r197137 and r200510, which fixes a problem in 8.0
luigi [Sun, 7 Mar 2010 14:29:12 +0000 (14:29 +0000)]
MFC r197137 and r200510, which fixes a problem in 8.0
with callouts firing one tick too late. See the logs for
the original patch for details.
RELENG_7 is not affected by the problem.

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

14 years agoMFC r204611, r204633: Comment and better sysctl documentation string for
ivoras [Sun, 7 Mar 2010 12:29:50 +0000 (12:29 +0000)]
MFC r204611, r204633: Comment and better sysctl documentation string for
VM guest detection variable and sysctl.

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

14 years agoMFC r204464:
kib [Sun, 7 Mar 2010 09:52:35 +0000 (09:52 +0000)]
MFC r204464:
Several fixes for miscellaneous clone handlers in if_tun and if_tap.

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

14 years agoMFC: Enable the use of nanosleep() instead of using pause() and signals.
gshapiro [Sun, 7 Mar 2010 02:02:07 +0000 (02:02 +0000)]
MFC: Enable the use of nanosleep() instead of using pause() and signals.
     This Makefile change can be removed when the next version of sendmail
     is imported as it will have this built in to the FreeBSD conf.h section.

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

14 years agoMFC revs 203696, 203783:
marcel [Sun, 7 Mar 2010 00:07:00 +0000 (00:07 +0000)]
MFC revs 203696, 203783:
Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process.

Requested by: kib@

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

14 years agoMFC revs 203696, 203708, 203783 and 203788:
marcel [Sun, 7 Mar 2010 00:05:44 +0000 (00:05 +0000)]
MFC revs 203696, 203708, 203783 and 203788:
Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process.

Requested by: kib@

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

14 years agoMFC r204413:
kib [Sat, 6 Mar 2010 12:35:33 +0000 (12:35 +0000)]
MFC r204413:
For kinfo_proc in kp->ki_siglist, return the set of the signals pending
in the process queue when gathering information for the process, and set
of signals pending for the thread, when gathering information for the
thread.

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

14 years agoMFC 204329 partially:
fabient [Fri, 5 Mar 2010 22:52:41 +0000 (22:52 +0000)]
MFC 204329 partially:
Fixed dependencies (make checkdpadd).

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

14 years agoMFC 203790:
fabient [Fri, 5 Mar 2010 22:40:31 +0000 (22:40 +0000)]
MFC 203790:
- Reorganize code in 'plugin' to share log processing.
- Kcachegrind (calltree) support with assembly/source
  code mapping and call count estimator (-F).
- Top mode for calltree and callgraph plugin (-T).

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

14 years agoMFC r203461:
delphij [Fri, 5 Mar 2010 00:33:05 +0000 (00:33 +0000)]
MFC r203461:

static'ify function prototypes and convert K&R to ANSI.

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

14 years agoMFC r203460:
delphij [Fri, 5 Mar 2010 00:32:22 +0000 (00:32 +0000)]
MFC r203460:

pukeText is an internal function so define it as static rather than
exporting it.

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

14 years agoMFC r203459:
delphij [Fri, 5 Mar 2010 00:31:03 +0000 (00:31 +0000)]
MFC r203459:

Plug two memory leaks in error case.

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

14 years agoMFC r204283
raj [Thu, 4 Mar 2010 20:22:48 +0000 (20:22 +0000)]
MFC r204283

Do not force verbose and single mode in non-metadata boot case.

We want to go multi-user by default also in case of booting without
loader(8).

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

14 years agoMFC r204317
raj [Thu, 4 Mar 2010 20:12:12 +0000 (20:12 +0000)]
MFC r204317

Fix handling of GPT disk partition index.

Obtained from: Semihalf

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

14 years agoMFC r204316
raj [Thu, 4 Mar 2010 20:07:59 +0000 (20:07 +0000)]
MFC r204316

Let loader(8) for U-Boot use default storage more flexibly.

Obtained from: Semihalf

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

14 years agoMFC r204315
raj [Thu, 4 Mar 2010 20:03:26 +0000 (20:03 +0000)]
MFC r204315

Enable U-Boot storage for PowerPC. While there fix loader(8) help file name.

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

14 years agoMFC r201853:
brooks [Thu, 4 Mar 2010 19:35:22 +0000 (19:35 +0000)]
MFC r201853:

Make options KGSSAPI build and add it to NOTES.

rpcsec_gss_prot.c:
  Use kernel printf and headers.

vc_rpcsec_gss.c:
  Use a local RPCAUTH_UNIXGIDS definition for 16 instead of using NGROUPS.

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

14 years agoMFC r204307:
kib [Thu, 4 Mar 2010 07:12:44 +0000 (07:12 +0000)]
MFC r204307:
Make pause(3) implementation not depended on the legacy sigcompat.c
interfaces. Do not block rt signals during and after pause(3) calls.
Use private libc namespace to call proper methods.

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

14 years agoMFC r204308:
kib [Thu, 4 Mar 2010 07:08:01 +0000 (07:08 +0000)]
MFC r204308:
Do not restrict the allowed signals that can be specified by number
to the list of signals that has symbolic name. It was impossible to
send rt signals with kill(1) due to the check.

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

14 years agoMFC r201959
brooks [Wed, 3 Mar 2010 21:47:25 +0000 (21:47 +0000)]
MFC r201959

Use the correct types to store uids and gids in the credential cache and
eliminate an inappropriate use of NGROUPS.

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

14 years agoAdd ah_eeprom_v4k.c
rpaulo [Wed, 3 Mar 2010 20:28:35 +0000 (20:28 +0000)]
Add ah_eeprom_v4k.c

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

14 years agoAdd ar9280.c and ar9280_attach.c.
rpaulo [Wed, 3 Mar 2010 20:08:12 +0000 (20:08 +0000)]
Add ar9280.c and ar9280_attach.c.

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

14 years agoMFC 204656:
rpaulo [Wed, 3 Mar 2010 20:06:50 +0000 (20:06 +0000)]
MFC 204656:
Add missing ar9285_reset.c file.

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

14 years agoMFC r204509:
mav [Wed, 3 Mar 2010 19:14:05 +0000 (19:14 +0000)]
MFC r204509:
- Add ALI M5228 PATA ID.
- Add missed DMA initialization for ALI SATA chips.

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

14 years agoMFC r204250:
mav [Wed, 3 Mar 2010 19:12:53 +0000 (19:12 +0000)]
MFC r204250:
Fix recursive lock attempt on hot-plug event in non-ATA_CAM mode.

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

14 years agoMFC r204210, r204216:
mav [Wed, 3 Mar 2010 19:11:39 +0000 (19:11 +0000)]
MFC r204210, r204216:
Add Intel PCH SATA controller IDs.

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

14 years agoMFC r204276:
jh [Wed, 3 Mar 2010 16:06:43 +0000 (16:06 +0000)]
MFC r204276:

Fix expansion of \W in prompt strings when the working directory is "/".
The prompt string was truncated after \W when the working directory was "/".

PR: bin/89410

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

14 years agoMFC r203823: kgdb: initialize n_type field of nlist entry for kvm_nlist
avg [Tue, 2 Mar 2010 18:38:00 +0000 (18:38 +0000)]
MFC r203823: kgdb: initialize n_type field of nlist entry for kvm_nlist

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

14 years agoMFC r204420
alc [Tue, 2 Mar 2010 16:29:08 +0000 (16:29 +0000)]
MFC r204420
  When running as a guest operating system, the FreeBSD kernel must assume
  that the virtual machine monitor has enabled machine check exceptions.
  Unfortunately, on AMD Family 10h processors the machine check hardware
  has a bug (Erratum 383) that can result in a false machine check exception
  when a superpage promotion occurs.  Thus, I am disabling superpage
  promotion when the FreeBSD kernel is running as a guest operating system
  on an AMD Family 10h processor.

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

14 years agoMFC 204427: Add the shutdown KEYWORD.
ume [Tue, 2 Mar 2010 16:25:07 +0000 (16:25 +0000)]
MFC 204427: Add the shutdown KEYWORD.

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

14 years agoMFC r197948 r203156 r203158 r203159 r203680 r203682 r203750 r203882 r203930
rpaulo [Tue, 2 Mar 2010 13:13:12 +0000 (13:13 +0000)]
MFC r197948 r203156 r203158 r203159 r203680 r203682 r203750 r203882 r203930
    r203933 r203959 r204521 r204578:

Atheros AR9285 support.

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

14 years agoMFC r204416:
kib [Tue, 2 Mar 2010 11:00:10 +0000 (11:00 +0000)]
MFC r204416:
Update man page for vm_page_alloc(9).

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

14 years agoMFC r204415:
kib [Tue, 2 Mar 2010 10:41:34 +0000 (10:41 +0000)]
MFC r204415:
Update comment for vm_page_alloc(9), listing all acceptable flags [1].
Note that the function does not sleep, it can block.

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

14 years agoMFC r204412:
kib [Tue, 2 Mar 2010 10:32:34 +0000 (10:32 +0000)]
MFC r204412:
Fix several style issues.
Define make_dev_credv() as static to match declaration.

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

14 years agoMFC of r204566, tzdata2010c:
edwin [Tue, 2 Mar 2010 10:05:20 +0000 (10:05 +0000)]
MFC of r204566, tzdata2010c:

Paraguay changes its DST schedule, postponing the March rule to
April and modifying the October date.

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

14 years agoMFC r197042: remove dpms.4.
delphij [Tue, 2 Mar 2010 07:48:12 +0000 (07:48 +0000)]
MFC r197042: remove dpms.4.

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

14 years agoMFC x86emu/x86bios emulator and make previously i386 only dpms and vesa
delphij [Tue, 2 Mar 2010 01:56:55 +0000 (01:56 +0000)]
MFC x86emu/x86bios emulator and make previously i386 only dpms and vesa
framebuffer driver, etc. work on FreeBSD/amd64.

A significant amount of improvements were done by jkim@ during the recent
months to make vesa(4) work better, over the initial code import.  This
work is based on OpenBSD's x86emu implementation and contributed by
paradox <ddkprog yahoo com> and swell.k at gmail com.

Hopefully I have stolen all their work to 8-STABLE :)

All bugs in this commit are mine, as usual.

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

14 years agoMFC: Fix spelling of EACCES.
jhb [Mon, 1 Mar 2010 21:04:01 +0000 (21:04 +0000)]
MFC: Fix spelling of EACCES.

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

14 years agoMFC r204351:
mav [Mon, 1 Mar 2010 19:43:26 +0000 (19:43 +0000)]
MFC r204351:
Fix bug in headphones audio redirection using separate DAC. It was exposed
by removing channel duplication during multichannel audio implementation.

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

14 years agoMFC r204354:
mav [Mon, 1 Mar 2010 19:36:19 +0000 (19:36 +0000)]
MFC r204354:
Make PUIS detection more strict. Previous implementation caused false
positives on VMWare's virtual CD-ROMs.

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

14 years agoMFC r204253:
mav [Mon, 1 Mar 2010 19:32:34 +0000 (19:32 +0000)]
MFC r204253:
Make xpt_rescan() more correct, as it was before r197208: do not use
XPT_SCAN_LUN for wildcard LUN, fall back to XPT_SCAN_BUS.

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

14 years agoMFC r204220, r204353:
mav [Mon, 1 Mar 2010 19:19:30 +0000 (19:19 +0000)]
MFC r204220, r204353:
Virtualize transport part of periph announcement.

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

14 years agoMFC r204195:
mav [Mon, 1 Mar 2010 19:16:34 +0000 (19:16 +0000)]
MFC r204195:
Improve output for controllers that doesn't report SATA speed.

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

14 years agoMFC of 204397: fix problems with fast posting handles
mjacob [Mon, 1 Mar 2010 17:36:45 +0000 (17:36 +0000)]
MFC of 204397: fix problems with fast posting handles

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

14 years agoMFC r204356:
mav [Mon, 1 Mar 2010 11:33:09 +0000 (11:33 +0000)]
MFC r204356:
Store path for rescan to the right place. This should fix panic on boot,
introduced by r203108.

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

14 years agoMFC r204197:
nwhitehorn [Mon, 1 Mar 2010 00:38:20 +0000 (00:38 +0000)]
MFC r204197:

Allow user programs to execute mfpvr instructions. Linux allows this, and
some math-related software like GMP expects to be able to use it to pick
a target appropriately.

Reported by: Jakob van Santen <vansanten at wisc dot edu>

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

14 years agoMFC r204129:
nwhitehorn [Mon, 1 Mar 2010 00:35:30 +0000 (00:35 +0000)]
MFC r204129:

Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
PowerPC Book-S hardware, which had been broken for a very long time.

Submitted by: Andreas Tobler

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

14 years agoMFC r203360
joerg [Sun, 28 Feb 2010 22:25:39 +0000 (22:25 +0000)]
MFC r203360

  GPIB overhaul, part #2: make the tnt4882 driver work with the newer
  TNT5004 IC.  This involved a major rewrite of a number of things, as
  this chip no longer supports the NAT7210 legacy mode but requires the
  host to use the (more modern) FIFO mode.

  In theory, this also ought to work on the older TNT4882C chip.  I'll
  probably add this as optional support (perhaps by a device.hints flag)
  later on.  By now, FIFO mode is *only* activates iff a TNT5004 chip
  has been detected (where the old code didn't work at all), while
  everything else is supposed to use the old code.

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

14 years agoMFC r203546: acpi_cpu: prefer _OSC over _PDC
avg [Sun, 28 Feb 2010 21:43:47 +0000 (21:43 +0000)]
MFC r203546: acpi_cpu: prefer _OSC over _PDC

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

14 years agoMFC r203430: acpi_cpu: correct capabilities arguments for Processor _OSC
avg [Sun, 28 Feb 2010 21:30:46 +0000 (21:30 +0000)]
MFC r203430: acpi_cpu: correct capabilities arguments for Processor _OSC

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

14 years agoMFC r203061: KASSERT contract of return value of interrupt filter
avg [Sun, 28 Feb 2010 21:28:24 +0000 (21:28 +0000)]
MFC r203061: KASSERT contract of return value of interrupt filter

X-MFCto7 after: 1 week

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

14 years agoMFC r203665:
jh [Sun, 28 Feb 2010 14:04:20 +0000 (14:04 +0000)]
MFC r203665:

Make sure that FTS_COMFOLLOW is not set when the -P option is in effect.
Otherwise the -i option will show the inode number of the referenced file
for symbolic links given on the command line. Similarly, the file color
was printed according to the link target in colorized output.

PR: bin/102394

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

14 years agoMerge r204166 from head:
gavin [Sun, 28 Feb 2010 11:14:29 +0000 (11:14 +0000)]
Merge r204166 from head:

  Document the interaction between /etc/devfs.conf and
  /etc/defaults/devfs.conf

PR: docs/117308
Submitted by: Mel <mel.xyzzy rachie.is-a-geek.net> (partially)

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

14 years agoMFC of 204384: Fix misallocation error in target mode
mjacob [Sun, 28 Feb 2010 06:07:53 +0000 (06:07 +0000)]
MFC of 204384: Fix misallocation error in target mode

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

14 years agoMFC rev 204182:
marcel [Sun, 28 Feb 2010 01:25:12 +0000 (01:25 +0000)]
MFC rev 204182:
Remove pm_active from struct pmap as it serves no purpose.

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

14 years agoMFC r203490: Introduce '[ipaddr]:path' notation.
ume [Sat, 27 Feb 2010 18:27:32 +0000 (18:27 +0000)]
MFC r203490: Introduce '[ipaddr]:path' notation.
Since the existing implementation searches ':' backward, a path which
includes ':' could not be mounted.  You can now mount such path by
enclosing an IP address by '[]'.
Though we should change to search ':' forward, it will break
'ipv6addr:path' which is currently working.  So, it still searches ':'
backward, at least for now.

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

14 years agoMFC r203433:
ume [Sat, 27 Feb 2010 18:19:13 +0000 (18:19 +0000)]
MFC r203433:

Add rc.d script for the rtsold(8) daemon.

The rtsol(8) handles just one RA then exit.  So, the OtherConfig flag
may not be handled well by rtsol(8) in the environment where there are
multiple RA servers on the segment.  In such case, rtsold(8) will be
your friend.

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

14 years agoMFC r203827:
kib [Sat, 27 Feb 2010 16:51:23 +0000 (16:51 +0000)]
MFC r203827:
- Add idempotency guards so the structures can be used in other utilities.
- Update bpb structs with reserved fields.
- In direntry struct join deName with deExtension. Although a
  fix was attempted in the past, these fields were being overflowed,
  Now this is consistent with the spec, and we can now share the
  WinChksum code with NetBSD.

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

14 years agoMFC r204106:
emaste [Sat, 27 Feb 2010 03:47:22 +0000 (03:47 +0000)]
MFC r204106:

  Avoid corrupting the list or queue if _REMOVE is invoked with a
  reference to the head.

PR: kern/119307

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

14 years agoMFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.
mckusick [Fri, 26 Feb 2010 21:49:11 +0000 (21:49 +0000)]
MFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.

These fixes correct a problem in the file system that treats large
inode numbers as negative rather than unsigned. For a default
(16K block) file system, this bug began to show up at a file system
size above about 16Tb.

These fixes also update newfs to ensure that it will never create a
filesystem with more than 2^32 inodes.

They also update libufs, tunefs, and growfs so that they properly
handle inode numbers as unsigned.

Reported by: Scott Burns, John Kilburg, and Bruce Evans
Followup by: Jeff Roberson
PR:          133980

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

14 years agoMFC r203695, r203751
rpaulo [Fri, 26 Feb 2010 20:25:30 +0000 (20:25 +0000)]
MFC r203695, r203751
  Fix spelling mistake and compile error.

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

14 years agoMFC r203683:
rpaulo [Fri, 26 Feb 2010 18:46:16 +0000 (18:46 +0000)]
MFC r203683:
 Add multicast key search support. This fixes corrupted mcast packets
 when we have more than one hostap vap.

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

14 years agoMFC 203052:
delphij [Fri, 26 Feb 2010 00:54:47 +0000 (00:54 +0000)]
MFC 203052:

Add interface description capability as inspired by OpenBSD.  Thanks for
rwatson@, jhb@, brooks@ and others for feedback to the old implementation!

Sponsored by: iXsystems, Inc.

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

14 years agoMFC: r204105
jkim [Fri, 26 Feb 2010 00:11:17 +0000 (00:11 +0000)]
MFC: r204105

Return partially filled buffer for non-blocking read(2)
in non-immediate mode.

PR: kern/143855
Submitted by: Guy Harris (guy at alum dot mit dot edu)

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

14 years agoMFC r204009
raj [Thu, 25 Feb 2010 13:28:05 +0000 (13:28 +0000)]
MFC r204009

Assorted fixes for mge(4).

- Use proper map for the busdma sync on mge descriptor.
- Remove unnecesary busdma sync.
- Eliminate redundant locking in mge_reinit_rx() (just assert).
- Kill unused variable.

Submitted by: Grzegorz Bernacki
Obtained from: Semihalf

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

14 years agoMFC r204205:
kib [Thu, 25 Feb 2010 10:40:52 +0000 (10:40 +0000)]
MFC r204205:
Remove write-only variable.

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

14 years agoMFC r202964:
delphij [Thu, 25 Feb 2010 00:46:51 +0000 (00:46 +0000)]
MFC r202964:

On FreeBSD, time_t is 64-bit for all platforms except i386 and powerpc,
where the type is 32-bit.  ZFS can handle 64-bit timestamp internally
but zfs_setattr() would check if the time value can fit, we change the
checking macros to match 64-bit timestamp if the platform supports it.

This change has some downsides like, while you can import zfs on 32-bit
platforms, the timestamp would overflow if they are out of the range.

This fixes the Y2.038K issue on platforms using 64-bit timestamps.

Reviewed by: pjd

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

14 years agoMFC r202143,202163,202341,202342,204278
brooks [Wed, 24 Feb 2010 22:16:16 +0000 (22:16 +0000)]
MFC r202143,202163,202341,202342,204278

  Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic
  kern.ngroups+1.  kern.ngroups can range from NGROUPS_MAX=1023 to
  somewhere in the neighborhood of INT_MAX/4 one a system with sufficent
  RAM and memory bandwidth.  Given that the Windows group limit is
  1024, this range should be sufficient for most applications

r202342:
  Only allocate the space we need before calling kern_getgroups instead
  of allocating what ever the user asks for up to "ngroups_max + 1".  On
  systems with large values of kern.ngroups this will be more efficient.

  The now redundant check that the array is large enough in
  kern_getgroups() is deliberate to allow this change to be merged to
  stable/8 without breaking potential third party consumers of the API.

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

14 years agoMFC 204090:
jhb [Wed, 24 Feb 2010 21:29:18 +0000 (21:29 +0000)]
MFC 204090:
Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix buses and perphierals.

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

14 years agoMFC 204086:
jhb [Wed, 24 Feb 2010 21:20:25 +0000 (21:20 +0000)]
MFC 204086:
- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
  present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.

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

14 years agoMFC r203924:
raj [Wed, 24 Feb 2010 20:20:02 +0000 (20:20 +0000)]
MFC r203924:

Call the proper linkup routine in PowerPC Book-E machdep.

Submitted by: attilio

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