]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoTake advantage of nitems().
marius [Sat, 2 Jun 2012 19:41:28 +0000 (19:41 +0000)]
Take advantage of nitems().

MFC after: 3 days

12 years agoFix typo [1]. Use commas to separate flag printouts, in style with
kib [Sat, 2 Jun 2012 19:39:12 +0000 (19:39 +0000)]
Fix typo [1]. Use commas to separate flag printouts, in style with
other parts of function.

Submitted by: bf [1]
MFC after:   1 week

12 years agoAdd nitems(), a macro for determining the number of elements in a
marius [Sat, 2 Jun 2012 19:30:49 +0000 (19:30 +0000)]
Add nitems(), a macro for determining the number of elements in a
statically-allocated array.

Obtained from: OpenBSD (in principle)
MFC after: 3 days

12 years agoUpdate the print mask for decoding b_flags. Add print masks for
kib [Sat, 2 Jun 2012 18:44:40 +0000 (18:44 +0000)]
Update the print mask for decoding b_flags. Add print masks for
b_vflags and b_xflags_t and print them as well.

MFC after:   1 week

12 years agoUse plain store for atomic_store_rel on x86, instead of implicitly
kib [Sat, 2 Jun 2012 18:10:16 +0000 (18:10 +0000)]
Use plain store for atomic_store_rel on x86, instead of implicitly
locked xchg instruction.  IA32 memory model guarantees that store has
release semantic, since stores cannot pass loads or stores.

Reviewed by:   bde, jhb
Tested by:   pho
MFC after:   2 weeks

12 years agoRemove an unused parameter.
tuexen [Sat, 2 Jun 2012 13:13:38 +0000 (13:13 +0000)]
Remove an unused parameter.

MFC after: 3 days

12 years agoInstall libcxxrt's C++ ABI and unwind headers. This is done in libc++'s
dim [Sat, 2 Jun 2012 11:07:19 +0000 (11:07 +0000)]
Install libcxxrt's C++ ABI and unwind headers.  This is done in libc++'s
Makefile, so these headers go into the same destination directory as
libc++'s own headers, currently /usr/include/c++/v1.

MFC after: 3 days

12 years agomdoc: minor Bl improvements.
joel [Sat, 2 Jun 2012 11:03:14 +0000 (11:03 +0000)]
mdoc: minor Bl improvements.

12 years agoTabify libcxxrt and libc++'s Makefiles.
dim [Sat, 2 Jun 2012 11:00:48 +0000 (11:00 +0000)]
Tabify libcxxrt and libc++'s Makefiles.

MFC after: 3 days

12 years agoRemove invalid remark about pipes.
ed [Sat, 2 Jun 2012 10:50:25 +0000 (10:50 +0000)]
Remove invalid remark about pipes.

The stat structures returned on pipes seems to contain all the
information required by POSIX. Especially the wording "and thus to a
pipe" makes little sense, because it seems to imply a certain
relationship between sockets and pipes that simply isn't there.

MFC after: 2 weeks

12 years agoAdd appropriate checks for ic_bsschan being set to IEEE80211_CHAN_ANYC in
hselasky [Sat, 2 Jun 2012 09:10:51 +0000 (09:10 +0000)]
Add appropriate checks for ic_bsschan being set to IEEE80211_CHAN_ANYC in
some of the USB WLAN drivers. This fixes a panic when using monitor mode.

MFC after: 1 week
Submitted by: PseudoCylon

12 years agomdoc: minor Bl improvements.
joel [Sat, 2 Jun 2012 08:47:26 +0000 (08:47 +0000)]
mdoc: minor Bl improvements.

12 years agoRewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.
mav [Sat, 2 Jun 2012 08:29:07 +0000 (08:29 +0000)]
Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.
This allows to control it with `camcontrol negotiate adaX -T (en|dis)able`
on the fly, same as for SCSI devices.

Sponsored by: iXsystems, Inc.

12 years agoDocument the limitations of the -delete primary
eadler [Sat, 2 Jun 2012 03:13:27 +0000 (03:13 +0000)]
Document the limitations of the -delete primary

PR: bin/166554
Submitted by: Richard Kettlewell <rjk@greenend.org.uk>
Discussed with: jilles
Approved by: bcr
MFC after: 3 days

