]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r209738:
bcr [Tue, 20 Jul 2010 15:34:27 +0000 (15:34 +0000)]
MFC r209738:

Mention the radiolist option in the man page. It is being listed when
dialog(1) is run without arguments and works as expected. Therefore,
it should be part of the manual as well.

Note: dialog(1) has not been updated for many years and is not actively
maintained at the moment.

PR:             docs/139682
Submitted by:   manolis@
Discussed with: jkim@

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

13 years agoMFC r203691:
bschmidt [Tue, 20 Jul 2010 11:08:56 +0000 (11:08 +0000)]
MFC r203691:
- Update documentation for the iwn and iwnfw drivers: they support the
  1000, 5150, 6000 and 6050 devices too, with firmware modules for the
- 4965, 1000, 5000, 5150 and 6000.
- Add documentation for mwl and all the wireless firmware drivers.

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

13 years agoMFC r210168:
mav [Tue, 20 Jul 2010 05:16:10 +0000 (05:16 +0000)]
MFC r210168:
Make legacy ATA emulation detection more strict. This should fix false
positive legacy detection and attach failure/panic for Marvell 88SX6141
controller and potentially some others.

PR:             kern/145064

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

13 years agoMFC r210165:
mav [Tue, 20 Jul 2010 05:14:30 +0000 (05:14 +0000)]
MFC r210165:
Improve interrupt setup errors handling.

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

13 years agoMFC r209978,209981,209987,210184:
lstewart [Tue, 20 Jul 2010 00:46:18 +0000 (00:46 +0000)]
MFC r209978,209981,209987,210184:

- Rename DPCPU_SUM to DPCPU_VARSUM to better reflect the fact it operates on
  member variables of a DPCPU struct (r209978).

- Add DPCPU_SUM which sums a DPCPU variable (r209978,209987,210184).

- Macro to simplify zeroing DPCPU variables (r209981,209987).

Sponsored by: FreeBSD Foundation

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

13 years agoMFC r209954:
bcr [Mon, 19 Jul 2010 19:54:37 +0000 (19:54 +0000)]
MFC r209954:

Fix spelling of "weirdo" in /etc/gettytab comment.

PR:             docs/148500
Submitted by:   Warren Block (wblock at wonkity dot com)
Approved by:    ed@

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

13 years agoMFC r210134:
jamie [Mon, 19 Jul 2010 19:52:02 +0000 (19:52 +0000)]
MFC r210134:

  Don't copy and return a potentially unset buffer when jail_get fails.

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

13 years agoMFC r210133:
jamie [Mon, 19 Jul 2010 19:51:17 +0000 (19:51 +0000)]
MFC r210133:

  Don't import parameter values in jail_getv, except for the search key.
  Remove the internal jailparam_vlist, in favor of using variants of its
   logic separately in jail_setv and jail_getv.
  Free the temporary parameter list and exported values in jail_setv
   and jail_getv.

Noted by: Stanislav Uzunchev

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

13 years ago- Clean up old contents and bump version numbers.
hrs [Mon, 19 Jul 2010 15:26:42 +0000 (15:26 +0000)]
- Clean up old contents and bump version numbers.
- Add items for security advisories.

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

13 years agoMFC r209197:
kib [Mon, 19 Jul 2010 12:52:19 +0000 (12:52 +0000)]
MFC r209197:
Add assert to check that the (current) thread is in critical section.

MFC r209204:
Rename CRITSECT_ASSERT to CRITICAL_ASSERT

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

13 years agoMFC r209932:
kib [Mon, 19 Jul 2010 12:41:05 +0000 (12:41 +0000)]
MFC r209932:
For xsi_sigpause(3), remove the supplied signal from the process mask
during sigpause(2) call. It was backward.
Check that the signal number is valid.

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

13 years agoMFC r209933:
kib [Mon, 19 Jul 2010 12:37:28 +0000 (12:37 +0000)]
MFC r209933:
Use _SIG_VALID instead of expanded form of the macro.

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

13 years agoMFC r209934:
kib [Mon, 19 Jul 2010 12:32:24 +0000 (12:32 +0000)]
MFC r209934:
Use _SIG_VALID().

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

13 years agoMFC r209955:
kib [Mon, 19 Jul 2010 12:16:41 +0000 (12:16 +0000)]
MFC r209955:
When switching the thread from the processor, store %dr7 content
into the pcb before disabling watchpoints. Otherwise, when the
thread is restored on a processor, watchpoints are still disabled.

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

