summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix the build when INVARIANTS is defined by restoring `bo`'s definition inngie2015-01-191-0/+6
| | | | | | | ext2_truncate(..) and by putting it under INVARIANTS ifdefs X-MFC with: r277354 MFC after: 2 weeks
* MOVS instruction emulation.neel2015-01-192-5/+272
| | | | | | | | | | | | These instructions are emitted by 'bus_space_read_region()' when accessing MMIO regions. Since MOVS can be used with a repeat prefix start decoding the REPZ and REPNZ prefixes. Also start decoding the segment override prefix since MOVS allows overriding the source operand segment register. Tested by: tychon MFC after: 1 week
* Fix a bug in libvmmapi 'vm_copy_setup()' where it would return success even ifneel2015-01-192-7/+17
| | | | | | | | | | | | the 'gpa' was in the guest MMIO region. This would manifest as a segmentation fault in 'vm_map_copyin()' or 'vm_map_copyout()' because 'vm_map_gpa()' would return NULL for this 'gpa'. Fix this by calling 'vm_map_gpa()' in 'vm_copy_setup' and returning a failure if the 'gpa' cannot be mapped. This matches the behavior of 'vm_copy_setup()' in vmm.ko. MFC after: 1 week
* Integrate contrib/netbsd-tests/bin/expr into the build/kyua as bin/expr/testsngie2015-01-193-0/+24
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Expect :overflow to fail with FreeBSD's expr as it doesn't have stringentngie2015-01-191-0/+3
| | | | | | | overflow checks like NetBSD's expr does MFC after: 3 days PR: 196867
* Provide a tunable (machdep.moea64_bpvo_pool_size) to set the bootstrapnwhitehorn2015-01-191-6/+7
| | | | | | | | PVO pool size. The default errs on the exceedingly large side, so absent any intelligent automatic tuning, at least let the user set it to save RAM on memory-constrained systems. MFC after: 2 weeks
* For armv6 builds, add -mfloat-abi=softfp. This tells the compiler it canian2015-01-191-0/+4
| | | | | | | use floating point hardware instructions (because all armv6/7 systems we support have fp hardware), but it passes args using a soft-float compatible ABI. This should give noticible performance improvement (but not as much as using the armv6hf arch).
* ext2: Garbage-collect some unused variablespfg2015-01-197-14/+2
| | | | | Reported by: clang static analysis MFC after: 2 weeks
* Upgrade libxo to 0.2.0.marcel2015-01-1983-714/+4081
| | | | | | | | Obtained from: https://github.com/Juniper/libxo Requested by: Phil Shafer <phil@juniper.net> Revisions 276253 & 276273 were incorporated into 0.2.0. Revision 276260 has been merged-in.
* When mountd is creating sockets, it iterates over all addresses specifiedrstone2015-01-193-3/+4
| | | | | | | | | | | | | | | | | | | | | in the "hosts" array and eventually looks up the network address with getaddrinfo(). At one point it checks for a numeric address and if it sees one, it sets a hint parameter to force getaddrinfo to interpret the host as a numeric address. However that hint is not cleared for subsequent iterations of the loop and if any hosts seen after this point are host names, getaddrinfo will fail on the name. The result of this bug is that you cannot pass a host name to the -h flag. Unfortunately, the first iteration will either process ::1 or 127.0.0.1, so the flag is set on the first iteration and all host names will fail to be processed. The same bug applies to rpc.lockd and rpc.statd, so fix them too. Differential Revision: https://reviews.freebsd.org/D1507 Reported by: Dylan Martin MFC after: 1 week Sponsored by: Sandvine Inc.
* Clean ZFS spa config before syncingsmh2015-01-181-1/+26
| | | | | | | | | | | | | | | A number of entries that can be present in the spa config shouldn't be saved to disk so add a method to ensure this is case. Without this if the last caller to vdev_config_generate requested stats then we can end up in the cache file. Also only skip a none writable pool in the cache file generation if its active. This prevents unavailable pools incorrectly getting removed from cache file. Tested by: delphij MFC after: 2 weeks Sponsored by: Multiplay
* Fix a bug which only shows up when an mbuf allocation failed.tuexen2015-01-181-1/+1
| | | | | | | | Therefore chances are low that we hit this. Reported by: Coverity CID: 1018886 MFC after: 1 week
* ext2: fix for uninitialized pointer read.pfg2015-01-181-1/+1
| | | | | | | path.ep_bp was being used uninitialized in ext4_ext_find_extent(). CID: 1062344 MFC after: 1 week
* Remove an unnecessary check.tuexen2015-01-181-5/+2
| | | | | | Reported by: Coverity CID: 749576 MFC after: 1 week
* Add protection code to free memory in case of processing an address whichtuexen2015-01-181-0/+10
| | | | | | | | is neither IPv4 or IPv6. Reported by: Coverity CID: 749311 MFC after: 1 week
* Save the command-and-flags value into the shadow register when it is written.ian2015-01-181-1/+4
| | | | | | This doesn't actually change any behavior, because it just allows a 16-bit read of the command register to return the correct value, and nothing actually does a 16-bit read of that register.
* Remove dead code.pfg2015-01-181-6/+3
| | | | | | | | | | | After the ext2 variant of the "orlov allocator" was implemented, the case for a negative or zero dirsize disappeared. Drop the dead code and unsign dirsize given that it can't be negative anyways. CID: 1008669 MFC after: 1 week
* Remove an unused variable.tuexen2015-01-181-3/+1
| | | | | | Reported by: Coverity CID: 750999 MFC after: 1 week
* Use TOC to look up all kernel globals on powerpc64 instead of doing thenwhitehorn2015-01-185-22/+44
| | | | | | non-relocatable lis @ha, ori @l dance and hoping they are below 4 GB. MFC after: 2 months
* Refactor PowerPC (especially AIM) init sequence to be less baroque.nwhitehorn2015-01-1811-178/+92
| | | | MFC after: 2 months
* Fix bsdinstall when working with geli boot diskssmh2015-01-181-0/+3
| | | | | | | | PR: 196790 Differential Revision: https://reviews.freebsd.org/D566 Submitted by: Michael Gmelin <grembo@FreeBSD.org> MFC after: 2 weeks Sponsored by: Multiplay
* Refactor / restructure the RSS code into generic, IPv4 and IPv6 specificadrian2015-01-1822-655/+870
| | | | | | | | | | | | | | | | | | | | | | bits. The motivation here is to eventually teach netisr and potentially other networking subsystems a bit more about how RSS work queues / buckets are configured so things have a hope of auto-configuring in the future. * net/rss_config.[ch] takes care of the generic bits for doing configuration, hash function selection, etc; * topelitz.[ch] is now in net/ rather than netinet/; * (and would be in libkern if it didn't directly include RSS_KEYSIZE; that's a later thing to fix up.) * netinet/in_rss.[ch] now just contains the IPv4 specific methods; * and netinet/in6_rss.[ch] now just contains the IPv6 specific methods. This should have no functional impact on anyone currently using the RSS support. Differential Revision: D1383 Reviewed by: gnn, jfv (intel driver bits)
* Oops - use the correct argument order for ar9300_set_beacon().adrian2015-01-181-2/+2
| | | | (It's only an issue in AP/adhoc modes. But, still. Grr.)
* Fix minor syntax and grammar errors in the markup of the ee(1) man pageallanjude2015-01-181-3/+3
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D1552 Submitted by: bcallah@openbsd.org (original) Approved by: wblock (mentor) MFC after: 1 week Sponsored by: ScaleEngine Inc.
* Add procctl(2) PROC_TRACE_CTL command to enable or disable debuggerkib2015-01-1810-4/+185
| | | | | | | | | | | attachment to the process. Note that the command is not intended to be a security measure, rather it is an obfuscation feature, implemented for parity with other operating systems. Discussed with: jilles, rwatson Man page fixes by: rwatson Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Make SIGSTOP working for sleeps done while waiting for fifo readers orkib2015-01-183-4/+13
| | | | | | | | writers in open(2), when the fifo is located on an NFS mount. Reported by: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Upgrade our copy of clang and llvm to 3.5.1 release. This is a bugfixdim2015-01-1893-2650/+1809
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | only release, no new features have been added. Please note that this version requires C++11 support to build; see UPDATING for more information. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.5.1/docs/ReleaseNotes.html> <http://llvm.org/releases/3.5.1/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month X-MFC-With: 276479
| * Vendor import of llvm RELEASE_351/final tag r225668 (effectively, 3.5.1 ↵dim2015-01-15125-1525/+5248
| | | | | | | | | | | | release): https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_351/final@225668
* | Make the linuxapi module only build when WITH_OFED=YES is specified.hselasky2015-01-181-0/+2
| | | | | | | | | | | | | | | | | | There needs to be some more testing done before it is ready for all platforms and architectures. MFC after: 1 month Sponsored by: Mellanox Technologies Reported by: bz@
* | When disabling C3+ CPU states due to the CPU_QUIRK_NO_C3 quirk, don'tcperciva2015-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | accidentally enable non-existent states. This bug was triggered if ACPI advertises the presence of a C2 state which we fail to parse via acpi_PkgGas due to our lack of support for FFixedHW resources, and causes an immediate panic when an attempt is made to enter the (NULL) state. One affected platform is the EC2 c4.8xlarge VM instance type; there may be others. MFC after: 1 week Thanks to: jkim, @_msw_
* | Extend fixes made in r277308 to fix build of LINT kernels for i386 andhselasky2015-01-181-5/+10
| | | | | | | | | | | | | | | | | | amd64. Until further we need some custom C-flags when building the Linux compat API. MFC after: 1 month Sponsored by: Mellanox Technologies Reported by: bz@
* | Use proper signed types. The ADT746x uses signed 8-bit numbers for thejhibbits2015-01-181-2/+3
| | | | | | | | | | | | temperature. MFC after: 2 weeks
* | Fix programming timing parameters to LCDC. Actual value used for HBP, HFP, ↵gonzo2015-01-181-13/+27
| | | | | | | | | | | | HSW, VSW is register's programmed value + 1.
* | Include mca_machdep.h.imp2015-01-181-0/+3
| |
* | Simplify instruction restart logic in bhyve.neel2015-01-1811-98/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep track of the next instruction to be executed by the vcpu as 'nextrip'. As a result the VM_RUN ioctl no longer takes the %rip where a vcpu should start execution. Also, instruction restart happens implicitly via 'vm_inject_exception()' or explicitly via 'vm_restart_instruction()'. The APIs behave identically in both kernel and userspace contexts. The main beneficiary is the instruction emulation code that executes in both contexts. bhyve(8) VM exit handlers now treat 'vmexit->rip' and 'vmexit->inst_length' as readonly: - Restarting an instruction is now done by calling 'vm_restart_instruction()' as opposed to setting 'vmexit->inst_length' to 0 (e.g. emulate_inout()) - Resuming vcpu at an arbitrary %rip is now done by setting VM_REG_GUEST_RIP as opposed to changing 'vmexit->rip' (e.g. vmexit_task_switch()) Differential Revision: https://reviews.freebsd.org/D1526 Reviewed by: grehan MFC after: 2 weeks
* | Make the error message explicit instead of just printing the usage if theneel2015-01-181-5/+11
| | | | | | | | | | | | | | virtual machine name is not specified. Requested by: grehan MFC after: 1 week
* | There are still kernel configs and mk files depending on the OFED option.bz2015-01-181-0/+1
| | | | | | | | | | This will need a proper cleanup and in the meantime after r277302 unbreak LINT builds.
* | Add a new SDHCI quirk, SDHCI_QUIRK_DONT_SET_HISPD_BIT. Apparently someian2015-01-173-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | sdhci controllers, such as the one on a Raspberry Pi, mishandle the signal timing in high speed signaling mode, but run just fine in standard mode with the bus running at frequencies between 25-50MHz (which shouldn't work). This is the solution adopted by U-Boot and other OSes (linux and *BSD) for the timeouts on Raspberry Pi boards with certain SD cards. Some research shows that this quirk is also used on a few other boards, so the fix is a generic quirk instead of being in the RPi-specific driver code. This change is based on information discovered by Michal Meloun.
* | Add defines for SDHCI 3.0 controllers.ian2015-01-171-0/+29
| | | | | | | | Submitted by: Michal Meloun <meloun@miracle.cz>
* | Minor cleanups, comment changes. No need to load 3 values when setting upian2015-01-171-11/+10
| | | | | | | | | | | | the stack for secondary cores, the other two values are only used for zeroing bss on the primary core. No need to store the size of the stack at the top of the stack (seems to be a leftover instruction from some cut-n-paste).
* | Correct the descriptor length for AR9462/AR9565 and set the final fieldadrian2015-01-172-4/+10
| | | | | | | | | | | | | | | | | | | | to zero - TX drops are otherwise reported. Tested: * AR9462 (WB222), STA mode Obtained from: Linux ath9k
* | Skip the OFDM weak signal threshold detection programming foradrian2015-01-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | AR9462/AR9565. This and some upcoming changes to the HAL for these chips should address some of the signal sensitivity reported by users. Tested: * AR9462 (WB222), STA mode Obtained from: Linux ath9k
* | Start importing the basic OFED linux compatibility layer changes madehselasky2015-01-1717-179/+309
| | | | | | | | | | | | | | | | | | by dumbbell@ to be able to compile this layer as a dependency module. Clean up some Makefiles and remove the no longer used OFED define. Currently only i386 and amd64 targets are supported. MFC after: 1 month Sponsored by: Mellanox Technologies
* | ext2: cosmetical issuespfg2015-01-171-2/+5
| | | | | | | | | | | | Minor sorting and note when the cases are expected to fall through. MFC after: 1 week
* | Mechanically convert cddl sun #ifdef's to illumossmh2015-01-1794-752/+746
| | | | | | | | | | | | | | | | | | | | | | | | Since the upstream for cddl code is now illumos not sun, mechanically convert all sun #ifdef's to illumos #ifdef's which have been used in all newer code for some time. Also do a manual pass to correct the use if #ifdef comments as per style(9) as well as few uses of #if defined(__FreeBSD__) vs #ifndef illumos. MFC after: 1 month Sponsored by: Multiplay
* | o Notify USB host about connection when operating in device mode.br2015-01-172-6/+60
| | | | | | | | | | | | | | | | Required when communicating to Mac OS X USB host stack. o Also don't set stall bit to TX pipe in device mode as seems Mac OS X don't clears it as it should. Discussed with: hselasky@
* | Fix condition and really sort ports. Also add comment describingae2015-01-171-2/+7
| | | | | | | | | | | | | | | | the intent of this code. Reported by: sbruno MFC after: 1 week Sponsored by: Yandex LLC
* | loader: use correct types for parse_modmetadataroyger2015-01-171-4/+4
| | | | | | | | | | | | | | | | Use the proper types in parse_modmetadata for the p_start and p_end parameters. This was causing problems in the ARM 32bit loader. Sponsored by: Citrix Systems R&D Reported and Tested by: ian
* | Oops; correctly reload the CCA registers with the uncapped valueadrian2015-01-171-1/+2
| | | | | | | | | | | | | | | | | | in prep for the next NF calibration pass. Totally missing braces. Damn you C. Submitted by: Sascha Wildner <swildner@dragonflybsd.org> MFC after: 1 week
* | Return an appropriate error code in the case of a missing property rathernwhitehorn2015-01-171-0/+3
| | | | | | | | | | | | than random numbers. MFC after: 1 week
OpenPOWER on IntegriCloud