]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC: r237239
marius [Thu, 21 Jun 2012 11:10:49 +0000 (11:10 +0000)]
MFC: r237239

Revert the part of r236495 (MFC'ed to stable/9 in r237095) that
introduced checking of SPI_SR_TXEMPTY for TX transfer completion as
for reasons unknown this occasionally causes SPI_SR_RXBUFF and
SPI_SR_ENDRX to not rise.
In any case, once the RX part of the transfer is done it's obvious
that the preceding TX part had finished and checking of SPI_SR_TXEMPTY
was introduced to rule out a possible cause for the data corruption
mentioned in r236495 but which didn't turn out to be the problem
anyway.

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

11 years agoMFC: r230242, r237102, r237236
marius [Thu, 21 Jun 2012 11:06:29 +0000 (11:06 +0000)]
MFC: r230242, r237102, r237236

- Add support for the FT2232 based egnite Turtelizer 2 JTAG/RS232 Adapter.
  This includes adding support for skipping FTDI interfaces used for JTAG
  leaving them for userland and just attaching to the RS232 half, similarly
  to how the corresponding Linux drivers handles these kind of adapters.
  While at it, sort uftdi_devs and return BUS_PROBE_SPECIFIC (because
  uftdi_probe() alters the instance variables for better or worse as do
  other probe routines of USB drivers) instead of 0.
- Remove duplicated entries for BeagleBone.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Remove some stray lines.

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

11 years agoMFC r236952:
mav [Thu, 21 Jun 2012 10:28:59 +0000 (10:28 +0000)]
MFC r236952:
 - Limit r214102 workaround to only x86. On arm it causes more problems
then solves because of cache coherency issues. This fixes periodic error
messages on console and command timeouts.
 - Patch SATA PHY configuration for 65nm SoCs to improve SNR same as
Linux does.

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

11 years agoMFC: r237235
marius [Thu, 21 Jun 2012 09:57:29 +0000 (09:57 +0000)]
MFC: r237235

Document the hw.ahci.force tunable here, too, as it's also used by
ataahci(4) and atanvidia(4).

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

11 years agoMFC: r237234
marius [Thu, 21 Jun 2012 09:48:13 +0000 (09:48 +0000)]
MFC: r237234

Avoid hard sentence break.

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

11 years agoMFC r237061:
kib [Thu, 21 Jun 2012 08:35:47 +0000 (08:35 +0000)]
MFC r237061:
Make sure that fstab fd is not leaked on exec.

PR: kern/169023

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

11 years agoMFC of 236937
mckusick [Thu, 21 Jun 2012 04:02:07 +0000 (04:02 +0000)]
MFC of 236937

In softdep_setup_inomapdep() we may have to allocate both inodedep
and bmsafemap dependency structures in inodedep_lookup() and
bmsafemap_lookup() respectively. The setup of these structures must
be done while holding the soft-dependency mutex. If the inodedep is
allocated first, it may be freed in the I/O completion callback when
the mutex is released to allocate the bmsafemap. If the bmsafemap is
allocated first, it may be freed in the I/O completion callback when
the mutex is released to allocate the inodedep.

To resolve this problem, bmsafemap_lookup has had a parameter added
that allows a pre-malloc'ed bmsafemap to be passed in so that it does
not need to release the mutex to create a new bmsafemap. The
softdep_setup_inomapdep() routine pre-malloc's a bmsafemap dependency
before acquiring the mutex and starting to build the inodedep with a
call to inodedep_lookup(). The subsequent call to bmsafemap_lookup()
is passed this pre-allocated bmsafemap entry so that it need not
release the mutex if it needs to create a new one.

Reported by: Peter Holm
Tested by:   Peter Holm

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

11 years agoMFC of 236825
mckusick [Thu, 21 Jun 2012 03:58:10 +0000 (03:58 +0000)]
MFC of 236825

When synchronously syncing a device (MNT_WAIT), wait for buffers
to become available. Otherwise we may excessively spin and fail
with ``fsync: giving up on dirty''.

Reviewed by: kib
Tested by:   Peter Holm

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

11 years agoMFC r236860,r237035: find(1): Extend and move description of -d option to
jilles [Wed, 20 Jun 2012 22:21:02 +0000 (22:21 +0000)]
MFC r236860,r237035: find(1): Extend and move description of -d option to
-depth primary.

The nullary -depth primary is standard and the -d option provides little
advantage.

Commit r236860 originally by issyl0.

PR: docs/168885

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

11 years agoMFC r236246
rnoland [Wed, 20 Jun 2012 21:34:03 +0000 (21:34 +0000)]
MFC r236246

Add device ids for the Winbond 83627DHG-P chip and set the registers to
trigger the keyboard reset line on timeout.

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

11 years agoMFC r236245
rnoland [Wed, 20 Jun 2012 21:32:54 +0000 (21:32 +0000)]
MFC r236245

Fix a typo in wbwd so that CRF5 is actually written to the data register
rather than the index register.

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

11 years agoMFC r236814:
mav [Wed, 20 Jun 2012 16:51:14 +0000 (16:51 +0000)]
MFC r236814:
One more major cam_periph_error() rewrite to improve error handling and
reporting. It includes:
 - removing of error messages controlled by bootverbose, replacing them
with more universal and informative debugging on CAM_DEBUG_INFO level,
that is now built into the kernel by default;
 - more close following to the arguments submitted by caller, such as
SF_PRINT_ALWAYS, SF_QUIET_IR and SF_NO_PRINT; consumer knows better which
errors are usual/expected at this point and which are really informative;
 - adding two new flags SF_NO_RECOVERY and SF_NO_RETRY to allow caller
specify how much assistance it needs at this point; previously consumers
controlled that by not calling cam_periph_error() at all, but that made
behavior inconsistent and debugging complicated;
 - tuning debug messages and taken actions order to make debugging output
more readable and cause-effect relationships visible;
 - making camperiphdone() (common device recovery completion handler) to
also use cam_periph_error() in most cases, instead of own dumb code;
 - removing manual sense fetching code from cam_periph_error(); I was told
by number of people that it is SIM obligation to fetch sense data, so this
code is useless and only significantly complicates recovery logic;
 - making ada, da and pass driver to use cam_periph_error() with new limited
recovery options to handle error recovery and debugging in common way;
as one of results, CAM_REQUEUE_REQ and other retrying statuses are now
working fine with pass driver, that caused many problems before.
 - reverting r186891 by raj@ to avoid burning few seconds in tight DELAY()
loops on device probe, while device simply loads media; I think that problem
may already be fixed in other way, and even if it is not, solution must be
different.

Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r236713:
mav [Wed, 20 Jun 2012 14:43:40 +0000 (14:43 +0000)]
MFC r236713:
Add CAM_DEBUG_INFO debug messages for periph created/invalidated/destroyed
and for asyncs sent.

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

11 years agoMFC r236712:
mav [Wed, 20 Jun 2012 14:36:09 +0000 (14:36 +0000)]
MFC r236712:
To make CAM debugging easier, compile in some debug flags (CAM_DEBUG_INFO,
CAM_DEBUG_CDB, CAM_DEBUG_PERIPH and CAM_DEBUG_PROBE) by default.
List of these flags can be modified with CAM_DEBUG_COMPILE kernel option.
CAMDEBUG kernel option still enables all possible debug, if not overriden.

Additional 50KB of kernel size is a good price for the ability to debug
problems without rebuilding the kernel. In case where size is important,
debugging can be compiled out by setting CAM_DEBUG_COMPILE option to 0.

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

11 years agoMFC r236689 (by ken):
mav [Wed, 20 Jun 2012 14:27:55 +0000 (14:27 +0000)]
MFC r236689 (by ken):
Fix a memory leak in the kernel case in scsi_command_string().

Submitted by:   Kashyap Desai <Kashyap.Desai@lsi.com>

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

11 years agoMFC r236604, r236639:
mav [Wed, 20 Jun 2012 14:19:55 +0000 (14:19 +0000)]
MFC r236604, r236639:
Do not reinvent a wheel and let default error handler do its job.

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

11 years agoMFC r236555:
mav [Wed, 20 Jun 2012 14:14:27 +0000 (14:14 +0000)]
MFC r236555:
Add -p argument for `camcontrol debug` to allow enabling CAM_DEBUG_PROBE
added at r208911.

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

11 years agoMFC r236819
melifaro [Wed, 20 Jun 2012 14:13:07 +0000 (14:13 +0000)]
MFC r236819

Validate IPv4 network mask being passed to ipfw kernel interface.
Incorrect mask can possibly be one of the reasons for kern/127209 existance.

Approved by:        ae(mentor)

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

11 years agoMFC r236602, r236613:
mav [Wed, 20 Jun 2012 13:59:25 +0000 (13:59 +0000)]
MFC r236602, r236613:
Tune and add some missing CAM_DEBUG() points for better consistency.

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

11 years agoMFC r236605:
mav [Wed, 20 Jun 2012 13:41:20 +0000 (13:41 +0000)]
MFC r236605:
Replace #ifdef CAMDEBUG + if + panic() with single KASSERT().

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

11 years agoMFC: r232051
brueffer [Wed, 20 Jun 2012 09:38:35 +0000 (09:38 +0000)]
MFC: r232051

Catch up with r195837 (2.5 years ago) which renamed net_add_domain() to domain_add().

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

11 years agoMFC r236999:
eadler [Wed, 20 Jun 2012 06:58:17 +0000 (06:58 +0000)]
MFC r236999:
Include a warning when using the example code as it may not
work in unusual situations.
Also slightly optimize the command.

Approved by: cperciva (implicit)

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

11 years agoMFC r237160:
kib [Tue, 19 Jun 2012 10:07:50 +0000 (10:07 +0000)]
MFC r237160:
More style.

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

11 years agoMFC r237159:
kib [Tue, 19 Jun 2012 10:06:34 +0000 (10:06 +0000)]
MFC r237159:
Fix reading of netgroup(5) file which contains more then one netgroup.

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

11 years agoMFC r236976:
kib [Tue, 19 Jun 2012 10:04:36 +0000 (10:04 +0000)]
MFC r236976:
For incompleted block allocations or frees, the inode block count usage
must be recalculated. The blk_check pass of suj checker explicitely marks
inodes which owned such blocks as needing block count adjustment. But
ino_adjblks() is only called by cg_trunc pass, which is performed before
blk_check. As result, the block use count for such inodes is left wrong.
This causes full fsck run after journaled run to still find inconsistencies
like 'INCORRECT BLOCK COUNT I=14557 (328 should be 0)' in phase 1.

Fix this issue by running additional adj_blk pass after blk_check, which
updates the field.

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

11 years agoMFC r236944:
hselasky [Tue, 19 Jun 2012 06:46:54 +0000 (06:46 +0000)]
MFC r236944:
LibUSB v1.0 API compliance and bugfixes.

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

11 years agoMFC r235873, r235967:
wblock [Tue, 19 Jun 2012 02:54:54 +0000 (02:54 +0000)]
MFC r235873, r235967:

Fixes to man8 groff mandoc style, usage mistakes, or typos.

PR: 168016
Submitted by: Nobuyuki Koganemaru
Approved by: gjb (mentor)

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

11 years agoMFC: r235948
jkim [Mon, 18 Jun 2012 17:23:24 +0000 (17:23 +0000)]
MFC: r235948

Catch up with realpath(3) changes (r236400) and unbreak acpidump(8).

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

11 years agoMerge 231266 from head:
glebius [Mon, 18 Jun 2012 10:56:29 +0000 (10:56 +0000)]
Merge 231266 from head:
  Add support for RICOH R5CE823 card reader, that can be found in
  some Lenovo laptops.

  The conroller needs a quirk to lower its frequency, and after
  that it operates normally.

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

11 years agoMFC 236352:
eadler [Mon, 18 Jun 2012 05:01:57 +0000 (05:01 +0000)]
MFC 236352:
Bump date for content missed in r236290

Approved by: cperciva (implicit)

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

11 years agoMFC r233648:
eadler [Mon, 18 Jun 2012 04:55:07 +0000 (04:55 +0000)]
MFC r233648:
Remove trailing whitespace per mdoc lint warning

Approved by: cperciva (implicit)

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

11 years agoMFC of 237135
mjacob [Sun, 17 Jun 2012 21:30:24 +0000 (21:30 +0000)]
MFC of 237135

If debug values were set, the default from tval floated
down and triggered an attempt to set multiple virtual
ports whether you wanted them or not.

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

11 years agoMFC of r236427
mjacob [Sun, 17 Jun 2012 21:28:11 +0000 (21:28 +0000)]
MFC of r236427

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.

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

11 years agoImprove the functionality of the PORTS_MODULES knob by adding
dougb [Sun, 17 Jun 2012 21:06:36 +0000 (21:06 +0000)]
Improve the functionality of the PORTS_MODULES knob by adding
LOCALBASE/bin and sbin to PATH, which allows dependencies to be found;
adding SRC_BASE and OSVERSION to match the new kernel, and putting the
related builds under MAKEOBJDIRPREFIX so that they only need to be built
once per kernel.

In addition to the PR this includes ideas/contributions from crees
and matthew.

PR: ports/161452
Submitted by: Garrett Cooper <yanegomi@gmail.com>

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

11 years agoMFC r237131:
kib [Sun, 17 Jun 2012 19:16:31 +0000 (19:16 +0000)]
MFC r237131:
Use right size when freeing unneeded GTT mapping.

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

11 years agoMFC: r237107
marius [Sun, 17 Jun 2012 11:16:14 +0000 (11:16 +0000)]
MFC: r237107

- As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers
  as well as it causes the kernel to hang during boot.
  Reported and tested by: Kevin Oberman
- Use NULL instead of 0 for a pointer.

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

11 years agoMFC: r230179
marius [Sun, 17 Jun 2012 09:50:56 +0000 (09:50 +0000)]
MFC: r230179

BeagleBone uses an FTDI chip with
an altered Product ID.

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

11 years agoMFC: r237101
marius [Sun, 17 Jun 2012 09:42:56 +0000 (09:42 +0000)]
MFC: r237101

Fix a braino in r236469 (MFC'ed to stable/9 in r236468); the number of
DMA tags required for handling MAXPHYS should be based on PAGE_SIZE rather
than SYM_CONF_DMA_BOUNDARY.
While at it, reuse the SYM_CONF_MAX_SG macro for specifying the maximum
number of DMA tags so sym(4) itself doesn't size memory beyond what's
required for handling MAXPHYS.

PR: 168928

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

11 years agoMFC r236848:
kib [Sun, 17 Jun 2012 07:14:58 +0000 (07:14 +0000)]
MFC r236848:
Use the previous stack entry protection and max protection to correctly
propagate the stack execution permissions when stack is grown down.

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

11 years agoMFC r236456:
kib [Sat, 16 Jun 2012 13:22:55 +0000 (13:22 +0000)]
MFC r236456:
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.

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

11 years agoMFC r230779:
kib [Fri, 15 Jun 2012 23:07:51 +0000 (23:07 +0000)]
MFC r230779:
Fix build for the case of powerpc64 kernel without COMPAT_FREEBSD32.

Pointy hat to: kib

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

11 years agoMFC r236776, r236777:
gjb [Fri, 15 Jun 2012 22:56:15 +0000 (22:56 +0000)]
MFC r236776, r236777:

r236776:
 Fix a typo: s/deafult/default

r236777:
 Clean up trailing whitespace.

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

11 years agoMFC 236724, 236725:
trociny [Fri, 15 Jun 2012 20:25:44 +0000 (20:25 +0000)]
MFC 236724, 236725:

MFC 236724:

Add VIMAGE support to if_tap.

PR: kern/152047, kern/158686
Submitted by: Daan Vreeken <pa4dan Bliksem.VEHosting.nl>

MFC 236725:

Sort includes.

Submitted by: Daan Vreeken <pa4dan Bliksem.VEHosting.nl>

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

11 years agoMFC r230767:
kib [Fri, 15 Jun 2012 17:31:15 +0000 (17:31 +0000)]
MFC r230767:
Enable nxstacks where supported.

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

11 years agoMFC r226342 (by marcel):
kib [Fri, 15 Jun 2012 10:38:14 +0000 (10:38 +0000)]
MFC r226342 (by marcel):
In elf32_trans_prot() and when compiling for amd64 or ia64, add
PROT_EXECUTE when PROT_READ is needed. By default i386 allows
execution when reading is allowed and JDK 1.4.x depends on that.

MFC r226343 (by marcel):
In sys_obreak() and when compiling for amd64 or ia64, when the process
is ILP32 (i.e. i386) grant execute permissions by default. The JDK 1.4.x
depends on being able to execute from the heap on i386.

MFC r226347 (by marcel):
In freebsd32_mmap() and when compiling for amd64 or ia64, also
ask for execute permissions when read permissions are wanted.
This is needed for JDK 1.4.x on i386.

MFC r226348 (by marcel):
Wrap mprotect(2).

MFC r226349 (by marcel):
Wrap mprotect(2) so that we can add execute permissions when read
permissions are requested. This is needed on amd64 and ia64 for
JDK 1.4.x.

MFC r226353 (by marcel):
Use PTRIN().

MFC r226388:
Control the execution permission of the readable segments for
i386 binaries on the amd64 and ia64 with the sysctl, instead of
unconditionally enabling it.

MFC note: the syscall tables were regenerated in r226349 and committed
together with changes to non-generated files. The merge includes
syscall tables regenerated after the merge, for stable/9.

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

11 years agoMFC r236960:
mm [Fri, 15 Jun 2012 07:14:16 +0000 (07:14 +0000)]
MFC r236960:
Document the -v flag for zpool list.

PR: 168970
Suggested by: Marcelo Araujo <araujo@FreeBSD.org>

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

11 years agoMFC r236737:
mav [Fri, 15 Jun 2012 06:13:12 +0000 (06:13 +0000)]
MFC r236737:
Add IDs for Marvell 88SE9220/9230/9235 PCIe 2.0 x2 6Gbps SATA controllers.
Marvell 88SE9230 was confirmed to work, the rest two are just guessed.

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

11 years agoMFC 235739-235740,236402:
ghelmer [Thu, 14 Jun 2012 21:48:14 +0000 (21:48 +0000)]
MFC 235739-235740,236402:
Apply style(9) to return and switch/case statements.

Add checks for memory allocation failures in appropriate places, and
avoid creating bad entries in the grp list as a result of memory allocation
failures while building new entries.

Style(9) improvements: remove unnecessary parenthesis, improve order
of local variable declarations, remove bogus casts, and resolve long
lines.

PR: bin/83340

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

11 years agoMFC r236916
thompsa [Thu, 14 Jun 2012 21:35:20 +0000 (21:35 +0000)]
MFC r236916

 Fix a panic I introduced in r234487, the bridge softc pointer is set to null
 early in the detach so rearrange things not to explode.

Reported by: David Roffiaen, Gustau Perez Querol

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

11 years agoMFC: r236338, r236339, r236346, r236347, r236365, & r236977
obrien [Thu, 14 Jun 2012 20:44:56 +0000 (20:44 +0000)]
MFC: r236338, r236339, r236346, r236347, r236365, & r236977
  * Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)
    modifiers for ":tu" and ":tl".
  * make it easier to test newly-built make.
  * Add "-V '${VAR}'" variable expansion from Portable Berkeley Make.
  * regression test for '-V' command line option and the :t[lu] modifiers.

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

11 years agoMFC: r236495
marius [Thu, 14 Jun 2012 20:05:12 +0000 (20:05 +0000)]
MFC: r236495

- Prepend the device description with "AT91" to reflect its nature. [1]
- Move DMA tag and map creature to at91_spi_activate() where the other
  resource allocation also lives. [1]
- Flesh out at91_spi_deactivate(). [1]
- Work around the "Software Reset must be Written Twice" erratum.
- For now, run the bus at the slowest speed possible in order to work
  around data corruption on transit even seen with 9 MHz on ETHERNUT5
  (15 MHz maximum) and AT45DB321D (20 MHz maximum). This also serves as
  a poor man's work-around for the "NPCSx rises if no data data is to be
  transmitted" erratum of RM9200. Being able to use the appropriate bus
  speed would require:
  1) Adding a proper work-around for the RM9200 bug consisting of taking
     the chip select control away from the SPI peripheral and managing it
     directly as a GPIO line.
  2) Taking the maximum frequencies supported by the actual board and the
     slave devices into account and basing the whole thing on the master
     clock instead of hardcoding a divisor as previously done.
  3) Fixing the above mentioned data corruption.
