summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make three one line changes to the rc scripts so thatrmacklem2011-06-113-3/+3
| | | | | | they work with the new NFS client being the default, since the new NFS client's module name is nfscl and not nfsclient.
* Assert that page is VPO_BUSY or page owner object is locked inkib2011-06-112-0/+26
| | | | | | | | vm_page_undirty(). The assert is not precise due to VPO_BUSY owner to tracked, so assertion does not catch the case when VPO_BUSY is owned by other thread. Reviewed by: alc
* Fix a bug in r222586. Lock the page owner object around the modificationkib2011-06-111-0/+6
| | | | | | | of the m->dirty. Reported and tested by: nwhitehorn Reviewed by: alc
* Follow up r222980 on PowerPC: add sound(4) and common device driversnwhitehorn2011-06-112-8/+15
| | | | to PowerPC GENERIC (along with a small rearrangement).
* Enable sound support by default on i386 and amd64.joel2011-06-112-0/+16
| | | | | | | | | | | | | | | | | The generic sound driver has been added, along with enough device-specific drivers to support the most common audio chipsets. We've discussed enabling it from time to time over the years and we've received numerous requests from users, so we decided that shipping 9.0 with working audio by default would be the best thing to do. Bug reports should be sent to the multimedia@ mailing list, as usual. Approved by: mav No objection: re
* Monitor and emit events for XenStore changes to XenBus treesgibbs2011-06-1114-94/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the devices we manage. These changes can be due to writes we make ourselves or due to changes made by the control domain. The goal of these changes is to insure that all state transitions can be detected regardless of their source and to allow common device policies (e.g. "onlined" backend devices) to be centralized in the XenBus bus code. sys/xen/xenbus/xenbusvar.h: sys/xen/xenbus/xenbus.c: sys/xen/xenbus/xenbus_if.m: Add a new method for XenBus drivers "localend_changed". This method is invoked whenever a write is detected to a device's XenBus tree. The default implementation of this method is a no-op. sys/xen/xenbus/xenbus_if.m: sys/dev/xen/netfront/netfront.c: sys/dev/xen/blkfront/blkfront.c: sys/dev/xen/blkback/blkback.c: Change the signature of the "otherend_changed" method. This notification cannot fail, so it should return void. sys/xen/xenbus/xenbusb_back.c: Add "online" device handling to the XenBus Back Bus support code. An online backend device remains active after a front-end detaches as a reconnect is expected to occur in the near future. sys/xen/interface/io/xenbus.h: Add comment block further explaining the meaning and driver responsibilities associated with the XenBus Closed state. sys/xen/xenbus/xenbusb.c: sys/xen/xenbus/xenbusb.h: sys/xen/xenbus/xenbusb_back.c: sys/xen/xenbus/xenbusb_front.c: sys/xen/xenbus/xenbusb_if.m: o Register a XenStore watch against the local XenBus tree for all devices. o Cache the string length of the path to our local tree. o Allow the xenbus front and back drivers to hook/filter both local and otherend watch processing. o Update the device ivar version of "state" when we detect a XenStore update of that node. sys/dev/xen/control/control.c: sys/xen/xenbus/xenbus.c: sys/xen/xenbus/xenbusb.c: sys/xen/xenbus/xenbusb.h: sys/xen/xenbus/xenbusvar.h: sys/xen/xenstore/xenstorevar.h: Allow clients of the XenStore watch mechanism to attach a single uintptr_t worth of client data to the watch. This removes the need to carefully place client watch data within enclosing objects so that a cast or offsetof calculation can be used to convert from watch to enclosing object. Sponsored by: Spectra Logic Corporation MFC after: 1 week
* Add "context" subcommand to fetch and display SGE context.np2011-06-111-0/+235
|
* - driver ioctl to get SGE context for any given queue.np2011-06-114-1/+85
| | | | | | - sysctls to display the context id, cidx, and pidx of all kinds of queues. MFC after: 3 days
* Support SIGHUP for reloading /etc/rtadvd.conf.hrs2011-06-115-51/+142
|
* Add the model number for the Montvale processor (marketed as Itanium 2 9100).marcel2011-06-111-0/+3
| | | | At this time we're missing just one: Tukwila (Itanium 2 9300).
* Add comments about the validation.delphij2011-06-111-0/+9
|
* Implement fully asynchronous partial truncation with softupdates journalingjeff2011-06-1013-1543/+2644
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to resolve errors which can cause corruption on recovery with the old synchronous mechanism. - Append partial truncation freework structures to indirdeps while truncation is proceeding. These prevent new block pointers from becoming valid until truncation completes and serialize truncations. - On completion of a partial truncate journal work waits for zeroed pointers to hit indirects. - softdep_journal_freeblocks() handles last frag allocation and last block zeroing. - vtruncbuf/ffs_page_remove moved into softdep_*_freeblocks() so it is only implemented in one place. - Block allocation failure handling moved up one level so it does not proceed with buf locks held. This permits us to do more extensive reclaims when filesystem space is exhausted. - softdep_sync_metadata() is broken into two parts, the first executes once at the start of ffs_syncvnode() and flushes truncations and inode dependencies. The second is called on each locked buf. This eliminates excessive looping and rollbacks. - Improve the mechanism in process_worklist_item() that handles acquiring vnode locks for handle_workitem_remove() so that it works more generally and does not loop excessively over the same worklist items on each call. - Don't corrupt directories by zeroing the tail in fsck. This is only done for regular files. - Push a fsync complete record for files that need it so the checker knows a truncation in the journal is no longer valid. Discussed with: mckusick, kib (ffs_pages_remove and ffs_truncate parts) Tested by: pho
* sh: Do parameter expansion on ENV before using it.jilles2011-06-103-7/+24
| | | | | | This is required by POSIX, and allows things like ENV=\$HOME/.shrc. Note that tilde expansion is explicitly not performed.
* - Eliminate an incorrect include path from the mthca build.jeff2011-06-101-18/+18
|
* - Add support for referencing quota structures without needing the inodejeff2011-06-102-0/+101
| | | | | | pointer for softupdates. Submitted by: mckusick
* - If the fsync in ufs_direnter fails SUJ can later panic because we havejeff2011-06-101-1/+1
| | | | | | | partially added a name. Allow ufs_direnter() to continue in the hopes that it is a transient error. If it is not, the directory is corrupted already from IO errors and writing this new block is not likely to make things worse.
* - When printing bufs with show buf the lblkno is often more useful thanjeff2011-06-101-2/+3
| | | | the blkno. Print them both.
* Include sys/xen in cscope tag file generation.gibbs2011-06-101-1/+1
|
* - Fix races on detach handling of AAC_IFFLAGS_* maskattilio2011-06-102-14/+16
| | | | | | | | | | | | - Fix races on setting AAC_AIFFLAGS_ALLOCFIBS - Remove some unused AAC_IFFLAGS_* bits. Please note that the kthread still makes a difference between the total mask and AAC_AIFFLAGS_ALLOCFIBS because more flags may be added in the future to aifflags. Sponsored by: Sandvine Incorporated Reported and reviewed by: emaste MFC after: 2 weeks
* Remove C constructs that are incompatible with C++ from variousgibbs2011-06-108-100/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenSolaris and ZFS header files. These changes are sufficient to allow a C++ program to use the libzfs library. Note: The majority of these files already included 'extern "C"' declarations, so the intention of providing C++ compatibility already existed even if it wasn't provided. cddl/compat/opensolaris/include/assert.h: Wrap our compatibility assert implementation in 'extern "C"'. Since this is a compatibility header I matched the Solaris style of doing this explicitly rather than rely on FreeBSD's __BEGIN/END_DECLS macro. sys/cddl/compat/opensolaris/sys/kstat.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/arc.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_pool.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ddt.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa.h: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h: Rename parameters in function declarations that conflict with C++ keywords. This was the solution preferred by members of the Illumos community. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_ioctl.h: In C, nested structures are visible in the global namespace, but in C++, they take on the namespace of the structure in which they are contained. Flatten nested structure definitions within struct zfs_cmd so these structures are visible in the global namespace when compiled in both languages. Sponsored by: Spectra Logic Corporation
* Make sure to drop the IEEE80211_RATE_BASIC flag even for MCS rates.bschmidt2011-06-101-7/+9
| | | | | Reported by: Maciej Milewski <milu at dat dot pl> Tested by: Maciej Milewski <milu at dat dot pl>
* skel/.shrc: Improve commented CDPATH example for POSIX requirements.jilles2011-06-101-1/+1
| | | | | | | | | | | POSIX says an empty entry in CDPATH shall not result in the new directory being printed, while any non-empty entry shall result in the new directory being printed, including ".". Therefore, the value of CDPATH should almost always start with a colon, not dot and colon. Our sh does not print the name for empty entries as well as "." entries. MFC after: 1 week
* Fix some off-by-one errors with the ending address of candidate regionsjhb2011-06-101-3/+4
| | | | when attempting to grow a window.
* Implement BUS_ADJUST_RESOURCE() for the x86 drivers that sit between thejhb2011-06-103-11/+27
| | | | Host-PCI bridge drivers and nexus.
* Obtain bswap64() function implementation fromrodrigc2011-06-101-10/+26
| | | | | | version 1.3 of src/common/lib/libc/gen/bswap64.c in NetBSD. Obtained from: NetBSD
* sh: Do parameter expansion before printing PS4 (set -x).jilles2011-06-096-4/+60
| | | | | | | | | | | | | | | | The function name expandstr() and the general idea of doing this kind of expansion by treating the text as a here document without end marker is from dash. All variants of parameter expansion and arithmetic expansion also work (the latter is not required by POSIX but it does not take extra code and many other shells also allow it). Command substitution is prevented because I think it causes too much code to be re-entered (for example creating an unbounded recursion of trace lines). Unfortunately, our LINENO is somewhat crude, otherwise PS4='$LINENO+ ' would be quite useful.
* MFV: Update to less v444.delphij2011-06-0913-45/+23
| | | | MFC after: 2 weeks
* cxgbetool: a tool for the cxgbe(4) driver.np2011-06-095-0/+41744
|
* Contrary to when returning in all-good cases at the end of functions webz2011-06-097-62/+216
| | | | | | | | | | did not free memory (1) or close the file descriptor (2) in error cases. Reported by: Mark Johnston (1) Reported by: attilio (2) Reviewed by: jhb Sponsored by: Sandvine Incorporated MFC after: 1 week
* Add -Wa,-many to CFLAGS on PowerPC. This aids in building a kernel usingnwhitehorn2011-06-091-1/+1
| | | | | clang, which would otherwise complain about some 64-bit bridge mode instructions.
* Intel NM10 chipset's SATA controller has same PCI ID and revision as ICH7's,mav2011-06-091-7/+23
| | | | | | | | but has only 2 SATA ports instead of 4. The worst part is that SStatus and SError registers for missing ports are not implemented and return wrong values (0xffffffff), that caused infinite reset loop. Just ignore that SError value while I found no better way to identify them.
* Minor typo, fix 2 attributionsdougb2011-06-091-3/+5
|
* Tidy up r222866.jkim2011-06-081-6/+6
| | | | | | | | - Re-add accidentally removed atomic op. for sysctl(9) handler. - Remove a period(`.') at the end of a debugging message. - Consistently spell "low" for "TSC-low" timecounter throughout. Pointed out by: bde
* Add dump.c to the rtsol build. It is needed now that sec2str is non-staticken2011-06-081-1/+1
| | | | and used in rtsold.c.
* sh: Add simple tests for set -x and PS4.jilles2011-06-082-0/+17
|
* Simply post r222273.obrien2011-06-081-3/+1
|
* - Major reorganization of mbuf handling throughout the driver todavidch2011-06-084-3451/+2855
| | | | | | | | | | | | | | | | | | increase robustness (no more calls to panic(9)) and simplify code. - Allocate RX/TX data structures as a single buffer rather than an array of 4KB pages to simplify code. - Fixed LRO (aka TPA) code. Removed kernel module parameter and support enabling disabling LRO through ifconfig(8) command line. LRO is still disabled by default but should be enabled for best performance on an endpoint device. - Fixed statistcs code and removed kernel module parameter (stats should just work). - Added many software counters to help identify the cause of some performance issues. - Streamlined adapter internal init/stop code paths. - Fiddled with debug code (adding some here, removing some there). - Continued style(9) adjustments.
* Increase quality of TSC (or TSC-low) timecounter to 1000 if it is P-statejkim2011-06-081-2/+27
| | | | | | | | invariant. For SMP case (TSC-low), it also has to pass SMP synchronization test and the CPU vendor/model has to be white-listed explicitly. Currently, all Intel CPUs and single-socket AMD Family 15h processors are listed here. Discussed with: hackers
* Introduce low-resolution TSC timecounter "TSC-low". It replaces the normaljkim2011-06-081-6/+38
| | | | | | | | | | | TSC timecounter if TSC frequency is higher than ~4.29 MHz (or 2^32-1 Hz) or multiple CPUs are present. The "TSC-low" frequency is always lower than a preset maximum value and derived from TSC frequency (by being halved until it becomes lower than the maximum). Note the maximum value for SMP case is significantly lower than UP case because we want to reduce (rare but known) "temporal anomalies" caused by non-serialized RDTSC instruction. Normally, it is still higher than "ACPI-fast" timecounter frequency (which was default timecounter hardware for long time until r222222) to be useful.
* In the current code, a double panic condition may lead to dumpsattilio2011-06-081-1/+2
| | | | | | | | | | interleaving. Signal dumping to happen only for the first panic which should be the most important. Sponsored by: Sandvine Incorporated Submitted by: Nima Misaghian (nmisaghian AT sandvine DOT com) MFC after: 2 weeks
* Remove a redundant assignment since r221703.jkim2011-06-081-3/+0
|
* - Accumulate RA options instead of replacing old ones when a new RA arrived.hrs2011-06-084-142/+285
| | | | | | | | | | | | | | | | RFC 4861 6.3.4 clearly defines handling multiple RAs in this way. - RDNSS/DNSSL options from multiple RAs on a single link will be gathered and sent to resolvconf(8). - Call "resolvconf -d" only after at least one RDNSS or DNSSL option is received and then all of them are expired. - The rtsold.dump output now supports displaying a list of the RA options. - Use more human-readable expression for logging values of struct timeval. Discussed with: ume
* - Improve error handling.andreast2011-06-081-43/+127
| | | | | | | | - Add retry loops in the i2c read/write functions. - Combied the ADC channel selection and readout of the value into one iicbus_transfer to avoid possible races. Reviewed by: nwhitehorn
* Compile RTLD with global dot symbols on 64-bit PowerPC, as a crutch fornwhitehorn2011-06-081-0/+1
| | | | | GDB's ability to locate r_debug_state (which is actually the only function that need be compiled this way).
* Add the missing call to ip6_ipsec_filtertunnel() to be able to controlbz2011-06-081-0/+7
| | | | | | | | | whether decapsulated IPsec packets will be passed to pfil again depending on the setting of the net.ip6.ipsec6.filtertunnel sysctl. PR: kern/157670 Submitted by: Manuel Kasper (mk neon1.net) MFC after: 2 weeks
* Added FreeBSD 8.3.ru2011-06-081-0/+1
|
* remove code for dynamic offlining/onlining of CPUs on x86avg2011-06-088-341/+41
| | | | | | | | | | | | | | | | | | | | | | | The code has definitely been broken for SCHED_ULE, which is a default scheduler. It may have been broken for SCHED_4BSD in more subtle ways, e.g. with manually configured CPU affinities and for interrupt devilery purposes. We still provide a way to disable individual CPUs or all hyperthreading "twin" CPUs before SMP startup. See the UPDATING entry for details. Interaction between building CPU topology and disabling CPUs still remains fuzzy: topology is first built using all availble CPUs and then the disabled CPUs should be "subtracted" from it. That doesn't work well if the resulting topology becomes non-uniform. This work is done in cooperation with Attilio Rao who in addition to reviewing also provided parts of code. PR: kern/145385 Discussed with: gcooper, ambrisko, mdf, sbruno Reviewed by: attilio Tested by: pho, pluknet X-MFC after: never
* Pull up all vendor changes to mdoc(7).ru2011-06-084-6/+32
| | | | | | | | | This also replaces the local fix in r219209 that made .Ac emit ASCII angle quotes with an official fix. In the official fix, ASCII quotes are output when using the .Aq, .Ao and .Ac calls, but only when nested into the .An macro. PR: gnu/154822
* - Disable "resolvconf -d" temporarily to avoid extra invocations of the scripthrs2011-06-082-2/+7
| | | | | | | under a certain condition. - Fix argv handling. Spotted by: ume
* Correct comments and debug logging in ipsec to better match reality.bz2011-06-083-8/+8
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud