]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoMFV r248217:
mm [Sat, 6 Apr 2013 10:39:38 +0000 (10:39 +0000)]
MFV r248217:
Merge change from vendor to reduce diff only.
ZFS dtrace probes are not supported on FreeBSD yet.

Illumos ZFS issues:
  3598 want to dtrace when errors are generated in zfs

MFC after: 3 weeks

11 years agoMake SYNCHRONIZE CACHE work with LUNs backed by device files (as opposed
trasz [Sat, 6 Apr 2013 10:34:02 +0000 (10:34 +0000)]
Make SYNCHRONIZE CACHE work with LUNs backed by device files (as opposed
to regular files, which already worked fine).  With this change, it's no
longer neccessary to use "ctladm realsync off" workaround.

11 years agoMake it possible to submit FLUSH bios through geom_dev strategy. This
trasz [Sat, 6 Apr 2013 10:32:06 +0000 (10:32 +0000)]
Make it possible to submit FLUSH bios through geom_dev strategy.  This
is required for CTL to work with device-backed LUNs.

Reviewed by: mav

11 years agoMove CRITICAL_ASSERT() macro to systm.h, where the critical(9)
glebius [Sat, 6 Apr 2013 08:23:38 +0000 (08:23 +0000)]
Move CRITICAL_ASSERT() macro to systm.h, where the critical(9)
functions are declared.

11 years agoMFV r242816:
mm [Sat, 6 Apr 2013 08:21:37 +0000 (08:21 +0000)]
MFV r242816:
Import vendor change to reduce diff, no effect on FreeBSD.

Illumos ZFS issues:
  3517 importing pool with autoreplace=on and "hole" vdevs crashes syseventd

11 years agoSimplify vm_radix_insert().
alc [Sat, 6 Apr 2013 06:02:55 +0000 (06:02 +0000)]
Simplify vm_radix_insert().

Reviewed by: attilio
Tested by: pho
Sponsored by: EMC / Isilon Storage Division

11 years agoProperly clean "spurious interrupt" state
gonzo [Sat, 6 Apr 2013 03:31:28 +0000 (03:31 +0000)]
Properly clean "spurious interrupt" state

Suggested by: Ian Lepore

11 years agoHide non-assembler bits behind #ifndef __ASSEMBLER__
andrew [Sat, 6 Apr 2013 00:47:33 +0000 (00:47 +0000)]
Hide non-assembler bits behind #ifndef __ASSEMBLER__

11 years agoExtend ath3kfw to include overridable device / vendor IDs.
adrian [Fri, 5 Apr 2013 23:42:22 +0000 (23:42 +0000)]
Extend ath3kfw to include overridable device / vendor IDs.

This is required for ar3k series bluetooth devices who need firmware
but have a different vendor ID than normal.

Reviewed by: maksim

11 years agoAdd blacklist entries for Atheros bluetooth device IDs that are known to
adrian [Fri, 5 Apr 2013 23:41:38 +0000 (23:41 +0000)]
Add blacklist entries for Atheros bluetooth device IDs that are known to
need firmware before they will re-attach as correctly functioning bluetooth
devices.

Reviewed by: maksim
Obtained from: Linux ath3k device driver

11 years agoFix declaration vs. definition inconsistency. No functional change.
jkim [Fri, 5 Apr 2013 23:41:34 +0000 (23:41 +0000)]
Fix declaration vs. definition inconsistency.  No functional change.

11 years agoAdd the hw.floatingpoint sysctl to ARM to tell us if we have vfp support
andrew [Fri, 5 Apr 2013 23:35:23 +0000 (23:35 +0000)]
Add the hw.floatingpoint sysctl to ARM to tell us if we have vfp support
in the kernel and the hardware includes a vfp unit.

11 years agoRemove dangling ISA uart stubs.
grehan [Fri, 5 Apr 2013 22:19:02 +0000 (22:19 +0000)]
Remove dangling ISA uart stubs.

Obtained from: NetApp

11 years agoDon't panic when a valid divisor of 1 has been requested.
grehan [Fri, 5 Apr 2013 22:16:31 +0000 (22:16 +0000)]
Don't panic when a valid divisor of 1 has been requested.

Obtained from: NetApp

11 years agoconfig checksum is over the entire fixed portion, not just the
grehan [Fri, 5 Apr 2013 22:14:07 +0000 (22:14 +0000)]
config checksum is over the entire fixed portion, not just the
config header. FreeBSD doesn't check this but other o/s's do.

Obtained from: NetApp

11 years agoFix a typo in the burncd line.
rene [Fri, 5 Apr 2013 21:18:01 +0000 (21:18 +0000)]
Fix a typo in the burncd line.

Approved by: cognet

11 years agoAdd myself as a ports committer
antoine [Fri, 5 Apr 2013 21:17:37 +0000 (21:17 +0000)]
Add myself as a ports committer

Approved by: eadler (mentor)

11 years agoNotify CAM on state* change to a logical volume not status. This resolves
sbruno [Fri, 5 Apr 2013 21:13:39 +0000 (21:13 +0000)]
Notify CAM on state* change to a logical volume not status.  This resolves
the issues reported regarding camcontrol devlist not showing the rebuild
states of volumes unless an explicit camcontrol rescan was executed.

PR: kern/171650
Reviewed by: scottl@freebsd.org
Obtained from: Yahoo! Inc.
MFC after: 2 weeks

11 years agoFix memory leak in coredump().
glebius [Fri, 5 Apr 2013 20:24:51 +0000 (20:24 +0000)]
Fix memory leak in coredump().

Reviewed by: kib

11 years agoCorrect the returned message lengths for timeval and bintime control
gnn [Fri, 5 Apr 2013 18:09:43 +0000 (18:09 +0000)]
Correct the returned message lengths for timeval and bintime control
messages (SO_BINTIME, SO_TIMEVAL).

Obtained from: phk

11 years agoIf filter of the interrupt event is not null, print it, in addition to
kib [Fri, 5 Apr 2013 14:30:51 +0000 (14:30 +0000)]
If filter of the interrupt event is not null, print it, in addition to
the handler address.  Add a mark to distinguish between filter and
handler.

Note that the arguments for both filter and handler are same.

Sponsored by: The FreeBSD Foundation
Reviewed by: jhb
MFC after: 1 week

11 years agoFollowing r241022, replace iteration over the provider list on media events
mav [Fri, 5 Apr 2013 13:11:28 +0000 (13:11 +0000)]
Following r241022, replace iteration over the provider list on media events
by taking first one and asserting that there is no others.

MFC after: 1 week

11 years agomdoc: remove superfluous paragraph macro.
joel [Fri, 5 Apr 2013 11:42:28 +0000 (11:42 +0000)]
mdoc: remove superfluous paragraph macro.

11 years agoUpgrade to 1.4.20.
des [Fri, 5 Apr 2013 09:51:31 +0000 (09:51 +0000)]
Upgrade to 1.4.20.

11 years agoMinimal subset of the unbound sources.
des [Fri, 5 Apr 2013 09:43:20 +0000 (09:43 +0000)]
Minimal subset of the unbound sources.

11 years agostrncmp for boot code: fix an off by one error
avg [Fri, 5 Apr 2013 09:14:30 +0000 (09:14 +0000)]
strncmp for boot code: fix an off by one error

Before this change strncmp would access and _compare_ n+1 characters
in the case where the first n characters match.

MFC after: 5 days

11 years agoAdd a new TX power field - it's inteded to be used where low TX power
adrian [Fri, 5 Apr 2013 09:06:39 +0000 (09:06 +0000)]
Add a new TX power field - it's inteded to be used where low TX power
is configured for higher rates (lower than max) but higher TX power
is configured for the lower rates, above the configured cap, to improve
long distance behaviour.

11 years agoImport unbound 1.4.20
des [Fri, 5 Apr 2013 09:06:26 +0000 (09:06 +0000)]
Import unbound 1.4.20

11 years agoHAL additions to enable MCI Bluetooth coexistence in the AR9300 HAL.
adrian [Fri, 5 Apr 2013 07:41:47 +0000 (07:41 +0000)]
HAL additions to enable MCI Bluetooth coexistence in the AR9300 HAL.

* Add the rest of the missing GPIO output mux types;
* Add in a new debug category;
* And a new MCI btcoex configuration option in ath_hal.ah_config

Obtained from: Qualcomm Atheros

11 years agoPrint out DSISR in a fatal DSI trap.
jhibbits [Fri, 5 Apr 2013 04:53:43 +0000 (04:53 +0000)]
Print out DSISR in a fatal DSI trap.

Sponsored by:

11 years agoAdd the basic GPIO pin mapping to the hints file.
adrian [Fri, 5 Apr 2013 02:15:10 +0000 (02:15 +0000)]
Add the basic GPIO pin mapping to the hints file.

Tested:

* AP121 board, tested USB/jumpstart LEDs

11 years agoImplement USB device reset and poweron.
adrian [Fri, 5 Apr 2013 02:02:37 +0000 (02:02 +0000)]
Implement USB device reset and poweron.

Tested:

* Atheros AP131, AR9331 SoC

11 years agoFix AR933x USB support - this needs the same controller initialisation
adrian [Fri, 5 Apr 2013 02:01:05 +0000 (02:01 +0000)]
Fix AR933x USB support - this needs the same controller initialisation
as the AR7242.

Tested:

* Atheros AP121, AR9331
* ZyDas wifi device, and 64MB (yes, ew) USB flash storage

11 years agoAdd AP121 ethernet / switch PHY support.
adrian [Fri, 5 Apr 2013 01:38:13 +0000 (01:38 +0000)]
Add AP121 ethernet / switch PHY support.

* arge0 is MII
* arge1 is GMII
* the MDIO bus is on arge1, not arge0
* the default switch config is to have ports 0-3 as the switch group,
  with port 4 being an external PHY dedicated to arge0 (ie, 'cpu' port.)

Whilst I'm here, remove unused bits and pieces from the config.

Tested:

* AP121, ping on both arge0 and arge1
* Tested switch port detection using etherswitchcfg

11 years agoImplement the AR933x ethernet support.
adrian [Fri, 5 Apr 2013 01:35:59 +0000 (01:35 +0000)]
Implement the AR933x ethernet support.

Obtained from: OpenWRT

11 years agoNow that interrupt driven uart IO is working, flip this back on.
adrian [Fri, 5 Apr 2013 00:26:29 +0000 (00:26 +0000)]
Now that interrupt driven uart IO is working, flip this back on.

11 years agoImplement the AR933x interrupt driven UART code.
adrian [Fri, 5 Apr 2013 00:26:06 +0000 (00:26 +0000)]
Implement the AR933x interrupt driven UART code.

* Enable RX and host interrupts during bus probe/attach
* Disable all interrupts (+ host ISR) during bus detach
* Enable TX DONE interrupt only when we start transmitting; clear it when
  we're done.
* The RX/TX FIFO depth is still conjecture on my part.  I'll fix this
  shortly.
* The TX FIFO interrupt isn't an "empty" interrupt, it's an "almost empty"
  interrupt.  Sigh.  So..
* .. in ar933x_bus_transmit(), wait for the FIFO to drain before
  continuing.

I dislike having to wait for the FIFO to drain, alas.

Tested:

* Atheros AP121 board, AR9331 SoC.

TODO:

* RX/TX overflow, RX error, BREAK support, etc.
* Figure out the true RX/TX FIFO depth.

11 years agoAR9330/AR9331 also needs to ACK the APB interrupt register, same as
adrian [Fri, 5 Apr 2013 00:22:53 +0000 (00:22 +0000)]
AR9330/AR9331 also needs to ACK the APB interrupt register, same as
AR724x.

This fixes 'stuck interrupt' problems I was having when writing the
uart interrupt code.

11 years ago* Add AR9330/AR9331 to the soc identifier enum;
adrian [Fri, 5 Apr 2013 00:22:17 +0000 (00:22 +0000)]
* Add AR9330/AR9331 to the soc identifier enum;
* Set it when probing the CPU type.

11 years agoUse geom_uncompress here; we need this to fit in a 4MB flash part.
adrian [Fri, 5 Apr 2013 00:21:17 +0000 (00:21 +0000)]
Use geom_uncompress here; we need this to fit in a 4MB flash part.

11 years agoAdds security options to camcontrol this includes the ability to secure erase
smh [Thu, 4 Apr 2013 23:19:51 +0000 (23:19 +0000)]
Adds security options to camcontrol this includes the ability to secure erase
disks such as SSD's

Adds the ability to run ATA commands via the SCSI ATA Pass-Through(16) comand

Reviewed by: mav
Approved by: pjd (mentor)
MFC after: 2 weeks

11 years agoAdd myself as a ports committer and my mentor relationship.
wg [Thu, 4 Apr 2013 23:11:56 +0000 (23:11 +0000)]
Add myself as a ports committer and my mentor relationship.

While in the repository, add myself to calendar.freebsd.

Approved by: jpaetzel (mentor)

11 years agoMerge ACPICA 20130328.
jkim [Thu, 4 Apr 2013 22:11:30 +0000 (22:11 +0000)]
Merge ACPICA 20130328.

11 years agoImport ACPICA 20130328.
jkim [Thu, 4 Apr 2013 21:18:57 +0000 (21:18 +0000)]
Import ACPICA 20130328.

11 years agoMFprojects/camlock:
mav [Thu, 4 Apr 2013 20:31:40 +0000 (20:31 +0000)]
MFprojects/camlock:
r249017:
Some cosmetic things:
 - Unify device to target insertion inside xpt_alloc_device() instead of
duplicating it three times.
 - Remove extra checks for empty lists of devices and targets on release
since zero refcount check also implies it.
 - Reformat code to reduce indentation.

r249103:
 - Add lock assertions to every point where reference counters are modified.
 - When reference counters are reaching zero, add assertions that there are
no children items left.
 - Add a bit more locking to the xptpdperiphtraverse().

11 years agoMFprojects/camlock r248931:
mav [Thu, 4 Apr 2013 19:07:37 +0000 (19:07 +0000)]
MFprojects/camlock r248931:
Replace some direct mutex operations with wrappers.

MFC after: 2 weeks

11 years agoMFprojects/camlock r248930:
mav [Thu, 4 Apr 2013 19:04:15 +0000 (19:04 +0000)]
MFprojects/camlock r248930:
Remove extra NULL checks. d_drv1 can never be NULL during periph life cycle.

MFC after: 2 weeks

11 years agoMFprojects/camlock r248928:
mav [Thu, 4 Apr 2013 18:59:29 +0000 (18:59 +0000)]
MFprojects/camlock r248928:
Move CAM_DEBUG_CDB messages from the point of queuing to the point of
sending to SIM.  That allows to inspect real requests execution order,
respecting priorities, freezing, etc.

MFC after: 2 weeks

11 years agoSince the CTL version in FreeBSD does not support High Availability,
trasz [Thu, 4 Apr 2013 18:00:18 +0000 (18:00 +0000)]
Since the CTL version in FreeBSD does not support High Availability,
ctl_is_single should always be set to 1.  Make it so.  Previously
it was always 0, because ctl_isc_start() never got to run.

Suggested by: ken

11 years agoRemove xpt_sim_opened(), the only consumer of which was atapicam, which is
mav [Thu, 4 Apr 2013 17:08:49 +0000 (17:08 +0000)]
Remove xpt_sim_opened(), the only consumer of which was atapicam, which is
now gone.

11 years agoRemove a comment about devices being able to specify multiple interrupt
rpaulo [Thu, 4 Apr 2013 15:40:19 +0000 (15:40 +0000)]
Remove a comment about devices being able to specify multiple interrupt
types. This is no longer the case because interrupt types now have to map to
an ithread priority (c.f. intr_priority()).

11 years agoImprove error handling when unwrapping received data.
gnn [Thu, 4 Apr 2013 15:16:53 +0000 (15:16 +0000)]
Improve error handling when unwrapping received data.

Submitted by: Rick Macklem
MFC after: 1 week

11 years agoRemove periodic script for ataraid(4) and add instead script for graid(8).
mav [Thu, 4 Apr 2013 15:03:12 +0000 (15:03 +0000)]
Remove periodic script for ataraid(4) and add instead script for graid(8).

11 years agoRemove some more references to legacy ATA.
mav [Thu, 4 Apr 2013 12:03:30 +0000 (12:03 +0000)]
Remove some more references to legacy ATA.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

11 years agoImplement AR933x polled IO uart bus code.
adrian [Thu, 4 Apr 2013 10:46:33 +0000 (10:46 +0000)]
Implement AR933x polled IO uart bus code.

This implements the bus transmit/receive/sigchg/ipend methods with
a polled interrupt handler (ipend) rather than enabling hardware
interrupts.

The FIFO is faked at 16 bytes deep for now, just so the transmit
IO side doesn't suck too bad (the callout frequency limits how quickly
IO is flushed to the sender, rather than scheduling the callout more
frequently whilst there's active TX.  But I digress.)

Tested:

* Atheros AP121 (AR9330) reference board, booting to multi-user interactive
  mode.

11 years agoMinor rewording.
joel [Thu, 4 Apr 2013 10:26:09 +0000 (10:26 +0000)]
Minor rewording.

Discussed with: mav

11 years agoUse xpt_lock_buses() instead of equivalent mtx_lock(&xsoftc.xpt_topo_lock)
mav [Thu, 4 Apr 2013 10:19:05 +0000 (10:19 +0000)]
Use xpt_lock_buses() instead of equivalent mtx_lock(&xsoftc.xpt_topo_lock)
to unify the code.

11 years agoRemove usr.sbin/burncd, useless after legacy ATA stack removal.
mav [Thu, 4 Apr 2013 09:21:24 +0000 (09:21 +0000)]
Remove usr.sbin/burncd, useless after legacy ATA stack removal.

11 years agoCheck status of ahci_em_reset() on attach and abort if reset failed.
mav [Thu, 4 Apr 2013 09:15:19 +0000 (09:15 +0000)]
Check status of ahci_em_reset() on attach and abort if reset failed.
For now it is just a hypothetical case.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

11 years agoUpdate comments!
adrian [Thu, 4 Apr 2013 08:57:29 +0000 (08:57 +0000)]
Update comments!

11 years agoRemove references to ataraid(4) and atacontrol(8).
joel [Thu, 4 Apr 2013 08:45:37 +0000 (08:45 +0000)]
Remove references to ataraid(4) and atacontrol(8).

11 years agoRemove atapicam(4) reference.
joel [Thu, 4 Apr 2013 08:30:04 +0000 (08:30 +0000)]
Remove atapicam(4) reference.

11 years agoFix the busdma logic to work with EDMA chipsets when using bounce
adrian [Thu, 4 Apr 2013 08:21:56 +0000 (08:21 +0000)]
Fix the busdma logic to work with EDMA chipsets when using bounce
buffers (ie, >4GB on amd64.)

The underlying problem was that PREREAD doesn't sync the mbuf
with the DMA memory (ie, bounce buffer), so the bounce buffer may
have had stale information.  Thus it was always considering the
buffer completed and things just went off the rails.

This change does the following:

* Make ath_rx_pkt() always consume the mbuf somehow; it no longer
  passes error mbufs (eg CRC errors, crypt errors, etc) back up
  to the RX path to recycle.  This means that a new mbuf is always
  allocated each time, but it's cleaner.

* Push the RX buffer map/unmap to occur in the RX path, not
  ath_rx_pkt().  Thus, ath_rx_pkt() now assumes (a) it has to consume
  the mbuf somehow, and (b) that it's already been unmapped and
  synced.

* For the legacy path, the descriptor isn't mapped, it comes out of
  coherent, DMA memory anyway.  So leave it there.

* For the EDMA path, the RX descriptor has to be cleared before
  its passed to the hardware, so that when we check with
  a POSTREAD sync, we actually get either a blank (not finished)
  or a filled out descriptor (finished.)  Otherwise we get stale
  data in the DMA memory.

* .. so, for EDMA RX path, we need PREREAD|PREWRITE to sync the
  data -> DMA memory, then POSTREAD|POSTWRITE to finish syncing
  the DMA memory -> data.

* Whilst we're here, make sure that in EDMA buffer setup (ie,
  bzero'ing the descriptor part) is done before the mbuf is
  map/synched.

NOTE: there's been a lot of commits besides this one with regards to
tidying up the busdma handling in ath(4).  Please check the recent
commit history.

Discussed with and thanks to: scottl

Tested:

* AR5416 (non-EDMA) on i386, with the DMA tag for the driver
  set to 2^^30, not 2^^32, STA

* AR9580 (EDMA) on i386, as above, STA

* User - tested AR9380 on amd64 with 32GB RAM.

PR: kern/177530

11 years agoRemove obsolete files of the legacy ATA stack.
mav [Thu, 4 Apr 2013 07:57:32 +0000 (07:57 +0000)]
Remove obsolete files of the legacy ATA stack.

11 years agoRemove all legacy ATA code parts, not used since options ATA_CAM enabled in
mav [Thu, 4 Apr 2013 07:12:24 +0000 (07:12 +0000)]
Remove all legacy ATA code parts, not used since options ATA_CAM enabled in
most kernels before FreeBSD 9.0.  Remove such modules and respective kernel
options: atadisk, ataraid, atapicd, atapifd, atapist, atapicam.  Remove the
atacontrol utility and some man pages.  Remove useless now options ATA_CAM.

No objections: current@, stable@
MFC after: never

11 years agoCorrect the multicast handling in the E1000 drivers as was
jfv [Wed, 3 Apr 2013 23:39:54 +0000 (23:39 +0000)]
Correct the multicast handling in the E1000 drivers as was
done in ixgbe, thanks to Mike Karels for this fix. When exiting
promiscuous mode MPE bit was being unconditionally cleared, this
should not be done if we are in MAX multicast groups.

11 years agoMFP4 change 217313 and part of 222068:
brooks [Wed, 3 Apr 2013 22:37:40 +0000 (22:37 +0000)]
MFP4 change 217313 and part of 222068:

Add a simple nexus attachment for cfi(4).

11 years agoMFP4 change 210763
brooks [Wed, 3 Apr 2013 22:24:36 +0000 (22:24 +0000)]
MFP4 change 210763

Allow boothowto and bootverbose to be set via kernel options, which
is useful on architectures that are unable to rely on a boot loader
to pass configuration variables to the kernel.

Submitted by: rwatson

11 years agoUpdate man page for igb(4) with a little bit of information about
sbruno [Wed, 3 Apr 2013 21:55:19 +0000 (21:55 +0000)]
Update man page for igb(4) with a little bit of information about
hw.igb.num_queues for those so inclined.

PR: kern/177384
Submitted by: hiren.panchasara@gmail.com
Reviewed by: sbruno@
Approved by: jfv@
Obtained from: Yahoo! Inc.
MFC after: 2 weeks

11 years agoTrailing whitespace cleanup along with 80 column enforcemnt.
sbruno [Wed, 3 Apr 2013 21:34:35 +0000 (21:34 +0000)]
Trailing whitespace cleanup along with 80 column enforcemnt.

Submitted by: hiren.panchasara@gmail.com
Reviewed by: sbruno@freebsd.org
Obtained from: Yahoo! Inc.
MFC after: 2 weeks

11 years agoFix typo (devicde -> device).
jimharris [Wed, 3 Apr 2013 20:52:17 +0000 (20:52 +0000)]
Fix typo (devicde -> device).

11 years agoCheck for SS_NBIO in the socket state field rather than socket buffer
jhb [Wed, 3 Apr 2013 20:31:10 +0000 (20:31 +0000)]
Check for SS_NBIO in the socket state field rather than socket buffer
flags.

Submitted by: Vijay Singh
MFC after: 1 week

11 years agoFix locking problem in ctl_maintenance_in() - one cannot use M_WAITOK or call
trasz [Wed, 3 Apr 2013 20:26:52 +0000 (20:26 +0000)]
Fix locking problem in ctl_maintenance_in() - one cannot use M_WAITOK or call
ctl_done() with mutex held.

Reviewed by: ken
Sponsored by: FreeBSD Foundation

11 years agoThe code in clear_remove() and clear_inodedeps() skips one entry
mckusick [Wed, 3 Apr 2013 19:26:32 +0000 (19:26 +0000)]
The code in clear_remove() and clear_inodedeps() skips one entry
in the pagedep and inodedep hash tables. An entry in the table is
skipped because 'pagedep_hash' and 'inodedep_hash' hold the size
of the hash tables - 1.

The chance that this would have any operational failure is extremely
unlikely. These funtions only need to find a single entry and are
only called when there are too many entries. The chance that they
would fail because all the entries are on the single skipped hash
chain are remote.

Submitted by: Pedro Martelletto
Reviewed by:  kib
MFC after:    2 weeks

11 years agoIFP4 change 222074.
brooks [Wed, 3 Apr 2013 19:19:45 +0000 (19:19 +0000)]
IFP4 change 222074.

Introduce an explicit close of the output descriptor so that work done
on close is accounted for in the summary output triggered at exit
(implicit close()s occur after atexit() hooks).

This is useful because some devices such as cfi(4) may perform
signficant work after a close occurs (e.g. erasing and rewriting a
block of flash).

11 years agoSince ATA_CAM mode has no implemented support for serializing access to the
mav [Wed, 3 Apr 2013 18:30:09 +0000 (18:30 +0000)]
Since ATA_CAM mode has no implemented support for serializing access to the
different ATA channels, required for acard and pc98 ATA controllers, block
access to second channels of both, hoping that one working channel is better
then none.  I have an idea how that support could be implemented, but I have
no hardware to work on that.

MFC after: 1 week

11 years agoTell bmake to use the FreeBSD preferred makefile preference list.
sjg [Wed, 3 Apr 2013 16:20:21 +0000 (16:20 +0000)]
Tell bmake to use the FreeBSD preferred makefile preference list.

PR: 177593
Reviewed by: obrien

11 years agoAdd some more ATA_CAM ifdefs.
mav [Wed, 3 Apr 2013 14:10:37 +0000 (14:10 +0000)]
Add some more ATA_CAM ifdefs.

Submitted by: marius (partially)
MFC after: 1 week

11 years agoAdd xpt_release_ccb()'s missed at r248872. That made `shutdown -p` stuck
mav [Wed, 3 Apr 2013 11:30:18 +0000 (11:30 +0000)]
Add xpt_release_ccb()'s missed at r248872.  That made `shutdown -p` stuck
on controller with small number of queue slots and several disks connected.

11 years agospa_open_common: fix argument to zvol_create_minors
avg [Wed, 3 Apr 2013 11:06:26 +0000 (11:06 +0000)]
spa_open_common: fix argument to zvol_create_minors

Prior to r248571 spa_open was always called with a bare pool name,
but now it is called with a dataset name instead (spa_lookup handles
that).
So, when a ZFS root is mounted spa_open is called with a name of a root
dataset, which can very well be different from the pool name.
But zvol_create_minors should be called with the pool name, because it
performs a recursive traversal of all datasets under the name to find
all those that are volumes.

MFC after: 7 days

11 years agoAdd missing ifdef's for reduced feature compilations.
hselasky [Wed, 3 Apr 2013 10:31:13 +0000 (10:31 +0000)]
Add missing ifdef's for reduced feature compilations.

11 years agoFix possible pool hold leak in dmu_send_impl()
mm [Wed, 3 Apr 2013 09:52:30 +0000 (09:52 +0000)]
Fix possible pool hold leak in dmu_send_impl()

Problem reported to vendor:
  https://www.illumos.org/issues/3645

Reported by: Andriy Gapon <avg@FreeBSD.org>
MFC after: 15 days

11 years agodrm and i915: Left-shift iic_msg.slave at creation time
dumbbell [Wed, 3 Apr 2013 08:27:35 +0000 (08:27 +0000)]
drm and i915: Left-shift iic_msg.slave at creation time

This is required because, in the radeon driver, we can't left-shift in a
central place, like it was done in the i915 driver.

Reviewed by: kib@, kan@, avg@
Tested by: kib@, avg@

11 years agoAdd new USB ID.
hselasky [Wed, 3 Apr 2013 06:45:21 +0000 (06:45 +0000)]
Add new USB ID.

MFC after: 1 week
Submitted by: Bruce Simpson <bms@fastmail.net>

11 years agoReplace the remaining uses of vm_radix_node_page() by vm_radix_isleaf() and
alc [Wed, 3 Apr 2013 06:37:25 +0000 (06:37 +0000)]
Replace the remaining uses of vm_radix_node_page() by vm_radix_isleaf() and
vm_radix_topage().  This transformation eliminates some unnecessary
conditional branches from the inner loops of vm_radix_insert(),
vm_radix_lookup{,_ge,_le}(), and vm_radix_remove().

Simplify the control flow of vm_radix_lookup_{ge,le}().

Reviewed by: attilio (an earlier version)
Tested by: pho
Sponsored by: EMC / Isilon Storage Division

11 years agoComment out the VIMAGE since we need to build both LINTS to
kevlo [Wed, 3 Apr 2013 01:27:15 +0000 (01:27 +0000)]
Comment out the VIMAGE since we need to build both LINTS to
get good coverage.

Pointed out by: jhb

11 years agoReplace access to /dev/random with the kernel pseudo-random number
delphij [Tue, 2 Apr 2013 23:41:20 +0000 (23:41 +0000)]
Replace access to /dev/random with the kernel pseudo-random number
source sysctl(KERN_ARND) and remove the fallback code.

Obtained from: OpenBSD
Reviewed by: secteam
MFC after: 1 month

11 years agosh: Write as much into the heredoc pipe as possible, to avoid forking.
jilles [Tue, 2 Apr 2013 21:34:38 +0000 (21:34 +0000)]
sh: Write as much into the heredoc pipe as possible, to avoid forking.

Use non-blocking I/O to write as much as the pipe will accept (often 64K,
but it can be as little as 4K), avoiding the need for the ugly PIPESIZE
constant. If PIPESIZE was set too high, a deadlock would occur.

11 years agoUpdate to bmake-20130330
sjg [Tue, 2 Apr 2013 21:31:11 +0000 (21:31 +0000)]
Update to bmake-20130330

11 years agoDo not declare that preloaded md(4) supports unmapped bio requests, it
kib [Tue, 2 Apr 2013 19:39:31 +0000 (19:39 +0000)]
Do not declare that preloaded md(4) supports unmapped bio requests, it
does not.

Reported by: <mh@kernel32.de>
Sponsored by: The FreeBSD Foundation

11 years agoFix sending virtual scatter/gather lists from the CTL CAM frontend
ken [Tue, 2 Apr 2013 17:29:17 +0000 (17:29 +0000)]
Fix sending virtual scatter/gather lists from the CTL CAM frontend
peripheral.

Sponsored by: Spectra Logic

11 years agoDon't directly dereference userland pointer; instead use kernel pointer
trasz [Tue, 2 Apr 2013 16:50:50 +0000 (16:50 +0000)]
Don't directly dereference userland pointer; instead use kernel pointer
copied in from userspace.  This fixes instant panic when creating CTL LUN
on sparc64.  Not a security problem, since the API is root-only.

Reviewed by: ken
Sponsored by: FreeBSD Foundation

11 years agoAdd support for XPT_CONT_TARGET_IO CCBs in _bus_dmamap_load_ccb().
ken [Tue, 2 Apr 2013 16:49:49 +0000 (16:49 +0000)]
Add support for XPT_CONT_TARGET_IO CCBs in _bus_dmamap_load_ccb().

Declare CCB types in their respective switch blocks.

Sponsored by: Spectra Logic

11 years ago- Remove extra $FreeBSD$
glebius [Tue, 2 Apr 2013 13:52:09 +0000 (13:52 +0000)]
- Remove extra $FreeBSD$
- Touch options headers to make module buildable.

Reviewed by: trasz

11 years agoRemove obsolete references to sysinstall.
eadler [Tue, 2 Apr 2013 12:40:01 +0000 (12:40 +0000)]
Remove obsolete references to sysinstall.

This change is not intended for MFC.

PR: docs/177570
Submitted by: Garrett Cooper <yaneurabeya@gmail.com> (partial)
Approved by: bcr (mentor)

11 years agoFix comment formatting.
trasz [Tue, 2 Apr 2013 12:22:44 +0000 (12:22 +0000)]
Fix comment formatting.

11 years agoMerge upstream patch to silence spurious "no such identity file" warnings.
des [Tue, 2 Apr 2013 11:44:55 +0000 (11:44 +0000)]
Merge upstream patch to silence spurious "no such identity file" warnings.

11 years agoSilence printf format warnings.
des [Tue, 2 Apr 2013 11:42:39 +0000 (11:42 +0000)]
Silence printf format warnings.

11 years agoRemove unused code.
trasz [Tue, 2 Apr 2013 09:45:34 +0000 (09:45 +0000)]
Remove unused code.

Reviewed by: ken

11 years agoFix dates in manual pages modified in 249009.
trasz [Tue, 2 Apr 2013 09:44:59 +0000 (09:44 +0000)]
Fix dates in manual pages modified in 249009.