svn commit: r285757 - stable/9/sys/ofed/include/linux

2015-07-21 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 21 16:53:45 2015 New Revision: 285757 URL: https://svnweb.freebsd.org/changeset/base/285757 Log: MFC r285088: Fix broken implementation of "kvasprintf()" function by adding missing kmalloc() call. Make function global instead of static inline to fix compiler

svn commit: r287273 - stable/9/sys/dev/usb

2015-08-28 Thread Hans Petter Selasky
Author: hselasky Date: Sat Aug 29 06:17:39 2015 New Revision: 287273 URL: https://svnweb.freebsd.org/changeset/base/287273 Log: MFC r286799: Fix race in USB PF which can happen if we stop tracing exactly when the kernel is tapping an USB transfer. This leads to a NULL pointer access. The s

svn commit: r289009 - in stable/9: share/man/man4 sys/dev/usb/quirk

2015-10-08 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 8 07:19:57 2015 New Revision: 289009 URL: https://svnweb.freebsd.org/changeset/base/289009 Log: MFC r288180: Implement support for reading USB quirks from the kernel environment. Refer to the usb_quirk(4) manual page for more details on how to use this new f

svn commit: r289014 - stable/9/sys/dev/usb/controller

2015-10-08 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 8 07:27:25 2015 New Revision: 289014 URL: https://svnweb.freebsd.org/changeset/base/289014 Log: MFC r287355, r287772 and r287825: Add new USB PCI IDs. PR: 202807 Submitted by: Dmitry Luhtionov Differential Revision:https://reviews.fre

svn commit: r289015 - in stable/9/sys/dev/usb: . quirk

2015-10-08 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 8 07:29:30 2015 New Revision: 289015 URL: https://svnweb.freebsd.org/changeset/base/289015 Log: MFC r287321: Add new USB quirk. PR: 202783 Modified: stable/9/sys/dev/usb/quirk/usb_quirk.c stable/9/sys/dev/usb/usbdevs Directory Properties: s

svn commit: r289019 - in stable/9: share/man/man3 sys/sys

2015-10-08 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 8 08:06:23 2015 New Revision: 289019 URL: https://svnweb.freebsd.org/changeset/base/289019 Log: MFC r284915: Make the system queue header file fully usable within C++ programs by adding macros to define class lists. This change is backwards compatible for

svn commit: r289022 - in stable/9/sys: net netinet

2015-10-08 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 8 08:55:34 2015 New Revision: 289022 URL: https://svnweb.freebsd.org/changeset/base/289022 Log: MFC r287775: Update TSO limits to include all headers. To make driver programming easier the TSO limits are changed to reflect the values used in the BUSDMA ta

svn commit: r289214 - stable/9/share/man/man4

2015-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Tue Oct 13 08:10:21 2015 New Revision: 289214 URL: https://svnweb.freebsd.org/changeset/base/289214 Log: MFC r288273: Fix spelling. PR: 203249 Modified: stable/9/share/man/man4/usb_quirk.4 Directory Properties: stable/9/share/ (props changed) stab

svn commit: r289216 - in stable/9/sys/dev/usb: . serial

2015-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Tue Oct 13 08:16:17 2015 New Revision: 289216 URL: https://svnweb.freebsd.org/changeset/base/289216 Log: MFC r287592 and r287616: Add new USB ID. PR: 202968 Modified: stable/9/sys/dev/usb/serial/u3g.c stable/9/sys/dev/usb/usbdevs Directory Properties:

svn commit: r289217 - stable/9/usr.bin/usbhidaction

2015-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Tue Oct 13 08:19:21 2015 New Revision: 289217 URL: https://svnweb.freebsd.org/changeset/base/289217 Log: MFC r288335: Store PID after becoming a daemon() and not before to ensure the correct PID gets written to the PID file. PR: 203252 Modified: stabl

svn commit: r290333 - stable/9/sys/dev/usb/controller

2015-11-03 Thread Hans Petter Selasky
Author: hselasky Date: Tue Nov 3 10:32:27 2015 New Revision: 290333 URL: https://svnweb.freebsd.org/changeset/base/290333 Log: MFC r285914, r289029, r289030 and r289560: - Move the remainder of host controller capability registers reading from xhci_start_controller() to xhci_init(). These

svn commit: r290608 - stable/9/sys/dev/usb/net

2015-11-09 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 9 11:27:31 2015 New Revision: 290608 URL: https://svnweb.freebsd.org/changeset/base/290608 Log: MFC r290441: Fix for unaligned IP-header. The mbuf length fields must be set before m_adj() is called else m_adj() will not always adjust the mbuf and an unali

svn commit: r291063 - stable/9/sys/dev/usb

2015-11-19 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 19 09:54:28 2015 New Revision: 291063 URL: https://svnweb.freebsd.org/changeset/base/291063 Log: MFC r290489: Add helper function to check if a USB page cache buffer is properly aligned to reduce the use of bounce buffers in PIO mode. Modified: stable/9/sys/