13 years agoMFC r210046: Fixed cache size decoding read from a label.
ru [Mon, 19 Jul 2010 10:55:44 +0000 (10:55 +0000)]
MFC r210046: Fixed cache size decoding read from a label.

PR:   kern/144732

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

13 years agoFix botched mergeinfo in stable/8, caused by my mismerge of r209703.
bcr [Sun, 18 Jul 2010 18:52:00 +0000 (18:52 +0000)]
Fix botched mergeinfo in stable/8, caused by my mismerge of r209703.

With help from and approved by:     kib@

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

13 years agoMFC r209703:
bcr [Sun, 18 Jul 2010 10:56:20 +0000 (10:56 +0000)]
MFC r209703:

Let boot(8) refer to the uart(4) serial driver, which is the replacement
for the obsolete sio(4) driver.

PR:             docs/144498
Submitted by:   Bruce Cran (bruce at cran dot org dot uk)
Approved by:    marcel

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

13 years agoMFC r209275:
mm [Sun, 18 Jul 2010 07:59:55 +0000 (07:59 +0000)]
MFC r209275:

Import latest ARC change from OpenSolaris:
- large ghost eviction causes high write latency
- arc_adjust might adjust MRU unnecessarily
- arc_adapt can lead to wild arc_p adjustment

OpenSolaris onnv-revision: 12636:13b5d698941e

Submitted by: avg
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 695021969534036951024)

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

13 years agoMFC r209664:
mav [Sun, 18 Jul 2010 07:42:54 +0000 (07:42 +0000)]
MFC r209664:
Add ata(4) ability to limit initial ATA mode for devices via device hints.
After boot this mode can be changed with atacontrol/camcontrol as usual.
It works for both legacy and ATA_CAM wrapper mode.

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

13 years agoMFC r209744:
mav [Sun, 18 Jul 2010 07:34:20 +0000 (07:34 +0000)]
MFC r209744:
ATA device reset starts probe sequence from the beginning. If reset caused
by timeout/error of one of probe commands, process may continue infinitely.
Make CAM ATA more robust to faulty devices and false positive detections,
abort probe after two restarts on timeouts or ten on other errors.

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

13 years agoMFC r208823:
mav [Sun, 18 Jul 2010 07:31:25 +0000 (07:31 +0000)]
MFC r208823:
Add allocation error handling.

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

13 years agoMFC r208819:
mav [Sun, 18 Jul 2010 07:29:37 +0000 (07:29 +0000)]
MFC r208819:
Fix double free on error.

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

13 years agoMFC r209883, r209944:
mav [Sun, 18 Jul 2010 07:23:00 +0000 (07:23 +0000)]
MFC r209883, r209944:
Make interrupt handler check that CAM bus initialization completed before
touching it. It fixes possible panic during controller attach in ATA_CAM
mode.

While there, slightly improve attach errors handling.

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

13 years agoMFC r210107,r210108:
bschmidt [Sun, 18 Jul 2010 07:19:23 +0000 (07:19 +0000)]
MFC r210107,r210108:
- Remove duplicate vendor:device entry.
- Fix some small whitespace nits.

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

13 years agoMFC r209977:
mav [Sun, 18 Jul 2010 07:15:37 +0000 (07:15 +0000)]
MFC r209977:
Disable multi-sector PIO transfers if ATA_SET_MULTI command failed.

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

13 years agoMFC r209884:
mav [Sun, 18 Jul 2010 07:13:55 +0000 (07:13 +0000)]
MFC r209884:
If ata_sata_phy_reset() failed and ata_generic_reset() is not called, mark
channel as having no devices connected. This improves hot-unplug operation
on legacy-emulating SATA controllers.

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

13 years agoMFC r209872:
mav [Sun, 18 Jul 2010 07:11:03 +0000 (07:11 +0000)]
MFC r209872:
Make hw.ata.ata_dma_check_80pin tunable affect not only device side, but
also controller side cable checks. Make respective sysctl writable.

PR:             kern/143462

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

13 years agoMFC: r209961
marius [Sat, 17 Jul 2010 15:47:23 +0000 (15:47 +0000)]
MFC: r209961

Correct inverted parent DMA tag parameters.

Reviewed by: ken

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

13 years agoMFC r209871 from /head
keramida [Sat, 17 Jul 2010 07:56:01 +0000 (07:56 +0000)]
MFC r209871 from /head

  Fix reading of empty fifolog files.  When we don't have anything
  to inflate, skip the rest of the fifolog reader code to avoid
  hitting the assert about Z_OK a bit further down.

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

