summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow FDT_DTS_FILE to be a list, either in the makedtb target, or in aimp2014-04-303-21/+13
| | | | | | | kernel config file. If you also want to have a static DTB compiled into your kernel, however, it cannot be a list. We have no mechanism in the kernel for picking one, so that doesn't make sense and will result in a compile-time error.
* Reintroduce priority for the TRIM ZIOs instead of using the "NOW" prioritysmh2014-04-307-73/+124
| | | | | | | | | | | | | | | | | | | | | | The changes how TRIM requests are generated to use ZIO_TYPE_FREE + a priority instead of ZIO_TYPE_IOCTL, until processed by vdev_geom; only then is it translated the required geom values. This reduces the amount of changes required for FREE requests to be supported by the new IO scheduler. This also eliminates the need for a specific DKIOCTRIM. Also fixed FREE vdev child IO's from running ZIO_STAGE_VDEV_IO_DONE as part of their schedule. As the new IO scheduler can result in a request to execute one type of IO to actually run a different type of IO it requires that zio_trim requests are processed without holding the trim map lock (tm->tm_lock), as the free request execute call may result in write request running hence triggering a trim_map_write_start call, which takes the trim map lock and hence would result in recused on no-recursive sx lock. This is based off avg's original work, so credit to him. MFC after: 1 month
* Do not reread SCSI disk VPD pages on every device open.mav2014-04-301-10/+35
| | | | | | | | | | | | | | Instead of rereading VPD pages on every device open, do it only on initial device probe, and in cases when device reported via UNIT ATTENTIONs that something has changed. Capacity is still rereaded on every open because it is more critical for operation and more probable to change in run time. On my tests with Intel 530 SSDs on mps(4) HBA this change reduces time GEOM needs to retaste the device (that includes few open/close cycles) from ~150ms to ~30ms. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Make uninteresting PCI devices with no attached drivers only print outsmh2014-04-301-92/+100
| | | | | | on a verbose boot MFC after: 2 weeks
* Convert the Zynq SoC support to the new routines for static device mapping.ian2014-04-302-35/+8
|
* Don't forget to remember previous element at the end of the loop.pjd2014-04-301-0/+1
| | | | | | Reported by: brueffer Found with: Coverity Prevent(tm) CID: 1135301
* Document m_get2().kevlo2014-04-302-1/+8
| | | | Reviewed by: glebius
* Change type from int to short to match function prototypes.kevlo2014-04-301-5/+5
| | | | Reviewed by: glebius
* Add missing commaeadler2014-04-301-1/+1
| | | | Relnotes: yes (/dev/full)
* null.c: uio is unusedeadler2014-04-301-1/+1
| | | | | | Mark another parameter as unused Reported by: rpaulo
* man pages: add missing commaeadler2014-04-302-2/+2
| | | | Reported by: brueffer
* null.c: fix orderingeadler2014-04-301-8/+9
| | | | | | Use a consistent ordering of full -> null -> zero (alphabetical) in null.c Reported by: mjg
* Add a /dev/full device.eadler2014-04-304-1/+73
| | | | | | | | /dev/full is similar to /dev/zero except it always returns ENOSPC when you attempt to write to it. Reviewed by: jhibbits Discussed with: rpaulo
* Fix TCP reassembly vulnerability.delphij2014-04-301-3/+4
| | | | | | Patch done by: glebius Security: FreeBSD-SA-14:08.tcp Security: CVE-2014-3000
* Fix OpenSSL use-after-free vulnerability.delphij2014-04-301-1/+1
| | | | | | Obtained from: OpenBSD Security: FreeBSD-SA-14:09.openssl Security: CVE-2010-5298
* Fix devfs rules not applied by default for jails.delphij2014-04-301-1/+1
| | | | | Security: FreeBSD-SA-14:07.devfs Security: CVE-2014-3001
* * Modify the beacon interval in debugging to be ni_intval, not 102400adrian2014-04-301-13/+17
| | | | | | | | * Be paranoid about avoiding divide-by-zero. Tested: * AR9380, STA mode
* Add ar9300_get_next_tbtt().adrian2014-04-301-0/+6
| | | | | | Tested: * AR9380, STA mode
* Bring over some initial power save management support, reset pathadrian2014-04-3012-73/+787
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes and beacon programming / debugging into the ath(4) driver. The basic power save tracking: * Add some new code to track the current desired powersave state; and * Add some reference count tracking so we know when the NIC is awake; then * Add code in all the points where we're about to touch the hardware and push it to force-wake. Then, how things are moved into power save: * Only move into network-sleep during a RUN->SLEEP transition; * Force wake the hardware up everywhere that we're about to touch the hardware. The net80211 stack takes care of doing RUN<->SLEEP<->(other) state transitions so we don't have to do it in the driver. Next, when to wake things up: * In short - everywhere we touch the hardware. * The hardware will take care of staying awake if things are queued in the transmit queue(s); it'll then transit down to sleep if there's nothing left. This way we don't have to track the software / hardware transmit queue(s) and keep the hardware awake for those. Then, some transmit path fixes that aren't related but useful: * Force EAPOL frames to go out at the lowest rate. This improves reliability during the encryption handshake after 802.11 negotiation. Next, some reset path fixes! * Fix the overlap between reset and transmit pause so we don't transmit frames during a reset. * Some noisy environments will end up taking a lot longer to reset than normal, so extend the reset period and drop the raise the reset interval to be more realistic and give the hardware some time to finish calibration. * Skip calibration during the reset path. Tsk! Then, beacon fixes in station mode! * Add a _lot_ more debugging in the station beacon reset path. This is all quite fluid right now. * Modify the STA beacon programming code to try and take the TU gap between desired TSF and the target TU into account. (Lifted from QCA.) Tested: * AR5210 * AR5211 * AR5212 * AR5413 * AR5416 * AR9280 * AR9285 TODO: * More AP, IBSS, mesh, TDMA testing * Thorough AR9380 and later testing! * AR9160 and AR9287 testing Obtained from: QCA
* Ignore writes to microcode update MSR. This MSR is accessed by RHEL7 guest.neel2014-04-302-0/+5
| | | | Add KTR tracepoints to annotate wrmsr and rdmsr VM exits.
* Only track the power state variable if the power state is changed,adrian2014-04-301-4/+9
| | | | not if the self-generated frame state is changed.
* * Only update ah_powerMode if we're setting the chip sleep state.adrian2014-04-304-12/+27
| | | | | | | | | | | | | | | | Some code will appear soon that is actually setting the chip powerstate separate from the self-generated frames power state. * Allow the AR5416 family chips to actually have the power state changed from the self generated state change. Tested (STA mode): * AR5210 * AR5211 * AR5412 * AR5413 * AR5416 * AR9285
* Make this declaration into a proper function prototype.ian2014-04-291-1/+1
|
* Update comment.marius2014-04-291-1/+1
|
* Given that as of r258002 the last external user is gone, make sched_lockmarius2014-04-291-1/+1
| | | | static.
* Be consistent with the whitespace in the rest of these files.rstone2014-04-292-4/+4
| | | | X-MFC-With: r264007
* Partially revert r265019 - allocating 512 bytes on stackmelifaro2014-04-291-19/+8
| | | | | | | | can be too much for architectures like ARM. Always use rounded malloc instead. Discussed with: jmallett MFC after: 4 weeks
* Move rt_setmetrics() from rtsock.c to route.c.melifaro2014-04-293-16/+25
| | | | | | | | | All rtsock-initiated rte creation/modification are now performed in route.c holding radix tree write lock. This reduces the need for per-rte mutex. Sponsored by: Yandex LLC MFC after: 1 month
* Fix two cases of recursive acquisitions of the vm object lock, onlykib2014-04-291-1/+1
| | | | | | | possible in rare failure situations. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Some Linux guests will implement a 'halt' by disabling the APIC and executingneel2014-04-293-87/+32
| | | | | | | | | | | | | | | | | | the 'HLT' instruction. This condition was detected by 'vm_handle_hlt()' and converted into the SPINDOWN_CPU exitcode . The bhyve(8) process would exit the vcpu thread in response to a SPINDOWN_CPU and when the last vcpu was spun down it would reset the virtual machine via vm_suspend(VM_SUSPEND_RESET). This functionality was broken in r263780 in a way that made it impossible to kill the bhyve(8) process because it would loop forever in vm_handle_suspend(). Unbreak this by removing the code to spindown vcpus. Thus a 'halt' from a Linux guest will appear to be hung but this is consistent with the behavior on bare metal. The guest can be rebooted by using the bhyvectl options '--force-reset' or '--force-poweroff'. Reviewed by: grehan@
* For the VM_PHYSSEG_DENSE case, checking the requested range to fallkib2014-04-291-1/+3
| | | | | | | | | | | | | | | | | into the area backed by vm_page_array wrongly compared end with vm_page_array_size. It should be adjusted by first_page index to be correct. Also, the corner and incorrect case of the requested range extending after the end of the vm_page_array was incorrectly handled by allocating the segment. Fix the comparision for the end of range and return EINVAL if the end extends beyond vm_page_array. Discussed with: royger Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Add SMP support for Zedboard.ian2014-04-294-0/+103
| | | | Submitted by: Thomas Skibo <ThomasSkibo@sbcglobal.net>
* Bump WITNESS_PENDLIST by MAXCPU to account for thegrehan2014-04-291-1/+1
| | | | | | | | | | | | | | pmap pvlist locks which are scaled by MAXCPU. This allows an amd64 system to boot with MAXCPU set to 256, which is currently FreeBSD's hard limit without x2apic support. Compile-tested for other arch's. PR: 185831 Discussed with: jhb MFC after: 3 weeks
* Merge from CheriBSD:brooks2014-04-291-2/+11
| | | | | | | | | | | | | | | | | | | | | | | commit 1d1b908107255ffdff4d17f015d8f057d73cc6cb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Mar 28 16:24:45 2014 +0000 Add a long needed seatbelt. Exit with an error when make is called without a target at the top level rather than poluting the source tree and causing use confusion in future builds. commit a9d9aa341b2f4308a227ab460ba85f1f287ad028 Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Tue Apr 29 16:06:12 2014 +0000 Simplify seatbelt added in 1d1b908 based in feedback. Discussed with: imp@FreeBSD.org Reviewed by: imp Sponsored by: DARPA, AFRL
* Fix "netstat -gW" behavior broken in r259638.melifaro2014-04-291-11/+13
| | | | | | | | | | | | | netstat has two options for printing multicast tables: sysctl (the default one for live systems) and kvm-based one (for cores). It looks like kvm-based one hasn't been working since it's been introduced in r190012 due to absence of mfctablesize kernel symbol. Check for all ipv4-multicast symbols being correctly resolved was introduced in r259638 regardless of 'live' value leading to "No IPv4 MROUTING" error message. Reported by: Olivier Cochard-Labbé MFC after: 1 week
* citrus: Avoid invalid code points.pfg2014-04-291-0/+8
| | | | | | | | | | | | | From the OpenBSD log: The UTF-8 decoder should not accept byte sequences which decode to unicode code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF. http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 http://unicode.org/faq/utf_bom.html#utf8-4 Reported by: Stefan Sperling Obtained from: OpenBSD MFC after: 5 days
* Add regression test for PR kern/189088.asomers2014-04-291-0/+54
| | | | | | PR: kern/189088 MFC after: 3 weeks Sponsored by: Spectra Logic
* NLS is used by the build system.imp2014-04-291-1/+1
|
* Fix a panic when removing an IP address from an interface, if the same addressasomers2014-04-292-3/+47
| | | | | | | | | | | | | | | exists on another interface. The panic was introduced by change 264887, which changed the fibnum parameter in the call to rtalloc1_fib() in ifa_switch_loopback_route() from RT_DEFAULT_FIB to RT_ALL_FIBS. The solution is to use the interface fib in that call. For the majority of users, that will be equivalent to the legacy behavior. PR: kern/189089 Reported by: neel Reviewed by: neel MFC after: 3 weeks X-MFC with: 264887 Sponsored by: Spectra Logic
* Do not use senderr() in rtrequest1_fib_change().melifaro2014-04-291-5/+2
| | | | | Suggested by: glebius MFC after: 4 weeks
* Merge r133175 from upstream:marius2014-04-291-1/+1
| | | | | | | | | | | | | | 2008-03-13 Dennis Czeremin <dennis.czeremin@smiths-heimann.com> PR libstdc++/35566 * include/bits/stl_multimap.h (multimap<>::multimap(_InputIterator, _InputIterator)): Forward to _M_insert_equal, not _M_insert_unique. This patch was GPL2 at the time and fixes a regression introduced with the merge of GCC r129013 in FreeBSD r236829. MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH
* After r264897 restore the ability to add bootoptions from FDT forbz2014-04-291-1/+50
| | | | | | | | | | | platforms which do not use loaders or kernels that want to hardcode options or for FDT passed in by loader. Also fix a build issue by putting the kmdp variable accessed back under the #ifdef FDT; we may wish to revisit decision in which case more code needs changing. Submitted by: brooks
* Add standard SYNOPSIS wording, fix typos, contractions and new sentence -> ↵brueffer2014-04-291-5/+18
| | | | new line.
* Fix formatting of the -a option in usage() to be consistent.scottl2014-04-291-1/+1
| | | | | Obtained from: Netflix, Inc. MFC after: 3 days
* Document the -a option that was added in r262424.scottl2014-04-291-1/+17
| | | | | Obtained from: Netflix, Inc. MFC after: 3 days
* Remove redundant includebdrewery2014-04-291-1/+0
| | | | MFC after: 3 days
* Add dependency for libm to libstdc++. This fixes high -j value buildsimp2014-04-281-0/+1
| | | | | | when not building with clang. Submitted by: ian@
* Allow a virtual machine to be forcibly reset or powered off. This is doneneel2014-04-289-33/+94
| | | | | | | | | | | | | by adding an argument to the VM_SUSPEND ioctl that specifies how the virtual machine should be suspended, viz. VM_SUSPEND_RESET or VM_SUSPEND_POWEROFF. The disposition of VM_SUSPEND is also made available to the exit handler via the 'u.suspended' member of 'struct vm_exit'. This capability is exposed via the '--force-reset' and '--force-poweroff' arguments to /usr/sbin/bhyvectl. Discussed with: grehan@
* Remove note about hw.bus.devctl_disable removal, restoredgjb2014-04-281-4/+0
| | | | | | in r265060. Sponsored by: The FreeBSD Foundation
* Revert r263754, re-adding support for hw.bus.devctl_disable. Breakingbrooks2014-04-281-3/+37
| | | | | | | | | | | | old devd's and thus hosts that get IP addresses from DHCP was too much of a POLA violation. The sysctl may be removed again after r263758 has been merged to at least stable/9 and stable/10, and releases have been cut from those branches. Discussed with: mjg Reported by: theraven, rwatson
OpenPOWER on IntegriCloud