- KASSERT that TX/RX command and data sizes match on transfers.
- Introduce a mutex ensuring that only one child device is running a SPI
  transfer at a time. [1]
- Add preliminary, #ifdef'ed out support for setting the chip select. [1]
- Use the RX instead of the TX commando size when setting up the RX side
  of a transfer.
- For controllers having SPI_SR_TXEMPTY, i.e. !RM9200, also wait for the
  completion of the TX part of transfers before stopping the whole thing
  again.
- Use DEVMETHOD_END. [1]
- Use NULL instead of 0 for pointers. [1, partially]

Additional testing by:  Ian Lepore

Submitted by:   Ian Lepore [1]

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

11 years agoMFC: r225882
marius [Thu, 14 Jun 2012 20:02:53 +0000 (20:02 +0000)]
MFC: r225882

Remove pointless semicolons after label

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

11 years agoMFC: r236579
marius [Thu, 14 Jun 2012 19:55:19 +0000 (19:55 +0000)]
MFC: r236579

The workaround added in r151650 for handling firmwares that don't allow
a single device to be opened multiple times concurrently unfortunately
isn't sufficient with ZFS. This is due to the fact, that ZFS may open
different partitions of a single device simultaneously. So the best we
can do in this case is to cache the lastly used device path and close
and open devices in ofwd_strategy() as needed.

