summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * libedit: replace 0 with NULL for pointers.pfg2016-04-092-4/+4
| | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: Christos Zoulas
| * Add couple new constants from SPC5r08.mav2016-04-091-0/+2
| |
| * libpam: replace 0 with NULL for pointers.pfg2016-04-092-3/+3
| | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: des
| * libfetch: replace 0 with NULL for pointers.pfg2016-04-091-1/+1
| | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: des
| * ixl(4): replace 0 with NULL for pointers.pfg2016-04-092-3/+3
| | | | | | | | | | | | | | Found by devel/coccinelle. Differential Revision: https://reviews.freebsd.org/D5894 Reviewed by: erj
| * sh: Fix some unquoted variables in tests.jilles2016-04-093-7/+7
| | | | | | | | | | The builtins/getopts1.0 test failed if a single-character file existed in the current directory.
| * Register symbolic port/node names in FC name server.mav2016-04-096-6/+181
| | | | | | | | | | | | | | | | | | This is cosmetics that simplifies identification of new ports on FC switch. It would be good to use target name from CTL here instead of hostname, but it is not passed here through CAM now. MFC after: 2 weeks
| * Add more fine-grained kernel options for NUMA support.jhb2016-04-0910-43/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | VM_NUMA_ALLOC is used to enable use of domain-aware memory allocation in the virtual memory system. DEVICE_NUMA is used to enable affinity reporting for devices such as bus_get_domain(). MAXMEMDOM must still be set to a value greater than for any NUMA support to be effective. Note that 'cpuset -gd' always works if MAXMEMDOM is enabled and the system supports NUMA. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5782
| * ioat(4): ioat_get_dmaengine(): Add M_WAITOK modecem2016-04-094-7/+36
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * Mfp: r296310,r296343bz2016-04-091-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It looks like as with the safety belt of DELAY() fastened (*) we can completely tear down and free all memory for TCP (after r281599). (*) in theory a few ticks should be good enough to make sure the timers are all really gone. Could we use a better matric here and check a tcbcb count as an optimization? PR: 164763 Reviewed by: gnn, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5734
| * Reduce code duplication when executing Passthrough IOCB.mav2016-04-091-187/+80
| | | | | | | | MFC after: 2 weeks
| * Mfp: r296260bz2016-04-091-2/+1
| | | | | | | | | | | | | | | | | | | | The tcp_inpcb (pcbinfo) zone should be safe to destroy. PR: 164763 Reviewed by: gnn MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5732
| * Enable PHY regulator when the optional "phy-supply" property is present.jmcneill2016-04-091-0/+11
| | | | | | | | Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
| * Mfp: r296259bz2016-04-092-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We attach the "counter" to the tcpcbs. Thus don't free the TCP Fastopen zone before the tcpcbs are gone, as otherwise the zone won't be empty. With that it should be safe to destroy the "tfo" zone without leaking the memory. PR: 164763 Reviewed by: gnn MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5731
| * Create /usr/local/etc before filling things into it.phk2016-04-091-2/+3
| | | | | | | | | | | | Only run mtree if the NANO_CUST_FILES_MTREE is nonempty Also umount the packages on non-signal failure
| * Mfp: r296309bz2016-04-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | While there is no dependency interaction, stopping the timer before freeing the rest of the resources seems more natural and avoids it being scheduled an extra time when it is no longer needed. Reviewed by: gnn, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5733
| * Mfp: r296345bz2016-04-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | No need to keep type stability on raw sockets zone. We've also been running with a KASSERT since r222488 to make sure the ipi_count is 0 on destroy. PR: 164763 Reviewed by: gnn MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5735
| * Mfp: r296346bz2016-04-091-2/+1
| | | | | | | | | | | | | | | | | | No reason identified to keep UMA_ZONE_NOFREE here. Reviewed by: gnn MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5736
| * Try to unbreak the build: the 'vap' variable is only used if ieee80211bz2016-04-091-1/+1
| | | | | | | | debugging compile is on.
| * Make the KASSERT message in hash destroy more informative.bz2016-04-091-1/+2
| | | | | | | | | | | | | | | | | | | | While the pointer might not be too helpful, the malloc type might at least give a good hint about which hashtbl we are talking. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Reviewed by: gnn, emaste Differential Revision: https://reviews.freebsd.org/D5802
| * [net80211] print out the channel type (eg a, b, g, n) when creatingadrian2016-04-091-2/+3
| | | | | | | | an IBSS network.
| * Fix a masking bug for e500 PMC.jhibbits2016-04-091-3/+4
| | | | | | | | | | No idea how this slipped through my regression testing. pe_code is the event to count, pe_cpu is the CPU family mask.
| * [ath] Only process beacon frames for the IBSS/BSSID if appropriate.adrian2016-04-091-64/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't use arbitrary frames for the average RX RSSI - only frames from the current BSSID * Don't log / do the syncbeacon logic for another BSSID and definitely don't do the syncbeacon call if we miss beacons outside of STA mode. * Don't do the IBSS merge bits if the current node plainly won't ever match our current BSS (ie, the IBSS doesn't have to match, but all the same bits that we check in ieee80211_ibss_merge() have to match.) Tested: * ath(4), AR9380, IBSS mode, surrounded by a lot of IBSS 11ac networks. Sponsored by: Eva Automation, Inc.
| * [net8021] Pull out the ibss check code into a public function.adrian2016-04-092-15/+30
| | | | | | | | | | | | | | | | | | | | | | | | The ath(4) driver now sees beacons and management frames for different BSSIDs in IBSS mode, which is a problem when you're in a very busy IBSS environment. So, expose this function so drivers can use it to check if the current RX node is actually for a BSS we need to pay attention to or not. PR: kern/208644 Sponsored by: Eva Automation. Inc.
| * [net80211] revert part of r282405 in order to restore IBSS behaviour.adrian2016-04-091-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents nodes being created for peers on BSSes that are not our own. (Ie, same channel, IBSS, but different BSS.) The "IBSS merge" thing was fixed by me enabling "see all beacons" in the ath(4) driver a few months ago. Trouble is, we now need the filtering again. Tested: * ath(4), IBSS, on a very busy IBSS channel with lots (> 15) IBSS networks. PR: kern/208643 Sponsored by: Eva Automation, Inc.
| * Fix incorrect pin definitions for Allwinner A31.jmcneill2016-04-081-20/+20
| |
| * Attach hwreset resources at the same time as clock resources.jmcneill2016-04-081-1/+2
| |
| * Make it possible to tweak RCTL throttling sysctls at runtime.trasz2016-04-081-17/+110
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Fix sending TSO packets larger than single DMA segment on VNICzbb2016-04-081-7/+1
| | | | | | | | | | | | | | | | | | Due to the bug in the number of 'GATHER' subdescriptors for TSO packets, VNIC was not able to transmit more than one DMA segment with TSO enabled. Obtained from: Semihalf Sponsored by: Cavium
| * Fix MIPS INTRNG omissions, add soft/hard interrupts with different namessgalabov2016-04-081-12/+12
| | | | | | | | | | | | Reviewed by: kan Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5888
| * Introduce better locking for mtk_gpio_v[12] driverssgalabov2016-04-082-21/+79
| | | | | | | | | | | | Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5887
| * Introduce Mediatek/Ralink PCIe supportsgalabov2016-04-082-0/+1653
| | | | | | | | | | | | | | | | | | | | | | This revision introduces PCIe support for the relevant Mediatek/Ralink SoCs. Currently the PCIe support is not converted to INTRNG, this may be a task for the future. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5886
| * Introduce XHCI support for MT7621 SoCsgalabov2016-04-081-0/+298
| | | | | | | | | | | | | | | | | | | | Tested on a MT7621 board, similar to the WiTi board. More testing will be required to confirm everything is fine, but things look good so far. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5885
| * Disable USB PHY slew rate calibration for Mediatek SoCs for nowsgalabov2016-04-081-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB on both MT7621 and MT7688 seems to work much better without doing slew rate calibration. These are the only two SoCs, apart from MT7628, which actually make use of the slew rate calibration routines implemented in the mtk_usb_phy driver. Since MT7628 is actually a superset of MT7688 things should be the same for it as well. We do not remove the code, we simply define it out. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5884
| * Fix wrong memory mappingsgalabov2016-04-081-1/+1
| | | | | | | | | | | | | | | | | | In mtk_soc.c memory is mapped incorrectly for MT7621. This revision fixes this. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5882
| * bsdinstall/zfsboot should create /tmp and /var/tmp if they do not existallanjude2016-04-081-0/+2
| | | | | | | | | | | | | | PR: 208629 PR: 208568 Submitted by: Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks
| * Do not add swap to fstab when swapsize is 0allanjude2016-04-081-2/+2
| | | | | | | | | | | | | | | | | | If a user requested encrypted swap, but 0 sized, it would still be added to fstab PR: 208630 Submitted by: Ganael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks Sponsored by: ScaleEngine Inc.
| * topo_set_pu_id: turn a check into an assertionavg2016-04-081-2/+2
| | | | | | | | | | | | The new id must not be present in any cpu set in any topology element. MFC after: 30 days
| * zio write issue threads should have lower (numerically greater) priorityavg2016-04-081-1/+1
| | | | | | | | | | | | | | | | This is because they might do data compression which is quite CPU expensive. The original code is correct for illumos, because there a higher priority corresponds to a greater number. MFC after: 2 weeks
| * Handle whois referrals between RIRsfanf2016-04-081-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is rather ugly, because the RIPE and APNIC whois servers do not provide referrals for address blocks that they do not manage. However ARIN is usually the right place or knows the right place so we try there. The particular instance which clued me in to this bug is U.Mich. 141.211.0.0/16 for which the referral chain should be IANA -> RIPE -> ARIN. RIPE's RDAP does provide useful redirects (for example try `curl -I http://rdap.db.ripe.net/ip/141.211.0.0) so maybe their whois server can be improved. AfriNIC's whois server gives more direct referrals, but they are designed to be human-readable. Ugly, but we can manage. The issue of referrals between RIRs is likely to become more important in the future whith the increasing number of cross-region IP address block transfers increases.
| * Speedup BGX link polling on ARM64wma2016-04-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The previous values caused the callout thread stall for 100ms each 2s if no link is present. Dtrace analysis showed that it has significant impact on overall interrupt performance. Decrease these values by a factor of 100. Obtained from: Semihalf Sponsored by: Cavium Reviewed by: zbb Differential Revision: https://reviews.freebsd.org/D5854
| * Use __FBSDID() for .c files from lib/libthr/thread.kib2016-04-0852-112/+158
| | | | | | | | Sponsored by: The FreeBSD Foundation
| * Fix regression introduced in r296986.ae2016-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently we don't keep zoneid in in6_ifaddr structure, because there is still some code, that doesn't properly initialize sin6_scope_id, but some functions use sa_equal() for addresses comparison. sa_equal() compares full sockaddr_in6 structures and such comparison will fail. For now use zero zoneid in in6ifa_ifwithaddr(). It is safe, because used address is in embedded form. In future we will use zoneid, so mark it with XXX comment. Reported by: kp Tested by: kp
| * Use ANSI C function definitions, fix spelling in a comment.kib2016-04-083-4/+5
| | | | | | | | Sponsored by: The FreeBSD Foundation
| * Add function for mapping SRAM-D area to USB0 (OTG) controller. Use a lowerjmcneill2016-04-082-1/+21
| | | | | | | | | | pass number to ensure that this driver is loaded before EMAC or OTG, regardless of the order of nodes in the DT.
| * Use the ABI-prescribed name for SHT_X86_64_UNWIND in the loader andkib2016-04-082-9/+9
| | | | | | | | | | | | kernel linker, after the r297686. Sponsored by: The FreeBSD Foundation
| * Assert that the lock objects put into the off-page, fit into the page.kib2016-04-085-0/+15
| | | | | | | | Sponsored by: The FreeBSD Foundation
| * hyperv: Revert r297481sephe2016-04-081-12/+2
| | | | | | | | | | | | | | | | Use vm_guest == VM_GUEST_HV is not enough to determine whether FreeBSD is running on Hyper-V or not. What a mess. Reported by: smokehydration tutanota com Sponsored by: Microsoft OSTC
| * Add new USB quirk.hselasky2016-04-082-0/+6
| | | | | | | | | | | | Submitted by: AJ <aleksanderlothe@live.com> PR: 208623 MFC after: 1 week
| * Fix comment.kevlo2016-04-081-3/+3
| |
OpenPOWER on IntegriCloud