13 years agoPredict the date we'll be ready to announce 8.1-RELEASE. While here
kensmith [Sat, 17 Jul 2010 04:35:02 +0000 (04:35 +0000)]
Predict the date we'll be ready to announce 8.1-RELEASE.  While here
add the entry for 8.0-RELEASE which was added to releng/8.0/UPDATING
during the 8.0-RELEASE cycle but not to stable/8/UPDATING at that time.

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

13 years agoMFC r208982,r208983,r210117 : cosmetic changes to kern.sched.topology_spec XML
ivoras [Fri, 16 Jul 2010 14:31:24 +0000 (14:31 +0000)]
MFC r208982,r208983,r210117 : cosmetic changes to kern.sched.topology_spec XML

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

13 years agoMFC r209664:
mav [Fri, 16 Jul 2010 09:12:47 +0000 (09:12 +0000)]
MFC r209664:
Add ata(4) ability to limit initial ATA mode for devices via device hints.
After boot this mode can be changed with atacontrol/camcontrol as usual.
It works for both legacy and ATA_CAM wrapper mode.

PR:             kern/123980

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

13 years agoMFC r208822:
mav [Fri, 16 Jul 2010 09:10:11 +0000 (09:10 +0000)]
MFC r208822:
Fix possible use after free.

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

13 years agoMFC r208820:
mav [Fri, 16 Jul 2010 09:08:16 +0000 (09:08 +0000)]
MFC r208820:
Fix use after free on error.

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

13 years agoMFC r201227: record the fact
imp [Thu, 15 Jul 2010 22:52:36 +0000 (22:52 +0000)]
MFC r201227: record the fact

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

13 years agoMFC: r209969
imp [Thu, 15 Jul 2010 22:35:50 +0000 (22:35 +0000)]
MFC: r209969

r209969 | nwhitehorn | 2010-07-12 22:08:08 -0600 (Mon, 12 Jul 2010) | 13 lines

Enhance config to handle MACHINEs with multiple architectures:

- Passing -m to config will now print the MACHINE and MACHINE_ARCH
  given in the passed kernel configuration file and then exit.
- If an option is defined in options.MACHINE with the same name as the
  architecture of the kernel being configured, that option will be
  considered set. This allows conditional compilation based on CPU
  architecture.

Config version is now 600010.

Reviewed by:    imp

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

13 years agoMFC: r209135
imp [Thu, 15 Jul 2010 22:34:30 +0000 (22:34 +0000)]
MFC: r209135
r209135 | imp | 2010-06-13 10:54:11 -0600 (Sun, 13 Jun 2010) | 9 lines

style(9) fixes:

o make cmd scoped to the whole do_rules function, since it really is
  scoped to the whole fucnion.  Making it static was the wrong way to
  fix referencing it outside of the block in which it was declared
  (and conforms to the style of the rest of the file).
o remove a couple of meaningless blank lines
o properly wrap one line.

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

13 years agoMFC part of 209483:
jhb [Thu, 15 Jul 2010 12:17:17 +0000 (12:17 +0000)]
MFC part of 209483:
Clear DF bit in cmcint interrupt handler.

Submitted by: kib

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

13 years agoMFC r209924; Add -l to the synopsis
brian [Thu, 15 Jul 2010 07:14:57 +0000 (07:14 +0000)]
MFC r209924; Add -l to the synopsis

Submitted by: jhell at dataix dot net

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

13 years agoMFC 209595:
jhb [Wed, 14 Jul 2010 21:52:02 +0000 (21:52 +0000)]
MFC 209595:
Send SIGPIPE to the thread that issued the offending system call
rather than to the entire process.

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

13 years agoPartially MFC 209592:
jhb [Wed, 14 Jul 2010 21:48:16 +0000 (21:48 +0000)]
Partially MFC 209592:
Add a tdksignal() routine that mirrors pksignal() except that it accepts a
thread instead of a process.  As an extension, if a NULL ksiginfo_t is
passed in, setup a ksiginfo_t on the stack similar to psignal().  This
provides semantics matching the new tdsignal() function in 9 while
preserving the existing ABI.

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