PR: 165025
Submitted by: Gavin Mu

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

11 years agoMFC r236889 (theraven):
mm [Thu, 14 Jun 2012 18:16:35 +0000 (18:16 +0000)]
MFC r236889 (theraven):

Fix a leak when setting the global character locale to "C" from something
else.

Reported by: mm (myself)
Approved by: theraven (IRC)

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

11 years agoMFC r236693
emax [Thu, 14 Jun 2012 15:39:14 +0000 (15:39 +0000)]
MFC r236693

Count both IPv4 and IPv6 TCP connections in tcpCurrEstab

Timeout from: current, syrinx

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

11 years agoMerge 236560 and following 236563,236598 from head:
glebius [Thu, 14 Jun 2012 07:51:37 +0000 (07:51 +0000)]
Merge 236560 and following 236563,236598 from head:
  Optimise kern_sendfile(): skip cycling through the entire mbuf chain in
  m_cat(), storing pointer to last mbuf in chain in local variable and
  attaching new mbuf to the end of chain.

  Submitter reports that CPU load dropped for > 10% on a web server
  serving large files with this optimisation.

  Submitted by: Sergey Budnevitch <sb nginx.com>

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

11 years agoMerge r236671 from head:
glebius [Thu, 14 Jun 2012 07:40:18 +0000 (07:40 +0000)]
Merge r236671 from head:
  Merge revision 1.715 from OpenBSD:

    date: 2010/12/24 20:12:56;  author: henning;  state: Exp;  lines: +3 -3
    in pf_src_connlimit, the indices to sk->addr were swapped.
    tracked down and diff sent by Robert B Mills <rbmills at sdf.lonestar.org>
    thanks, very good work! ok claudio

  Impact is that the "flush" keyword didn't work.

  Obtained from:        OpenBSD

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

