summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add I/O accounting to msdos filesystem.mckusick2012-04-081-0/+4
| | | | Suggested and reviewed by: kib
* Drop an unnecessary setting of si_mountpt when updating a UFS mount point.mckusick2012-04-081-2/+0
| | | | | | Clearly it must have been set when the mount was done. Reviewed by: kib
* Teach wlanstats about the new BAR TX statistics.adrian2012-04-081-0/+12
|
* Add some statistics to track BAR TX.adrian2012-04-082-4/+13
|
* Add AR_ISR_S5 and AR_ISR_S5_S.adrian2012-04-081-0/+2
|
* Unlike other functions __aeabi_read_tp function must preserve r1-r3. Theandrew2012-04-081-2/+5
| | | | | | | currently generated code clobbers r3. Fix this by loading ARM_TP_ADDRESS using inline assembly. Approved by: imp (mentor)
* - Add a "real" symbol version map to libasn1. The upstream versionstas2012-04-084-11/+1618
| | | | | | | | | | of the version map just exported all the symbols, which caused a binutils bug being triggered when ld fails to link two objects, one of which exports a versioned version of the symbol, and another -- unversioned. [1] - Also add version map for libkafs5. Submitted by: jchandra@ (based on)
* - Use __NO_TLS preprocessor value to make assumptions about TLS supportstas2012-04-081-1/+1
| | | | on a platform.
* After reviewing the mcast/sleep station code a little, undo some brainadrian2012-04-081-30/+13
| | | | | | | | | | | | damage which I committed when I had less clue about such things. Don't ever put normal data frames on the mcast software queue. Just put mcast frames there if needed. Pass the txq decision into ath_tx_normal_setup(), as we've already made the decision. Don't re-do it. Whilst i'm here, add another random debugging statement.
* - Revert part of r234005, which I did not intend to commit.stas2012-04-072-2/+2
| | | | Sorry! :(
* - Add kernel config file for QEMU-emulated gumstix board.stas2012-04-073-2/+94
|
* - Add new ARM kernel option QEMU_WORKAROUNDS which can bestas2012-04-072-2/+19
| | | | | | | used in the code which needs to implement some specific behaviour when being run under QEMU. - Make PXA UART probe code to work under QEMU gumstix, which doesn't emulate all the ports properly.
* Properly resolve the _ctx_start function descriptor (the symbol _ctx_startnwhitehorn2012-04-071-1/+1
| | | | | | | is a descriptor, not a code address), which prevents crashes when starting a context. This fixes QEMU on powerpc64. MFC after: 3 days
* tmpfs supports only INT_MAX nodes due to limitations of unit numbergleb2012-04-071-3/+7
| | | | | | | | | | | allocator. Replace UINT32_MAX checks with INT_MAX. Keeping more than 2^31 nodes in memory is not likely to become possible in foreseeable feature and would require new unit number allocator. Discussed with: delphij MFC after: 2 weeks
* Add vfs_getopt_size. Support human readable file system options in tmpfs.gleb2012-04-073-16/+57
| | | | | | | Increase maximum tmpfs file system size to 4GB*PAGE_SIZE on 32 bit archs. Discussed with: delphij MFC after: 2 weeks
* Add reserved memory limit sysctl to tmpfs.gleb2012-04-073-61/+91
| | | | | | | Cleanup availble and used memory functions. Check if free pages available before allocating new node. Discussed with: delphij
* mdoc: fix function type.joel2012-04-071-1/+1
|
* Remove end of line whitespace introduced in previous commit.joel2012-04-071-1/+1
|
* mdoc: fix column names, indentation, column separation within each row, andjoel2012-04-0726-226/+219
| | | | | | | quotation. Also make sure we have the same amount of columns in each row as the number of columns we specify in the head arguments. Reviewed by: brueffer
* - Do not reinitialize the card if it is already running.stas2012-04-071-2/+3
| | | | | | | This fixes bootp on if_smc, as bootp code perform SIOCSIFADDR ioctl call immediately after sending the request (which causes if_init being called) which causes the adapter to drop all the packets received in the meantime.
* Do a dma sync before the descriptors are chained together.adrian2012-04-071-0/+3
| | | | I need to find a better place to do this..
* Break out the legacy duration and protection code into routines,adrian2012-04-073-83/+156
| | | | | | | | | | | | | | | | | | | | | | call these after rate control selection is done. The duration/protection code wasn't working - it expected the rix to be valid. Unfortunately after I moved the rate control selection into late in the process, the rix value isn't valid and thus the protection/ duration code would get things wrong. HT frames are now correctly protected with an RTS and for the AR5416, this involves having the aggregate frames be limited to 8K. TODO: * Fix up the DMA sync to occur just before the frame is queued to the hardware. I'm adjusting the duration here but not doing the DMA flush. * Doubly/triply ensure that the aggregate frames are being limited to the correct size, or the AR5416 will get unhappy when TXing RTS-protected aggregates.
* As I thought, this is a bad idea. When forming aggregates, the RTS/CTSadrian2012-04-071-11/+7
| | | | stuff and rate control lookup is only done on the first frame.
* Add some tests from PR 166463. Also make sure that all of the tests,das2012-04-071-7/+33
| | | | | old and new, check the sign bits of both the remainder and the quotient.
* Fix a bug in remquo{,f,l}, in which the quotient didn't always have thedas2012-04-073-5/+8
| | | | | | | | | | | | | | | correct sign when the remainder was 0. Fix a separate bug in remquo alone, in which the remainder and quotient were both off by a bit in certain cases involving subnormal remainders. The bugs affected all platforms except amd64 and i386, on which the routines are implemented in assembly. PR: 166463 Submitted by: Ilya Burylov MFC after: 2 weeks
* Enforce the RTS aggregation limit if RTS/CTS protection is enabled;adrian2012-04-071-14/+32
| | | | | | | | | | if any subframes in an aggregate have different protection from the first frame in the formed aggregate, don't add that frame to the aggregate. This is likely a suboptimal method (I think we'll mostly be OK marking frames that have seqno's with the same protection as normal data frames) but I'll just be cautious for now.
* Store away the RTS aggregate limit from the HAL.adrian2012-04-072-0/+8
| | | | | | This will be used by some upcoming code to ensure that aggregates are enforced to be a certain size. The AR5416 has a limitation on RTS protected aggregates (8KiB).
* Remove duplicate txflags field from ath_buf.adrian2012-04-075-25/+20
| | | | | rename bf_state.bfs_flags to bf_state.bfs_txflags, as that is what it effectively is.
* Execute an initial ptesync if and only if the PTE is actually beingnwhitehorn2012-04-061-14/+7
| | | | invalidated, as opposed to a ref/changed bit update.
* Change the SCSI INQUIRY peripheral qualifier that CTL reports for LUNsken2012-04-067-6/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | that don't exist. Anecdotal evidence indicates that it is better to return 011b (bad LUN) than 001b (LUN offline). However, this change also gives the user a sysctl/tunable, kern.cam.ctl.inquiry_pq_no_lun, to override the change and return to the previous behavior. (The previous behavior was to return 001b, or LUN offline.) ctl.c: Change the default inquiry peripheral qualifier to 011b, and add a sysctl and tunable to allow the user to change it back to 001b if needed. Don't insert a Copan copyright statement in the inquiry data. The copyright statements on the files are sufficient. ctl_private.h: Add sysctl variable context to the CTL softc. ctl_cmd_table.c, ctl_frontend_internal.c, ctl_frontend.c, ctl_backend.c, ctl_error.c: Include sys/sysctl.h. MFC after: 3 days
* Fix interrupt load balancing regression, introduced in revisiongibbs2012-04-061-3/+0
| | | | | | | | | | | | | | | | 222813, that left all un-pinned interrupts assigned to CPU 0. sys/x86/x86/intr_machdep.c: In intr_shuffle_irqs(), remove CPU_SETOF() call that initialized the "intr_cpus" cpuset to only contain CPU0. This initialization is too late and nullifies the results of calls the intr_add_cpu() that occur much earlier in the boot process. Since "intr_cpus" is statically initialized to the empty set, and all processors, including the BSP, already add themselves to "intr_cpus" no special initialization for the BSP is necessary. MFC after: 3 days
* Staticize vm_page_cache_remove().attilio2012-04-062-2/+1
| | | | Reviewed by: alc
* Substantially reduce the scope of the locks held in pmap_enter(), whichnwhitehorn2012-04-061-34/+8
| | | | improves concurrency slightly.
* Micro-optimize free_pv_entry() for the expected case.alc2012-04-061-4/+6
|
* Reduce the frequency that the PowerPC/AIM pmaps invalidate instructionnwhitehorn2012-04-064-57/+33
| | | | | | | | caches, by invalidating kernel icaches only when needed and not flushing user caches for shared pages. Suggested by: kib MFC after: 2 weeks
* Give the kernel pmap lock a different name than user pmap locks. It hasnwhitehorn2012-04-061-2/+3
| | | | | | | (slightly) different semantics and renaming it prevents a (harmless) WITNESS warning during bootup for 32-bit kernels on 64-bit CPUs. MFC after: 5 days
* we need to specify a NETMAP_API version or the ioctl() will fail.luigi2012-04-061-0/+1
|
* Fix build broken by r233938.melifaro2012-04-061-1/+2
| | | | | | Pointed by: David Wolfskill <david@catwhisker.org> Approved by: kib (mentor) Pointy hat to: melifaro
* Properly clear the O_NONBLOCK flag after opening the TTY.ed2012-04-061-1/+5
| | | | | | | | | | Though we should open the TTY with O_NONBLOCK to prevent rc(8) execution from potentially stalling, we must not forget to clear the flag later on, to prevent read(2) calls from failing later on. This prevented the shell pathname prompt from working properly. Reported by: kib
* retrofit Safe Mode loader menu item actionsavg2012-04-061-15/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The menu item is now made completely independent with the ACPI item - most modern systems seem to require ACPI and become even more "unsafe" without it. Safe Mode no longer disables APIC for the same reason. kbdmux is not disabled as this feature has proven itself stable. New actions: - SMP is disabled in the Safe Mode now - eventtimers are forced to periodic mode (some real and virtual systems seem to have problems otherwise) - geom extra vigorous integrity checking is disabled, this is to facilitate migration from previous versions Possible short term to do: - make SMP switch a separate menu item - restore APIC switch as a separate menu item Longer term to do: - turn various tweaks into separate menu items in a Safe Mode sub-menu Please consider adding a safety tweak to Safe Mode when introducing new major features or changes that may cause instabilities. Discussed with: jhb, scottl, Devin Teske MFC after: 3 weeks (stable/9 only)
* Remove duplicate condition in if statement.tuexen2012-04-061-1/+0
| | | | | Obtained from: brucec@ MFC after: 3 days
* Free ballooned pages with the corresponding malloc type.pluknet2012-04-061-1/+1
| | | | MFC after: 1 week
* - Improve performace for writer-only BPF users.melifaro2012-04-064-10/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux and Solaris (at least OpenSolaris) has PF_PACKET socket families to send raw ethernet frames. The only FreeBSD interface that can be used to send raw frames is BPF. As a result, many programs like cdpd, lldpd, various dhcp stuff uses BPF only to send data. This leads us to the situation when software like cdpd, being run on high-traffic-volume interface significantly reduces overall performance since we have to acquire additional locks for every packet. Here we add sysctl that changes BPF behavior in the following way: If program came and opens BPF socket without explicitly specifyin read filter we assume it to be write-only and add it to special writer-only per-interface list. This makes bpf_peers_present() return 0, so no additional overhead is introduced. After filter is supplied, descriptor is added to original per-interface list permitting packets to be captured. Unfortunately, pcap_open_live() sets catch-all filter itself for the purpose of setting snap length. Fortunately, most programs explicitly sets (event catch-all) filter after that. tcpdump(1) is a good example. So a bit hackis approach is taken: we upgrade description only after second BIOCSETF is received. Sysctl is named net.bpf.optimize_writers and is turned off by default. - While here, document all sysctl variables in bpf.4 Sponsored by Yandex LLC Reviewed by: glebius (previous version) Reviewed by: silence on -net@ Approved by: (mentor) MFC after: 4 weeks
* - Improve BPF locking model.melifaro2012-04-067-123/+180
| | | | | | | | | | | | | | | | | | | | | | | Interface locks and descriptor locks are converted from mutex(9) to rwlock(9). This greately improves performance: in most common case we need to acquire 1 reader lock instead of 2 mutexes. - Remove filter(descriptor) (reader) lock in bpf_mtap[2] This was suggested by glebius@. We protect filter by requesting interface writer lock on filter change. - Cover struct bpf_if under BPF_INTERNAL define. This permits including bpf.h without including rwlock stuff. However, this is is temporary solution, struct bpf_if should be made opaque for any external caller. Found by: Dmitrij Tejblum <tejblum@yandex-team.ru> Sponsored by: Yandex LLC Reviewed by: glebius (previous version) Reviewed by: silence on -net@ Approved by: (mentor) MFC after: 3 weeks
* - Do not use deprecated krb5 error message reporting functions in libtelnet.stas2012-04-062-54/+55
|
* Properly handle absent AT_CANARY aux entry.kib2012-04-051-1/+2
| | | | | Submitted by: Andrey Zonov <andrey zonov org> MFC after: 3 days
* Add new ktrace records for the start and end of VM faults. This givesjhb2012-04-059-6/+148
| | | | | | | | | | a pair of records similar to syscall entry and return that a user can use to determine how long page faults take. The new ktrace records are enabled via the 'p' trace type, and are enabled in the default set of trace points. Reviewed by: kib MFC after: 2 weeks
* Fix a typo in GCC affecting calculations with -ffast-math.pfg2012-04-052-1/+6
| | | | | | | | | | The fix is similar to the one applied in GCC-4.3 in GCCSVN-r117929 under the GPLv2. Submitted by: Andrey Simonenko Reviewed by: mm Approved by: jhb (mentor) MFC after: 3 days
* zfs_ioctl: no need for ddi_copyin/out here because sys_ioctl handles thatavg2012-04-051-1/+8
| | | | | | | | | | On FreeBSD the direct ioctl argument is automatically copied in/out as necesary by the kernel ioctl entry point. PR: kern/164445 Submitted by: Luis Garces-Erice <lge@ieee.org> Tested by: Attila Nagy <bra@fsn.hu> MFC after: 5 days
* Fix VIMAGE build.ae2012-04-051-0/+4
|
OpenPOWER on IntegriCloud