13 years agoMFC 208507,208556,208621:
jhb [Wed, 14 Jul 2010 21:10:14 +0000 (21:10 +0000)]
MFC 208507,208556,208621:
Add support for corrected machine check interrupts.  CMCI is a new local
APIC interrupt that fires when a threshold of corrected machine check
events is reached.  CMCI also includes a count of events when reporting
corrected errors in the bank's status register.  Note that individual
banks may or may not support CMCI.  If they do, each bank includes its own
threshold register that determines when the interrupt fires.  Currently
the code uses a very simple strategy where it doubles the threshold on
each interrupt until it succeeds in throttling the interrupt to occur
only once a minute (this interval can be tuned via sysctl).  The threshold
is also adjusted on each hourly poll which will lower the threshold once
events stop occurring.

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

13 years agoMFC 208787:
jhb [Wed, 14 Jul 2010 19:00:44 +0000 (19:00 +0000)]
MFC 208787:
Assert that the thread lock is held in sched_pctcpu() instead of
recursively acquiring it.  All of the current callers already hold the
lock.

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

13 years agoMFC 209588:
jhb [Wed, 14 Jul 2010 18:55:34 +0000 (18:55 +0000)]
MFC 209588:
- The ETIMEDOUT error applies to pthread_timedjoin_np(), not pthread_join().
- Tweak wording in history section for pthread_timedjoin_np().

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

13 years agoMFC r209718:
ed [Tue, 13 Jul 2010 11:04:46 +0000 (11:04 +0000)]
MFC r209718:

  Fix a race condition, where a TTY could be destroyed twice.

  There are special cases where tty_rel_free() can be called twice in a
  row, namely when closing and revoking the TTY at the same moment. Only
  call destroy_dev_sched_cb() once.

Reported by:  Jeremie Le Hen

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

13 years agoMFC r209743:
kib [Tue, 13 Jul 2010 08:45:50 +0000 (08:45 +0000)]
MFC r209743:
Calculate nshift only once.

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

13 years agoMFC r209742:
kib [Tue, 13 Jul 2010 08:43:28 +0000 (08:43 +0000)]
MFC r209742:
In revoke(), verify that VCHR vnode indeed belongs to devfs.

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

13 years agoMFC r209715: addr2ascii(3) was removed ages ago. Fix the comment.
maxim [Tue, 13 Jul 2010 05:12:14 +0000 (05:12 +0000)]
MFC r209715: addr2ascii(3) was removed ages ago.  Fix the comment.

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

13 years agoCorrectly copy the M_RDONLY flag when duplicating a reference
cperciva [Tue, 13 Jul 2010 02:45:17 +0000 (02:45 +0000)]
Correctly copy the M_RDONLY flag when duplicating a reference
to an mbuf external buffer.

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-10:07.mbuf

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

13 years agoMFC r202917
remko [Mon, 12 Jul 2010 17:46:19 +0000 (17:46 +0000)]
MFC r202917

 Add support for the NM10 chipset.

 PR: kern/143118
 Submitted by: Koshin sumitani <ksumitani at mui dot biglobe dot ne dot jp>
 Approved by: imp (mentor, implicit)
 MFC after: 3 days

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

13 years agoMFC r209853:
nwhitehorn [Mon, 12 Jul 2010 14:24:20 +0000 (14:24 +0000)]
MFC r209853:

The number after 2 is 3, not 4.

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

13 years agoMFC r209577, r209761:
attilio [Mon, 12 Jul 2010 10:11:10 +0000 (10:11 +0000)]
MFC r209577, r209761:
- Fix a lock leak in case the ticks wrapped up
- Simplify the logic for handling ticks wrap-ups
- Fix a bug where a thread may be in sleepign state but not on a
  sleepqueue chain still.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r209364: Fix some (not all) style(9) and casting errors.
brian [Sun, 11 Jul 2010 22:00:40 +0000 (22:00 +0000)]
MFC r209364: Fix some (not all) style(9) and casting errors.

PR: 209364
Submitted by: giffunip at tutopia dot com
Obtained from: NetBSD

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

13 years agoMFC r209363: Recognise the -l switch in pkill.
brian [Sun, 11 Jul 2010 21:50:05 +0000 (21:50 +0000)]
MFC r209363: Recognise the -l switch in pkill.

PR: 143558
Submitted by: eitanadlerlist at gmail dot com

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

13 years agoMFC r209362: Add a -t switch for masking output based on size.
brian [Sun, 11 Jul 2010 21:47:38 +0000 (21:47 +0000)]
MFC r209362: Add a -t switch for masking output based on size.

PR: 144192
Submitted by: gk

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