11 years agoMFC r236287:
eadler [Thu, 14 Jun 2012 06:54:35 +0000 (06:54 +0000)]
MFC r236287:
add missing variable declaration when DEBUG is defined forgotten in r215046

PR: bin/166404
Approved by: cperciva (implicit)

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

11 years agoMFC r236355:
eadler [Thu, 14 Jun 2012 06:26:58 +0000 (06:26 +0000)]
MFC r236355:
Fix a variety of compile errors with gcc48 and clang

PR: bin/165699
Approved by: cperciva (implicit)

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

11 years agoMFC r230188i (by das):
mav [Wed, 13 Jun 2012 20:31:30 +0000 (20:31 +0000)]
MFC r230188i (by das):
Correct some bugs that resulted from arm/_fpmath.h being blindly copied
from the x86 version, which has a completely different long double
format.

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

11 years agoMFC r233098:
dim [Wed, 13 Jun 2012 19:53:29 +0000 (19:53 +0000)]
MFC r233098:

Make sure libgcc_s is finished building in _startup_libs before
building libcxxrt with high -j levels.  The workaround in
libc++/Makefile isn't necessary once that race is solved.

Reviewed by: theraven

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

11 years agoEnsure that the beginning of the DSS is aligned on a chunk boundary.
jhb [Wed, 13 Jun 2012 19:04:39 +0000 (19:04 +0000)]
Ensure that the beginning of the DSS is aligned on a chunk boundary.
If the _end symbol used an address with the low bit set, then the initial
arena could end up with corrupted rb trees causing a crash during the
first call to malloc().

