summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge from headsjg2015-05-2622-186/+223
|\
| * Fix a lock up where we enter swapper() with interrupts disabled.andrew2015-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In smp_rendezvous_cpus we expect to wait for all cpus to enter smp_rendezvous_action. If we call this holding a proc lock swapper may attempt to also lock it, however as interrupts are disabled the cpu never handles the ipi. Because smp_rendezvous_action waits for all signaled cpus before contining it may get caught waiting for the cpu running swapper as the proc mutex will be unlocked after smp_rendezvous_cpus finishes. The fix is to enable interrupts in the configure stage as we should be doing. MFC after: 1 week
| * Use the wait-for-event instruction to put the core we have just enabledandrew2015-05-231-2/+9
| | | | | | | | | | | | | | | | to sleep while it waits to start scheduling. The boot core can then use the send-event instruction to wake the cores when they should enter the scheduler. MFC after: 1 week
| * The NFS client generated directory block(s) with d_fileno == 0rmacklem2015-05-231-38/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so that it would not return less data than requested. Since returning less directory data than requested is not a problem for FreeBSD and even UFS no longer returns directory structures with d_fileno == 0, this patch stops the client from doing this. Although entries with d_fileno == 0 should not be a problem, the man pages no longer document that these entries should be ignored, so there was a concern that these entries might be an issue in the future. Suggested by: trasz Tested by: trasz MFC after: 2 weeks
| * Update P_TOTAL_STOP commentary.pluknet2015-05-231-1/+1
| |
| * If thread requested to not stop on non-boundary, then not onlykib2015-05-231-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | stopping signals should obey, but also all forms of single-threading. Otherwise, thread might sleep interruptible while owning some resources, and single-threading thread could try to access them. An example is owning vnode lock while dumping core. Submitted by: Conrad Meyer Review: https://reviews.freebsd.org/D2612 Tested by: pho MFC after: 1 week
| * Simplify the allocation of page table pages for mips64. Specifically,alc2015-05-231-1/+1
| | | | | | | | | | | | when allocation fails, it suffices to perform VM_WAIT. The direct map covers the entirely of physical memory, so unlike 32-bit mips any physical page can be used as a page table page.
| * ddb: de-registerpfg2015-05-235-18/+16
| |
| * Remove an unused header.andrew2015-05-232-92/+0
| |
| * Properly update TX statistics for wlan(4).ae2015-05-232-8/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | ieee80211_pwrsave() can fail due to queue overflow, check its return code and increment oerrors counter when it fails. Also handle more error cases and update oerrors counter when we don't send mbuf due to some errors. Return ENETDOWN when parent interface isn't ready. Update obytes and omcasts counters in corresponding places. PR: 184626 Differential Revision: https://reviews.freebsd.org/D2621 Reviewed by: adrian MFC after: 1 week
| * Add support for the tuning cap for Hornet/AR9331 boards.adrian2015-05-231-1/+9
| | | | | | | | | | | | | | | | | | | | | | This dramatically improves RX sensitivity and behaviour on the AR9331 hardware I have, including the Carambola 2. Tested: * AR9331, Carambola 2 board Submitted by: Zilvinas Valinskas <zilvinas.valinskas@gmail.com>
| * Exceptions don't deliver an error code in real mode.neel2015-05-231-0/+11
| | | | | | | | MFC after: 1 week
| * Use mkimg(1) to create the i386 memstick images, similar togjb2015-05-231-10/+3
| | | | | | | | | | | | | | | | how is done for amd64. The exception here is there is no EFI partition for i386. MFC after: 3 days Sponsored by: The FreeBSD Foundation
| * Convert to use libxo. Document use of libxo as well.marcel2015-05-226-166/+253
| | | | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc.
| * Fix staging virtual machine images for ftp propagation.gjb2015-05-221-30/+41
| | | | | | | | | | | | MFC after: 3 days X-MFC-Note: needs all previous changes Sponsored by: The FreeBSD Foundation
| * Adjust default argument construction for -c to be getopt compliant forpeter2015-05-221-1/+1
| | | | | | | | consistency, even though unbound understood it.
| * Fix typo in symbol name. It helps to hit save in all your buffersimp2015-05-221-1/+1
| | | | | | | | before committing.
| * Remove the verification of instruction length after instruction decode. Theneel2015-05-221-16/+0
| | | | | | | | | | | | check has been bogus since r273375. MFC after: 1 week
| * Fix a number of logic and/or naming problems in Makefile.mirrors.gjb2015-05-221-51/+103
| | | | | | | | | | | | | | | | | | | | Reduce a number of duplicated logic. As of this commit, this file does exactly what it is needed to do. MFC after: 3 days X-MFC-Note: needs all previous changes Sponsored by: The FreeBSD Foundation
| * Export the eflags field from the elf header. This allows betterimp2015-05-223-22/+28
| | | | | | | | | | | | | | | | | | discrimination between different subarch binaries, at least for mips and arm. Arm is implemented, mips is still tbd, so not currently exported. aarch64 does not export this because aarch64 binaries use different tags and flags than arm. Differential Revision: https://reviews.freebsd.org/D2611
| * ddb: Use NULL for pointerspfg2015-05-221-49/+49
| | | | | | | | Hinted by: DragonflyBSD
| * ipf(1): Use strchr(3) instead of deprecated index(3)emaste2015-05-221-1/+1
| | | | | | | | | | | | | | Reviewed by: cy MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2607
| * Don't rely on the 'VM-exit instruction length' field in the VMCS to alwaysneel2015-05-222-13/+11
| | | | | | | | | | | | | | | | | | | | have an accurate length on an EPT violation. This is not needed by the instruction decoding code because it also has to work with AMD/SVM that does not provide a valid instruction length on a Nested Page Fault. In collaboration with: Leon Dang (ldang@nahannisys.com) Discussed with: grehan MFC after: 1 week
| * CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenjkim2015-05-22100-149/+145
| | | | | | | | | | | | | | | | | | | | years for head. However, it is continuously misused as the mpsafe argument for callout_init(9). Deprecate the flag and clean up callout_init() calls to make them more consistent. Differential Revision: https://reviews.freebsd.org/D2613 Reviewed by: jhb MFC after: 2 weeks
| * Bump rx_overruns when indicated by the ICR mask.sbruno2015-05-221-0/+3
| | | | | | | | | | | | PR: 199716 MFC after: 3 days Sponsored by: Limelight Networks
| * Fix a syntax error in bsdinstall/zfsbootallanjude2015-05-221-1/+1
| | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2571 Submitted by: Michael Dexter Approved by: dteske MFC after: 1 week X-MFC-With: r283023, r282443 Sponsored by: ScaleEngine Inc.
| * Add a miibus_statchg and use it to enable Gigabit mode when appropriate.andrew2015-05-221-0/+32
| | | | | | | | MFC after: 1 week
| * Start documenting ctl(4) sysctls.trasz2015-05-221-1/+17
| | | | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
| * Advertise ctlstat(8) a little better.trasz2015-05-224-6/+10
| | | | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
| * Expand ktr_mask to be a 64-bit unsigned integer.jhb2015-05-222-14/+16
| | | | | | | | | | | | | | | | | | | | The mask does not really need to be updated with atomic operations and the downside of losing races during transitions is not great (it is not marked volatile, so those races are pretty wide open as it is). Differential Revision: https://reviews.freebsd.org/D2595 Reviewed by: emaste, neel, rpaulo MFC after: 2 weeks
| * Only reparent a traced process to its old parent if the tracing process isjhb2015-05-223-2/+148
| | | | | | | | | | | | | | | | | | | | | | | | not the old parent. Otherwise, proc_reap() will leave the zombie in place resulting in the process' status being returned twice to its parent. Add test cases for PT_TRACE_ME and PT_ATTACH which are fixed by this change. Differential Revision: https://reviews.freebsd.org/D2594 Reviewed by: kib MFC after: 2 weeks
| * Always set p_oppid when attaching to an existing process via procfsjhb2015-05-221-1/+1
| | | | | | | | | | | | | | | | tracing. This matches the behavior of ptrace(PT_ATTACH). Also, the procfs detach request assumes p_oppid is always set. Reviewed by: kib MFC after: 2 weeks
| * sfxge: relax assertion to allow RST flag in TSO packetsarybchik2015-05-221-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel under stress load, mixed MC reboot and sfupdate really generates TSO packet with RST flag. It will generate many TCP packets with RST flag set. May be RST flag should be set in the last segment only, but it could be dropped. So, it is safer to keep the flag in all packets to be sure that connection is reset. Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D2609
| * Need to handle the !FDT case still too... I thought in r270025 weimp2015-05-221-0/+4
| | | | | | | | wouldn't need it, but it appears that we still do for the moment...
| * Switch TI platform support code from using FreeBSD's custom-baked DTSgonzo2015-05-2255-3852/+3985
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files to vendor-provided ones. It should make easier to adopt platform code to new revisions of hardware and to use DTS overlays for various Beaglebone extensions (shields/capes). Original dts filenames were not changed, they're now wrappers over dts files provided by TI. So make sure you update .dtb files on your devices as part of kernel update GPIO addressing was changed: instead of one global /dev/gpioc0 there are per-bank instances of /dev/gpiocX. Each bank has 32 pins so for instance pin 121 on /dev/gpioc0 in old addressing scheme is now pin 25 on /dev/gpioc3 On Pandaboard serial console devices was changed from /dev/ttyu0 to /dev/ttyu2 so you'll have to update /etc/ttys to get login prompt on serial port in multiuser mode. Single user mode serial console should work as-is Differential Revision: https://reviews.freebsd.org/D2146 Reviewed by: rpaulo, ian, Michal Meloun, Svatopluk Kraus
| * Add helper method fdt_find_child to make access to child nodes easier.gonzo2015-05-222-0/+18
| | | | | | | | | | | | Some FDT nodes have complex properties organized as a child sub-nodes (e.g. timing for LCD panel) we need easy way to obtain handles for these sub-nodes
| * Add stat counters for Jumbo Frames using SGE ring.davidcs2015-05-223-44/+49
| | | | | | | | | | | | | | | | Also remove the checks for IFCAP_LRO in bxe_alloc_fp_buffers() and bxe_pf_rx_q_prep() since both TPA and Jumbo can use SGE ring. Submitted by:gary.zambrano@qlogic.com Approved by:davidcs@freebsd.org MFC after:5 days
| * The NFS client wasn't handling getdirentries(2) requests for sizesrmacklem2015-05-211-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | that are not an exact multiple of DIRBLKSIZ correctly. Fortunately readdir(3) always uses an exact multiple of DIRBLKSIZ, so few applications were affected. This patch fixes this problem by reducing the size of the directory read to an exact multiple of DIRBLKSIZ. Tested by: trasz Reported by: trasz Reviewed by: trasz MFC after: 2 weeks
| * Fix make(1) syntax error for non-embedded targets.gjb2015-05-211-1/+3
| | | | | | | | Sponsored by: The FreeBSD Foundation
| * If TARGET or EMBEDDED_TARGET == arm, set EMBEDDED variable,gjb2015-05-211-9/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which helps control some of the arm-specific bits a bit more cleanly (but not really 'clean'). If BOARDNAME is defined (as is in the WANDBOARD configuration RE uses), do some magic to work with the KERNCONF and BOARDNAME to rename the file, making it a bit more intuitive for the consumer to determine which they need. Yes, it is ugly, that is why there is a big warning at the top. It is, however, still much cleaner than the now 474-line shell script, and this Makefile produces the hierarchy needed without much evil. MFC after: 1 week X-MFC-Note: needs all previous Makefile.mirror commits Sponsored by: The FreeBSD Foundation
| * Limit the size of the posted receive buffers in Rx Rings to MJUMPAGESIZE. ↵davidcs2015-05-211-27/+79
| | | | | | | | | | | | | | | | | | | | Previously for jumbo MTUs, the rx ring buffers were MTU + any required pad. Now when this size greater than MJUMPAGESIZE, the packet is spanned across multiple buffers and the mbufs are stiched together. Submitted by:gary.zambrano@qlogic.com Approved by:davidcs@freebsd.org
| * Remove the arm/armv6 bits from Makefile.mirrors, which needsgjb2015-05-211-7/+0
| | | | | | | | | | | | some re-thinking. Sponsored by: The FreeBSD Foundation
| * Include xz(1)-compressed images when not a snapshot build.gjb2015-05-211-2/+4
| | | | | | | | | | | | Do not suffix non-snapshot checksum files with SNAP_SUFFIX. Sponsored by: The FreeBSD Foundation
| * cd(1) to .CURDIR before calling stat(1) to fix the pathgjb2015-05-211-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | to sh(1). Include xz(1)-compressed images when renaming snapshot builds. Use OSRELEASE in place of REVISION-BRANCH for checksum filenames. Sponsored by: The FreeBSD Foundation
| * The 'hostbridge' device exists to allow guests to infer msi/msixtychon2015-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | capablity by advertising pcie capability. Since the 'hostbridge' device isn't a true pci-to-pci bridge, and doesn't actaully use the bridge configuration space layout, change the header-type from type 1 to type 0 to avoid confusion. Reviewed by: neel
| * Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changingloos2015-05-212-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | this value at runtime. The SD card specification says that a block write or a block erase can take up to 250ms to complete and thus, under some circumstances, the existent 2 seconds timeout was triggering with normal usage. This change fixes the sporadic controller timeout that happens on RPi and RPi 2. Discussed with: ian (some time ago)
| * Do not probe Intel PIIX4 south bridge quirks on amd64. These quirky southjkim2015-05-212-11/+18
| | | | | | | | | | | | | | bridges only supported Intel Pentium and Pentium II era processors and there is no reason for hardware virtualizations to emulate these quirks. MFC after: 1 week
| * Eliminate unneeded includes.delphij2015-05-2112-17/+1
| | | | | | | | MFC after: 2 weeks
| * Add an option "--get-vmcs-exit-inst-length" to display the instruction lengthneel2015-05-211-1/+12
| | | | | | | | | | | | of the instruction that caused the VM-exit. MFC after: 1 week
| * Emulate the "CMP r/m, reg" instruction (opcode 39H).neel2015-05-211-6/+22
| | | | | | | | | | Reported and tested by: Leon Dang (ldang@nahannisys.com) MFC after: 1 week
OpenPOWER on IntegriCloud