]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r200183 by luigi:
glebius [Mon, 22 Mar 2010 10:11:59 +0000 (10:11 +0000)]
MFC r200183 by luigi:

  restore setting of sin_len (was removed in 1.146 last february) as
  it seems that now it is necessary for 'forward' to work outside lo0.

Approved by: luigi

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

14 years agoMFC r204879:
kib [Mon, 22 Mar 2010 09:29:56 +0000 (09:29 +0000)]
MFC r204879:
Teach procstat(1) to display some information about signal disposition
and pending/blocked status for signals.

MFC r204880:
Add file forgotten in r204879.

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

14 years agoMFC r204211:
nwhitehorn [Sat, 20 Mar 2010 15:28:39 +0000 (15:28 +0000)]
MFC r204211:

Support the extended PLT format used when objects have more than 8192
PLT relocations on PPC32.

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

14 years agoMFC r204297:
nwhitehorn [Sat, 20 Mar 2010 15:27:01 +0000 (15:27 +0000)]
MFC r204297:

Move the OEA64 scratchpage to the end of KVA from the beginning, and set
its PVO to map physical address 0 instead of kernelstart. This fixes a
situation in which a user process could attempt to return this address
via KVM, have it fault while being modified, and then panic the kernel
because (a) it is supposed to map a valid address and (b) it lies in the
no-fault region between VM_MIN_KERNEL_ADDRESS and virtual_avail.

While here, move msgbuf and dpcpu back into regular KVA space for
consistency with other implementations.

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

14 years agoMFC r204296:
nwhitehorn [Sat, 20 Mar 2010 15:23:06 +0000 (15:23 +0000)]
MFC r204296:

Provide an implementation of pmap_dev_direct_mapped() on OEA64. This is
required in order to be able to mmap the running kernel, which is turn
required to avoid fstat returning gibberish.

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

14 years agoMFC r204269:
nwhitehorn [Sat, 20 Mar 2010 15:21:13 +0000 (15:21 +0000)]
MFC r204269:

Use dcbz instead of word stores for page zeroing, providing a factor of
3-4 speedup.

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

14 years agoMFC r204268:
nwhitehorn [Sat, 20 Mar 2010 15:19:57 +0000 (15:19 +0000)]
MFC r204268:

Close a race involving the OEA64 scratchpage. When the scratch page's
physical address is changed, there is a brief window during which its PTE
is invalid. Since moea64_set_scratchpage_pa() does not and cannot hold
the page table lock, it was possible for another CPU to insert a new PTE
into the scratch page's PTEG slot during this interval, corrupting both
mappings.

Solve this by creating a new flag, LPTE_LOCKED, such that
moea64_pte_insert will avoid claiming locked PTEG slots even if they
are invalid. This change also incorporates some additional paranoia
added to solve things I thought might be this bug.

Reported by: linimon

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

14 years agoMFC r204128:
nwhitehorn [Sat, 20 Mar 2010 15:15:54 +0000 (15:15 +0000)]
MFC r204128:

Reduce KVA pressure on OEA64 systems running in bridge mode by mapping
UMA segments at their physical addresses instead of into KVA. This emulates
the direct mapping behavior of OEA32 in an ad-hoc way. To make this work
properly required sharing the entire kernel PMAP with Open Firmware, so
ofw_pmap is transformed into a stub on 64-bit CPUs.

Also implement some more tweaks to get more mileage out of our limited
amount of KVA, principally by extending KVA into segment 16 until the
beginning of the first OFW mapping.

Reported by: linimon

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

14 years agoFix a bug where pages being removed from memory entirely no longer have
nwhitehorn [Sat, 20 Mar 2010 15:05:44 +0000 (15:05 +0000)]
Fix a bug where pages being removed from memory entirely no longer have
PVOs, and so the modified state of the page can no longer be communicated
to the VM layer, causing pages not to be flushed to swap when needed, in
turn causing memory corruption. Also make several correctness adjustments
to I-Cache synchronization and TLB invalidation for 64-bit Book-S CPUs.

Obtained from: projects/ppc64
Discussed with: grehan

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

14 years agoMFC r204903:
nwhitehorn [Sat, 20 Mar 2010 14:55:22 +0000 (14:55 +0000)]
MFC r204903:

Place interrupt handling in a critical section and remove double
counting in incrementing the interrupt nesting level. This fixes a number
of bugs in which the interrupt thread could be preempted by an IPI,
indefinitely delaying acknowledgement of the interrupt to the PIC, causing
interrupt starvation and hangs.

Reported by: linimon
Reviewed by: marcel, jhb

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

14 years agoMFC r204082,204179,204180,204218,204241,204247,204270,204692:
nwhitehorn [Sat, 20 Mar 2010 14:49:44 +0000 (14:49 +0000)]
MFC r204082,204179,204180,204218,204241,204247,204270,204692:

Provide thermal management and monitoring features in smu(4). This allows
fan control and thermal monitoring on SMU-based Apple G5 machines, as well
as an led(4) interface to control the sleep LED.

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