This is a direct commit to stable/9 as it does not affect the version
of malloc in HEAD.

Reviewed by: jasone
MFC after: 1 week

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

11 years agoMFC r234188,r234463,r234465:
pluknet [Wed, 13 Jun 2012 14:47:03 +0000 (14:47 +0000)]
MFC r234188,r234463,r234465:

- Update the swi_add prototype after struct ithd was split up into
struct intr_event and struct intr_thread. [1]
- Update the rest of struct ithd references.
- net_ih and softclock_ih cookies have gone away.
- Document swi_remove(9).

PR: docs/166864 [1]

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

11 years agoMFC r236669:
fabient [Wed, 13 Jun 2012 06:42:36 +0000 (06:42 +0000)]
MFC r236669:
Remove spurious ARM symbols from lookup table.

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

11 years agoMFC r236286:
eadler [Wed, 13 Jun 2012 03:40:59 +0000 (03:40 +0000)]
MFC r236286:
Fix likely race condition if wait_child() is interrupted by sigchild()

PR: bin/102834
Approved by: cperciva (implicit)

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

11 years agoMFC r236288:
eadler [Wed, 13 Jun 2012 03:34:42 +0000 (03:34 +0000)]
MFC r236288:
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
Approved by: cperciva (implicit)

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

11 years agoMFC r236290:
eadler [Wed, 13 Jun 2012 03:18:47 +0000 (03:18 +0000)]
MFC r236290:
Document daily_status_security_chkportsum_enable