13 years agoMFC r209820:
jamie [Sun, 11 Jul 2010 15:32:20 +0000 (15:32 +0000)]
MFC r209820:

  Properly recognize a number followed by non-digits as a jail name.
  Call "0" a name because zero is used to indicate no specified jid.

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

13 years agoMFC r209214:
mav [Sun, 11 Jul 2010 12:06:42 +0000 (12:06 +0000)]
MFC r209214:
When Emulate3Button is active, do not set select() timeout in states when
it is not needed. No need to kick CPU every 20ms without a purpose.

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

13 years agoMFC r209328,r209330:
mav [Sun, 11 Jul 2010 11:58:46 +0000 (11:58 +0000)]
MFC r209328,r209330:
While we indeed can't precisely measure time spent in C1, we can consider
measured interval as upper bound. It should be more precise then just
assuming 1/(2*hz). For idle CPU it should be quite precise, for busy - not
worse then before.

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

13 years agoMFC r209685:
kib [Sun, 11 Jul 2010 09:37:34 +0000 (09:37 +0000)]
MFC r209685:
Introduce a helper function vm_page_find_least(). Use it in several places,
which inline the function.

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

13 years agoMFC r209793:
kib [Sun, 11 Jul 2010 08:43:30 +0000 (08:43 +0000)]
MFC r209793:
Do not mention VM_ALLOC_RETRY in comment, and normalize the terminology
(blocking -> sleeping).

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

13 years agoMFC r209687:
kib [Sun, 11 Jul 2010 08:41:30 +0000 (08:41 +0000)]
MFC r209687:
Constify source argument for siginfo_to_siginfo32().

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

13 years agoMFC r209757:
mm [Sat, 10 Jul 2010 09:29:48 +0000 (09:29 +0000)]
MFC r209757:

- Add support for the "sec" option to "zfs set sharenfs"

Submitted by: Dmitry Morozovsky <marck@FreeBSD.org>
Approved by: delphij (mentor)

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

13 years agoMFC r209860:
delphij [Fri, 9 Jul 2010 20:44:14 +0000 (20:44 +0000)]
MFC r209860:

Don't use pack() for structures that is used purely for software state.
Otherwise the resulting, unaligned mutex structure would trigger panic.

Submitted by: Tom Cough <tom.couch lsi.com>
Reported/Tested by: jhb

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

13 years agoMFC r208946:
ae [Fri, 9 Jul 2010 08:48:51 +0000 (08:48 +0000)]
MFC r208946:
  New netgraph node ng_patch(4). It performs data modification of packets
  passing through. Modifications are restricted to a subset of C language
  operations on unsigned integers of 8, 16, 32 or 64 bit size.
  These are: set to new value (=), addition (+=), subtraction (-=),
  multiplication (*=), division (/=), negation (= -), bitwise AND (&=),
  bitwise OR (|=), bitwise eXclusive OR (^=), shift left (<<=),
  shift right (>>=). Several operations are all applied to a packet
  sequentially in order they were specified by user.

  Submitted by: Maxim Ignatenko <gelraen.ua at gmail.com>
   Vadim Goncharov <vadimnuclight at tpu.ru>
  Discussed with: net@

MFC r208947:
  Fix typo.

MFC r208989:
  Style(9) fixes:
  * Sort includes
  * Replace #define<SPACE> to #define<TAB>
  * Split declarations and initializations
  * Split long lines

  Requested by: kib

MFC r209194:
  * Include sys/systm.h for KASSERT()
  * Remove unneeded includes and comment
  * Replace home made OFFSETOF() macro with standard offsetof()

  Pointed out by: bde

Approved by: kib (mentor)

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

13 years agoMFC r208587:
attilio [Thu, 8 Jul 2010 23:25:33 +0000 (23:25 +0000)]
MFC r208587:
Add the support for reporting the NOCOREDUMP flag from
sysctl_kern_proc_vmmap().

Sponsored by: Sandvine Incorporated

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

13 years agoMFC 208742:
jhb [Thu, 8 Jul 2010 21:56:05 +0000 (21:56 +0000)]
MFC 208742:
MFamd64: Add a new macro PCPU_XEN_FIELDS to hold XEN-specific per-CPU
fields that is always included in PCPU_MD_FIELDS.  The macro is empty for
non-XEN kernels.  This avoids duplicating non-XEN per-CPU fields in two
places.  While here, remove several unused fields from the XEN-specific
structure.

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