12 years agoClean up and complete the incomplete deferred enable code.
mjacob [Fri, 1 Jun 2012 23:29:48 +0000 (23:29 +0000)]
Clean up and complete the incomplete deferred enable code.
Make the default role NONE if target mode is selected. This
allows ctl(8) to switch to/from target mode via knob settings.
If we default to role 'none', this causes a reset of the
24XX f/w which then causes initiators to wake up and notice
when we come online.

Reviewed by:    kdm
MFC after:      2 weeks
Sponsored by:   Spectralogic

12 years agoPrint FC PortID as a hex number. This makes it easy to
mjacob [Fri, 1 Jun 2012 23:24:56 +0000 (23:24 +0000)]
Print FC PortID as a hex number. This makes it easy to
figure out domain, etc..

Zero ATIO and INOTify allocations. It makes for much
less guesswork when looking at the structure and
seeing 'deadc0de' present.

Reviewed by: kdm
MFC after: 2 weeks
Sponsored by: Spectralogic

12 years agoConsistently use ACPI_SUCCESS() and ACPI_FAILURE() macros wherever possible.
jkim [Fri, 1 Jun 2012 21:33:33 +0000 (21:33 +0000)]
Consistently use ACPI_SUCCESS() and ACPI_FAILURE() macros wherever possible.

12 years agoCentralize the specification of the krb5 build tools.
obrien [Fri, 1 Jun 2012 21:26:28 +0000 (21:26 +0000)]
Centralize the specification of the krb5 build tools.

12 years agomdoc: terminate quoted string and remove unneeded paragraph macro.
joel [Fri, 1 Jun 2012 19:26:38 +0000 (19:26 +0000)]
mdoc: terminate quoted string and remove unneeded paragraph macro.

12 years agoTidy up code clutter in SMP case a bit. No functional change.
jkim [Fri, 1 Jun 2012 19:19:04 +0000 (19:19 +0000)]
Tidy up code clutter in SMP case a bit.  No functional change.

12 years agoDoh! Bump the date as I touched it!
sbruno [Fri, 1 Jun 2012 19:09:17 +0000 (19:09 +0000)]
Doh!  Bump the date as I touched it!

Noted by: gjb@
MFC after: 3 days

12 years agoRevert r236380
eadler [Fri, 1 Jun 2012 18:58:50 +0000 (18:58 +0000)]
Revert r236380

PR: kern/166780
Requested by: many
Approved by: cperciva (implicit)

12 years agoAdd a new -e flag to pciconf(8)'s list mode to display PCI error details.
jhb [Fri, 1 Jun 2012 18:33:40 +0000 (18:33 +0000)]
Add a new -e flag to pciconf(8)'s list mode to display PCI error details.
Currently this dumps the status of any error bits in the PCI status register
and PCI-express device status register.  It also lists any errors indicated
by version 1 of PCI-express Advanced Error Reporting (AER).

MFC after: 1 week

12 years agoCall AcpiSetFirmwareWakingVector() with interrupt disabled for consistency.
jkim [Fri, 1 Jun 2012 18:18:48 +0000 (18:18 +0000)]
Call AcpiSetFirmwareWakingVector() with interrupt disabled for consistency.

12 years agoAdd notes and information for exposed tuneables in bce(4).
sbruno [Fri, 1 Jun 2012 18:01:51 +0000 (18:01 +0000)]
Add notes and information for exposed tuneables in bce(4).
Add source of documentation for this driver.

Thanks to Warren Block for the suggestions for readability.

Note that strict_rx_mtu in inverted in stable/7/8/9 and is
named loose_rx_mtu.  Ensure that this is converted over when MFC'd

hw.bce.rx_ticks
hw.bce.rx_ticks_int
hw.bce.rx_quick_cons_trip
hw.bce.rx_quick_cons_trip_int
hw.bce.tx_ticks
hw.bce.tx_ticks_int
hw.bce.tx_quick_cons_trip
hw.bce.tx_quick_cons_trip_int
hw.bce.strict_rx_mtu
hw.bce.hdr_split
hw.bce.tx_pages
hw.bce.rx_pages
hw.bce.tso_enable
hw.bce.verbose