svn commit: r291066 - in stable/9/sys/dev/usb: . input

2015-11-19 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 19 10:01:50 2015 New Revision: 291066 URL: https://svnweb.freebsd.org/changeset/base/291066 Log: MFC r290639: Update the wsp driver to support newer touch pads, like found in MacBookPro11,4 and MacBook12,1. This update adds support for the force touch paramet

svn commit: r291203 - stable/9/sys/dev/ti

2015-11-23 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 23 13:38:46 2015 New Revision: 291203 URL: https://svnweb.freebsd.org/changeset/base/291203 Log: MFC r284722 and r284724: Fix endless recursion in ti(4)'s ti_ifmedia_upd(), found by clang 3.7.0. Modified: stable/9/sys/dev/ti/if_ti.c Directory Properties: sta

svn commit: r291206 - stable/9/sys/dev/usb/input

2015-11-23 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 23 13:48:28 2015 New Revision: 291206 URL: https://svnweb.freebsd.org/changeset/base/291206 Log: MFC r277974: Fix a bunch of -Wcast-qual warnings in sys/dev/usb/input/uhid.c, by using __DECONST. No functional change. Differential Revision: https://reviews

svn commit: r291251 - stable/9/sys/dev/usb

2015-11-24 Thread Hans Petter Selasky
Author: hselasky Date: Tue Nov 24 12:19:20 2015 New Revision: 291251 URL: https://svnweb.freebsd.org/changeset/base/291251 Log: MFC r290326: Relax the BUS_DMA_KEEP_PG_OFFSET requirement to allow optimising allocation of DMA bounce buffers. Discussed with: ian @ Modified: stable

svn commit: r291255 - stable/9/sys/dev/usb/input

2015-11-24 Thread Hans Petter Selasky
Author: hselasky Date: Tue Nov 24 12:30:21 2015 New Revision: 291255 URL: https://svnweb.freebsd.org/changeset/base/291255 Log: MFC r291146: Add support for Kana and Eisu keys to the USB keyboard driver. PR: 204709 Modified: stable/9/sys/dev/usb/input/ukbd.c Directory Propert

svn commit: r292108 - stable/9/sys/ofed/include/linux

2015-12-11 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 11 14:53:40 2015 New Revision: 292108 URL: https://svnweb.freebsd.org/changeset/base/292108 Log: MFC r291690: Remove incorrect defines. The proper version of these macros is defined in linux/etherdevice.h. Sponsored by: Mellanox Technologies Modified: s

svn commit: r292109 - stable/9/sys/ofed/include/linux

2015-12-11 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 11 14:56:19 2015 New Revision: 292109 URL: https://svnweb.freebsd.org/changeset/base/292109 Log: MFC r291693: Add some structures and defines which will be used when decoding small form factor, SFF, standards compliant ethernet EEPROMs. Obtained from:

svn commit: r292115 - in stable/9/sys: modules/mlxen ofed/drivers/net/mlx4 ofed/include/linux/mlx4

2015-12-11 Thread Hans Petter Selasky
Author: hselasky Date: Fri Dec 11 18:28:20 2015 New Revision: 292115 URL: https://svnweb.freebsd.org/changeset/base/292115 Log: MFC r283612, r290710, r291694, r291699 and r291793: - Add SIOCGI2C ioctl support to the driver. Would work only on ConnectX-3 with fresh firmware. The low level c

svn commit: r292184 - in stable/9/sys/dev/usb: . serial wlan

2015-12-14 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 14 09:42:39 2015 New Revision: 292184 URL: https://svnweb.freebsd.org/changeset/base/292184 Log: MFC r263985, r275646, r281745, r287575 and r289028: Add more USB IDs. PR: 199522 PR: 188046 Modified: stable/9/sys/dev/usb/serial/u3g.c stable/9/sys/d

svn commit: r292188 - stable/9/etc/devd

2015-12-14 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 14 09:53:18 2015 New Revision: 292188 URL: https://svnweb.freebsd.org/changeset/base/292188 Log: MFC r291703: Regenerate usb.conf . Modified: stable/9/etc/devd/usb.conf Directory Properties: stable/9/etc/ (props changed) Modified: stable/9/etc/devd/usb.co

svn commit: r292193 - stable/9/sys/ofed/include/linux

2015-12-14 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 14 10:04:57 2015 New Revision: 292193 URL: https://svnweb.freebsd.org/changeset/base/292193 Log: MFC r290003: Add support for binding IRQs to CPUs in the LinuxKPI. The new function added is for BSD only and does not exist in Linux. Sponsored by: Mellanox T

svn commit: r293147 - stable/9/sys/dev/usb/controller

2016-01-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 4 07:29:19 2016 New Revision: 293147 URL: https://svnweb.freebsd.org/changeset/base/293147 Log: MFC r291199: Fix compile warning about shifting signed negative constant. Modified: stable/9/sys/dev/usb/controller/uhci.h Modified: stable/9/sys/dev/usb/controll