PR: docs/167980
Approved by: cperciva (implicit)

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

11 years agoForget to propogate mergeinfo to directories
ache [Wed, 13 Jun 2012 00:12:47 +0000 (00:12 +0000)]
Forget to propogate mergeinfo to directories

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

11 years agoMFC r236578:
dim [Tue, 12 Jun 2012 21:03:24 +0000 (21:03 +0000)]
MFC r236578:

Fix build of aicasm when CC=clang.  This was due to a side-effect of the
EARLY_BUILD macro: the -Qunused-arguments flag isn't passed anymore when
building this particular program.  However, with clang 3.1 and -Werror,
such unused argument warnings are flagged as errors, causing buildkernel
to fail at this stage, due to the -nostdinc flag passed during linking.
Since the -nostdinc flag isn't actually needed, just remove it.

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

11 years agoMFC r236550, r236551:
trociny [Tue, 12 Jun 2012 20:04:23 +0000 (20:04 +0000)]
MFC r236550, r236551:

r236550:

On a child exit, call waitpid(2) to clean up the process table.

Submitted by: Andrey Zonov <andrey zonov.org>

r236551:

Document -r option in SYNOPSIS and usage statement.

Submitted by: Andrey Zonov <andrey zonov.org>

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

11 years agoMFC r235859:
kib [Tue, 12 Jun 2012 20:01:29 +0000 (20:01 +0000)]
MFC r235859:
Enable drm2 modules build.

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

11 years agoFix a problem where zero-length RDATA fields can cause named(8) to crash.
bz [Tue, 12 Jun 2012 12:10:10 +0000 (12:10 +0000)]
Fix a problem where zero-length RDATA fields can cause named(8) to crash.
[12:03]

Correct a privilege escalation when returning from kernel if
running FreeBSD/amd64 on non-AMD processors. [12:04]

Fix reference count errors in IPv6 code. [EN-12:02]

Security: CVE-2012-1667
Security: FreeBSD-SA-12:03.bind
Security: CVE-2012-0217
Security: FreeBSD-SA-12:04.sysret
Security: FreeBSD-EN-12:02.ipv6refcount
Approved by: so (simon, bz)

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