Reviewed by:  Warren Block <wblock@wonkity.com>
MFC after: 3 days

12 years agoImprove style(9) in the previous commit.
jkim [Fri, 1 Jun 2012 17:07:52 +0000 (17:07 +0000)]
Improve style(9) in the previous commit.

12 years agoExecute AcpiLeaveSleepStatePrep() for S1 and reduce code duplication.
jkim [Fri, 1 Jun 2012 17:00:33 +0000 (17:00 +0000)]
Execute AcpiLeaveSleepStatePrep() for S1 and reduce code duplication.

MFC after: 3 days

12 years agoImprove support for detaching kernel drivers on a per interface basis.
hselasky [Fri, 1 Jun 2012 16:30:54 +0000 (16:30 +0000)]
Improve support for detaching kernel drivers on a per interface basis.

MFC after: 1 week

12 years agoCommit a portion of 233708 I missed earlier and don't include the
jhb [Fri, 1 Jun 2012 15:52:41 +0000 (15:52 +0000)]
Commit a portion of 233708 I missed earlier and don't include the
definition of igb_start() and igb_start_locked() (nor set if_start in
the ifnet) when igb(4) uses if_transmit.

12 years agoRemove unnecessary initializations. The BSS of boot2 is in fact
jhb [Fri, 1 Jun 2012 15:48:24 +0000 (15:48 +0000)]
Remove unnecessary initializations.  The BSS of boot2 is in fact
zero'd when boot2 begins execution by the _start() routine in btxcsu.S.

MFC after: 1 week

12 years agoExtend VERBOSE_SYSINIT to also print out the name of variables passed
jhb [Fri, 1 Jun 2012 15:42:37 +0000 (15:42 +0000)]
Extend VERBOSE_SYSINIT to also print out the name of variables passed
to SYSINIT routines if they can be resolved via symbol look up in DDB.
To avoid false positives, only honor a name if the symbol resolves
exactly to the pointer value (no offset).

MFC after: 1 week

12 years agoCall AcpiLeaveSleepStatePrep() in interrupt disabled context
iwasaki [Fri, 1 Jun 2012 15:26:32 +0000 (15:26 +0000)]
Call AcpiLeaveSleepStatePrep() in interrupt disabled context
(described in ACPICA source code).

- Move intr_disable() and intr_restore() from acpi_wakeup.c to acpi.c
  and call AcpiLeaveSleepStatePrep() in interrupt disabled context.
- Add acpi_wakeup_machdep() to execute wakeup MD procedures and call
  it twice in interrupt disabled/enabled context (ia64 version is
  just dummy).
- Rename wakeup_cpus variable in acpi_sleep_machdep() to suspcpus in
  order to be shared by acpi_sleep_machdep() and acpi_wakeup_machdep().
- Move identity mapping related code to acpi_install_wakeup_handler()
  (i386 version) for preparation of x86/acpica/acpi_wakeup.c
  (MFC candidate).

Reviewed by: jkim@
MFC after: 2 days

12 years agoStyle(9) improvements: remove unnecessary parenthesis, improve order
ghelmer [Fri, 1 Jun 2012 15:02:23 +0000 (15:02 +0000)]
Style(9) improvements: remove unnecessary parenthesis, improve order
of local variable declarations, remove bogus casts, and resolve long
lines.

Reviewed by: bde

12 years agoMake TCP LRO work properly with VIMAGE kernels rather than just panicing.
bz [Fri, 1 Jun 2012 11:42:50 +0000 (11:42 +0000)]
Make TCP LRO work properly with VIMAGE kernels rather than just panicing.
There's no VIMAGE context set there yet as this is before if_ethersubr.c.

MFC after: 3 days
X-MFC with: r235981

12 years agoUse AC_GETDEV_CHANGED async to notify ada driver about DMA and NCQ status
mav [Fri, 1 Jun 2012 09:32:37 +0000 (09:32 +0000)]
Use AC_GETDEV_CHANGED async to notify ada driver about DMA and NCQ status
change. Now that allows switching between PIO and DMA modes on the fly.

12 years agoAdd myself as a new committer.
jase [Fri, 1 Jun 2012 08:44:17 +0000 (08:44 +0000)]
Add myself as a new committer.