13 years agoMFC r209413: readelf.1: remove duplicate -u/--unwind option description
avg [Thu, 8 Jul 2010 21:34:18 +0000 (21:34 +0000)]
MFC r209413: readelf.1: remove duplicate -u/--unwind option description

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

13 years agoMFC r209247: lock_profile_release_lock: do not compare unsigned with zero
avg [Thu, 8 Jul 2010 21:02:31 +0000 (21:02 +0000)]
MFC r209247: lock_profile_release_lock: do not compare unsigned with zero

Note: no MFC to stable/7

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

13 years agoMFC r209228: device.hints: do install when WITHOUT_BOOT is set
avg [Thu, 8 Jul 2010 20:57:07 +0000 (20:57 +0000)]
MFC r209228: device.hints: do install when WITHOUT_BOOT is set

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

13 years agoMFC r209193: sound/pcm: use non-const string with SYSCTL_STRING
avg [Thu, 8 Jul 2010 20:46:55 +0000 (20:46 +0000)]
MFC r209193: sound/pcm: use non-const string with SYSCTL_STRING

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

13 years agoMFC r209425: udf_vnops: cosmetic followup to r208671
avg [Thu, 8 Jul 2010 20:40:57 +0000 (20:40 +0000)]
MFC r209425: udf_vnops: cosmetic followup to r208671

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

13 years agoMFC r209062: fix a few cases where a string is passed via format
avg [Thu, 8 Jul 2010 20:38:48 +0000 (20:38 +0000)]
MFC r209062: fix a few cases where a string is passed via format
argument instead of via %s

Note: no MFC to stable/7

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

13 years agoMFC r209056: vnode.h: expand debug macros to non-empty void statements
avg [Thu, 8 Jul 2010 20:17:56 +0000 (20:17 +0000)]
MFC r209056: vnode.h: expand debug macros to non-empty void statements
when DEBUG_VFS_LOCKS is disabled

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

13 years agoMFC r209598:
weongyo [Thu, 8 Jul 2010 19:40:09 +0000 (19:40 +0000)]
MFC r209598:
  Initializes the ratectl for a node when the state is changed to RUN.
  This prevents a kernel fault by dividing with zero because the initial
  rate was 0 and didn't be initialized.

  Tested by:    Warren Block <wblock at wonkity.com>

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

13 years agoMFC r209597:
weongyo [Thu, 8 Jul 2010 19:36:38 +0000 (19:36 +0000)]
MFC r209597:
  Fixes NULL pointer reference that it's occurred when the state is
  changed to RUN because ic->ic_newassoc isn't set anywhere now.  In the
  previous bwi_newassoc() is used to initialize AMRR rate routines.

  Tested by:    Warren Block <wblock at wonkity.com>

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

13 years agoMerge 209633, 209722 from head:
glebius [Thu, 8 Jul 2010 12:21:25 +0000 (12:21 +0000)]
Merge 209633, 209722 from head:

  The struct ipfw_rule_ref follows the struct m_tag. Deal with this
  correctly. This fixes breakage of ng_ipfw(4) in r201527.

Submitted by: Alexander Zagrebin <alexz visp.ru>

  Avoid double-free. In error cases ipfw(4) frees the mbuf(4), we don't
  need to.

PR: kern/145462

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

13 years agoMerge 209589 from head:
glebius [Thu, 8 Jul 2010 12:20:15 +0000 (12:20 +0000)]
Merge 209589 from head:
  After processing the O_SKIPTO opcode our cmd points to the next rule, and
  "match" processing at the end of inner loop would look ahead into the next
  rule, which is incorrect. Particularly, in the case when the next rule
  started with F_NOT opcode it was skipped blindly.

  To fix this, exit the inner loop with the continue operator forcibly and
  explicitly.

PR: kern/147798

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

13 years agoMFC r209119,209325:
lstewart [Thu, 8 Jul 2010 03:41:57 +0000 (03:41 +0000)]
MFC r209119,209325:

- Add a utility macro to simplify calculating an aggregate sum from a DPCPU
  counter variable.

- Rename the internal for loop iterator to "_i" to avoid potential shadowing of
  external variables named "i". The "_" prefix is reserved for infrastructure
  type code and is therefore not expected to be used by normal code likely to
  call DPCPU_SUM(). [1]

- Change DPCPU_SUM to return the sum rather than calculate and assign it
  internally. Usage is now: "sum = DPCPU_SUM(dpcpu_var, member_to_sum);" [2]

