summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-2826-112/+89
| | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* Copy amd64 _limits.h to x86 and merge with i386 _limits.h. Replacetijl2012-02-284-169/+108
| | | | amd64/i386/pc98 _limits.h with stubs.
* Copy amd64 _types.h to x86 and merge with i386 _types.h. Replace existingtijl2012-02-284-239/+167
| | | | amd64/i386/pc98 _types.h with stubs.
* Avoid transfers crossing a 4GB boundary, which can lead to dataemaste2012-02-281-1/+2
| | | | | | | | | | corruption. Thanks to scottl@ for the suggestion. This change will likely be revised after consideration of a general method to address this type of issue for other drivers. Sponsored by: Sandvine Incorporated MFC after: 3 days
* Mention mos(4)kevlo2012-02-281-0/+1
|
* Add support for the MCS7832kevlo2012-02-284-4/+9
| | | | Obtained from: OpenBSD
* Add missing MODULE_DEPEND() so that acpi.ko and aibs.ko can bekevlo2012-02-281-1/+1
| | | | loaded dynamically.
* Fix checks for error return from amr_sglist_map() and amr_ccb_map()kevlo2012-02-281-2/+2
|
* Fix typoskevlo2012-02-283-3/+3
|
* Correct pathname for manpages after libarchive 3.0.3 update.pluknet2012-02-281-16/+16
|
* Correct capitalization of "Hz" in user-visible text (manpages, printf(),gavin2012-02-289-14/+14
| | | | | | etc). MFC after: 3 days
* Add lib32 part after libarchive 3.0.3 update.pluknet2012-02-281-0/+3
|
* mdoc(7) stype - start new sentences on new linemm2012-02-282-11/+14
| | | | MFC after: 1 week
* Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register toyongari2012-02-282-19/+25
| | | | | | | | | | | | | | | | | | | | extract a link status of PHY when parent driver is re(4). RGEPHY_MII_SSR register does not seem to report correct PHY status on some integrated PHYs used with re(4). Unfortunately, RealTek PHYs have no additional information to differentiate integrated PHYs from external ones so relying on PHY model number is not enough to know that. However, it seems RGEPHY_MII_SSR register exists for external RealTek PHYs so checking parent driver would be good indication to know which PHY was used. In other words, for non-re(4) controllers, the PHY is external one and its revision number is greater than or equal to 2. This change fixes intermittent link UP/DOWN messages reported on RTL8169 controller. Also, mii_attach(9) is tried after setting interface name since rgephy(4) have to know parent driver name. PR: kern/165509
* Add is_beacon_bad.adrian2012-02-281-0/+4
| | | | PR: kern/165517
* Track the number of bad beacons received.adrian2012-02-282-2/+5
| | | | PR: kern/165517
* Fix a few rendering nits in rc.conf(5) with regards to mentioninggjb2012-02-281-4/+4
| | | | jail_parallel_enable.
* Currently, the debugger attached to the process executing vfork() doeskib2012-02-273-9/+26
| | | | | | | | | | not get syscall exit notification until the child performed exec of exit. Swap the order of doing ptracestop() and waiting for P_PPWAIT clearing, by postponing the wait into syscallret after ptracestop() notification is done. Reported, tested and reviewed by: Dmitry Mikulin <dmitrym juniper net> MFC after: 2 weeks
* Fix a race in top non-interactive mode. Use plain sleep(3) call insteadkib2012-02-271-15/+1
| | | | | | | | of arming timer and then pausing. If SIGALRM is delivered before pause(3) is entered, top hangs. Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week
* A bunch of netmap fixes:luigi2012-02-2718-710/+812
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USERSPACE: 1. add support for devices with different number of rx and tx queues; 2. add better support for zero-copy operation, adding an extra field to the netmap ring to indicate how many buffers we have already processed but not yet released (with help from Eddie Kohler); 3. The two changes above unfortunately require an API change, so while at it add a version field and some spares to the ioctl() argument to help detect mismatches. 4. update the manual page for the two changes above; 5. update sample applications in tools/tools/netmap KERNEL: 1. simplify the internal structures moving the global wait queues to the 'struct netmap_adapter'; 2. simplify the functions that map kring<->nic ring indexes 3. normalize device-specific code, helps mainteinance; 4. start exploring the impact of micro-optimizations (prefetch etc.) in the ixgbe driver. Use 'legacy' descriptors on the tx ring and prefetch slots gives about 20% speedup at 900 MHz. Another 7-10% would come from removing the explict calls to bus_dmamap* in the core (they are effectively NOPs in this case, but it takes expensive load of the per-buffer dma maps to figure out that they are all NULL. Rx performance not investigated. I am postponing the MFC so i can import a few more improvements before merging.
* Typo.jhb2012-02-271-1/+1
|
* Backout r230934 which didn't work with unix sockets andpluknet2012-02-271-34/+8
| | | | | | several filesystem layers mounted at the specified path. Pointy hat to: pluknet
* - Panic up front if a kernel does not include 'device atpic' and anjhb2012-02-271-1/+10
| | | | | | | | APIC is not found. - Don't panic if lapic_enable_cmc() is called and the APIC is not enabled. This can happen due to booting a kernel with APIC disabled on a CPU that supports CMCI. - Wrap a long line.
* MFamd64: Don't whine about interrupts being disabled for an NMI.jhb2012-02-271-4/+5
|
* Remove completely duplicate '#ifdef XEN' section.jhb2012-02-271-30/+0
|
* Resort the IDT_DTRACE_RET constant after it was changed to be less thanjhb2012-02-272-2/+2
| | | | IDT_SYSCALL.
* Correct function prototype for read_rflags().jhb2012-02-271-1/+1
|
* Update incorrect comment.jhb2012-02-271-1/+1
|
* Update PCI-IDs with devices found on Intel SDPsbruno2012-02-271-2/+6
| | | | | | | | Return BUS_PROBE_DEFAULT so that non-default drivers may be loaded Reviewed by: jharris@ Obtained from: Yahoo! Inc. and Intel MFC after: 3 days
* Remove unused variable count.kevlo2012-02-271-2/+1
| | | | This variable is initialized but not used.
* Clear the a device's description string anytime it's driver changes.jhb2012-02-271-3/+2
| | | | | | | | | | Descriptions are specific to drivers and we don't change drivers on attached devices. This fixes a few places where we were not clearing the description when detaching a driver (e.g. with device_attach() failed). While here, fix a few other nits: - Remove spurious call to remove a device's driver from devclass_driver_deleted(). device_detach() removes it already. - Fix a typo.
* Follow changes made in revision 232144, pass absolute timeout to kernel,davidxu2012-02-274-71/+84
| | | | this eliminates a clock_gettime() syscall.
* Rework CPU load balancing in SCHED_ULE:mav2012-02-271-148/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - In sched_pickcpu() be more careful taking previous CPU on SMT systems. Do it only if all other logical CPUs of that physical one are idle to avoid extra resource sharing. - In sched_pickcpu() change general logic of CPU selection. First look for idle CPU, sharing last level cache with previously used one, skipping SMT CPU groups. If none found, search all CPUs for the least loaded one, where the thread with its priority can run now. If none found, search just for the least loaded CPU. - Make cpu_search() compare lowest/highest CPU load when comparing CPU groups with equal load. That allows to differentiate 1+1 and 2+0 loads. - Make cpu_search() to prefer specified (previous) CPU or group if load is equal. This improves cache affinity for more complicated topologies. - Randomize CPU selection if above factors are equal. Previous code tend to prefer CPUs with lower IDs, causing unneeded collisions. - Rework periodic balancer in sched_balance_group(). With cpu_search() more intelligent now, make balansing process flat, removing recursion over the topology tree. That fixes double swap problem and makes load distribution more even and predictable. All together this gives 10-15% performance improvement in many tests on CPUs with SMT, such as Core i7, for number of threads is less then number of logical CPUs. In some tests it also gives positive effect to systems without SMT. Reviewed by: jeff Tested by: flo, hackers@ MFC after: 1 month Sponsored by: iXsystems, Inc.
* Fix logic errorkevlo2012-02-271-1/+1
|
* Remove duplicate assignment of SF_IMR_RXDQ2_DMADONE bitkevlo2012-02-271-1/+1
|
* Drop setuid status while doing file operations to prevent potentialdelphij2012-02-271-12/+21
| | | | | | | | information leak. This changeset is intended to be a minimal one to make backports easier. Reviewed by: kevlo, remko MFC after: 1 week
* xargs: Remove an unclear comment that only tried to repeat what the code didjilles2012-02-261-4/+0
| | | | Reported by: bde
* Fix segfault if distfetch and distextract binaries are run standalonenwhitehorn2012-02-262-2/+16
| | | | | | | | without the DISTRIBUTIONS environment variable set. PR: bin/165492 Submitted by: Fernando Apesteguia MFC after: 4 days
* Fix apparent logic reversal in setting the 'auto_mode' flag.kan2012-02-261-2/+2
| | | | MFC after: 2 weeks
* Also call the low-level driver if ->c_iflag & (IXON|IXOFF|IXANY) changes.phk2012-02-261-0/+2
| | | | | | Uftdi(4) examines (c_iflag & (IXON|IXOFF)) to control hw XON-XOFF support. This is obviously no good, if changes to those bits are not communicated down the stack.
* Fix typo.alc2012-02-261-1/+1
| | | | MFC after: 1 week
* xargs: Fix comma splice in error message.jilles2012-02-261-2/+2
| | | | Reported by: bde
* Analogous to r232059, add a parameter for the ZFS file system:mm2012-02-265-15/+44
| | | | | | | | | | | | | | | | allow.mount.zfs: allow mounting the zfs filesystem inside a jail This way the permssions for mounting all current VFCF_JAIL filesystems inside a jail are controlled wia allow.mount.* jail parameters. Update sysctl descriptions. Update jail(8) and zfs(8) manpages. TODO: document the connection of allow.mount.* and VFCF_JAIL for kernel developers MFC after: 10 days
* Remove duplicate assignment of CTS_SPI_VALID_SYNC_RATE bitkevlo2012-02-261-1/+0
|
* Check fchmod()/fchown() in fifo_misc test.jilles2012-02-261-0/+93
|
* Fix fchmod() and fchown() on fifos.jilles2012-02-261-2/+41
| | | | | | | | The new fifo implementation in r232055 broke fchmod() and fchown() on fifos. Postfix needs this. Submitted by: gianni Reported by: dougb
* When displaying security credential information show also process umask.trociny2012-02-261-3/+29
| | | | | | Submitted by: Dmitry Banschikov <me ubique spb ru> Discussed with: rwatson MFC after: 2 weeks
* Add sysctl to retrieve or set umask of another process.trociny2012-02-262-0/+49
| | | | | | | Submitted by: Dmitry Banschikov <me ubique spb ru> Discussed with: kib, rwatson Reviewed by: kib MFC after: 2 weeks
* Document SO_PROTOCOL socket option.kib2012-02-261-2/+13
| | | | | | Discussed with: bz Reviewed by: glebius MFC after: 2 weeks
* Add SO_PROTOCOL/SO_PROTOTYPE socket SOL_SOCKET-level option to get thekib2012-02-262-0/+6
| | | | | | | | | | | | socket protocol number. This is useful since the socket type can be implemented by different protocols in the same protocol family, e.g. SOCK_STREAM may be provided by both TCP and SCTP. Submitted by: Jukka A. Ukkonen <jau iki fi> PR: kern/162352 Discussed with: bz Reviewed by: glebius MFC after: 2 weeks
OpenPOWER on IntegriCloud