Approved by: flo, culot (mentors)

12 years agoSmall cleanups. No functional change.
tuexen [Fri, 1 Jun 2012 08:26:50 +0000 (08:26 +0000)]
Small cleanups. No functional change.

MFC after: 3 days

12 years agoMake devd build with libc++.
dim [Fri, 1 Jun 2012 06:56:35 +0000 (06:56 +0000)]
Make devd build with libc++.

MFC after: 3 days

12 years agoFix dangling else in libc++'s __bit_reference header. This has also
dim [Fri, 1 Jun 2012 06:55:01 +0000 (06:55 +0000)]
Fix dangling else in libc++'s __bit_reference header.  This has also
been sent upstream.

MFC after: 3 days

12 years agoPull in r155978 from upstream llvm trunk:
dim [Fri, 1 Jun 2012 06:50:37 +0000 (06:50 +0000)]
Pull in r155978 from upstream llvm trunk:

  Fix unintentional use of operator bool.

This enables llvm's bugpoint tool to build with libc++.

MFC after: 3 days

12 years agoAdd a missing #include, required for IEEE80211_DEBUG.
adrian [Fri, 1 Jun 2012 06:20:39 +0000 (06:20 +0000)]
Add a missing #include, required for IEEE80211_DEBUG.

12 years agoAdd sysctl to query amount of swap space free
eadler [Fri, 1 Jun 2012 04:42:52 +0000 (04:42 +0000)]
Add sysctl to query amount of swap space free

PR: kern/166780
Submitted by: Radim Kolar <hsn@sendmail.cz>
Approved by: cperciva
MFC after: 1 week

12 years agoAdding missing dependancies for loading hptiop(4), hptmv(4) and isp(4) as modules.
eadler [Fri, 1 Jun 2012 04:34:49 +0000 (04:34 +0000)]
Adding missing dependancies for loading hptiop(4), hptmv(4) and isp(4) as modules.

PR: kern/166239
Submitted by: Pavel Timofeev <timp87@gmail.com>
Discussed on: -stable, -scsi
Reviewed by: scottl
No objection from: mjacob
Approved by: cperciva
MFC after: 3 days

12 years agoEliminate code duplication in free_pv_entry() and pmap_remove_pages() by
alc [Fri, 1 Jun 2012 04:26:50 +0000 (04:26 +0000)]
Eliminate code duplication in free_pv_entry() and pmap_remove_pages() by
introducing free_pv_chunk().

12 years agoFix warning generated by clang;
eadler [Fri, 1 Jun 2012 04:23:20 +0000 (04:23 +0000)]
Fix warning generated by clang;
warning: equality comparison with extraneous parentheses
[-Wparentheses-equality]

Reported by: arundel
Reviewed by: gnn
Approved by: cperciva
MFC after: 3 days

12 years agoAdd characters mapping for codepages used in Germany.
eadler [Fri, 1 Jun 2012 03:59:08 +0000 (03:59 +0000)]
Add characters mapping for codepages used in Germany.

(not verified by me to be accurate)

PR: bin/163847
Submitted by: Gabor Fischer <Gabor.Fischer@gmx.net>
Reviewed by: bp
Approved by: cperciva
MFC after: 3 weeks

12 years agopmap_alloc_vhpt() doesn't need the pages that it allocates to be mapped
alc [Fri, 1 Jun 2012 03:56:12 +0000 (03:56 +0000)]
pmap_alloc_vhpt() doesn't need the pages that it allocates to be mapped
into the kernel map, so vm_page_alloc_contig() can be used in place of
contigmalloc().

Reviewed by: marcel

12 years agoRevert debug and other immature code accidentally committed in r236372.
imp [Fri, 1 Jun 2012 03:00:36 +0000 (03:00 +0000)]
Revert debug and other immature code accidentally committed in r236372.

12 years agoInitialize the clocks before we call cninit() so that the serial
imp [Fri, 1 Jun 2012 02:55:42 +0000 (02:55 +0000)]
Initialize the clocks before we call cninit() so that the serial
console so initialized will work upon return from cninit.  While this
is the very next line, other platforms setup all this stuff before
calling cninit.  Also, initialize the SDRAM base register in the inner
block in at91_ramsize().

12 years agoRemove unnecessary device_printfs.
yongari [Thu, 31 May 2012 23:56:10 +0000 (23:56 +0000)]
Remove unnecessary device_printfs.

Pointed out by: marius

12 years agoUpdate date for r236338 & r236346.
obrien [Thu, 31 May 2012 20:13:44 +0000 (20:13 +0000)]
Update date for r236338 & r236346.

12 years agoCorrect table counter functionality to not panic.
eri [Thu, 31 May 2012 20:10:05 +0000 (20:10 +0000)]
Correct table counter functionality to not  panic.
This was caused by not proper initialization of necessary parameters.

PR: 168200
Reviewed by: bz@, glebius@
MFC after: 1 week

12 years agoRegenerate after r236361.
pjd [Thu, 31 May 2012 19:34:53 +0000 (19:34 +0000)]
Regenerate after r236361.

MFC after: 3 days

12 years ago- Fix my botched merge and correct mentor ordering. (Spotted by flo)
tj [Thu, 31 May 2012 19:33:51 +0000 (19:33 +0000)]
- Fix my botched merge and correct mentor ordering. (Spotted by flo)
- Fix missing new line in node block. (Spotted by gavin)
- Sort the node list while I'm here.

Approved by: eadler (mentor)

12 years agoAdd missing system calls.
pjd [Thu, 31 May 2012 19:32:37 +0000 (19:32 +0000)]
Add missing system calls.

MFC after: 3 days

12 years agoThere is no rmdirat system call. Weird, I know.
pjd [Thu, 31 May 2012 19:31:28 +0000 (19:31 +0000)]
There is no rmdirat system call. Weird, I know.

MFC after: 3 days

12 years agoUnlock in the error path to prevent a lock leak.
imp [Thu, 31 May 2012 17:27:05 +0000 (17:27 +0000)]
Unlock in the error path to prevent a lock leak.

PR: 162174
Submitted by: Ian Lepore
MFC after: 2 weeks

12 years agoDon't trace or dump page fault records in the default set of tracepoints
jhb [Thu, 31 May 2012 14:46:02 +0000 (14:46 +0000)]
Don't trace or dump page fault records in the default set of tracepoints
as they can be quite noisy.

Requested by: Peter Jeremy
MFC after: 3 days

12 years agoFix a variety of compile errors with gcc48 and clang
eadler [Thu, 31 May 2012 08:22:02 +0000 (08:22 +0000)]
Fix a variety of compile errors with gcc48 and clang

PR: bin/165699
Submitted by: Arne Meyer <meyer.arne83@gmail.com>
Approved by: cperciva
MFC after: 1 week

12 years agoBump date for content missed in r236290
eadler [Thu, 31 May 2012 07:16:50 +0000 (07:16 +0000)]
Bump date for content missed in r236290

Submitted by: gjb
Approved by: cperciva (implicit)
MFC after: 3 days
X-MFC-With: r236290

12 years agoAdd my mentor relationships.
tj [Thu, 31 May 2012 02:36:30 +0000 (02:36 +0000)]
Add my mentor relationships.

Approved by: eadler (mentor)

12 years agoAdd regression test for '-V' command line option (requires r236346).
obrien [Thu, 31 May 2012 01:07:52 +0000 (01:07 +0000)]
Add regression test for '-V' command line option (requires r236346).

12 years agoAdd "-V '${VAR}'" variable expansion from Portable Berkeley Make.
obrien [Thu, 31 May 2012 00:36:56 +0000 (00:36 +0000)]
Add "-V '${VAR}'" variable expansion from Portable Berkeley Make.

Submitted by: Simon Gerraty <sjg@juniper.net>

12 years agoAdd myself and mentors relationship.
jase [Wed, 30 May 2012 22:48:01 +0000 (22:48 +0000)]
Add myself and mentors relationship.

Approved by: flo (mentor)

12 years agomake it easier to check newly-built make
obrien [Wed, 30 May 2012 22:27:34 +0000 (22:27 +0000)]
make it easier to check newly-built make

12 years agomake it easier to test newly-built make.
obrien [Wed, 30 May 2012 22:26:16 +0000 (22:26 +0000)]
make it easier to test newly-built make.