11 years agoMFC r236847:
mav [Tue, 12 Jun 2012 08:08:33 +0000 (08:08 +0000)]
MFC r236847:
Partially revert r236666:
Return PROTO_ATA protocol in response to XPT_PATH_INQ.

smartmontools uses it to identify ATA devices and I don't know any other
place now where it is important. It could probably use XPT_GDEV_TYPE
instead for more accurate protocol information, but let it live for now.

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

11 years agoMFC r236183:
kib [Mon, 11 Jun 2012 21:44:24 +0000 (21:44 +0000)]
MFC r236183:
Disable end of buffer fixup by default.

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

11 years agoMFC r236182:
kib [Mon, 11 Jun 2012 21:43:17 +0000 (21:43 +0000)]
MFC r236182:
Fix calculation of the execution buffer end in the mapped pages
when it is spilled into the next page.

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

11 years agoMFC r235925 (by dim):
kib [Mon, 11 Jun 2012 21:41:45 +0000 (21:41 +0000)]
MFC r235925 (by dim):
Fix a clang warning in drm2.

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

11 years agoMFC r235847:
kib [Mon, 11 Jun 2012 21:40:02 +0000 (21:40 +0000)]
MFC r235847:
The drm2 modules makefiles commit.

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

11 years agoMFC r235846:
kib [Mon, 11 Jun 2012 21:38:36 +0000 (21:38 +0000)]
MFC r235846:
Add 'drmn' device as another drm child, to allow drm2 drivers to live
in parallel with drm1.

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

11 years agoMFC r235783:
kib [Mon, 11 Jun 2012 21:35:27 +0000 (21:35 +0000)]
MFC r235783:
Add the code for new Intel GPU driver, which supports GEM, KMS and
works with new generations of GPUs (IronLake, SandyBridge and
supposedly IvyBridge).

The driver is not connected to the build yet.

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

11 years agoMFC r235782:
kib [Mon, 11 Jun 2012 21:33:02 +0000 (21:33 +0000)]
MFC r235782:
A rewrite of the i810 bits of the agp(4) driver.  New driver supports
operations required by GEMified i915.ko. It also attaches to SandyBridge
and IvyBridge CPU northbridges now.

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

11 years agoMFC r235375:
kib [Mon, 11 Jun 2012 21:25:20 +0000 (21:25 +0000)]
MFC r235375:
Add new pager type, OBJT_MGTDEVICE. It provides the device pager
which carries fictitous managed pges. In particular, the consumers of
the new object type can remove all mappings of the device page with
pmap_remove_all().

The range of physical addresses used for fake page allocation shall be
registered with vm_phys_fictitious_reg_range() interface to allow the
PHYS_TO_VM_PAGE() to work in pmap.

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

11 years agoMFC r235372:
kib [Mon, 11 Jun 2012 21:19:59 +0000 (21:19 +0000)]
MFC r235372:
Add a facility to register a range of physical addresses to be used
for allocation of fictitious pages, for which PHYS_TO_VM_PAGE()
returns proper fictitious vm_page_t. The range should be de-registered
after consumer stopped using it.

De-inline the PHYS_TO_VM_PAGE() since it now carries code to iterate
over registered ranges.

MFC r235776 (by andrew):
In PHYS_TO_VM_PAGE() when VM_PHYSSEG_DENSE is set the check if we are past
the end of vm_page_array was incorrect causing it to return NULL. This
value is then used in vm_phys_add_page causing a data abort.

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

11 years agoMFC r235366:
kib [Mon, 11 Jun 2012 21:12:52 +0000 (21:12 +0000)]
MFC r235366:
Split the code from vm_page_getfake() to initialize the fake page struct
vm_page into new interface vm_page_initfake(). Handle the case of fake
page re-initialization with changed memattr.

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

11 years agoMFC r235365:
kib [Mon, 11 Jun 2012 21:08:52 +0000 (21:08 +0000)]
MFC r235365:
Assert that the page passed to vm_page_putfake() is unmanaged.

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

11 years agoMFC r235362:
kib [Mon, 11 Jun 2012 21:06:10 +0000 (21:06 +0000)]
MFC r235362:
Assert that fictitious or unmanaged pages do not appear on
active/inactive lists.

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

11 years agoMFC r235356:
kib [Mon, 11 Jun 2012 20:58:23 +0000 (20:58 +0000)]
MFC r235356:
Make the vm_page_array_size long. Remove redundand zero initialization
for vm_page_array_size and nearby variables.

MFC r235359:
Commit the change forgotten in r235356.

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

11 years agoMFC r236738:
mjg [Mon, 11 Jun 2012 17:54:40 +0000 (17:54 +0000)]
MFC r236738:
Plug socket refcount leak on error in sys_sctp_peeloff.

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