svn commit: r293149 - stable/9/sys

2016-01-04 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 4 08:39:56 2016 New Revision: 293149 URL: https://svnweb.freebsd.org/changeset/base/293149 Log: Add missed mergeinfo. Modified: Directory Properties: stable/9/sys/ (props changed) ___ svn-src-stable-9@freebsd.org ma

svn commit: r293737 - stable/9/sys/ofed/include/linux

2016-01-12 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jan 12 09:03:39 2016 New Revision: 293737 URL: https://svnweb.freebsd.org/changeset/base/293737 Log: MFC r292989: Handle when filedescriptors are closed before initialized. An early fdclose() call can cause fget_unlocked() to fail. Modified: stable/9/sys/ofed/in

svn commit: r296445 - stable/9/sys/dev/usb

2016-03-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Mar 7 09:39:35 2016 New Revision: 296445 URL: https://svnweb.freebsd.org/changeset/base/296445 Log: MFC r295923: Be more verbose when truncating number of HID items. Suggested by: Larry Rosenman Modified: stable/9/sys/dev/usb/usb_hid.c Directory Properties:

svn commit: r296447 - stable/9/sys/dev/usb/controller

2016-03-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Mar 7 10:02:31 2016 New Revision: 296447 URL: https://svnweb.freebsd.org/changeset/base/296447 Log: MFC r295928: Configure the correct bMaxPacketSize for control endpoints before requesting the initial complete device descriptor and not as part of the subsequent

svn commit: r297642 - stable/9/sys/dev/usb/quirk

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:15:53 2016 New Revision: 297642 URL: https://svnweb.freebsd.org/changeset/base/297642 Log: MFC r296342: Allow for overlapping quirk device ranges. Prior to this patch only the first device entry matching the USB vendor, product and revision would be sea

svn commit: r297647 - stable/9/sys/amd64/include

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:23:21 2016 New Revision: 297647 URL: https://svnweb.freebsd.org/changeset/base/297647 Log: MFC r294526: Add missing atomic wrapper macro. Reviewed by: alfred @ Sponsored by: Mellanox Technologies Modified: stable/9/sys/amd64/include/atomic.h Dire

svn commit: r297649 - stable/9/sys/ofed/drivers/infiniband/ulp/ipoib

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:31:17 2016 New Revision: 297649 URL: https://svnweb.freebsd.org/changeset/base/297649 Log: MFC r296909: Fix witness panic in the ipoib_ioctl() function when unloading the ipoib module. The bpfdetach() function is trying to turn off promiscious mode o

svn commit: r297650 - stable/9/sys/ofed/drivers/net/mlx4

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:33:40 2016 New Revision: 297650 URL: https://svnweb.freebsd.org/changeset/base/297650 Log: MFC r296910: Use hardware computed Toeplitz hash for incoming flowids Use the Toeplitz hash value as source for the flowid. This makes the hash value more suit

svn commit: r297653 - stable/9/sys/ofed/drivers/net/mlx4

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:38:18 2016 New Revision: 297653 URL: https://svnweb.freebsd.org/changeset/base/297653 Log: MFC r296987: Add missing curly brackets in for loop. Sponsored by: Mellanox Technologies Modified: stable/9/sys/ofed/drivers/net/mlx4/en_port.c Directory Prop

svn commit: r297654 - stable/9/sys/contrib/rdma/krping

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:39:55 2016 New Revision: 297654 URL: https://svnweb.freebsd.org/changeset/base/297654 Log: MFC r296934: Fix crash in krping when run as a client due to NULL pointer access. Initialize pointer in question which is used only when fast registers mode is se

svn commit: r297657 - stable/9/sys/ofed/include/linux

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:45:31 2016 New Revision: 297657 URL: https://svnweb.freebsd.org/changeset/base/297657 Log: MFC r297444: Fix bugs in currently unused bit searching loop. Sponsored by: Mellanox Technologies Modified: stable/9/sys/ofed/include/linux/bitops.h Directory

svn commit: r297659 - stable/9/sys/ofed/include/asm

2016-04-07 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 7 07:53:56 2016 New Revision: 297659 URL: https://svnweb.freebsd.org/changeset/base/297659 Log: MFC r294520: LinuxKPI atomic fixes: - Fix implementation of atomic_add_unless(). The atomic_cmpset_int() function returns a boolean and not the previous value o

svn commit: r298774 - stable/9/sys/ofed/drivers/net/mlx4

2016-04-29 Thread Hans Petter Selasky
Author: hselasky Date: Fri Apr 29 11:10:43 2016 New Revision: 298774 URL: https://svnweb.freebsd.org/changeset/base/298774 Log: MFC r297966: Add missing port_up checks. When downing a mlxen network adapter we need to check the port_up variable to ensure we don't continue to transmit dat

svn commit: r298776 - stable/9/sys/ofed/drivers/net/mlx4

