summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use our standard SYNOPSIS wording; perform some cleanup while here.brueffer2014-05-021-5/+8
|
* Properly free resources in case of error.brueffer2014-05-021-7/+5
| | | | | | CID: 1007032 Found with: Coverity Prevent(tm) MFC after: 2 weeks
* - Fix build WITHOUT_ZFS/WITHOUT_CDDL after r265229, bin/ps needs libjail.bdrewery2014-05-021-2/+2
| | | | | MFC after: 2 weeks X-MFC-with: r265229
* Properly free resources in case of error.brueffer2014-05-021-8/+6
| | | | | | CID: 1007032 Found with: Coverity Prevent(tm) MFC after: 2 weeks
* Add the mpr(4) man page to the man4 Makefile.ken2014-05-021-0/+1
| | | | | | | | This should have been included in r265236. Submitted by: Steve McConnell <Stephen.McConnell@lsi.com> MFC after: 3 days Sponsored by: LSI, Spectra Logic
* Bring in the mpr(4) driver for LSI's MPT3 12Gb SAS controllers.ken2014-05-0235-1/+25831
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is derived from the mps(4) driver, but it supports only the 12Gb IT and IR hardware including the SAS 3004, SAS 3008 and SAS 3108. Some notes about this driver: o The 12Gb hardware can do "FastPath" I/O, and that capability is included in this driver. o WarpDrive functionality has been removed, since it isn't supported in the 12Gb driver interface. o The Scatter/Gather list handling code is significantly different between the 6Gb and 12Gb hardware. The 12Gb boards support IEEE Scatter/Gather lists. Thanks to LSI for developing and testing this driver for FreeBSD. share/man/man4/mpr.4: mpr(4) man page. sys/dev/mpr/*: mpr(4) driver files. sys/modules/Makefile, sys/modules/mpr/Makefile: Add a module Makefile for the mpr(4) driver. sys/conf/files: Add the mpr(4) driver. sys/amd64/conf/GENERIC, sys/i386/conf/GENERIC, sys/mips/conf/OCTEON1, sys/sparc64/conf/GENERIC: Add the mpr(4) driver to all config files that currently have the mps(4) driver. sys/ia64/conf/GENERIC: Add the mps(4) and mpr(4) drivers to the ia64 GENERIC config file. sys/i386/conf/XEN: Exclude the mpr module from building here. Submitted by: Steve McConnell <Stephen.McConnell@lsi.com> MFC after: 3 days Tested by: Chris Reeves <chrisr@spectralogic.com> Sponsored by: LSI, Spectra Logic Relnotes: LSI 12Gb SAS driver mpr(4) added
* Fix a panic caused by doing "ifconfig -am" while a lagg is being destroyed.asomers2014-05-021-2/+12
| | | | | | | | | | | | | The thread that is destroying the lagg has already set sc->sc_psc=NULL when the "ifconfig -am" thread gets to lacp_req(). It tries to dereference sc->sc_psc and panics. The solution is for lacp_req() to check the value of sc->sc_psc. If NULL, harmlessly return an lacp_opreq structure full of zeros. Full details in GNATS. PR: kern/189003 Reviewed by: timeout on freebsd-net@ MFC after: 3 weeks Sponsored by: Spectra Logic Corporation
* gcc: fix strict alignment.pfg2014-05-021-1/+1
| | | | | | | | | | | | | | | From the OpenBSD log: x86-64 ABI requires arrays greater than 16 bytes to be aligned to 16byte boundary. However, GCC 16-byte aligns arrays of >=16 BITS, not BYTES. This diff improves bug detectability for code which has local arrays of [16 .. 127] bits: in those cases SSP will now detect even 1-byte overflows. Obtained from: OpenBSD (CVS rev 1.4) MFC after: 1 week
* Clarify that MAKEOBJDIRPREFIX and MAKEOBJDIR are notgjb2014-05-021-1/+3
| | | | | | | | honored as make(1) arguments. Requested by: smh MFC After: 3 days Sponsored by: The FreeBSD Foundation
* Add -J to filter by matching jail IDs and names.bdrewery2014-05-023-7/+62
| | | | | | | | | | -J 0 can be used to show only host processes. Patch partially based on work by bz@ PR: bin/78763 MFC after: 2 weeks Relnotes: yes
* Clean up more lindev(4) vestiges.brueffer2014-05-022-23/+0
|
* Removed pointless / duplicated call to trim_map_first.smh2014-05-021-1/+0
| | | | | MFC after: 1 month X-MFC-With: r265152
* libdev(4) has been removed, get rid of the module as well to fix the build.brueffer2014-05-022-11/+0
| | | | Submitted by: Sainath Varanasi
* Garbage collect mtxpool_lockbuilder, the mutex pool historically usedrwatson2014-05-023-35/+0
| | | | | | | | | | for lockmgr and sx interlocks, but unused since optimised versions of those sleep locks were introduced. This will save a (quite) small amount of memory in all kernel configurations. The sleep mutex pool is retained as it is used for 'struct bio' and several other consumers. Discussed with: jhb MFC after: 3 days
* lindev(4): finish the partial commit in r265212eadler2014-05-027-15/+1
| | | | | | | | | | | lindev(4) was only used to provide /dev/full which is now a standard feature of FreeBSD. /dev/full was never linux-specific and provides a generally useful feature. Document this in UPDATING and bump __FreeBSD_version. This will be documented in the PH shortly. Reported by: jkim
* lindev(4): remove the deviceeadler2014-05-026-286/+5
| | | | | | | | | | | lindev(4) was only used to provide /dev/full which is now a standard feature of FreeBSD. /dev/full was never linux-specific and provides a generally useful feature. Document this in UPDATING and bump __FreeBSD_version. This will be documented in the PH shortly. Reported by: jkim
* Don't allow MPtable generation if there are multiple PCI hierarchies. This isneel2014-05-025-5/+39
| | | | | | | | | | | because there isn't a standard way to relay this information to the guest OS. Add a command line option "-Y" to bhyve(8) to inhibit MPtable generation. If the virtual machine is using PCI devices on buses other than 0 then it can still use ACPI tables to convey this information to the guest. Discussed with: grehan@
* Honor the max-frequency property if it appears in the fdt data.ian2014-05-023-10/+16
| | | | | | | Adjust the exynos and zedboard dts files to use max-frequency (the documented standard property) instead of clock-frequency. Submitted by: Thomas Skibo <ThomasSkibo@sbcglobal.net>
* Switch to use arm_devmap_add_entry() to setup static device mapping.ganbold2014-05-021-19/+3
| | | | Approved by: stas (mentor)
* Ignore the error from pipespace_new when creating a pipe.mjg2014-05-023-32/+21
| | | | | | | | | | It can fail if pipe map is exhausted (as a result of too many pipes created), but it is not fatal and could be provoked by unprivileged users. The only consequence is worse performance with given pipe. Reported by: ivoras Suggested by: kib MFC after: 1 week
* Add tracking for self-generated frames when the VAP is in sleep state.adrian2014-05-023-11/+112
| | | | | | | | | | | | | | | | | | | The hardware can generate its own frames (eg RTS/CTS exchanges, other kinds of 802.11 management stuff, especially when it comes to 802.11n) and these also have PWRMGT flags. So if the VAP is asleep but the NIC is in force-awake for some reason, ensure that the self-generated frames have PWRMGT set to 1. Now, this (like basically everything to do with powersave) is still racy - the only way to guarantee that it's all actually consistent is to pause transmit and let it finish before transitioning the VAP to sleep, but this at least gets the basic method of tracking and updating the state debugged. Tested: * AR5416, STA mode * AR9380, STA mode
* Add logic in the HLT exit handler to detect if the guest has put all vcpusneel2014-05-023-7/+43
| | | | | | | | | | | | to sleep permanently by executing a HLT with interrupts disabled. When this condition is detected the guest with be suspended with a reason of VM_SUSPEND_HALT and the bhyve(8) process will exit. Tested by executing "halt" inside a RHEL7-beta guest. Discussed with: grehan@ Reviewed by: jhb@, tychon@
* regex: Remove some unreachable breaks.pfg2014-05-012-7/+1
| | | | | | | | | This is based on a much bigger cleanup done in Illumos. Reference: https://www.illumos.org/issues/2077 MFC after: 1 week
* Fix a 2038 bug.brooks2014-05-011-1/+2
| | | | | | | | | | If time_t is 64-bit (i.e. isn't 32-bit) allow any value of year, not just years less than 2038. Don't bother fixing the underflow in the case of years before 1903. MFC after: 1 week Sponsored by: DARPA, AFRL
* Fix a leak in g_uzip_taste(). After retrieve all the block offsets fromloos2014-05-011-0/+1
| | | | the uzip image, free the last data read.
* Fix rnh_walktree_from() function (patch from kern/174959).melifaro2014-05-011-4/+6
| | | | | | | | Require valid netmask to be passed since host route is always a leaf. PR: kern/174959 Submitted by: Keith Sklower MFC after: 2 weeks
* Actually the FEATURE() macro is defined on sys/sysctl.h.loos2014-05-011-0/+1
| | | | Pointyhat to: loos
* Some style and whitespace fixes. Reduce the difference between geom_uzip(4)loos2014-05-012-49/+42
| | | | | | | | | and geom_uncompress(4). Now, they produce an almost clean diff(1) output. Remove a duplicated variable from g_uncompress.c and an unnecessary header from g_uzip.c. No functional changes.
* Remove unnecessary headers. Sort out the headers. Add a missing header onloos2014-05-012-15/+6
| | | | ofw_gpiobus.c (it was working because of sys/libkern.h).
* Use mkimg instead of md(4) and gpart.nwhitehorn2014-05-011-32/+1
|
* Add freebsd-boot to recognized partition types.nwhitehorn2014-05-011-0/+1
|
* citrus: Avoid invalid code points.pfg2014-05-011-2/+1
| | | | | | | | | | | | | From the OpenBSD log: The UTF-8 decoder should not accept byte sequences which decode to unicode code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF. http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 http://unicode.org/faq/utf_bom.html#utf8-4 Reported by: Stefan Sperling Obtained from: OpenBSD MFC after: 5 days
* Provide an alias for the userboot console and name it 'comconsole'.grehan2014-05-012-0/+46
| | | | | | | | | This allows existing loader.conf files that set "console=comconsole" to work without failing. No functional difference otherwise. Reported by: Michael Dexter, pfSense install. Reviewed by: neel MFC after: 3 weeks
* Small cleanup: mostly whitespace vs. tabs.pfg2014-04-301-31/+31
|
* Fix logic error. <blush>imp2014-04-301-1/+1
| | | | Submitted by: ian@
* Turns out this .if evaluated not in the context of the makedtb targetimp2014-04-302-3/+5
| | | | | sometimes due to Makefile expansion rules. Make the test for things being NULL elsewhere...
* Respect MAXIMUM TRANSFER LENGTH field of Block Limits VPD page.mav2014-04-301-12/+14
| | | | | | | Nobody yet reported disk supporting I/Os less then our MAXPHYS value, but since we any way have code to read Block Limits VPD page, that is easy. MFC after: 2 weeks
* kldxref: Clean up error reportingemaste2014-04-301-8/+9
| | | | | | | | | | | | | Omit "too many sections" warnings if the ELF file is not dynamically linked (and is therefore skipped anyway), and otherwise output it only once. An errant core file would previously cause kldxref to output a number of warnings. Also introduce a MAXSEGS #define and replace literal 2 with it, to make comparisons clear. Reviewed by: kib Sponsored by: The FreeBSD Foundation
* This was copied to IMX6, which has since evolved further. Remove thisimp2014-04-301-159/+0
| | | | as it is no longer needed.
* Omit from the universe build all config files tagged withimp2014-04-3020-5/+47
| | | | | | | | | | | #NO_UNIVERSE. Many of these config files are important examples, but add little to no regresive value to the intended purpose of UNIVERSE. We now build over 120 kernels during universe. There's really little to no value to this over building say 60 or even 30 of them (either is still a way too big number). This is especially true for kernels that are nothing more than including a common base and adding a static DTB file. Start by pruning 1/3 of the arm kernels that add little regresion value.
* Allow FDT_DTS_FILE to be a list, either in the makedtb target, or in aimp2014-04-303-21/+13
| | | | | | | kernel config file. If you also want to have a static DTB compiled into your kernel, however, it cannot be a list. We have no mechanism in the kernel for picking one, so that doesn't make sense and will result in a compile-time error.
* Reintroduce priority for the TRIM ZIOs instead of using the "NOW" prioritysmh2014-04-307-73/+124
| | | | | | | | | | | | | | | | | | | | | | The changes how TRIM requests are generated to use ZIO_TYPE_FREE + a priority instead of ZIO_TYPE_IOCTL, until processed by vdev_geom; only then is it translated the required geom values. This reduces the amount of changes required for FREE requests to be supported by the new IO scheduler. This also eliminates the need for a specific DKIOCTRIM. Also fixed FREE vdev child IO's from running ZIO_STAGE_VDEV_IO_DONE as part of their schedule. As the new IO scheduler can result in a request to execute one type of IO to actually run a different type of IO it requires that zio_trim requests are processed without holding the trim map lock (tm->tm_lock), as the free request execute call may result in write request running hence triggering a trim_map_write_start call, which takes the trim map lock and hence would result in recused on no-recursive sx lock. This is based off avg's original work, so credit to him. MFC after: 1 month
* Do not reread SCSI disk VPD pages on every device open.mav2014-04-301-10/+35
| | | | | | | | | | | | | | Instead of rereading VPD pages on every device open, do it only on initial device probe, and in cases when device reported via UNIT ATTENTIONs that something has changed. Capacity is still rereaded on every open because it is more critical for operation and more probable to change in run time. On my tests with Intel 530 SSDs on mps(4) HBA this change reduces time GEOM needs to retaste the device (that includes few open/close cycles) from ~150ms to ~30ms. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Make uninteresting PCI devices with no attached drivers only print outsmh2014-04-301-92/+100
| | | | | | on a verbose boot MFC after: 2 weeks
* Convert the Zynq SoC support to the new routines for static device mapping.ian2014-04-302-35/+8
|
* Don't forget to remember previous element at the end of the loop.pjd2014-04-301-0/+1
| | | | | | Reported by: brueffer Found with: Coverity Prevent(tm) CID: 1135301
* Document m_get2().kevlo2014-04-302-1/+8
| | | | Reviewed by: glebius
* Change type from int to short to match function prototypes.kevlo2014-04-301-5/+5
| | | | Reviewed by: glebius
* Add missing commaeadler2014-04-301-1/+1
| | | | Relnotes: yes (/dev/full)
* null.c: uio is unusedeadler2014-04-301-1/+1
| | | | | | Mark another parameter as unused Reported by: rpaulo
OpenPOWER on IntegriCloud