aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Implement sbuf_prf(), which takes an sbuf and outputs itScott Long2017-02-282-13/+44
| | | | | | | | | | | | | | | | | to stdout in the non-kernel case and to the console+log in the kernel case. For the kernel case it hooks the putbuf() machinery underneath printf(9) so that the buffer is written completely atomically and without a copy into another temporary buffer. This is useful for fixing compound console/log messages that become broken and interleaved when multiple threads are competing for the console. Reviewed by: ken, imp Sponsored by: Netflix Notes: svn path=/head/; revision=314397
* Properly indent a default: label and avoid crashing when runningBjoern A. Zeeb2017-02-281-2/+2
| | | | | | | | | | under -v but cannot connect due to trying to print an int as %s [1]. Reported by: andrew [1] MFC after: 3 days Notes: svn path=/head/; revision=314396
* Add SOC_ALTERA_* kernel options per each SoC and use it toRuslan Bukin2017-02-284-18/+65
| | | | | | | | | | | conditionally compile the code. Reviewed by: andrew Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9836 Notes: svn path=/head/; revision=314395
* allwinner: A31: Add ccung driverEmmanuel Vadot2017-02-284-0/+1203
| | | | | | | | | This adds clocks support for the aw_ccung on the A31 SoC. Newer DTS files require this. All the clocks except two CSI are defined and exported on the clock domain. Notes: svn path=/head/; revision=314394
* allwinner: nkmp: Add MUX capabilityEmmanuel Vadot2017-02-283-1/+86
| | | | | | | | Some NKMP clocks have a mux options. Add the capability to aw_clk_nkmp. Notes: svn path=/head/; revision=314393
* Add compatible string.Ruslan Bukin2017-02-281-1/+7
| | | | | | | | | | This restores USB attaching on SOCKIT board after reusing standard DTS files. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=314390
* Add support for Intel Arria 10 SoC Development Kit.Ruslan Bukin2017-02-2814-326/+284
| | | | | | | | | Use standard DTS files for SOCKIT and SOCDK. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=314389
* Make ctl_queue_sense() not sleep.Alexander Motin2017-02-281-14/+8
| | | | | | | | | It may be called in non-sleepable frontend context. MFC after: 2 weeks Notes: svn path=/head/; revision=314387
* allwinner: NKMP clock: add update bitEmmanuel Vadot2017-02-285-31/+203
| | | | | | | | | | | The PLL_DDR clock have an update bit which need to be set after changing the value, add the possibility to define one for NKMP clocks. This allow us to add the missing clocks. We now have the full list of clocks created under the clock domain. Notes: svn path=/head/; revision=314384
* allwinner: NM clock: Add value for fixed factor.Emmanuel Vadot2017-02-281-0/+2
| | | | | | | | The register func for aw_clk_nm didn't copy the value needed for the fixed factor, resulting in all fixed factor not working on NM clocks. Notes: svn path=/head/; revision=314383
* hyperv/hn: Simplify RNDIS packet data offset calculation.Sepherosa Ziehau2017-02-281-5/+2
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D9699 Notes: svn path=/head/; revision=314382
* Remove some locking not needed for modern CAM.Alexander Motin2017-02-281-13/+1
| | | | | | | | | | This driver is full of LORs. This change allows to reduce deadlock chance from 100% to level that allows some tests to be done. MFC after: 2 weeks Notes: svn path=/head/; revision=314375
* Add safety check against too long CDB.Alexander Motin2017-02-281-0/+5
| | | | | | | | | | | SBP-2 specification defined maximum CDB length as 12 bytes. Newer SBP-3 specification allows CDB of any size, but this driver is too old. Proper solution would be to look on maximal ORB size supported by the target. MFC after: 1 week Notes: svn path=/head/; revision=314374
* Remove SVR4 (System V Release 4) binary compatibility support.Gleb Smirnoff2017-02-2883-14975/+12
| | | | | | | | UNIX System V Release 4 is operating system released in 1988. It ceased to exist in early 2000-s. Notes: svn path=/head/; revision=314373
* Use "build" instead of "all" when building ports modulesEnji Cooper2017-02-281-1/+1
| | | | | | | | | | | | | | | | "all" in ports currently means "stage the ports", which requires root today, and brings to light other potential issues, like ENAMETOOLONG with staged directories (bug 161481, etc). This fixes buildkernel for me when run as a non-root user, assuming all of the prerequisites have been installed beforehand and are up-to-date. MFC after: 1 month Discussed with: swills (IRC) Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314372
* Make kernel breakpoints work for book-eJustin Hibbits2017-02-281-5/+18
| | | | | | | | | | | | | | Add the necessary bits to enable kernel breakpoints for Book-E. The entrypoint for program exception is very trivial, so rather than expand it to be similar to AIM, add it into the standard trap handler. This wasn't blocked out as Book-E specific because it is only a minor redundancy over AIM, which should have already called db_trap_glue() at this point. If it's going to panic with a fatal trap anywya, it doesn't matter if it goes through this path again. Notes: svn path=/head/; revision=314371
* Unbreak kernel breakpoints, broken for ~4 years nowJustin Hibbits2017-02-281-1/+1
| | | | | | | | | | | When committing DTrace in 2012/2013 era I inadvertently broke breakpoints, by setting EXC_DTRACE to the same value as BKPT_INST. Change EXC_DTRACE to a different, yet logically identical, trap (tw <all>,31,31). MFC after: 2 weeks Notes: svn path=/head/; revision=314370
* bnxt: propagate RSS hash type to the network stack.Stephen Hurd2017-02-282-14/+41
| | | | | | | | | | | | | | | | RSS hash type will be used to identify the CPU on to which, a receive packet will be queued. This patch extracts the "RSS hash type" from the receive completion and sends it to the stack. Submitted by: Venkatkumar Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed by: shurd Approved by: sbruno MFC after: 1 week Sponsored by: Broadcom Limited Differential Revision: https://reviews.freebsd.org/D9685 Notes: svn path=/head/; revision=314369
* 1. state checks in bxe_tx_mq_start_locked() and bxe_tx_mq_start() to sync ↵David C Somayajulu2017-02-275-86/+318
| | | | | | | | | | | | | | | threads during interface down or detach. 2. add sysctl to set pause frame parameters 3. increase max segs for TSO packets to BXE_TSO_MAX_SEGMENTS (32) 4. add debug messages for PHY 5. HW LRO support restricted to FreeBSD versions 8.x and above. Submitted by:Vaishali.Kulkarni@cavium.com MFC after:5 days Notes: svn path=/head/; revision=314365
* Allow setting access-width for UART registers.Ruslan Bukin2017-02-2736-45/+109
| | | | | | | | | | | | | | | This is required for FDT's standard "reg-io-width" property (similar to "reg-shift" property) found in many DTS files. This fixes operation on Altera Arria 10 SOC Development Kit, where standard ns8250 uart allows 4-byte access only. Reviewed by: kan, marcel Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9785 Notes: svn path=/head/; revision=314362
* Revert r314212 as it break Allwinner boards.Ruslan Bukin2017-02-271-1/+1
| | | | | | | Reported by: manu Notes: svn path=/head/; revision=314360
* Add sysctl to control auto resize of the GEOM metadata.Mariusz Zaborski2017-02-272-0/+19
| | | | | | | | Reviewed by: AllanJude Differential Revision: https://reviews.freebsd.org/D9603 Notes: svn path=/head/; revision=314359
* Announce that sbp_targ(4) does not support initiator mode.Alexander Motin2017-02-271-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=314358
* fix lvt_mode: edge-triggered interrupt mode is set by clearing APIC_LVT_TMAndriy Gapon2017-02-271-1/+1
| | | | | | | | | | | | | The fixed is used only to fix up buggy MPTable information and the trigger mode is probably ignored for the relevant interrupt types anyway. Still, it's better to be standards compliant and have the code do what it says it does. Discussed with: jhb MFC after: 5 days Notes: svn path=/head/; revision=314357
* allwinner: Correct some clocks name for H3 CCU.Emmanuel Vadot2017-02-271-3/+3
| | | | Notes: svn path=/head/; revision=314346
* Add ID for NEC uPD720202 xHCI controller.Bruce M Simpson2017-02-271-0/+2
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=314345
* Return EINVAL when an invalid file descriptor specified.Dmitry Chagin2017-02-271-3/+3
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=314344
* Unify eventfd ioctl method and use it for other similar interfaces.Dmitry Chagin2017-02-271-9/+8
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=314343
* bhyve: document virtio-console in the manpageRoman Bogorodskiy2017-02-271-1/+30
| | | | | | | | | Reviewed by: bcr, wblock, jceel Approved by: grehan Differential Revision: https://reviews.freebsd.org/D9564 Notes: svn path=/head/; revision=314342
* Update devd.conf for ports change 421360Alan Somers2017-02-271-2/+2
| | | | | | | | | | | | Ports change 421360 changed the name and UID of the postgres user Reviewed by: trasz, imp, girgen MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9746 Notes: svn path=/head/; revision=314341
* xen/gntdev: prevent unsynchronized accesses to the map entryRoger Pau Monné2017-02-271-6/+14
| | | | | | | | | | | | | vm_map_lookup_done should only be called when the gntdev has finished poking at the entry. Reported by: alc Reviewed by: alc MFC after: 1 week Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=314340
* Document that the size of AH ICV for HMAC-SHA2-NNN should be half ofAndrey V. Elsukov2017-02-271-5/+4
| | | | | | | | | NNN bits as described in RFC4868. PR: 215978 Notes: svn path=/head/; revision=314339
* Polish handling of different reset flavours.Alexander Motin2017-02-273-93/+101
| | | | | | | | | | The biggest change is that ctl_remove_initiator() now generates I_T NEXUS LOSS event, cleaning part of LUs state related to the initiator. MFC after: 2 weeks Notes: svn path=/head/; revision=314338
* Implement more bit operation functions in the LinuxKPI.Hans Petter Selasky2017-02-271-1/+22
| | | | | | | | | | | Some minor whitespace nits while at it. Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=314337
* Define __sum16 type in the LinuxKPI.Hans Petter Selasky2017-02-271-0/+1
| | | | | | | | MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=314336
* allwinner: Order clocks by offset rather than by type for H3 ccu.Emmanuel Vadot2017-02-273-277/+396
| | | | | | | | Also add a few more supported gates and add comments for which clocks are missing. Notes: svn path=/head/; revision=314333
* allwinner: Add support for lock and fractional mode on NM clockEmmanuel Vadot2017-02-274-30/+141
| | | | | | | | Some PLL have a fractional mode and a lock bit. Add support for it on the NM clock and export the clocks in the clkdom. Notes: svn path=/head/; revision=314329
* Fix startup race initialising ACPI CM battery structures on MacBookPro.Hans Petter Selasky2017-02-271-5/+29
| | | | | | | | | | | | | | | During acpi_cmbat_attach() the acpi_cmbat_init_battery() notification handler is registered. It has been observed this notification handler can be called instantly, before the attach routine has returned. In the notification handler there is a call to device_is_attached() which returns false. Because the softc is set we know an attach is in progress and the fix is simply to wait and try again in this case. Reviewed by: avg @ MFC after: 1 week Notes: svn path=/head/; revision=314328
* Send TERMINATE to firmware when aborting active ATIO.Alexander Motin2017-02-273-7/+24
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=314326
* librss: simplify some NULL checks.Pedro F. Giffuni2017-02-271-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=314322
* dc(1): Merge minor changes from OpenBSD.Pedro F. Giffuni2017-02-263-43/+23
| | | | | | | | | | | | | | Prefer setvbuf() to setlinebuf() for portability. Some style(9) and redundant tests for NULL. These are only meant to ease up merging newer changes but we are skipping changes done in order to accomodate OpenBSD's pledge support. Obtained from: OpenBSD MFC after: 2 weeks Notes: svn path=/head/; revision=314321
* Remove unneeded variable initialization from r314319.Mariusz Zaborski2017-02-261-2/+0
| | | | | | | Pointed out by: kib Notes: svn path=/head/; revision=314320
* Don't try to open devices in the gettc() function which will alwaysMariusz Zaborski2017-02-261-11/+28
| | | | | | | | | | fail in the Capability mode. Instead silently fallback to the syscall method, which is done for example in the gettimeofday(2) function. Reviewed by: kib Notes: svn path=/head/; revision=314319
* Enable pl011 UART FIFOsJayachandran C.2017-02-261-16/+8
| | | | | | | | | | | | The pl011 UART has a 16 entry Tx FIFO and a 16 entry Rx FIFO that have not been used so far. Update the driver to enable the FIFOs and use them in transmit and receive. Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D8819 Notes: svn path=/head/; revision=314318
* Include pcib_private.h for prototypes.Warner Losh2017-02-266-0/+6
| | | | | | | | Noticed by: rpokala@ Sponsored by: Netflix Notes: svn path=/head/; revision=314317
* dc(1): Catch up with OpenBSD tag.Pedro F. Giffuni2017-02-261-1/+1
| | | | | | | | | | OpenBSD rev 1.12 corresponds to our SVN r275162. Update the tag to make easier future updates. No functional change. MFC after: 3 days Notes: svn path=/head/; revision=314316
* net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parametersAndriy Voskoboinyk2017-02-2615-92/+56
| | | | | | | | | | | | | | | | | | | | | | directly from the node. - Use ni_txparms directly instead of calculating them manually every time - Move M_EAPOL flag check upper; otherwise it may be skipped due to 'ucastrate' / 'mcastrate' check - Use 'mgtrate' for control frames too (see ifconfig(8), mgtrate parameter) - Add few more M_EAPOL checks where it was missing (zyd(4), ural(4), urtw(4)) - Few unrelated cleanups Tested with: - Intel 6205 (iwn(4)), STA mode; - WUSB54GC (rum(4)), HOSTAP mode + RTL8188EU (rtwn(4)), STA mode. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D9811 Notes: svn path=/head/; revision=314315
* Return EINVAL in case when an invalid size of signal mask specified.Dmitry Chagin2017-02-261-0/+2
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=314314
* Regen for r314312 (Linux epoll_pwait).Dmitry Chagin2017-02-266-3/+18
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=314313
* Change Linux epoll_pwait syscall definition to match Linux actual one.Dmitry Chagin2017-02-263-3/+6
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=314312