- Fix some style nits. [3]

Sponsored by: FreeBSD Foundation
Suggested by: bde [3], mdf [1], kib [1,2], pjd [1,3]
Reviewed by: jhb, rpaulo, rwatson (old version of r209119), kib (r209325)

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

13 years agoMFC r207223:
lstewart [Thu, 8 Jul 2010 03:28:25 +0000 (03:28 +0000)]
MFC r207223:

- Rework the underlying ALQ storage to be a circular buffer, which amongst other
  things allows variable length messages to be easily supported.

- Extend KPI with alq_writen() and alq_getn() to support variable length
  messages, which is enabled at ALQ creation time depending on the arguments
  passed to alq_open(). Also add variants of alq_open() and alq_post() that
  accept a flags argument. The KPI is still fully backwards compatible and
  shouldn't require any change in ALQ consumers unless they wish to utilise
  the new features.

- Introduce the ALQ_NOACTIVATE and ALQ_ORDERED flags to allow ALQ consumers
  to have more control over IO scheduling and resource acquisition
  respectively.

- Strengthen invariants checking.

- Document ALQ changes in ALQ(9) man page.

Sponsored by: FreeBSD Foundation
Reviewed by: gnn, jeff, rpaulo, rwatson

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

13 years agoMFC r206028:
lstewart [Thu, 8 Jul 2010 02:46:42 +0000 (02:46 +0000)]
MFC r206028:

The ALQ should not be considered drained until it has been made inactive.

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

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

13 years agoMFC r206027:
lstewart [Thu, 8 Jul 2010 02:43:52 +0000 (02:43 +0000)]
MFC r206027:

According to SLEEP(9), msleep() is deprecated in favour of mtx_sleep().

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

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

13 years agoMFC r206026:
lstewart [Thu, 8 Jul 2010 02:41:55 +0000 (02:41 +0000)]
MFC r206026:

- Factor code to destroy an ALQ out of alq_close() into a private alq_destroy().

- Use the new alq_destroy() to properly handle a failure case in alq_open().

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

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

13 years agoMFC r205959:
lstewart [Thu, 8 Jul 2010 02:35:37 +0000 (02:35 +0000)]
MFC r205959:

Add support for ALQ(9) to be compiled and loaded as a kernel module.

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson

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

13 years agoMFC: r209695
marius [Wed, 7 Jul 2010 19:52:50 +0000 (19:52 +0000)]
MFC: r209695