11 years agoMFC r233771:
hselasky [Mon, 11 Jun 2012 17:27:53 +0000 (17:27 +0000)]
MFC r233771:
Add definitions and structures for USB 2.0 Link Power Management, LPM.

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

11 years agoMFC r236439:
hselasky [Mon, 11 Jun 2012 17:23:24 +0000 (17:23 +0000)]
MFC r236439:
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.

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

11 years agoMFC r236407:
hselasky [Mon, 11 Jun 2012 17:18:31 +0000 (17:18 +0000)]
MFC r236407:
Improve support for detaching kernel drivers on a per interface basis.

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

11 years agoMFC: r235381
rmacklem [Mon, 11 Jun 2012 12:34:14 +0000 (12:34 +0000)]
MFC: r235381
Fix two cases in the new NFS server where a tsleep() is
used, when the code should actually protect the tested
variable with a mutex. Since the tsleep()s had a 10sec
timeout, the race would have only delayed the allocation
of a new clientid for a client. The sleeps will also
rarely occur, since having a callback in progress when
a client acquires a new clientid, is unlikely.
in practice, since having a callback in progress when
a fresh clientid is being acquired by a client is unlikely.

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

11 years agoMFC 236582,236618 - remove unused serrno variable
ache [Mon, 11 Jun 2012 11:59:29 +0000 (11:59 +0000)]
MFC 236582,236618 - remove unused serrno variable

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

11 years agoMFC r236572:
delphij [Mon, 11 Jun 2012 07:11:34 +0000 (07:11 +0000)]
MFC r236572:

Replace the use of wall clock time with monotonically increasing
clock.  In general, gettimeofday() is not appropriate interface
when accounting for elasped time because it can go backward, in
which case the policy code could errornously consider the limit
as exceeded.

Reported by: Mahesh Arumugam
Submitted by: Dorr H. Clark via gnn
Sponsored by: Citrix / NetScaler

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

11 years agoMFC r236649,236670:
kevlo [Mon, 11 Jun 2012 01:44:17 +0000 (01:44 +0000)]
MFC r236649,236670:

Check the return value of pci_find_cap()

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

11 years agoMFC r236700:
kevlo [Mon, 11 Jun 2012 01:38:34 +0000 (01:38 +0000)]
MFC r236700:

Fix a logic error when use PCIY_PMG capability

Reviewed by: yongari

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

12 years agoMFC r236716:
wblock [Sun, 10 Jun 2012 19:44:08 +0000 (19:44 +0000)]
MFC r236716:

Add specific supported revision of ASUS USB-N13 ver. A1.
http://lists.freebsd.org/pipermail/freebsd-doc/2012-June/019960.html

Submitted by: PseudoCylon (AK)
Approved by: gjb (mentor)

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

12 years agoMFC r236528:
dim [Sun, 10 Jun 2012 13:28:14 +0000 (13:28 +0000)]
MFC r236528:

During buildworld and buildkernel, define EARLY_BUILD in the earlier
stages (build-tools, cross-tools, etc) of the build, so we can detect in
bsd.*.mk whether to pass compiler-specific flags to ${CC}.

In particular, this commit will allow using WITH_CLANG_IS_CC when the
base compiler is still gcc, and when ${CC}, ${CXX} and ${CPP} are left
at their defaults.  The early stages will then be built using gcc, and
no clang-specific flags will be passed to it.  The later stages will be
built as usual.

The EARLY_BUILD define can also serve other uses, such as building the
world stage C++ executables with libc++ instead of libstdc++: during the
early build stages, we cannot assume libc++ is already available, so we
must still build with libstdc++ at that time.

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

12 years agoMFC r236155:
mm [Sun, 10 Jun 2012 07:40:26 +0000 (07:40 +0000)]
MFC r236155:
Import illumos changeset 13570:3411fd5f1589
1948 zpool list should show more detailed pool information

Display per-vdev information with "zpool list -v".
The added expandsize property has currently no value on FreeBSD.
This changeset allows adding expansion support to individual vdevs
in the future.

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

Obtained from: illumos (issue #1948)

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

12 years agoMFC r236143, r236705:
mm [Sun, 10 Jun 2012 07:23:45 +0000 (07:23 +0000)]
MFC r236143, r236705:

MFC r236143 [1]:
Import illumos changeset 13571:a5771a96228c
1950 ztest backwards compatibility testing option

MFC r236705 [2]:
Import Illumos revision 13715:351036203e4b
2803 zfs get guid pretty-prints the output

References:
https://www.illumos.org/issues/1950 [1]
https://www.illumos.org/issues/2803 [2]

Obtained from: illumos (issue #1950 [1], #2803 [2])

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

12 years agoMFC r236615:
bz [Sat, 9 Jun 2012 22:44:24 +0000 (22:44 +0000)]
MFC r236615:

 Plug two interface address refcount leaks in early error return cases
 in the ioctl path.

 Reported by: rpaulo
 Reviewed by: emax

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