summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.trasz2016-02-291-1/+1
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* sysconf(2) -> sysconf(3)trasz2016-02-291-1/+1
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* sendmsg(3) -> sendmsg(2)trasz2016-02-292-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* dump(1) -> dump(8).trasz2016-02-291-1/+1
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* The tcpdump is section 1, not 8.trasz2016-02-292-6/+5
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Autofs is section 5, not 4.trasz2016-02-292-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix typos in .Xrs.trasz2016-02-292-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix typo.trasz2016-02-291-1/+1
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Mark amd(8) and all related utilities as obsolete.trasz2016-02-298-8/+64
| | | | | | | Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5443
* Document that WITHOUT_ELFCOPY_AS_OBJCOPY will be removedemaste2016-02-291-0/+1
| | | | | | In case ELF Tool Chain's elfcopy introduces any regressions this knob is available as a transition aid. It will be removed once we are confident that any regressions have been fixed.
* Add riscv to the list of architectures for cscope.andrew2016-02-291-1/+1
|
* MFV r296164:pfg2016-02-293-8/+31
| | | | | | | | | | | | Update openresolve to version 3.7.3 including: * Save the initial working directory and change to it just before running any scripts. This avoids scripts putting files accidently where they shouldn't. * Strip trailing dot from search and domain names. * man page improvements. Relnotes: yes
* Fix fdt_get_mem_regions() to work with 64-bit addresseswma2016-02-297-9/+13
| | | | | | | | | | | | Use u_long instead of uint32_t variables to avoid overflow in case of PA space bigger than 32-bit. Obtained from: Semihalf Submitted by: Michal Stanek <mst@semihalf.com> Sponsored by: Annapurna Labs Approved by: cognet (mentor) Reviewed by: andrew, br, wma Differential revision: https://reviews.freebsd.org/D5393
* hyperv/channel: Add sysctl node for channel owner cpusephe2016-02-291-1/+7
| | | | | | | | And add sysctl node for sub-channel's channel id. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5489
* hyperv/hn: Utilize mbuf flowidsephe2016-02-292-4/+13
| | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5488
* Fix build failure introduced by r296182sgalabov2016-02-291-1/+0
| | | | Approved by: adrian (mentor)
* hyperv/hn: Put LRO aggregation limit settings under FreeBSD version checksephe2016-02-291-0/+12
| | | | | | | | This simplifies MFC to 10-stable MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5487
* hyperv/hn: Switch to if_transmit by default after r296178sephe2016-02-291-1/+1
| | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5485
* This review aims at introducing ubldr (loader with U-Boot interface) for MIPSsgalabov2016-02-299-1/+540
| | | | | | | | | | | | | | | | | | | | | | | | (32 and 64-bit, LE and BE). The changes were tested with QEMU's 'mips' target. Most of the implementation was lifted from the ARM version, the appropriate MIPS-specific things were implemented. With these changes I am able to go all the way through the u-boot->ubldr->kernel boot chain in QEMU on all combinations of bit-ness and endian-ness. For the tests I've used FAT32 disk images (as FAT32 is supported by U-boot), which include /boot/kernel/kernel and /boot/kernel/ubldr.bin In U-boot I do: fatload ide 0 <LOAD_ADDR> /boot/kernel/ubldr.bin; go <LOAD_ADDR> where LOAD_ADDR is 80800000 for 32-bit and ffffffff80800000 for 64-bit Then it's the usual ubldr that takes over and loads and starts a kernel. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5313
* These changes attempt to put things in order before the introduction of MIPSsgalabov2016-02-298-22/+51
| | | | | | | | | | | | | | | ubldr. The changes are mostly dealing with removing unnecessary casts from the U-Boot API (we're passing only pointers, no obvious reason to cast them to uint32_t), cleaning up some compiler warnings and using the proper printf format specifiers in order to be able to compile cleanly for both 32-bit and 64-bit MIPS targets. Reviewed by: imp Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5312
* hyperv/channel: Add debug sysctl nodes for channel indicessephe2016-02-293-0/+116
| | | | | | | | | | | | It would serve as a debug tool, if the shared buffer ring's indices stopped updating. Submitted by: HongJiang Zhang <honzhan microsoft com> Reviewed by: sephe, Jun Su <junsu microsoft com> Modified by: sephe MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5402
* hyperv: Use proper fence function to keep store-load order for msgssephe2016-02-291-2/+2
| | | | | | | | | | | sfence only makes sure about the store-store order, which is not sufficient here. Use atomic_thread_fence_seq_cst() as suggested jhb and kib (a locked op in the nutshell, which should have the Reviewed by: jhb, kib, Jun Su <junsu microsoft com> MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5436
* Add entries for Phil Shafer (phil@)phil2016-02-291-0/+5
| | | | | Differential Revision: https://reviews.freebsd.org/D5246 Approved by: sjg (mentor)
* buf_ring/drbr: Add buf_ring_peek_clear_sc and use it in drbr_peeksephe2016-02-292-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike buf_ring_peek, it only supports single consumer mode, and it clears the cons_head if DEBUG_BUFRING/INVARIANTS is defined. The normal use case of drbr_peek for network drivers is: m = drbr_peek(br); err = hw_spec_encap(&m); /* could m_defrag/m_collapse */ (*) if (err) { if (m == NULL) drbr_advance(br); else drbr_putback(br, m); /* break the loop */ } drbr_advance(br); The race is: If hw_spec_encap() m_defrag or m_collapse the mbuf, i.e. the old mbuf was freed, or like the Hyper-V's network driver, that transmission- done does not even require the TX lock; then on the other CPU at the (*) time, the freed mbuf could be recycled and being drbr_enqueue even before the current CPU had the chance to call drbr_{advance,putback}. This triggers a panic in drbr_enqueue duplicated element check, if DEBUG_BUFRING/INVARIANTS is defined. Use buf_ring_peek_clear_sc() in drbr_peek() to fix the above race. This change is a NO-OP, if neither DEBUG_BUFRING nor INVARIANTS are defined. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5416
* Add support for the Freescale dTSEC DPAA-based ethernet controller.jhibbits2016-02-29142-6/+79377
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Freescale's QorIQ line includes a new ethernet controller, based on their Datapath Acceleration Architecture (DPAA). This uses a combination of a Frame manager, Buffer manager, and Queue manager to improve performance across all interfaces by being able to pass data directly between hardware acceleration interfaces. As part of this import, Freescale's Netcomm Software (ncsw) driver is imported. This was an attempt by Freescale to create an OS-agnostic sub-driver for managing the hardware, using shims to interface to the OS-specific APIs. This work was abandoned, and Freescale's primary work is in the Linux driver (dual BSD/GPL license). Hence, this was imported directly to sys/contrib, rather than going through the vendor area. Going forward, FreeBSD-specific changes may be made to the ncsw code, diverging from the upstream in potentially incompatible ways. An alternative could be to import the Linux driver itself, using the linuxKPI layer, as that would maintain parity with the vendor-maintained driver. However, the Linux driver has not been evaluated for reliability yet, and may have issues with the import, whereas the ncsw-based driver in this commit was completed by Semihalf 4 years ago, and is very stable. Other SoC modules based on DPAA, which could be added in the future: * Security and Encryption engine (SEC4.x, SEC5.x) * RAID engine Additional work to be done: * Implement polling mode * Test vlan support * Add support for the Pattern Matching Engine, which can do regular expression matching on packets. This driver has been tested on the P5020 QorIQ SoC. Others listed in the dtsec(4) manual page are expected to work as the same DPAA engine is included in all. Obtained from: Semihalf Relnotes: Yes Sponsored by: Alex Perez/Inertial Computing
* Fix up the ath(4) device names for QCA chipsets.adrian2016-02-292-31/+28
| | | | Submitted by: Tobias Kortkamp <t@tobik.me>
* MFV r296159pfg2016-02-2942-595/+684
| | | | | | Sync our libedit with NetBSD's libedit 2016-02-27. Obtained from: NetBSD
* urtwn: do not filter beacon frames in HOSTAP mode while scanningavos2016-02-291-2/+1
| | | | | | | | | | | | | urtwn_set_rx_bssid_all() will allow to receive beacons only when they are not denied by filter. Revealed by D5474. Tested with RTL8188CUS, HOSTAP mode. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5477
* etc/defaults/rc.conf: fix a typo (wlanddebug -> wlandebug)avos2016-02-281-1/+1
| | | | | Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5480
* net80211: fix a comment for TX lockavos2016-02-281-1/+1
| | | | | Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5476
* net80211: remove redundant locking.avos2016-02-281-4/+4
| | | | | | | | | | | All callers of ieee80211_promisc()/ieee80211_allmulti() (ieee80211_vap_detach(), ieee80211_ioctl(), ap_start() and ap_end()) already hold the com_lock while calling them. Tested with RTL8188EU, STA mode. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5475
* net80211: fix 'taskqueue_drain with non-sleepable locks held' warningavos2016-02-281-3/+9
| | | | | | | Do not run ieee80211_waitfor_parent() when it's not needed. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5446
* - address obsolete Kerberos optionsjgh2016-02-281-11/+11
| | | | | | | | PR: 205168 Submitted by: kevin@bostoncrypto.com Reviewed by: bjk MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5430
* Fix typo in device descriptiongonzo2016-02-281-1/+1
| | | | Spotted by: jmcneill
* Implement process-shared locks support for libthr.so.3, withoutkib2016-02-2827-325/+1168
| | | | | | | | | | | | breaking the ABI. Special value is stored in the lock pointer to indicate shared lock, and offline page in the shared memory is allocated to store the actual lock. Reviewed by: vangyzen (previous version) Discussed with: deischen, emaste, jhb, rwatson, Martin Simmons <martin@lispworks.com> Tested by: pho Sponsored by: The FreeBSD Foundation
* Add Allwinner A10/A20 RTC driver.jmcneill2016-02-282-0/+273
| | | | | | | Submitted by: Vladimir Belian <fate10@gmail.com> Reviewed by: andrew, imp, jmcneill Approved by: gonzo (mentor) Differential Revision: https://reviews.freebsd.org/D5414
* Add SMP support to the ARM PLATFORM code. This will allow us to haveandrew2016-02-287-2/+83
| | | | | | | | different methods to start the secondary cores in a kernel built for multiple SoCs, e.g. with the Allwinner A20 and A31. Sponsored by: ABT systems Ltd Differential Revision: https://reviews.freebsd.org/D5466
* Fix .Xr - autofs(5) is section 5, not 8.trasz2016-02-281-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add speed limit to dd(1). This is useful for testing RCTL disk io limitstrasz2016-02-285-7/+60
| | | | | | | | | (when they actually get committed, that is), and might also come in handy in other situations. Reviewed by: wblock@ (man page) MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Build ofw_cpu.c on all ARM configs using FDT. As we mve towards using theandrew2016-02-284-4/+1
| | | | | | Linux dts files these are more likely to have cpu nodes we can attach to. Sponsored by: ABT Systems Ltd
* Migrate athregs over to use the new stats API.adrian2016-02-282-6/+24
|
* Migrate athstats to use the new stats API.adrian2016-02-282-16/+23
|
* Begin abstracting out the access method for ath(4) ioctls.adrian2016-02-282-0/+277
| | | | | | | | | | | | | Each of the ath* commands do their own direct socket/ioctl calls, which makes it difficult to forklift upgrade things. So, this is the beginning of abstracting out the stats API calls in the hope that I can migrate things to use a /dev/athX file for ioctls and use a more general interface. Tested: * QCA9565 NIC, STA mode
* Sort subdirectories in BSD.debug.distemaste2016-02-281-2/+2
|
* - Add myself to ports-secteamjunovitch2016-02-271-1/+1
| | | | Approved by: delphij, miwi, feld
* Fix PIO mode on A31 and later SoCs.jmcneill2016-02-272-3/+20
| | | | | | | | | | | Newer Allwinner MMC implementations use a different FIFO register offset (0x200 instead of 0x100). Since the FDT uses the same compat string for both cases, base the decision on which FIFO offset to use on the Allwinner SoC family. Reviewed by: Emmanuel Vadot <manu@bidouilliste.com> Approved by: gonzo (mentor) Differential Revision: https://reviews.freebsd.org/D5468
* Remove old compatibility checks.bdrewery2016-02-272-39/+1
| | | | | MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Implement pmap_change_attr() for PowerPC (Book-E only for now)jhibbits2016-02-275-0/+94
| | | | | | | | | | | | | | | | | | | | | | Summary: Some drivers need special memory requirements. X86 solves this with a pmap_change_attr() API, which DRM uses for changing the mapping of the GART and other memory regions. Implement the same function for PowerPC. AIM currently does not need this, but will in the future for DRM, so a default is added for that, for business as usual. Book-E has some drivers coming down that do require non-default memory coherency. In this case, the Datapath Acceleration Architecture (DPAA) based ethernet controller has 2 regions for the buffer portals: cache-inhibited, and cache-enabled. By default, device memory is cache-inhibited. If the cache-enabled memory regions are mapped cache-inhibited, an alignment exception is thrown on access. Test Plan: Tested with a new driver to be added after this (DPAA dTSEC ethernet driver). No alignment exceptions thrown, driver works as expected with this. Reviewed By: nwhitehorn Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D5471
* Move another range check to use RMAN_IS_DEFAULT_RANGE().jhibbits2016-02-271-1/+1
|
* Remove reaming files of the Casper daemon.oshogbo2016-02-275-115/+0
| | | | | Reported by: emaste Approved by: pjd (mentor)
OpenPOWER on IntegriCloud