- Pin the IPI cache and TLB demap functions in order to prevent migration
  between determining the other CPUs and calling cpu_ipi_selected(), which
  apart from generally doing the wrong thing can lead to a panic when a
  CPU is told to IPI itself (which sun4u doesn't support).
  Reported and tested by: Nathaniel W Filardo
- Add __unused where appropriate.

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

13 years agoPackage set for 8.1-RELEASE. We still have a 2Gb maximum file size
kensmith [Wed, 7 Jul 2010 17:05:32 +0000 (17:05 +0000)]
Package set for 8.1-RELEASE.  We still have a 2Gb maximum file size
limit caused by cvsup still being used for some of our mirror system.
That is being worked on.

Reviewed by: re@, portmgr@

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

13 years agoMFC r209114:
nwhitehorn [Wed, 7 Jul 2010 14:21:40 +0000 (14:21 +0000)]
MFC r209114:
Make SMP work on MPC7400-based Apple desktops like the PowerMac3,3.

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

13 years agoMFC r209222:
nwhitehorn [Wed, 7 Jul 2010 14:19:58 +0000 (14:19 +0000)]
MFC r209222:

Modify the console mouse pointer drawing routine to use single-byte writes
instead of 4-byte ones. Because the mouse pointer can start part way
through a character cell, 4-byte memory operations are not necessarily
aligned, triggering a fatal alignment exception when the console pointer
was moved on PowerPC G5 systems.

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

13 years agoMFC r209490,209492:
nwhitehorn [Wed, 7 Jul 2010 14:15:51 +0000 (14:15 +0000)]
MFC r209490,209492:

Move default HZ from 100 to 1000 on powerpc, and rearrange the logic
slightly, so that it is set to 100 on ARM and MIPS and defaults to 1000,
instead of defaulting to 100, and setting it to 1000 on everything but
ARM and MIPS.

Reviewed by: marcel

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

13 years agoMFC r207303 (originally by kmacy):
bz [Tue, 6 Jul 2010 16:58:24 +0000 (16:58 +0000)]
MFC r207303 (originally by kmacy):

  need to initialize the lock before it is used

Reported on: stable@ (MFC missing)

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

13 years agoMFC: r207948
brueffer [Sun, 4 Jul 2010 18:48:43 +0000 (18:48 +0000)]
MFC: r207948

- Missing full stops
- Upper case the first character of an description
- Section headings do not need to be quoted. From OpenBSD's make.1, revision 1.81
- Plural of suffix is suffixes. From OpenBSD's make.1, revision 1.61
- s/seperating/separating/

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

13 years agoMFC: r207946
brueffer [Sun, 4 Jul 2010 18:41:00 +0000 (18:41 +0000)]
MFC: r207946

The previous revision actually removed the bug being hinted at, so
go ahead and remove the hint.

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

13 years agoMFC r209169:
bschmidt [Sun, 4 Jul 2010 12:30:55 +0000 (12:30 +0000)]
MFC r209169:
Fix TX retry rate handling. tx->linkq is an index to a rate table
beginning with the highest available rate. Currently we always use
54m for the first retry no matter what AMRR has choosen. Fix this
by setting the index to the next lower rate.

Approved by: rpaulo (mentor)
Tested by: Brandon Gooch <jamesbrandongooch at gmail.com>

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

13 years agoMFC r208509:
bz [Sun, 4 Jul 2010 12:27:18 +0000 (12:27 +0000)]
MFC r208509:

  MFp4 @178364:

  Implement an optional delay to the ddb reset/reboot command.

  This allows textdumps to be run automatically with unattended reboots
  after a resonable timeout, while still permitting an administrator to
  break into debugger if attached to the console at the time of the
  event for further debugging.  Cap the maximum delay at 1 week to avoid
  highly accidental results, and default to 15s in case of problems
  parsing the timeout value.

  Move hex2dec helper function from db_thread.c to db_command.c to make
  it generally available and prefix it with a "db_" to avoid namespace
  collisions.

  Reviewed by:  rwatson

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

13 years agoMFC r208508:
bz [Sun, 4 Jul 2010 12:22:17 +0000 (12:22 +0000)]
MFC r208508:

  MFp4 @178283:

  Improve IPsec flow distribution for better netisr parallelism.
  Instead of using the pointer that would have the last bits masked in a %
  statement in netisr_select_cpuid() to select the queue, use the SPI.

  Reviewed by:  rwatson

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

13 years agoMFC r209337: sh: Fix compilation with -DNO_HISTORY.
jilles [Sat, 3 Jul 2010 21:31:05 +0000 (21:31 +0000)]
MFC r209337: sh: Fix compilation with -DNO_HISTORY.

The LINENO code uses snprintf() and relied on "myhistedit.h" to pull in the
necessary <stdio.h>.

Compiling with -DNO_HISTORY disables all editing and history support and
allows linking without -ledit -ltermcap. This may be useful for embedded
systems.

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

13 years agoMFC r209106:
kib [Sat, 3 Jul 2010 18:19:59 +0000 (18:19 +0000)]
MFC r209106:
Add another variation of make_dev(9), make_dev_p(9), that is allowed
to fail and can return useful error code.

MFC r209237 (by jh):
Correct the function name in a KASSERT.

MFC r209244 (by ed):
Remove the unit argument from the recently added make_dev_p().

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

13 years agoMFC r209105:
kib [Sat, 3 Jul 2010 18:09:11 +0000 (18:09 +0000)]
MFC r209105:
When make_dev_credf(MAKEDEV_WAITOK) is called, use
devctl_notify_f(M_WAITOK) for devfs notifications.

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

13 years agoMFC r209104:
kib [Sat, 3 Jul 2010 17:57:59 +0000 (17:57 +0000)]
MFC r209104:
Add modifications of devctl_notify(9) functions that take flags. Use
flags to specify M_WAITOK/M_NOWAIT. M_WAITOK allows devctl to sleep for
the memory allocation.

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

13 years agoMFC: r207923
brueffer [Sat, 3 Jul 2010 12:14:01 +0000 (12:14 +0000)]
MFC: r207923

Document FIONREAD, FIONWRITE and FIONSPACE.

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

13 years agoMFC: r207964
brueffer [Sat, 3 Jul 2010 12:09:45 +0000 (12:09 +0000)]
MFC: r207964

Casting size_t to uintmax_t is not necessary anymore. This also
removes the need for stdint.h inclusion.

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