14 years agoMFC r205225:
kib [Fri, 19 Mar 2010 10:33:45 +0000 (10:33 +0000)]
MFC r205225:
Add missing headers. While there, arrange headers alphabetically.

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

14 years agoMFC r205224:
kib [Fri, 19 Mar 2010 10:28:49 +0000 (10:28 +0000)]
MFC r205224:
Add missing headers.

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

14 years agoMFC r204755:
kib [Fri, 19 Mar 2010 10:25:59 +0000 (10:25 +0000)]
MFC r204755:
Update the list of the process flags. Note that the lists of pending
signals for process and its threads are distinct.

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

14 years agoMFC r202717:
yongari [Fri, 19 Mar 2010 00:26:45 +0000 (00:26 +0000)]
MFC r202717:
  - Added a workaround for NC-SI management firmware that would allow
    frames to be accepted while the driver is resetting the hardware.
    This failure is generally observed when broadcast frames are received
    during driver load and will generate "Unable to write CTX memory"
    errors.
  - Small changes to driver flags display.

PR: kern/135836, kern/140684

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

14 years agoMFC r204150:
yongari [Thu, 18 Mar 2010 19:10:03 +0000 (19:10 +0000)]
MFC r204150:
  Add TSO support on VLAN in fconfig(8).

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

14 years agoMFC r204149:
yongari [Thu, 18 Mar 2010 19:04:04 +0000 (19:04 +0000)]
MFC r204149:
  Add TSO support on VLANs. Intentionally separated IFCAP_VLAN_HWTSO
  from IFCAP_VLAN_HWTAGGING. I think some hardwares may be able to
  TSO over VLAN without VLAN hardware tagging.
  Driver changes and userland support will follow.

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

14 years agoMFC r202826-202827,204146
yongari [Thu, 18 Mar 2010 18:58:24 +0000 (18:58 +0000)]
MFC r202826-202827,204146

r202826:
  s/Mhz/MHz/g

  Submitted by: N.J. Mann <njm <> njm dot me dot uk >

r202827:
  Yukon Ultra2 has 125MHz clock.

r204146:
  Correct inversed programming of ethernet hardware address on
  big-endian architecture.

  Submitted by: C. Jayachandran <c.jayachandran at gmail dot com> (initial version)

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

14 years agoMFC r203358,203716:
yongari [Thu, 18 Mar 2010 18:50:20 +0000 (18:50 +0000)]
MFC r203358,203716:

r203358:
  PCI express device status register has W1C feature. Writing 0 has
  no effect. Make sure to clear error bits by writing 1. [1]
  While I'm here use predefined value instead of hardcodig magic
  vlaue.

  Submitted by: msaitoh at NetBSD [1]

r203716:
  Move device specific flag configuration to attach routine.
  The softc obtained in device probe wouldn't be the same one used in
  device attach. Drivers should not assume any values stored in softc
  structure in probe routine will be available for its attach routine.

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

14 years agoMFC r203355:
yongari [Thu, 18 Mar 2010 18:44:08 +0000 (18:44 +0000)]
MFC r203355:
  Add more bit definitions to PCI express device control and device
  status register.

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

14 years agoMFC r202821-202822.
yongari [Thu, 18 Mar 2010 18:35:28 +0000 (18:35 +0000)]
MFC r202821-202822.

r202821:
  Fix a long standing ASF heartbeat sending bug. The initial
  implementation of heartbeat interval was 2 but there was typo which
  caused the heartbeat is sent approximately every 5 seconds. This
  caused unintended controller reset by firmware because firmware
  thought OS was crashed.

  Submitted by: Floris Bos < info <> je-eigen-domein dot nl >
  Tested by: Andrzej Tobola < ato <> iem dot pw dot edu dot pl >

r202822:
  Use new handshake command for BCM5750 or new controllers.

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

14 years agoMFC r203834 and r205197: Make ALTQ work for drbr consumers.
mlaier [Thu, 18 Mar 2010 17:00:44 +0000 (17:00 +0000)]
MFC r203834 and r205197: Make ALTQ work for drbr consumers.

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

14 years agoMFC r205027
raj [Thu, 18 Mar 2010 11:53:32 +0000 (11:53 +0000)]
MFC r205027

Let detailed info about CPU features print on Marvell Sheeva CPU as well.

Provide missing entry in the cpu_classes[].

Reported by: Maks Verver

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

14 years agoMerge r203622 from head:
gavin [Wed, 17 Mar 2010 20:39:21 +0000 (20:39 +0000)]
Merge r203622 from head:

  Add support for a few more Sony-specific ACPI features (default display
  brightness, wired LAN power and bass gain), and update the description of
  one previously unknown feature (display contrast).  While here, expand on
  a comment and remove two defines left over from an old version of the code.

  Also update man page to document the above changes, and correct grammar.

PR: kern/127581

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