2016-04-29 Thread Hans Petter Selasky
Author: hselasky Date: Fri Apr 29 11:15:48 2016 New Revision: 298776 URL: https://svnweb.freebsd.org/changeset/base/298776 Log: MFC r297967: Ensure the received IP header gets 32-bits aligned. The FreeBSD's TCP/IP stack assumes that the IP-header is 32-bits aligned when decoding it. Els

svn commit: r298777 - stable/9/sys/ofed/drivers/net/mlx4

2016-04-29 Thread Hans Petter Selasky
Author: hselasky Date: Fri Apr 29 11:17:25 2016 New Revision: 298777 URL: https://svnweb.freebsd.org/changeset/base/298777 Log: MFC r297968: Remove some unused fields. Sponsored by: Mellanox Technologies Modified: stable/9/sys/ofed/drivers/net/mlx4/en_netdev.c stable/9/sys/ofed/drive

svn commit: r298780 - stable/9/sys/ofed/drivers/infiniband/ulp/ipoib

2016-04-29 Thread Hans Petter Selasky
Author: hselasky Date: Fri Apr 29 11:31:27 2016 New Revision: 298780 URL: https://svnweb.freebsd.org/changeset/base/298780 Log: MFC r298458: Add missing set of the current VNET when inputting IP packets in IPoIB. This fixes a kernel panic when using IPoIB with VIMAGE and infiniband.

svn commit: r298782 - in stable/9/sys/dev/usb: . quirk

2016-04-29 Thread Hans Petter Selasky
Author: hselasky Date: Fri Apr 29 11:38:45 2016 New Revision: 298782 URL: https://svnweb.freebsd.org/changeset/base/298782 Log: MFC r297696 and r298424: Add new USB quirks. Submitted by: AJ PR: 208623 Submitted by: Naram Qashat PR: 208642 Modified: stable/9/

svn commit: r299261 - stable/9/etc/devd

2016-05-09 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 9 13:13:55 2016 New Revision: 299261 URL: https://svnweb.freebsd.org/changeset/base/299261 Log: MFC r298783: Regenerate usb.conf . Modified: stable/9/etc/devd/usb.conf Directory Properties: stable/9/etc/ (props changed) Modified: stable/9/etc/devd/usb.co

svn commit: r301251 - stable/9/sys/dev/usb

2016-06-03 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 3 08:50:44 2016 New Revision: 301251 URL: https://svnweb.freebsd.org/changeset/base/301251 Log: MFC r299060: Extend the UQ_NO_STRINGS quirk to also cover the USB language string descriptor. This fixes enumeration of some older Samsung Galaxy S3 phones. Modi

svn commit: r301254 - stable/9/sys/dev/usb

2016-06-03 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 3 08:56:54 2016 New Revision: 301254 URL: https://svnweb.freebsd.org/changeset/base/301254 Log: MFC r300667: Check for signals when locking the USB enumeration thread from userspace, so that USB applications can be killed if an enumeration thread should be s

svn commit: r301262 - stable/9/sys/kern

2016-06-03 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jun 3 09:17:22 2016 New Revision: 301262 URL: https://svnweb.freebsd.org/changeset/base/301262 Log: MFC r300489: Use DELAY() instead of _sleep() when SCHEDULER_STOPPED() is set inside pause_sbt(). This allows pause() to continue working during a panic() which is

svn commit: r302267 - stable/9/sys/dev/usb/controller

2016-06-29 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jun 29 10:23:19 2016 New Revision: 302267 URL: https://svnweb.freebsd.org/changeset/base/302267 Log: MFC r302076: Update the definition for number of scratch pages to match the latest version of the XHCI specification. Make sure the code can handle the maximum nu

svn commit: r302273 - stable/9/lib/libusb

2016-06-29 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jun 29 10:46:10 2016 New Revision: 302273 URL: https://svnweb.freebsd.org/changeset/base/302273 Log: MFC r301842: Implement code to stop all USB endpoints before executing a USB device reset command, alternate setting command or set configuration command. Else Li

svn commit: r302276 - stable/9/lib/libusb

