aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add Ubiquiti Rocket M supportWarner Losh2017-02-282-0/+173
| | | | | | | | | | Updated to use geom_uzip Submitted by: Michael Vale <m.vale@live.com.au> Pull Request: https://github.com/freebsd/freebsd/pull/16 Notes: svn path=/head/; revision=314428
* This should have been K3771_INIT.Warner Losh2017-02-281-1/+1
| | | | | | | Pointy Hat to: imp@ Notes: svn path=/head/; revision=314426
* Fix arge0 mdio busWarner Losh2017-02-281-2/+2
| | | | | | | | | | This makes arge0 phy's attach. Submitted by: Michael Vale <m.vale@live.com.au> Pull Request: https://github.com/freebsd/freebsd/pull/16 Notes: svn path=/head/; revision=314423
* Update PICOSTATION_M2HPWarner Losh2017-02-281-0/+3
| | | | | | | | | | Make the random number generator work so we can do WPA encryption on the AP's. Submitted by: Michael Vale <m.vale@live.com.au> Pull Request: https://github.com/freebsd/freebsd/pull/16 Notes: svn path=/head/; revision=314422
* Provide a comment on why stdio.h needs to be included.Scott Long2017-02-281-0/+7
| | | | Notes: svn path=/head/; revision=314420
* Include stdio.h to fix libsbuf build.Jung-uk Kim2017-02-281-0/+1
| | | | | | | Reviewed by: scottl Notes: svn path=/head/; revision=314419
* The kern.geom.part.auto_resize should be tunable.Mariusz Zaborski2017-02-281-1/+1
| | | | Notes: svn path=/head/; revision=314410
* Add support for Vodafone/Huawei K3771.Warner Losh2017-02-282-0/+4
| | | | | | | | | | See also http://www.draisberghof.de/usb_modeswitch/device_reference.txt Submitted by: Dean Hamstead <https://github.com/djzort> Pull Request: https://github.com/freebsd/freebsd/pull/76 Notes: svn path=/head/; revision=314407
* Linux epoll return EEXIST on case when op is EPOLL_CTL_ADD, and the suppliedDmitry Chagin2017-02-281-7/+21
| | | | | | | | | file descriptor fd is already registered with this epoll instance. MFC after: 1 month Notes: svn path=/head/; revision=314404
* Linux epoll return ENOENT error in case when op is EPOLL_CTL_MOD orDmitry Chagin2017-02-281-16/+3
| | | | | | | | | EPOLL_CTL_DEL, and fd is not registered with this epoll instance. MFC after: 1 month Notes: svn path=/head/; revision=314403
* FreeBSD does not have analgue for epill EPOLLPRI event type.Dmitry Chagin2017-02-281-2/+3
| | | | | | | | | | | So, do not set EPOLLPRI event acidently. Also, do not set EPOLLWRNORM and EPOLLRDNORM events as epoll do not set this events. MFC after: 1 month Notes: svn path=/head/; revision=314402
* cxgbe/iw_cxgbe: fix various double-close panics with iWARP sockets.Navdeep Parhar2017-02-284-189/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | Sockets representing the TCP endpoints for iWARP connections are allocated by the ibcore module. Before this revision they were closed either by the ibcore module or the iw_cxgbe hardware driver depending on the state transitions during connection teardown. This is error prone and there were cases where both iw_cxgbe and ibcore closed the socket leading to double-free panics. The fix is to let ibcore close the sockets it creates and never do it in the driver. - Use sodisconnect instead of soclose (preceded by solinger = 0) in the driver to tear down an RDMA connection abruptly. This does what's intended without releasing the socket's fd reference. - Close the socket in ibcore when the iWARP iw_cm_id is destroyed. This works for all kinds of sockets: clients that initiate connections, listeners, and sockets accepted off of listeners. Reviewed by: Steve Wise @ Open Grid Computing, hselasky@ MFC after: 3 days Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D9796 Notes: svn path=/head/; revision=314400
* Add prototype for sbuf_putbuf()Scott Long2017-02-281-0/+1
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=314399
* Local APIC: add support for extended LVT entries found in AMD processorsAndriy Gapon2017-02-283-18/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The extended LVT entries can be used to configure interrupt delivery for various events that are internal to a processor and can use this feature. All current processors that support the feature have four of such entries. The entries are all masked upon the processor reset, but it's possible that firmware may use some of them. BIOS and Kernel Developer's Guides for some processor models do not assign any particular names to the extended LVTs, while other BKDGs provide names and suggested usage for them. However, there is no fixed mapping between the LVTs and the processor events in any processor model that supports the feature. Any entry can be assigned to any event. The assignment is done by programming an offset of an entry into configuration bits corresponding to an event. This change does not expose the flexibility that the feature offers. The change adds just a single method to configure a hardcoded extended LVT entry to deliver APIC_CMC_INT. The method is designed to be used with Machine Check Error Thresholding mechanism on supported processor models. For references please see BKDGs for families 10h - 16h and specifically descriptions of APIC30, APIC400, APIC[530:500] registers. For a description of the Error Thresholding mechanism see, for example, BKDG for family 10h, section 2.12.1.6. http://developer.amd.com/resources/developer-guides-manuals/ Thanks to jhb and kib for their suggestions. Reviewed by: kib Discussed with: jhb MFC after: 5 weeks Relnotes: maybe Differential Revision: https://reviews.freebsd.org/D9612 Notes: svn path=/head/; revision=314398
* Implement sbuf_prf(), which takes an sbuf and outputs itScott Long2017-02-281-12/+34
| | | | | | | | | | | | | | | | | 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
* 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-2873-14628/+4
| | | | | | | | 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-271-0/+7
| | | | | | | | 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
* 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
* 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
* 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