14 years agoMerge r203835 from head:
gavin [Wed, 17 Mar 2010 20:27:35 +0000 (20:27 +0000)]
Merge r203835 from head:

  When growing a UFS1 filesystem, we need to initialise all inodes in any new
  cylinder groups that are created.  When the filesystem is first created,
  newfs always initialises the first two blocks of inodes, and then in the
  UFS1 case will also initialise the remaining inode blocks.  The changes in
  growfs.c 1.23 broke the initialisation of all inodes, seemingly based on
  this implementation detail in newfs(8).  The result was that instead of
  initialising all inodes, we would actually end up initialising all but the
  first two blocks of inodes.  If the filesystem was grown into empty
  (all-zeros) space then the resulting filesystem was fine, however when
  grown onto non-zeroed space the filesystem produced would appear to have
  massive corruption on the first fsck after growing.
  A test case for this problem can be found in the PR audit trail.

  Fix this by once again initialising all inodes in the UFS1 case.

PR: bin/115174
Submitted by: "Nate Eldredge"  <nge cs.hmc.edu>
Reviewed by: mjacob

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

14 years agoMerge r203865 from head:
gavin [Wed, 17 Mar 2010 20:16:28 +0000 (20:16 +0000)]
Merge r203865 from head:

  The -newerXB option was being interpreted the same as the -newerXm option
  as a check for F_TIME2_B was missing.  Fix this.

PR: bin/138245
Submitted by: "David E. Cross"  <crossd cs.rpi.edu>

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

14 years agoMFC r205148:
kib [Wed, 17 Mar 2010 09:52:26 +0000 (09:52 +0000)]
MFC r205148:
Make it compile on LP64 arches.

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

14 years agoMFC r205145:
dougb [Wed, 17 Mar 2010 07:26:00 +0000 (07:26 +0000)]
MFC r205145:

Make it more clear in the docs that -a is not compatible with -iFU,
and enforce this in the code. Apparently a lot of users mistakenly
combine -a with these flags and are then mystified that no changes
were made.

While I'm here, fix a trailing space in mergemaster.8

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

14 years agor205170: then -> than
joerg [Tue, 16 Mar 2010 05:13:20 +0000 (05:13 +0000)]
r205170: then -> than

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

14 years agoMFC r205028
raj [Mon, 15 Mar 2010 19:59:16 +0000 (19:59 +0000)]
MFC r205028

 Fix ARM cache handling yet more.

 1) vm_machdep.c: remove the dangling allocations so they do not
    un-necessarily turn off the cache upon consecutive access.

 2) busdma_machdep.c: remove the same amount than shadow mapped.

Reported by: Maks Verver
Submitted by: Mark Tinguely
Reviewed by: Grzegorz Bernacki

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

14 years agoMFC r204764
raj [Mon, 15 Mar 2010 19:51:24 +0000 (19:51 +0000)]
MFC r204764

Provide correct TCLK value for Kirkwood A1 silicon revision.

While there improve SOC ID output accordingly.

Obtained from: Semihalf

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

14 years agoMFC: r204222
marius [Mon, 15 Mar 2010 19:13:36 +0000 (19:13 +0000)]
MFC: r204222

According to the Linux sungem driver, in case of Apple (K2) GMACs
GEM_MIF_CONFIG_MDI0 cannot be trusted when the firmware has powered
down the chip so the internal transceiver has to be hardcoded. This
is also in line with the AppleGMACEthernet driver, which just doesn't
distinguish between internal/external transceiver and MDIO/MDI1
respectively in the first place. Tested by: Andreas Tobler

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

14 years agoMFC: r204144
marius [Mon, 15 Mar 2010 19:04:44 +0000 (19:04 +0000)]
MFC: r204144

Add support for BCM54K2 found in combination with Apple K2 GMAC.

Submitted by:   Andreas Tobler
Obtained from:  OpenBSD

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

14 years agoMFC: r204974, r205002
marius [Mon, 15 Mar 2010 18:32:57 +0000 (18:32 +0000)]
MFC: r204974, r205002

- The OPSZ macro actually only does the right thing for int32 and int64
  operands but not for double and extended double ones. Instead of trying
  to fix the macro just nuke it and unroll the loops in the correct way
  though as extended double operands turn out to be the only special case.
- For FxTO{s,d,q} the source operand is int64 so rs2 has to be re-decoded
  after setting type accordingly as it's generally decoded using the low
  2 bits as the type, which are 0 for these three instructions.
- Similarly, in case of F{s,d,q}TOx the target is int64 so rd has to be
  re-decoded using not only the operand mask appropriate for int64 but
  also the correct register number encoding.
- Use const where appropriate.
- Wrap long lines.

Submitted by: Peter Jeremy (partly)

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

14 years agoMFC: r204235
jkim [Mon, 15 Mar 2010 18:22:19 +0000 (18:22 +0000)]
MFC: r204235

Fix FBIO_ADPINFO ioctl on amd64.

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

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