2016-06-29 Thread Hans Petter Selasky
gt;bDevCapabilityType != LIBUSB_BT_CONTAINER_ID) + return (LIBUSB_ERROR_INVALID_PARAM); + if (dev_cap->bLength < LIBUSB_BT_CONTAINER_ID_SIZE) + return (LIBUSB_ERROR_IO); + + desc = malloc(sizeof(*desc)); + if (desc == NULL) + return (LIBUSB_ERROR_NO_M

svn commit: r303994 - stable/9/sys/dev/sound/usb

2016-08-12 Thread Hans Petter Selasky
Author: hselasky Date: Fri Aug 12 07:59:06 2016 New Revision: 303994 URL: https://svnweb.freebsd.org/changeset/base/303994 Log: MFC r301039: Add support for simplex USB MIDI devices, which only provide BULK or INTERRUPT endpoints for moving data in one direction, like the KeyRig 49 from M-

svn commit: r303997 - stable/9/sys/dev/usb/controller

2016-08-12 Thread Hans Petter Selasky
Author: hselasky Date: Fri Aug 12 08:07:19 2016 New Revision: 303997 URL: https://svnweb.freebsd.org/changeset/base/303997 Log: MFC r302371: Fix regression issue with XHCI on 32-bit ARMv7 Armada-38x. Make sure "struct xhci_dev_ctx_addr" fits into a single 4K page until further. Modified:

svn commit: r304129 - stable/9/sys/dev/usb/input

2016-08-15 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 15 09:03:05 2016 New Revision: 304129 URL: https://svnweb.freebsd.org/changeset/base/304129 Log: MFC r303765: Keep a reference count on USB keyboard polling to allow recursive cngrab() during a panic for example, similar to what the AT-keyboard driver is doin

svn commit: r304847 - stable/9/sys/ofed/drivers/infiniband/core

2016-08-26 Thread Hans Petter Selasky
Author: hselasky Date: Fri Aug 26 12:08:27 2016 New Revision: 304847 URL: https://svnweb.freebsd.org/changeset/base/304847 Log: MFC r304342: Add support for setting blocking and non-blocking mode on /dev/rdma_cm by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags handling

svn commit: r304994 - stable/9/sys/dev/usb/controller

2016-08-29 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 29 08:44:35 2016 New Revision: 304994 URL: https://svnweb.freebsd.org/changeset/base/304994 Log: MFC r304597: Fix for invalid use of bits in input context. Basically split configuring of EP0 and non-EP0 into xhci_cmd_evaluate_ctx() and xhci_cmd_configure_ep()

svn commit: r305000 - stable/9/sys/dev/usb/controller

2016-08-29 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 29 08:54:31 2016 New Revision: 305000 URL: https://svnweb.freebsd.org/changeset/base/305000 Log: MFC r304629: Don't separate the status stage of the XHCI USB control transfers into its own job because this breaks the simplified QEMU XHCI TRB parser, which exp

svn commit: r305642 - stable/9/lib/libusb

2016-09-08 Thread Hans Petter Selasky
Author: hselasky Date: Fri Sep 9 06:31:25 2016 New Revision: 305642 URL: https://svnweb.freebsd.org/changeset/base/305642 Log: MFC r305284: Fix array size issue when using the pre-scaling feature for ISOCHRONOUS USB transfers. Make sure enough length and buffer pointers are allocated when

svn commit: r305646 - stable/9/sys/dev/usb/input

2016-09-08 Thread Hans Petter Selasky
Author: hselasky Date: Fri Sep 9 06:41:16 2016 New Revision: 305646 URL: https://svnweb.freebsd.org/changeset/base/305646 Log: MFC r304571: Make the UKBD USB transfers double buffered and set them up one by one, so they are memory independent which allows for handling panics triggered by

svn commit: r305735 - in stable/9/sys: dev/usb dev/usb/template sys

2016-09-12 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 12 10:20:44 2016 New Revision: 305735 URL: https://svnweb.freebsd.org/changeset/base/305735 Log: MFC r305421: Resolve deadlock between device_detach() and usbd_do_request_flags() by reviving the SX control request lock and refining which lock protects the com

svn commit: r305830 - stable/9/sys/dev/usb/input

2016-09-15 Thread Hans Petter Selasky
Author: hselasky Date: Thu Sep 15 08:37:20 2016 New Revision: 305830 URL: https://svnweb.freebsd.org/changeset/base/305830 Log: MFC r305590: Correctly map the USB mouse tilt delta values into buttons 5 and 6 instead of 3 and 4 which is used for the scroll wheel, according to X.org. PR

svn commit: r306948 - in stable/9: share/man/man9 sys/kern

2016-10-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 10 11:27:59 2016 New Revision: 306948 URL: https://svnweb.freebsd.org/changeset/base/306948 Log: MFC r306441 and r306634: While draining a timeout task prevent the taskqueue_enqueue_timeout() function from restarting the timer. Commonly taskqueue_enqueue_t

svn commit: r306951 - stable/9/sys/ofed/include/linux

2016-10-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 10 11:36:43 2016 New Revision: 306951 URL: https://svnweb.freebsd.org/changeset/base/306951 Log: MFC r306451: The IORESOURCE_XXX defines should resemble a bitmask while SYS_RES_XXX are not bitmasks. Fix return value of pci_resource_flags() to reflect this cha

svn commit: r306958 - in stable/9/sys/dev/usb: . serial

2016-10-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 10 11:48:23 2016 New Revision: 306958 URL: https://svnweb.freebsd.org/changeset/base/306958 Log: MFC r306478: Add new USB ID. While at it remove some whitespaces. Submitted by: Jose Luis Duran PR: 213110 Modified: stable/9/sys/dev/usb/se

svn commit: r308396 - stable/9/sys/dev/usb/input

2016-11-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 7 08:17:23 2016 New Revision: 308396 URL: https://svnweb.freebsd.org/changeset/base/308396 Log: MFC r308144 and r308165: Fixes for virtual T-axis buttons. Make sure the virtual T-axis buttons gets cleared for USB mice which has less than 6 buttons. M

svn commit: r308400 - stable/9/sys/ofed/drivers/net/mlx4

2016-11-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 7 08:26:19 2016 New Revision: 308400 URL: https://svnweb.freebsd.org/changeset/base/308400 Log: MFC r308031: Fix indentation and remove duplicate queue stopped stats increment. Found by: Ryan Stone Sponsored by: Mellanox Technologies Modified: sta

svn commit: r308403 - in stable/9/sys: dev/puc dev/usb dev/usb/controller kern mips/atheros mips/cavium/usb mips/rmi mips/rt305x

2016-11-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 7 09:23:07 2016 New Revision: 308403 URL: https://svnweb.freebsd.org/changeset/base/308403 Log: MFC r307518: Fix device delete child function. When detaching device trees parent devices must be detached prior to detaching its children. This is because par

svn commit: r308573 - stable/9/sys/dev/sound/usb

2016-11-12 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 12 17:32:22 2016 New Revision: 308573 URL: https://svnweb.freebsd.org/changeset/base/308573 Log: MFC r308437 and r308461: Range check the jitter values to avoid bogus sample rate adjustments. The expected deviation should not be more than 1Hz per second. The US

svn commit: r310255 - stable/9/sys/dev/acpica

2016-12-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 19 09:54:59 2016 New Revision: 310255 URL: https://svnweb.freebsd.org/changeset/base/310255 Log: MFC r309400: Fix for endless recursion in the ACPI GPE handler during boot. When handling a GPE ACPI interrupt object the EcSpaceHandler() function can be call

svn commit: r311796 - stable/9/sys/ofed/drivers/net/mlx4

2017-01-09 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 9 17:09:53 2017 New Revision: 311796 URL: https://svnweb.freebsd.org/changeset/base/311796 Log: MFC r310058: Fix initialisation of mlx4_pci_table's .driver_data fields. Differential Revision:https://reviews.freebsd.org/D8791 Sponsored by:

svn commit: r315250 - in stable/9: share/man/man4 sys/dev/sound/usb sys/dev/usb sys/dev/usb/quirk

2017-03-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 14 15:25:49 2017 New Revision: 315250 URL: https://svnweb.freebsd.org/changeset/base/315250 Log: MFC r312338: Add USB audio support for S/PDIF output with C-Media CM6206 devices. Submitted by: Julien Nadeau PR: 216131 Modifie

svn commit: r315253 - stable/9/sys/dev/usb/controller

2017-03-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 14 15:30:46 2017 New Revision: 315253 URL: https://svnweb.freebsd.org/changeset/base/315253 Log: MFC r312424: Fix problem with suspend and resume when using Skylake chipsets. Make sure the XHCI controller is reset after halting it. The problem is clearly a

svn commit: r315258 - stable/9/sys/ofed/drivers/infiniband/hw/mlx4

2017-03-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 14 15:47:17 2017 New Revision: 315258 URL: https://svnweb.freebsd.org/changeset/base/315258 Log: MFC r313778: Improve code readability and fix compilation error when using clang 4.x. Found by: emaste @ Sponsored by: Mellanox Technolo

svn commit: r315261 - stable/9/sys/kern

2017-03-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 14 15:52:01 2017 New Revision: 315261 URL: https://svnweb.freebsd.org/changeset/base/315261 Log: MFC r313941: Make sure the thread constructor and destructor eventhandlers are called for all threads belonging to a procedure. Currently the first thread in a

svn commit: r315265 - stable/9/sys/dev/acpica

2017-03-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 14 15:57:21 2017 New Revision: 315265 URL: https://svnweb.freebsd.org/changeset/base/315265 Log: MFC r314328: Fix startup race initialising ACPI CM battery structures on MacBookPro. During acpi_cmbat_attach() the acpi_cmbat_init_battery() notification h

svn commit: r315269 - in stable/9/sys: kern sys

2017-03-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 14 16:01:36 2017 New Revision: 315269 URL: https://svnweb.freebsd.org/changeset/base/315269 Log: MFC r314553: Implement taskqueue_poll_is_busy() for use by the LinuxKPI. Refer to comment above function for a detailed description. Discussed with:

svn commit: r318338 - stable/9/share/man/man4

2017-05-16 Thread Hans Petter Selasky
Author: hselasky Date: Tue May 16 07:22:41 2017 New Revision: 318338 URL: https://svnweb.freebsd.org/changeset/base/318338 Log: MFC r317584: Correct manual page link to usbdi(9). Modified: stable/9/share/man/man4/usb.4 Directory Properties: stable/9/share/ (props changed) stable/9/sha

svn commit: r318534 - in stable/9/sys/ofed: drivers/net/mlx4 include/linux/mlx4

2017-05-19 Thread Hans Petter Selasky
Author: hselasky Date: Fri May 19 12:42:33 2017 New Revision: 318534 URL: https://svnweb.freebsd.org/changeset/base/318534 Log: MFC r313556: Change mlx4 QP allocation scheme. When using Blue-Flame, BF, the QPN overrides the VLAN, CV, and SV fields in the WQE. Thus, BF may only be used f

svn commit: r318537 - in stable/9/sys/ofed: drivers/net/mlx4 include/linux/mlx4

2017-05-19 Thread Hans Petter Selasky
Author: hselasky Date: Fri May 19 12:56:18 2017 New Revision: 318537 URL: https://svnweb.freebsd.org/changeset/base/318537 Log: MFC r313555: Flexible and asymmetric allocation of EQs and MSI-X vectors for PF/VFs. Previously, the mlx4 driver queried the firmware in order to get the numbe

svn commit: r318541 - stable/9/sys/ofed/drivers/net/mlx4

2017-05-19 Thread Hans Petter Selasky
Author: hselasky Date: Fri May 19 13:05:40 2017 New Revision: 318541 URL: https://svnweb.freebsd.org/changeset/base/318541 Log: MFC r317505: Don't free uninitialized sysctl contexts in the mlx4en driver. This can cause NULL pointer panics during failed device attach. Differential Revisi

svn commit: r318629 - stable/9/sys/ofed/drivers/net/mlx4

2017-05-22 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 22 08:20:50 2017 New Revision: 318629 URL: https://svnweb.freebsd.org/changeset/base/318629 Log: MFC r318531: mlx4: Use the CQ quota for SRIOV when creating completion EQs When creating EQs to handle CQ completion events for the PF or for VFs, we create

svn commit: r318980 - in stable/9/sys: dev/sound/pcm tools/sound

2017-05-27 Thread Hans Petter Selasky
Author: hselasky Date: Sat May 27 08:28:51 2017 New Revision: 318980 URL: https://svnweb.freebsd.org/changeset/base/318980 Log: MFC r318820: Increase the allowed maximum number of audio channels from 31 to 127 in the PCM feeder mixer. Without this change a value of 32 channels is treated l

svn commit: r319067 - in stable/9/sys: dev/sound/pcm tools/sound

2017-05-28 Thread Hans Petter Selasky
Author: hselasky Date: Sun May 28 10:45:28 2017 New Revision: 319067 URL: https://svnweb.freebsd.org/changeset/base/319067 Log: MFC r318860: Declare the "snd_fxdiv_table" once. This shaves around 24Kbytes of binary data from sound.ko and the kernel. Modified: stable/9/sys/dev/sound/pcm/bu

svn commit: r319565 - stable/9/sys/ofed/drivers/net/mlx4

2017-06-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 4 08:30:55 2017 New Revision: 319565 URL: https://svnweb.freebsd.org/changeset/base/319565 Log: MFC r319414: Allow communication between functions on the same host when using the mlx4en(4) driver in SRIOV mode. Place a copy of the destination MAC address

svn commit: r319568 - stable/9/sys/ofed/drivers/net/mlx4

2017-06-04 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 4 08:48:26 2017 New Revision: 319568 URL: https://svnweb.freebsd.org/changeset/base/319568 Log: MFC r319413: Free hardware queue resource after port is stopped in the mlx4en(4) driver. Else if the port is up the resource might still be busy and the MTT free

svn commit: r320068 - stable/9/sys/ofed/drivers/net/mlx4

2017-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 18 11:50:09 2017 New Revision: 320068 URL: https://svnweb.freebsd.org/changeset/base/320068 Log: MFC r319972: Use static device numbering instead of dynamic one when creating mlx4en network interfaces. This prevents infinite unit number growth typically when

svn commit: r320946 - stable/9/sys/ofed/drivers/net/mlx4

2017-07-13 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jul 13 15:12:01 2017 New Revision: 320946 URL: https://svnweb.freebsd.org/changeset/base/320946 Log: MFC r320876: Make sure the mlx4en RX DMA ring gets stamped with software ownership in order to prevent the flow of QP to error in the firmware once UPDATE_QP is c

svn commit: r322154 - stable/9/sys/ofed/drivers/infiniband/core

2017-08-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 7 12:56:03 2017 New Revision: 322154 URL: https://svnweb.freebsd.org/changeset/base/322154 Log: MFC r321985: Ticks are 32-bit in FreeBSD. Sponsored by: Mellanox Technologies Modified: stable/9/sys/ofed/drivers/infiniband/core/addr.c Directory Properties:

svn commit: r322157 - stable/9/sys/ofed/drivers/infiniband/core

2017-08-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 7 12:59:32 2017 New Revision: 322157 URL: https://svnweb.freebsd.org/changeset/base/322157 Log: MFC r321986: Change reject message type when destroying cm_id in ibore. This patch fixes an interopability issue between FreeBSD and non-FreeBSD systems when t

svn commit: r322160 - stable/9/sys/ofed/drivers/infiniband/hw/mlx4

2017-08-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 7 13:07:58 2017 New Revision: 322160 URL: https://svnweb.freebsd.org/changeset/base/322160 Log: MFC r321780: Make sure on-stack buffer is properly aligned. Sponsored by: Mellanox Technologies Modified: stable/9/sys/ofed/drivers/infiniband/hw/mlx4/mad.c D

svn commit: r322163 - in stable/9/sys/ofed: drivers/net/mlx4 include/linux/mlx4

2017-08-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 7 13:17:57 2017 New Revision: 322163 URL: https://svnweb.freebsd.org/changeset/base/322163 Log: MFC r321772: Fix broken usage of the mlx4_read_clock() function: - return value has too small width - cycle_t is unsigned and cannot be less than zero Spon

svn commit: r322166 - in stable/9/sys/ofed: drivers/net/mlx4 include/linux/mlx4

2017-08-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 7 13:27:35 2017 New Revision: 322166 URL: https://svnweb.freebsd.org/changeset/base/322166 Log: MFC r321782: Remove some dead statistics related code and a structure field from the mlx4en driver which is used by its Linux counterpart, but not under FreeBSD.

svn commit: r322501 - stable/9/sys/ofed/include/linux

2017-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 14 13:15:13 2017 New Revision: 322501 URL: https://svnweb.freebsd.org/changeset/base/322501 Log: MFC r292537 and r314878: Implement ACCESS_ONCE(), WRITE_ONCE() and READ_ONCE(). Sponsored by: Mellanox Technologies Modified: stable/9/sys/ofed/include/linux/

svn commit: r322502 - stable/9/sys/ofed/include/linux

2017-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 14 13:25:35 2017 New Revision: 322502 URL: https://svnweb.freebsd.org/changeset/base/322502 Log: MFC r289577: Merge LinuxKPI changes from DragonflyBSD: - Map more Linux compiler related defines to FreeBSD ones. Sponsored by: Mellanox Technologies Modified

svn commit: r322503 - stable/9/sys/ofed/drivers/net/mlx4

2017-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 14 13:27:08 2017 New Revision: 322503 URL: https://svnweb.freebsd.org/changeset/base/322503 Log: MFC r322304: Add support for RX and TX statistics when the mlx4en(4) PCI device is in VF or SRIOV mode typically in a virtual machine environment. Submitted by

svn commit: r322506 - stable/9/sys/ofed/drivers/net/mlx4

2017-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 14 13:37:46 2017 New Revision: 322506 URL: https://svnweb.freebsd.org/changeset/base/322506 Log: MFC r322306: Print maximum MTU when trying to set invalid MTU in the mlx4en(4) driver. Useful for debugging. Submitted by: Sepherosa Ziehau Sponsore

svn commit: r322536 - stable/9/sys/ofed/drivers/net/mlx4

2017-08-15 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 15 12:28:16 2017 New Revision: 322536 URL: https://svnweb.freebsd.org/changeset/base/322536 Log: MFC r322248: Fix for mlx4en(4) to properly call m_defrag(). The m_defrag() function can only defrag mbuf chains which have a valid mbuf packet header. In r2916

svn commit: r323810 - in stable/9/sys/dev/usb: . quirk

2017-09-20 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 20 14:46:24 2017 New Revision: 323810 URL: https://svnweb.freebsd.org/changeset/base/323810 Log: MFC r322530 and r323220: Add new USB quirk(s). PR: 221775 PR: 221328 Sponsored by: Mellanox Technologies Modifie

svn commit: r324801 - stable/9/sys/kern

2017-10-20 Thread Hans Petter Selasky
Author: hselasky Date: Fri Oct 20 10:07:17 2017 New Revision: 324801 URL: https://svnweb.freebsd.org/changeset/base/324801 Log: MFC r324445: When showing the sleepqueues from the in-kernel debugger, properly dump all the sleepqueues and not just the first one History: It appears that

svn commit: r325938 - stable/9/sys/ofed/include/linux

2017-11-17 Thread Hans Petter Selasky
Author: hselasky Date: Fri Nov 17 15:32:27 2017 New Revision: 325938 URL: https://svnweb.freebsd.org/changeset/base/325938 Log: MFC r325533: Make the dma_alloc_coherent() function in the LinuxKPI NULL safe with regard to the "dev" argument. Submitted by: Krishnamraju Eraparaju @ Chelsio

svn commit: r326513 - stable/9/sys/net

2017-12-04 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 4 09:36:47 2017 New Revision: 326513 URL: https://svnweb.freebsd.org/changeset/base/326513 Log: MFC r326392: Properly define the VLAN_XXX() function macros to avoid miscompilation when used inside "if" statements comparing with another value. Detailed exp

svn commit: r326517 - stable/9/sys/i386/include

2017-12-04 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 4 09:48:31 2017 New Revision: 326517 URL: https://svnweb.freebsd.org/changeset/base/326517 Log: MFC r326161: Implement atomic_fetchadd_64() for i386. This function is needed by the atomic64 header file in the LinuxKPI for i386. Reviewed by: kib Sponsor

  1   2   3   4   5   >