12 years agoDeprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)
obrien [Wed, 30 May 2012 22:23:08 +0000 (22:23 +0000)]
Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)
modifiers for ":tu" and ":tl" from OSF's ODE, which made its way into
NetBSD's make, which is the source for the Portable Berkeley Make.

Submitted by: Simon Gerraty <sjg@juniper.net>

12 years ago* Remove headers from SRCS that are not generated
obrien [Wed, 30 May 2012 22:21:25 +0000 (22:21 +0000)]
* Remove headers from SRCS that are not generated
  (and are in /usr/src/crypto/heimdal/).

* Avoid race conditions with 'make -j<N>'.

12 years agoBump PKG_INSTALL_VERSION which should've been done in r236233
jpaetzel [Wed, 30 May 2012 21:28:37 +0000 (21:28 +0000)]
Bump PKG_INSTALL_VERSION which should've been done in r236233

MFC after: 3 days
Pointed out by: bapt

12 years ago- Witness doesn't verify the old MTX_NOSWITCH flag's correctness (that was obsoleted
jhb [Wed, 30 May 2012 21:02:12 +0000 (21:02 +0000)]
- Witness doesn't verify the old MTX_NOSWITCH flag's correctness (that was obsoleted
  when critical sections were added).  Instead, list a check that witness does perform.
- Note that 'show locks' in DDB takes an optional thread argument.
- Document 'show all locks'.
- Remove the BUGS section, the bug in question was fixed 11 years ago in r76272.

12 years agoLet pkg_add use the ENV variable PACKAGESUFFIX. This
jpaetzel [Wed, 30 May 2012 21:01:06 +0000 (21:01 +0000)]
Let pkg_add use the ENV variable PACKAGESUFFIX. This
can be used to override the default .tbz package extension to
.txz .tgz or .tar

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems
MFC after: 3 days

12 years agoSeperate SCTP checksum offloading for IPv4 and IPv6.
tuexen [Wed, 30 May 2012 20:56:07 +0000 (20:56 +0000)]
Seperate SCTP checksum offloading for IPv4 and IPv6.
While there: remove some trainling whitespaces.

MFC after: 3 days
X-MFC with: 236170

12 years agoFix detecting available zpool names.
jpaetzel [Wed, 30 May 2012 20:49:28 +0000 (20:49 +0000)]
Fix detecting available zpool names.

Submitted by: kmoore
Obtained from: PC-BSD
MFC after: 3 days
Sponsored by: iXsystems

12 years agoFix French Canadian console keyboard layout
jpaetzel [Wed, 30 May 2012 20:44:04 +0000 (20:44 +0000)]
Fix French Canadian console keyboard layout

Submitted by: kmoore
Obtained from: PC-BSD
MFC after: 3 days
Sponsored by: iXsystems

12 years agoMerge r236137 from x86:
marius [Wed, 30 May 2012 20:13:49 +0000 (20:13 +0000)]
Merge r236137 from x86:
Enable GNU hash generation for dynamic ELF binaries.

While at it, sync the order of options with x86 and pass along the verbose
flag.

12 years agoTry to finally get the point in time at which bge_add_sysctls() is called
marius [Wed, 30 May 2012 20:04:07 +0000 (20:04 +0000)]
Try to finally get the point in time at which bge_add_sysctls() is called
right; it needs to be called before bge_can_use_msi() but in turn requires
bge_flags to be properly set.

Submitted by: yongari
MFC after: 3 days

12 years agoWhen we return deprecated addresses, we need to reference them.
emax [Wed, 30 May 2012 20:02:39 +0000 (20:02 +0000)]
When we return deprecated addresses, we need to reference them.

Reviewed by: bz, scottl
MFC after: 3 days

12 years agoPanic openly if we cannot retrieve memory information from the device tree.
raj [Wed, 30 May 2012 18:05:48 +0000 (18:05 +0000)]
Panic openly if we cannot retrieve memory information from the device tree.
This is a critical condition and can lead to all sorts of misterious hangs if
not handled.

Obtained from: Semihalf
Also reported by: thompsa

12 years agoExtract vendor specific Book-E pieces into separate files and have a common
raj [Wed, 30 May 2012 17:34:40 +0000 (17:34 +0000)]
Extract vendor specific Book-E pieces into separate files and have a common
skeleton (maybe we should kobj-tize this one day).

Note the PPC4xx bit is not connected to the build yet.

Obtained from: AppliedMicro, Semihalf.

12 years agoCosmetic nit. If a configured volume has no label, don't emit an empty
sbruno [Wed, 30 May 2012 17:07:50 +0000 (17:07 +0000)]
Cosmetic nit.  If a configured volume has no label, don't emit an empty
string for the name during probe.  Simply indicate that it has no label.

Submitted by: bhaga@
MFC after: 3 days

12 years agoEnable vn_io_fault() lock avoidance for UFS.
kib [Wed, 30 May 2012 16:45:41 +0000 (16:45 +0000)]
Enable vn_io_fault() lock avoidance for UFS.

Tested by: pho
MFC after: 2 months

12 years agovn_io_fault() is a facility to prevent page faults while filesystems
kib [Wed, 30 May 2012 16:42:08 +0000 (16:42 +0000)]
vn_io_fault() is a facility to prevent page faults while filesystems
perform copyin/copyout of the file data into the usermode
buffer. Typical filesystem hold vnode lock and some buffer locks over
the VOP_READ() and VOP_WRITE() operations, and since page fault
handler may need to recurse into VFS to get the page content, a
deadlock is possible.

The facility works by disabling page faults handling for the current
thread and attempting to execute i/o while allowing uiomove() to
access the usermode mapping of the i/o buffer. If all buffer pages are
resident, uiomove() is successfull and request is finished. If EFAULT
is returned from uiomove(), the pages backing i/o buffer are faulted
in and held, and the copyin/out is performed using uiomove_fromphys()
over the held pages for the second attempt of VOP call.

Since pages are hold in chunks to prevent large i/o requests from
starving free pages pool, and since vnode lock is only taken for
i/o over the current chunk, the vnode lock no longer protect atomicity
of the whole i/o request. Use newly added rangelocks to provide the
required atomicity of i/o regardind other i/o and truncations.

Filesystems need to explicitely opt-in into the scheme, by setting the
MNTK_NO_IOPF struct mount flag, and optionally by using
vn_io_fault_uiomove(9) helper which takes care of calling uiomove() or
converting uio into request for uiomove_fromphys().

Reviewed by: bf (comments), mdf, pjd (previous version)
Tested by: pho
Tested by: flo, Gustau P?rez <gperez entel upc edu> (previous version)
MFC after: 2 months

12 years agoAdd a rangelock implementation, intended to be used to range-locking
kib [Wed, 30 May 2012 16:06:38 +0000 (16:06 +0000)]
Add a rangelock implementation, intended to be used to range-locking
the i/o regions of the vnode data space. The implementation is quite
simple-minded, it uses the list of the lock requests, ordered by
arrival time. Each request may be for read or for write. The
implementation is fair FIFO.

MFC after:     2 month

12 years agoCapitalize start of sentence.
kib [Wed, 30 May 2012 14:00:23 +0000 (14:00 +0000)]
Capitalize start of sentence.

MFC after: 3 days

12 years agoClarify that the v_lockf is advisory lock list.
kib [Wed, 30 May 2012 13:58:01 +0000 (13:58 +0000)]
Clarify that the v_lockf is advisory lock list.

MFC after: 3 days

12 years agoUnbreak make depend.
uqs [Wed, 30 May 2012 13:55:43 +0000 (13:55 +0000)]
Unbreak make depend.

12 years agoImprove style(9) of bcopy() to and from mbuf tag.
glebius [Wed, 30 May 2012 13:51:00 +0000 (13:51 +0000)]
Improve style(9) of bcopy() to and from mbuf tag.

Submitted by: bde

12 years agoAssert that TDP_NOFAULTING and TDP_NOSPEEPING thread flags do not leak
kib [Wed, 30 May 2012 13:44:42 +0000 (13:44 +0000)]
Assert that TDP_NOFAULTING and TDP_NOSPEEPING thread flags do not leak
when thread returns from a syscall to usermode.

Tested by: pho
MFC after: 1 week

12 years agoPrint userspace backtrace for current thread.
gber [Wed, 30 May 2012 13:33:27 +0000 (13:33 +0000)]
Print userspace backtrace for current thread.

Reviewed by: imp
Obtained from: Semihalf

12 years agoFlush D and I caches after setting a breakpoint.
gber [Wed, 30 May 2012 13:31:08 +0000 (13:31 +0000)]
Flush D and I caches after setting a breakpoint.

Reviewed by: imp
Obtained from: Semihalf

12 years agoUpdate the previous openssl fix. [12:01]
bz [Wed, 30 May 2012 12:01:28 +0000 (12:01 +0000)]
Update the previous openssl fix. [12:01]

Fix a bug in crypt(3) ignoring characters of a passphrase. [12:02]

Security: FreeBSD-SA-12:01.openssl (revised)
Security: FreeBSD-SA-12:02.crypt
Approved by: so (bz, simon)

12 years agoAfter r228571 carp_output() expects carp_softc * pointer in the mtag.
glebius [Wed, 30 May 2012 07:11:27 +0000 (07:11 +0000)]
After r228571 carp_output() expects carp_softc * pointer in the mtag.

Noticed by: thompsa

12 years agoCatch up to the carp rewrite and refer to vhids instead of interfaces.
bjk [Wed, 30 May 2012 05:42:40 +0000 (05:42 +0000)]
Catch up to the carp rewrite and refer to vhids instead of interfaces.

Pointy hat to: bjk
Submitted by: glebius
Approved by: hrs (mentor)

12 years agoEliminate some purely stylistic differences among the amd64, i386 native,
alc [Wed, 30 May 2012 04:16:54 +0000 (04:16 +0000)]
Eliminate some purely stylistic differences among the amd64, i386 native,
and i386 xen PV entry allocators.

12 years agoDocument daily_status_security_chkportsum_enable
eadler [Wed, 30 May 2012 04:14:38 +0000 (04:14 +0000)]
Document daily_status_security_chkportsum_enable

PR: docs/167980
Submitted by: "Bryan Drewery" <bryan@shatow.net>
Reported by: rank1seeker@gmail.com
Approved by: cperciva
MFC after: 2 weeks

12 years agoRelax security permissions on '.seq' file creation - the strict,
eadler [Wed, 30 May 2012 04:08:29 +0000 (04:08 +0000)]
Relax security permissions on '.seq' file creation - the strict,
but odd permissions resulted in a security alert from 110.neggrpperm

PR: kern/165533
Submitted by: Anton Shterenlikht <mexas@bristol.ac.uk>
Submitted by: J B <jb.1234abcd@gmail.com>
Approved by: cperciva
MFC after: 1 week

12 years agoOnly set _w to 0 when the file stream is not currently reading. Without
eadler [Wed, 30 May 2012 04:06:38 +0000 (04:06 +0000)]
Only set _w to 0 when the file stream is not currently reading. Without
this fflush may fail to write data in the buffer.

PR: kern/137819
Submitted by: Eric Blake <ebb9@byu.net>
Reviewed by: theraven
Approved by: cperciva
MFC after: 2 weeks

12 years agoadd missing variable declaration when DEBUG is defined forgotten in
eadler [Wed, 30 May 2012 03:57:49 +0000 (03:57 +0000)]
add missing variable declaration when DEBUG is defined forgotten in
r215046

PR: bin/166404
Submitted by: "Conrad J. Sabatier" <conrads@cox.net>
Approved by: cperciva
MFC after: 3 days

12 years agoFix likely race condition if wait_child() is interrupted by sigchild()
eadler [Wed, 30 May 2012 03:55:44 +0000 (03:55 +0000)]
Fix likely race condition if wait_child() is interrupted by sigchild()

PR: bin/102834
Submitted by: Andreas Longwitz <longwitz@incore.de>
Approved by: cperciva
MFC after: 2 weeks

12 years agoAdd missing flag enable when certain arguments are parsed
eadler [Wed, 30 May 2012 03:54:10 +0000 (03:54 +0000)]
Add missing flag enable when certain arguments are parsed

PR: bin/163053
Submitted by: Peter <pmc@citylink.dinoex.sub.org>
Approved by: cperciva
MFC after: 1 week