summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge from head@274682sjg2014-11-198182-226016/+691589
|\
| * Make vfs.zfs.max_recordsize read-write at runtime.delphij2014-11-181-1/+1
| | | | | | | | MFC after: 2 weeks
| * Add locking to wds(4) and mark MPSAFE.jhb2014-11-181-90/+84
| | | | | | | | | | | | | | | | | | - Add per-softc mutex. - Use mutex for CAM SIM lock. - Use bus_*() instead of inb() and outb(). - Use bus_alloc_resource_any() when reasonable. Tested by: no one
| * Add locking to scd(4) and mark MPSAFE.jhb2014-11-183-74/+86
| | | | | | | | | | | | | | | | | | | | - Actually use existing per-softc mutex. - Use mutex in cdev routines and remove D_NEEDGIANT. - Use callout(9) instead of timeout(9). - Don't check for impossible conditions (e.g. SCDINIT being clear). - Use bus_*() instead of bus_space_*(). Tested by: no one
| * Cleanups to pst(4):jhb2014-11-182-19/+21
| | | | | | | | | | | | | | | | - Use callout(9) instead of timeout(9). - Don't bother zero'ing the softc. - Destroy mutex on detach. Tested by: no one
| * Add locking to mly(4) and mark MPSAFE.jhb2014-11-182-101/+131
| | | | | | | | | | | | | | | | | | | | - Add a per-softc mutex. - Use mutex as CAM sim lock. - Use taskqueue_thread instead of taskqueue_swi_giant. - Use callout(9) instead of timeout(9). - Use bus_*() instead of bus_space_*(). Tested by: no one
| * Add locking to mcd(4) and mark MPSAFE.jhb2014-11-183-70/+117
| | | | | | | | | | | | | | | | | | | | | | - Actually use existing per-softc mutex. - Use mutex in cdev routines and remove D_NEEDGIANT. - Use callout(9) instead of timeout(9). - Don't check for impossible conditions (e.g. MCDINIT being clear). - Remove critical_enter/exit when sending a PIO command. - Use bus_*() instead of bus_space_*(). Tested by: no one
| * Convert the refire_notify_ack timer from timeout(9) to callout(9).jhb2014-11-182-7/+12
| | | | | | | | Tested by: no one
| * Add a tunable for spa_slop_shift which controls how much space wedelphij2014-11-181-0/+3
| | | | | | | | | | | | would reserve by default. Tuning is not recommended. MFC after: 2 weeks
| * Allow tuning zfs_max_recordsize via loader tunable. Tuning is NOTdelphij2014-11-181-0/+5
| | | | | | | | | | | | | | recommended. Requested by: Slawa Olhovchenkov <slw zxy spb ru> MFC after: 2 weeks
| * Upgrade libxo to 0.1.6.marcel2014-11-185-32/+57
| | | | | | | | | | | | | | Summary of changes: 1. Coverity defect fixes Obtained from: https://github.com/Juniper/libxo/releases/tag/0.1.6
| * Make gpio_default_map_gpios() static. No functional changes.loos2014-11-181-3/+1
| |
| * Moves all the duplicate code to a single function.loos2014-11-1816-140/+38
| | | | | | | | | | Verify for invalid modes and unwanted flags before pass the new flags to driver.
| * These delays aren't needed. Elimate them. They should be on the orderimp2014-11-181-2/+0
| | | | | | | | | | | | | | of a few cycles at most, not 10us. They make it impossible to implement half-duplex protocols that are faster than about 1KHz. Sponsored by: Netflix
| * opt_global.h is included automatically in the build. No need toimp2014-11-1817-30/+0
| | | | | | | | | | | | explicitly include it in these places. Sponsored by: Netflix
| * No need to list opt_global.h. No need to force ALTQ here, since that'simp2014-11-181-3/+0
| | | | | | | | | | | | not the normal default for the system and nothing else forces it on. Sponsored by: Netflix
| * opt_global.h is never needed in SRCS lists.imp2014-11-181-1/+1
| | | | | | | | Sponsored by: Netflix
| * Document WITHOUT_USB_EXAMPLES and WITHOUT_TESTS_SUPPORTimp2014-11-182-0/+4
| | | | | | | | Sponsored by: Netflix
| * LIB32 is supported for powerpc64 too. Make the note more general aboutimp2014-11-181-1/+1
| | | | | | | | | | | | 64-bit processors. Sponsored by: Netflix
| * Fix typo pointed out by avg@ and Joerg Sonnenberger. Add a clarifyingimp2014-11-181-4/+4
| | | | | | | | | | | | sentence too. Sponsored by: Netflix
| * Acutally, replaces NO_INCS with WITHOUT_INCLUDES and makeimp2014-11-184-1/+11
| | | | | | | | | | | | WITHOUT_TOOLCHAIN imply it instead. Sponsored by: Netflix
| * Implement the historic DIOCGDINFO ioctl for gpart on BSDimp2014-11-185-4/+78
| | | | | | | | | | | | | | partitions. Several utilities still use this interface and require additional information since gpart was activated than before. This allows fsck of a UFS partition without having to specify it is UFS, per historic behavior.
| * Missed a terminating ';'.jhibbits2014-11-181-1/+1
| | | | | | | | X-MFC-with: r273009
| * Add Altera Parallel IO (PIO) device driver.br2014-11-183-0/+323
| | | | | | | | Sponsored by: DARPA, AFRL
| * Add Virtio MMIO bus driver.br2014-11-184-0/+941
| | | | | | | | Sponsored by: DARPA, AFRL
| * Re-work non-persistent filesystem detection as it was not possible tofeld2014-11-181-8/+7
| | | | | | | | | | | | | | detect /dev/md backed mfs filesystems that way. Differential Revision: https://reviews.freebsd.org/D1163 Approved by: ian
| * Collapse three contiguous comment blocks into one. Remove historicalglebius2014-11-181-8/+3
| | | | | | | | | | | | note about wrong assumptions 20 years ago. Use proper casing. Sponsored by: Nginx, Inc.
| * Fix the i2c bus speed divisors for TI OMAP4 and AM335x.ian2014-11-181-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | For OMAP4, the old values for 1MHz gave a bus frequency of about 890KHz. The new numbers hit 1MHz exactly. For AM335x the prescaler values are adjusted to give a 24MHz clock for all 3 standard speeds, as the manual recommends (as near as we can tell, there are errors and typos apparent in the document). Also, 1MHz speed is added, and has been tested successfully on a BeagleboneWhite board. PR: 195009
| * Fix gpiobus_child_location_str() to return a real string with the mappedloos2014-11-182-14/+30
| | | | | | | | | | | | pins. Make gpiobus_print_pins() static again.
| * Remove unnecessary code.loos2014-11-181-18/+0
| | | | | | | | | | After r273566, the gpiobus version of bus_print_child() also works on FDT systems.
| * Allow i2c bus speed to be configured via hints, FDT data, and sysctl.ian2014-11-186-34/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current support for controlling i2c bus speed is an inconsistant mess. There are 4 symbolic speed values defined, UNKNOWN, SLOW, FAST, FASTEST. It seems to be universally assumed that SLOW means the standard 100KHz rate from the original spec. Nothing ever calls iicbus_reset() with a speed of FAST, although some drivers would treat it as the 400KHz standard speed. Mostly iicbus_reset() is called with the speed set to UNKNOWN or FASTEST, and there's really no telling what any individual driver will do with those. The speed of an i2c bus is limited by the speed of the slowest device on the bus. This means that generally the bus speed needs to be configured based on the board/system and the components within it. Historically for i2c we've configured with device hints. Newer systems use FDT data and it documents a clock-frequency property for i2c busses. Hobbyists and developers are likely to want on the fly changes. These changes provide all 3 methods, but do not require any existing drivers to change to use the new facilities. This adds an iicbus method, iicbus_get_frequency(dev, speed) that gets the frequency for the requested symbolic speed. If the symbolic speed is SLOW or if there is no speed configured for the bus, the returned value is 100KHz, always. Otherwise, if bus speed is configured by hints, fdt, tunable, or sysctl, that speed is returned. It also adds a helper function, iicbus_init_frequency() that any bus driver subclassed from iicbus can initialize the frequency from some other source of info. Initial driver implementations are provided for Freescale and TI. Differential Revision: https://reviews.freebsd.org/D1174 PR: 195009
| * Use automated MK_INET*_SUPPORT code here as well.imp2014-11-181-16/+3
| |
| * Modernize comments about BIOSes being lame since in this detail theyimp2014-11-181-6/+10
| | | | | | | | | | aren't lame, the rules changed along the way. Catch up to 1999 or so with the new rules.
| * Add basic interrupt management code to gpiobus and ofw_gpiobus.loos2014-11-183-2/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the general support to allow the use of GPIO pins as interrupt sources for direct gpiobus children. The use of GPIO pins as generic interrupt sources (for an ethernet driver for example) will only be possible when arm/intrng is complete. Then, most of this code will need to be rewritten, but it works for now, is better than what we have and will allow further developments. Tested on: ar71xx (RSPRO), am335x (BBB), bcm2835 (Raspberry pi) Differential Revision: https://reviews.freebsd.org/D999 Reviewed by: rpaulo
| * DTrace imposes a 128-byte limit on the length of the function component ofmarkj2014-11-173-22/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a probe name. When dtrace -G builds up a DOF section for the specified provider(s), the probe function names are truncated to fit in this limit. The DOF is later used to build the symbol table for the generated object file, so the table can end up with truncated references, causing link errors. Instead of potentially truncating symbol table entries, write the full function name to the DOF string table and allow the kernel to enforce the 128-byte function name limit when a process attempts to load its DOF. PR: 194757 Differential Revision: https://reviews.freebsd.org/D1175 Reviewed by: rpaulo MFC after: 2 weeks
| * Sync with userland variant.delphij2014-11-171-5/+3
| | | | | | | | MFC after: 2 weeks
| * Use the correct device as the power_for_sleep() methoddchagin2014-11-171-3/+1
| | | | | | | | | | | | | | | | always pass request up to parent bridge. Reviewed by: jhb MFC after: 1 week xMFC: r274386,r274397
| * Remove stray empty comment. The code is adequately explained in theimp2014-11-171-2/+0
| | | | | | | | block comment above, so there's nothing to add here.
| * Clean up some languagebrd2014-11-172-18/+18
| | | | | | | | Reviewed by: will
| * Fix geom's "usage" generation to not fabricate usage/help output for anyfeld2014-11-171-0/+5
| | | | | | | | | | | | | | | | imaginary class we give it. Differential Revision: https://reviews.freebsd.org/D1150 Submitted by: homerj Approved by: pjd
| * Add logic for detecting non-persistent filesystems being utilized byfeld2014-11-171-0/+9
| | | | | | | | | | | | | | | | | | | | workdir which would break the upgrade process upon reboot. Currently we check for tmpfs and mdmfs. PR: 195006 Differential Revision: https://reviews.freebsd.org/D1163 Approved by: cperciva
| * Re-introduce padding fields removed with r264321 to keepjch2014-11-171-0/+2
| | | | | | | | | | | | | | | | | | struct tcptw ABI unchanged. Suggested by: jhb Approved by: jhb (mentor) MFC after: 1 day X-MFC-With: r264321
| * l2arc: restore correct rounding up of asize of compressed dataavg2014-11-171-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This rounding up was lost in a mismerge of illumos code. See r268075 MFV r267565. After that commit zio_compress_data() no longer performs any compressed size adjustment, so it needs to be done externally. On FreeBSD we round up the size using vdev_ashift rather than SPA_MINBLOCKSIZE so that 4KB devices are properly supported. Additionally, zero out the buffer tail only if compression succeeds. The compression is considered successful if the size of compressed data after rounding up to account for the vdev ashift is less than the original data size. It does not make sense to have the data compressed if all the savings are lost to rounding up. With the new zio_compress_data() it could have been possible that the rounded compressed size would be greater than the original size and thus we could zero beyond the allocated buffer if the zeroing code was kept at the original place. Discussed with: delphij, gibbs MFC after: 2 weeks X-MFC with: r274627
| * Revert r269093 which introduced physical zio alignment transformavg2014-11-171-2/+1
| | | | | | | | | | | | | | | | | | Size of physical ZIOs must never be implicitly adjusted, it's a responsibility of a caller to make sure that such a ZIO has proper offset and size. Discussed with: delphij, gibbs MFC after: 2 weeks
| * Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) withngie2014-11-1752-109/+109
| | | | | | | | | | | | | | | | | | their #ifdef equivalents for everything changed in contrib/netbsd-tests. There are some items from the vendor tree that use #if defined(__FreeBSD__) or #if defined(__NetBSD__) which are being left alone Requested by: bde, rpaulo Sponsored by: EMC / Isilon Storage Division
| * The "intr" option is NFS-specific; fix examples in auto_master(5).trasz2014-11-171-3/+3
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Revert r273630 as the panic was fixed by r274619smh2014-11-171-2/+0
| | | | | | | | | | | | | | | | The panic was caused by TRIM requests run against file based vdevs as write requests. PR: 191573 Sponsored by: Multiplay
| * Disable TRIM on file backed ZFS vdevs and fix TRIM on initsmh2014-11-176-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After r265152 TRIM requests are ZIO_TYPE_FREE instead of ZIO_TYPE_IOCTL this meant file backed vdevs to attempted to process the ZIO as a write causing a panic. We now disable TRIM on file backed vdevs and ASSERT the ZIO types supported by each vdev type to ensure we explicity support the ZIO type being processed. Also ensure that TRIM on init is not procesed for devices which declare they didn't support TRIM via vdev_notrim. PR: 195061, 194976, 191573 Sponsored by: Multiplay
| * Add reachover Makefiles for contrib/netbsd-tests/lib/librtngie2014-11-175-0/+81
| | | | | | | | | | | | | | | | | | A variant of this code has been tested on amd64/i386 for some time by EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the code will remain off until it's proven it works on virtual hardware or real hardware on other architectures Sponsored by: EMC / Isilon Storage Division
| * Finish r274175: do control plane MTU tracking.melifaro2014-11-176-28/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update route MTU in case of ifnet MTU change. Add new RTF_FIXEDMTU to track explicitly specified MTU. Old behavior: ifconfig em0 mtu 1500->9000 -> all routes traversing em0 do not change MTU. User has to manually update all routes. ifconfig em0 mtu 9000->1500 -> all routes traversing em0 do not change MTU. However, if ip[6]_output finds route with rt_mtu > interface mtu, rt_mtu gets updated. New behavior: ifconfig em0 mtu 1500->9000 -> all interface routes in all fibs gets updated with new MTU unless RTF_FIXEDMTU flag set on them. ifconfig em0 mtu 9000->1500 -> all routes in all fibs gets updated with new MTU unless RTF_FIXEDMTU flag set on them AND rt_mtu is less than ifp mtu. route add ... -mtu XXX automatically sets RTF_FIXEDMTU flag. route change .. -mtu 0 automatically removes RTF_FIXEDMTU flag. PR: 194238 MFC after: 1 month CR: D1125
OpenPOWER on IntegriCloud