summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* - Use strdup(9) instead of reimplementing it.marius2013-03-011-52/+18
| | | | | | | | | - Use __DECONST instead of strange casts. - Reduce code duplication and simplify name2oid(). PR: 176373 Submitted by: Christoph Mallon MFC after: 1 week
* Make the default implementation of the VOP_VPTOCNP() fail if thekib2013-03-011-2/+6
| | | | | | | | | | | | | | | | | | | | directory entry, matched by the inode number, is ".". NFSv4 client might instantiate the distinct vnodes which have the same inode number, since single v4 export can be combined from several filesystems on the server. For instance, a case when the nested server mount point is exactly one directory below the top of the export, causes directory and its parent to have the same inode number 2. The vop_stdvptocnp() algorithm then returns "." as the name of the lower directory. Filtering out the "." entry with ENOENT works around this behaviour, the error forces getcwd(3) to fall back to usermode implementation, which compares both st_dev and st_ino. Based on the submission by: rmacklem Tested by: rmacklem MFC after: 1 week
* Fix typo.kevlo2013-03-011-1/+1
|
* Assign the len field of the netbuf structure to the current length ofkevlo2013-03-011-1/+1
| | | | | | a sockaddr. Obtained from: NetBSD
* Fix the zfs_ioctl compat layer to support zfs_cmd size change introducedmm2013-03-014-44/+287
| | | | | | | | | | | | | | | in r247265 (ZFS deadman thread). Both new utilities now support the old kernel and new kernel properly detects old utilities. For future backwards compatibility, the vfs.zfs.version.ioctl read-only sysctl has been introduced. With this sysctl zfs utilities will be able to detect the ioctl interface version of the currently loaded zfs module. As a side effect, the zfs utilities between r247265 and this revision don't support the old kernel module. If you are using HEAD newer or equal than r247265, install the new kernel module (or whole kernel) first. MFC after: 10 days
* Copy the definition of VM_MAX_AUTOTUNE_MAXUSERS from i386. (See r242847.)alc2013-03-011-0/+4
| | | | Tested by: andrew
* Fixed documented prototype of kinfo_getproc(3).ru2013-03-011-2/+2
|
* Provide slightly more helpful feedback when we can't figure out whatbrooks2013-03-011-1/+1
| | | | | | compiler the user is using. PR: misc/173914
* Specify the length of the mapping requested from 'paddr_guest2host()'.neel2013-03-017-37/+49
| | | | | | | | | This seems prudent to do in its own right but it also opens up the possibility of not having to mmap the entire guest address space in the 'bhyve' process context. Discussed with: grehan Obtained from: NetApp
* Enable uart driver for A10.ganbold2013-03-013-3/+5
| | | | Approved by: gonzo@
* Add support for A10 uart.ganbold2013-03-012-5/+39
| | | | | | | | | | | | A10 uart is derived from Synopsys DesignWare uart and requires to read Uart Status Register when IIR_BUSY has detected. Also this change includes FDT check, where it checks device specific properties defined in dts and sets the busy_detect variable. broken_txfifo is also needed to be set in order to make it work for A10 uart case. Reviewed by: marcel@ Approved by: gonzo@
* Minor wordsmithing.gjb2013-02-281-2/+2
| | | | X-MFC-Needs: r245617
* Add missing flags.adrian2013-02-281-0/+2
|
* Oops - fix an incorrect test.adrian2013-02-281-1/+1
|
* Don't enable the HT flags for legacy rates.adrian2013-02-281-44/+64
| | | | | | | | | | | | I stumbled across this whilst trying to debug another weird hang reported on the freebsd-wireless list. Whilst here, add in the STBC check to ath_rateseries_setup(). Whilst here, fix the short preamble flag to be set only for legacy rates. Whilst here, comment that we should be using the full set of decisions made by ath_rateseries_setup() rather than recalculating them!
* Change the ixgbe module name to if_ixgbe to conformjfv2013-02-281-1/+1
| | | | to the usual naming convention.
* Add platform DMA support to SDHCI driver for BCM2835gonzo2013-02-281-4/+300
| | | | | Submitted by: Daisuke Aoyama <aoyama at peach.ne.jp> Reviewed by: ian@
* Add driver for BCM2835's DMA enginegonzo2013-02-283-0/+790
| | | | | This is a version of code submitted by Daisuke Aoyama <aoyama at peach.ne.jp> with some architectural changes.
* Add hooks for plugging platform-provided transfer backend.gonzo2013-02-283-7/+49
| | | | | | | | | | | | | In order to use platorm backend hardware driver should impement three methods: - platform_start_transfer and platform_finish_transfer to start and finish transfer - platform_will_handle - check whether transaction is suitable for backend. If not - driver will fall back to PIO mode. Submitted by: Daisuke Aoyama <aoyama at peach.ne.jp> Approved by: ian@
* Move the definition of sbintime_t type from <sys/time.h> to <sys/types.h>.davide2013-02-282-1/+2
| | | | | | | With this change we prevent gross namespace pollution. Reported by: bde Suggested by: attilio
* MFcalloutng:davide2013-02-281-2/+2
| | | | Style fixes.
* MFcalloutng:mav2013-02-2823-370/+207
| | | | | | | Switch eventtimers(9) from using struct bintime to sbintime_t. Even before this not a single driver really supported full dynamic range of struct bintime even in theory, not speaking about practical inexpediency. This change legitimates the status quo and cleans up the code.
* MFcalloutng (r247427 by mav):davide2013-02-281-2/+2
| | | | | We don't need any precision here. Let it be fast and dirty shift then slow and excessively precise 64-bit division.
* MFcalloutng:davide2013-02-2811-48/+59
| | | | | | | | | | | When CPU becomes idle, cpu_idleclock() calculates time to the next timer event in order to reprogram hw timer. Return that time in sbintime_t to the caller and pass it to acpi_cpu_idle(), where it can be used as one more factor (quite precise) to extimate furter sleep time and choose optimal sleep state. This is a preparatory change for further callout improvements will be committed in the next days. The commmit is not targeted for MFC.
* Introduce sbintime_t type -- the simplified version of struct bintime,mav2013-02-281-0/+85
| | | | | | | | using 32.32 fixed point in form of single int64_t. It is much easier to use in cases where additional precision and range of struct bintime is not required. Reviewed by: bde (previous version), davide
* Refresh vendor driver version which adds ARC-1224 support.delphij2013-02-283-27/+129
| | | | | | | Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw> MFC after: 3 days
* When we are waiting for new trail files we may have been disconnected andpjd2013-02-281-0/+9
| | | | | | | reconnected in the meantime. Check if reset is set before opening next trail file, as not doing so will result in sending OPEN message with the same file name twice and this is illegal - the second OPEN is send without first closing previous trail file.
* Properly handle '-h' argument.gjb2013-02-281-1/+1
| | | | | | PR: 176332 Reviewed by: scottl MFC after: 3 days
* Remove the quirk to allow use of MSI when the guest is running inside bhyve.neel2013-02-281-1/+0
| | | | | | | This became redundant after the hostbridge presented to the guest started advertising the PCI-E capability (r246846). Obtained from: NetApp
* Complete r247297:attilio2013-02-287-14/+0
| | | | | | Remove unused inclusions of vm/vm_pager.h and vm/vnode_pager.h. Sponsored by: EMC / Isilon storage division
* Adds hw.mfi.cmd_timeout loader / sysctl tuneable which controls the defaultsmh2013-02-271-5/+11
| | | | | | | | timeout used in the mfi driver. This is useful for long running commands such as secure erase. Reviewed by: John Baldwin Approved by: pjd (mentor)
* Add a reminder that the user should update boot block if they are upgradingdelphij2013-02-271-0/+7
| | | | | | | their existing system and use LZ4 compression for ZFS. Suggested by: mm MFC after: 3 days
* Remove EOL whitespace.joel2013-02-271-4/+4
|
* mdoc: begin sentence on new line.joel2013-02-271-6/+10
|
* mdoc: add missing El.joel2013-02-271-0/+1
|
* fix this script so we don't expand the second $FreeBSD since svn thinksjmg2013-02-271-1/+1
| | | | the $ in $1 ends the keyword, and expands it...
* Fix a typo that prevented booting a kernel that had virtual addresses inian2013-02-271-1/+1
| | | | the elf headers.
* Fix a potential race in returning setting errno when antuexen2013-02-271-1/+2
| | | | | | | | association goes down. Reported by Mozilla in https://bugzilla.mozilla.org/show_bug.cgi?id=845513 MFC after: 3 days
* Add an implementation of open_memstream() and open_wmemstream(). Thesejhb2013-02-2712-2/+1070
| | | | | | | | | routines provide write-only stdio FILE objects that store their data in a dynamically allocated buffer. They are a string builder interface somewhat akin to a completely dynamic sbuf. Reviewed by: bde, jilles (earlier versions) MFC after: 1 month
* watchdogd(8) and watchdog(4) enhancements.alfred2013-02-274-38/+666
| | | | | | | | | | | | | | | | | | | The following support was added to watchdog(4): - Support to query the outstanding timeout. - Support to set a software pre-timeout function watchdog with an 'action' - Support to set a software only watchdog with a configurable 'action' 'action' can be a mask specifying a single operation or a combination of: log(9), printf(9), panic(9) and/or kdb_enter(9). Support the following in watchdogged: - Support to utilize the new additions to watchdog(4). - Support to warn if a watchdog script runs for too long. - Support for "dry run" where we do not actually arm the watchdog, but only report on our timing. Sponsored by: iXsystems, Inc. MFC after: 1 month
* Merge from vmobj-rwlock:attilio2013-02-278-22/+14
| | | | | | | | | | | VM_OBJECT_LOCKED() macro is only used to implement a custom version of lock assertions right now (which likely spread out thanks to copy and paste). Remove it and implement actual assertions. Sponsored by: EMC / Isilon storage division Reviewed by: alc Tested by: pho
* The .journal file needs to reside on the ROOTINO which must not extendpho2013-02-271-1/+1
| | | | beyond direct blocks. A typo caused this check to fail.
* MFV 247176, 247178, 247315:mm2013-02-276-114/+352
| | | | | | | | | | | | | | | | | | | Import metaslab_sync() speedup from vendor (illumos). Illumos ZFS issues: 3552 condensing one space map burns 3 seconds of CPU in spa_sync() thread 3564 spa_sync() spends 5-10% of its time in metaslab_sync() (when not condensing) 3578 transferring the freed map to the defer map should be constant time 3579 ztest trips assertion in metaslab_weight() References: https://www.illumos.org/issues/3552 https://www.illumos.org/issues/3564 https://www.illumos.org/issues/3578 https://www.illumos.org/issues/3579 MFC after: 2 weeks
* Map libraries linked with -Ttext-segment=base_addr at base_addr.tijl2013-02-271-1/+1
| | | | | | | | | Normal libraries have base address 0 and are unaffected by this change. PR: 176216 Submitted by: Damjan Jovanovic <damjan.jov@gmail.com> Reviewed by: kib MFC after: 1 week
* Fix typogonzo2013-02-271-1/+1
|
* - Initialize GPIO_OE register based on pinmux configurationgonzo2013-02-271-0/+14
| | | | | | Although AM335x TRM states that GPIO_OE register is not used and just reflects pads configuration in practice it does control pin behavior and shoiuld be set in addition to pinmux setup
* Make recursive getblk() slightly more useful. Keep the buffer statekib2013-02-271-6/+13
| | | | | | | | | | | intact if getblk() is done on the already owned buffer. Exit from brelse() early when the lock recursion is detected, otherwise brelse() might prematurely destroy the buffer under some circumstances. Sponsored by: The FreeBSD Foundation Noted by: mckusick Tested by: pho MFC after: 2 weeks
* The softdep freeblks workitem might hold a reference on the dquot.kib2013-02-274-17/+63
| | | | | | | | | | | | | | | | | | | Current dqflush() panics when a dquot with with non-zero refcount is encountered. The situation is possible, because quotas are turned off before softdep workitem queue if flushed, due to the quota file writes might create softdep workitems. Make the encountering an active dquot in dqflush() not fatal, return the error from quotaoff() instead. Ignore the quotaoff() failures when ffs_flushfiles() is called in the course of softdep_flushfiles() loop, until the last iteration. At the last loop, the quotas must be closed, and because SU workitems should be already flushed, the references to dquot are gone. Sponsored by: The FreeBSD Foundation Reported and tested by: pho Reviewed by: mckusick MFC after: 2 weeks
* An inode block must not be blockingly read while cg block is owned.kib2013-02-271-6/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The order is inode buffer lock -> snaplk -> cg buffer lock, reversing the order causes deadlocks. Inode block must not be written while cg block buffer is owned. The FFS copy on write needs to allocate a block to copy the content of the inode block, and the cylinder group selected for the allocation might be the same as the owned cg block. The reserved block detection code in the ffs_copyonwrite() and ffs_bp_snapblk() is unable to detect the situation, because the locked cg buffer is not exposed to it. In order to maintain the dependency between initialized inode block and the cg_initediblk pointer, look up the inode buffer in non-blocking mode. If succeeded, brelse cg block, initialize the inode block and write it. After the write is finished, reread cg block and update the cg_initediblk. If inode block is already locked by another thread, let the another thread initialize it. If another thread raced with us after we started writing inode block, the situation is detected by an update of cg_initediblk. Note that double-initialization of the inode block is harmless, the block cannot be used until cg_initediblk is incremented. Sponsored by: The FreeBSD Foundation In collaboration with: pho Reviewed by: mckusick MFC after: 1 month X-MFC-note: after r246877
* Clear the memory allocated to build the unwind tables. This fixes C++andrew2013-02-271-0/+2
| | | | exceptions on ARM EABI with static binaries.
OpenPOWER on IntegriCloud