svn commit: r368505 - stable/10/sbin/ifconfig

2020-12-10 Thread Hans Petter Selasky
Author: hselasky Date: Thu Dec 10 09:39:27 2020 New Revision: 368505 URL: https://svnweb.freebsd.org/changeset/base/368505 Log: Fix bug in ifconfig regarding VLAN creation. Detection of VLAN interface type must happen before detection of interface type by prefix. Else the following sequen

svn commit: r362313 - stable/10/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:41:51 2020 New Revision: 362313 URL: https://svnweb.freebsd.org/changeset/base/362313 Log: MFC r362045: Make sure packets generated by raw IP code is let through by mlx5en(4). Allow the TCP header to reside in the mbuf following the IP header. Else s

svn commit: r362310 - stable/10/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:31:21 2020 New Revision: 362310 URL: https://svnweb.freebsd.org/changeset/base/362310 Log: MFC r362044: Extend use of unlikely() in the fast path, in mlx5en(4). Typically the TCP/IP headers fit within the first mbuf and should not trigger any of the

svn commit: r362307 - stable/10/sys/dev/mlx5/mlx5_en

2020-06-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jun 18 10:17:36 2020 New Revision: 362307 URL: https://svnweb.freebsd.org/changeset/base/362307 Log: MFC r362043: Use const keyword when parsing the TCP/IP header in the fast path in mlx5en(4). When parsing the TCP/IP header in the fast path, make it clear by u

svn commit: r362168 - stable/10/sys/dev/usb/net

2020-06-13 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 14 05:33:25 2020 New Revision: 362168 URL: https://svnweb.freebsd.org/changeset/base/362168 Log: MFC r362056: Add missing range checks when receiving USB ethernet packets. Found by: Ilja Van Sprundel, IOActive Sponsored by: Mellanox Technologies Modif

svn commit: r361921 - in stable/10: lib/libusbhid sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:34:16 2020 New Revision: 361921 URL: https://svnweb.freebsd.org/changeset/base/361921 Log: MFC r361827: USB HID descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD currently only supports 4 suc

svn commit: r361916 - stable/10/sys/netgraph/bluetooth/drivers/ubt

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:31:14 2020 New Revision: 361916 URL: https://svnweb.freebsd.org/changeset/base/361916 Log: MFC r361582: Fix check for wMaxPacketSize in USB bluetooth driver, in case device is not FULL speed. Sponsored by: Mellanox Technologies Modified: stable/10

svn commit: r361912 - stable/10/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:28:26 2020 New Revision: 361912 URL: https://svnweb.freebsd.org/changeset/base/361912 Log: MFC r361581: Implement helper function, usbd_get_max_frame_length(), which allows kernel device drivers to correctly predict the default USB transfer frame length.

svn commit: r361908 - stable/10/sys/dev/usb

2020-06-08 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 8 09:25:01 2020 New Revision: 361908 URL: https://svnweb.freebsd.org/changeset/base/361908 Log: MFC r361577: Don't allow USB device drivers to parent own interface. It will prevent proper USB device detach. Sponsored by: Mellanox Technologies Modified:

svn commit: r361358 - stable/10/sys/kern

2020-05-22 Thread Hans Petter Selasky
Author: hselasky Date: Fri May 22 09:01:26 2020 New Revision: 361358 URL: https://svnweb.freebsd.org/changeset/base/361358 Log: MFC r361075: Assign process group of the TTY under the "proctree_lock". This fixes a race where concurrent calls to doenterpgrp() and leavepgrp() while TIOCSCT

svn commit: r361157 - in stable/10: sys/netgraph/bluetooth/hci usr.sbin/bluetooth/hccontrol

2020-05-18 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 18 08:45:24 2020 New Revision: 361157 URL: https://svnweb.freebsd.org/changeset/base/361157 Log: MFC r360092: Bring HCI error messages up-to-date. See Bluetooth v5.6 core specification Vol.1 Part F: Controller error codes. Submitted by: Marc Veldman PR:

svn commit: r361154 - stable/10/usr.sbin/bluetooth/hccontrol

2020-05-18 Thread Hans Petter Selasky
Author: hselasky Date: Mon May 18 08:43:05 2020 New Revision: 361154 URL: https://svnweb.freebsd.org/changeset/base/361154 Log: MFC r360070: Add missing feature descriptions to hci_features2str(). The list of possible features in hccontrol/features2str() is incomplete. Refer to "Bluetoo

svn commit: r360335 - stable/10/sys/dev/usb/controller

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:38:10 2020 New Revision: 360335 URL: https://svnweb.freebsd.org/changeset/base/360335 Log: MFC r360075: Set the maximum exit latency to 0 for XHCI USB 3.0 devices, because we don't implement link power management, LPM. This fixes error code XHCI_TRB_

svn commit: r360332 - stable/10/sys/kern

2020-04-26 Thread Hans Petter Selasky
Author: hselasky Date: Sun Apr 26 08:35:32 2020 New Revision: 360332 URL: https://svnweb.freebsd.org/changeset/base/360332 Log: MFC r359968: Cast all ioctl command arguments through uint32_t internally. Hide debug print showing use of sign extended ioctl command argument under INVARIANT

svn commit: r359890 - stable/10/sys/dev/sound/usb

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:34:21 2020 New Revision: 359890 URL: https://svnweb.freebsd.org/changeset/base/359890 Log: MFC r359446: Add support for multiple playback and recording devices per physical USB audio device. This requires some structural refactoring inside the driver, mos

svn commit: r359887 - stable/10/sys/dev/sound/pcm

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:32:18 2020 New Revision: 359887 URL: https://svnweb.freebsd.org/changeset/base/359887 Log: MFC r359440: Implement new mixer API to return the device pointer based on the mixer pointer. Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev

svn commit: r359884 - stable/10/sys/dev/sound/pcm

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:30:10 2020 New Revision: 359884 URL: https://svnweb.freebsd.org/changeset/base/359884 Log: MFC r359356: Change default microphone level from 0 to 25. Discussed with: Horse Ma Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/s

svn commit: r359881 - stable/10/sys/dev/sound/usb

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:28:15 2020 New Revision: 359881 URL: https://svnweb.freebsd.org/changeset/base/359881 Log: MFC r359355: Improve USB audio mixer support for USB audio class 1 and 2. - make sure volume controls are correctly mapped to "pcm" and "rec" depending on how t

svn commit: r359878 - stable/10/sys/dev/sound/usb

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:26:15 2020 New Revision: 359878 URL: https://svnweb.freebsd.org/changeset/base/359878 Log: MFC r359323: Be more intelligent when classifying USB audio terminal types, so that we don't end up using SOUND_MIXER_VOLUME for all undefined types. Sponsored

svn commit: r359875 - stable/10/sys/dev/sound/usb

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:24:21 2020 New Revision: 359875 URL: https://svnweb.freebsd.org/changeset/base/359875 Log: MFC r359322: Make mute controls available for USB audio mixers. Submitted by: Horse Ma Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/soun

svn commit: r359872 - stable/10/sys/dev/sound/usb

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:22:15 2020 New Revision: 359872 URL: https://svnweb.freebsd.org/changeset/base/359872 Log: MFC r359321: Factor out USB audio mixer value range check. Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/sound/usb/uaudio.c Directory Proper

svn commit: r359869 - stable/10/sys/dev/sound/usb

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 16:19:45 2020 New Revision: 359869 URL: https://svnweb.freebsd.org/changeset/base/359869 Log: MFC r359320: Avoid scaling USB audio mixer values twice. Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/sound/usb/uaudio.c Directory Properti

svn commit: r359855 - stable/10/sys/dev/mlx5/mlx5_en

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 09:02:17 2020 New Revision: 359855 URL: https://svnweb.freebsd.org/changeset/base/359855 Log: MFC r359653: Count number of times transmit ring is out of buffers in mlx5en(4). Differential Revision:https://reviews.freebsd.org/D24273 Sponsored by:

svn commit: r359847 - stable/10/sys/dev/mlx5/mlx5_en

2020-04-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Apr 13 08:33:49 2020 New Revision: 359847 URL: https://svnweb.freebsd.org/changeset/base/359847 Log: MFC r359654: Ensure a minimum inline size of 16 bytes in mlx5en(4). This includes 14 bytes of ethernet header and 2 bytes of VLAN header. This allows for ma

svn commit: r359318 - stable/10/sys/dev/usb

2020-03-25 Thread Hans Petter Selasky
Author: hselasky Date: Thu Mar 26 05:38:33 2020 New Revision: 359318 URL: https://svnweb.freebsd.org/changeset/base/359318 Log: MFC r359120: Correctly implement support for remote wakeup for USB 3.0 device. Submitted by: Horse Ma Sponsored by: Mellanox Technologies Modified: stable/

svn commit: r359123 - stable/10/sys/ofed/drivers/infiniband/ulp/ipoib

2020-03-19 Thread Hans Petter Selasky
Author: hselasky Date: Thu Mar 19 09:20:41 2020 New Revision: 359123 URL: https://svnweb.freebsd.org/changeset/base/359123 Log: MFC r359014: Fix for double unlock in ipoib. The ipoib_unicast_send() function is not supposed to unlock the priv lock. Sponsored by: Mellanox Technologies

svn commit: r358949 - stable/10/lib/libusb

2020-03-13 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 13 09:18:28 2020 New Revision: 358949 URL: https://svnweb.freebsd.org/changeset/base/358949 Log: MFC r358841: Fix for building libusb under Linux. Sponsored by: Mellanox Technologies Modified: stable/10/lib/libusb/libusb_global_linux.h Directory Propertie

svn commit: r358941 - stable/10/sys/compat/linux

2020-03-13 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 13 08:57:22 2020 New Revision: 358941 URL: https://svnweb.freebsd.org/changeset/base/358941 Log: MFC r358838: Add support for the device statistics IOCTL, needed by the coming linux_libusb upgrade. Sponsored by: Mellanox Technologies Modified: stable/10

svn commit: r358937 - stable/10/sys/sys

2020-03-13 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 13 08:53:59 2020 New Revision: 358937 URL: https://svnweb.freebsd.org/changeset/base/358937 Log: MFC r358695: Define more subsystem orders. Intended for use with module_init_order() in the LinuxKPI. Sponsored by: Mellanox Technologies Modified: stable/1

svn commit: r358933 - stable/10/sys/ofed/drivers/infiniband/ulp/ipoib

2020-03-13 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 13 08:50:56 2020 New Revision: 358933 URL: https://svnweb.freebsd.org/changeset/base/358933 Log: MFC r358694: Fix some whitespace issues in ipoib. Sponsored by: Mellanox Technologies Modified: stable/10/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c D

svn commit: r358879 - stable/10/sys/dev/sound/pcm

2020-03-11 Thread Hans Petter Selasky
Author: hselasky Date: Wed Mar 11 08:26:11 2020 New Revision: 358879 URL: https://svnweb.freebsd.org/changeset/base/358879 Log: MFC r358629: Implement a detaching flag for the sound(4) subsystem to take appropriate actions when we are trying to detach an audio device, but cannot because so

svn commit: r358875 - in stable/10/sys/dev/usb: . controller

2020-03-11 Thread Hans Petter Selasky
Author: hselasky Date: Wed Mar 11 08:21:48 2020 New Revision: 358875 URL: https://svnweb.freebsd.org/changeset/base/358875 Log: MFC r358738: Remove the power bit from the super speed root hub port status register because it clobbers the super speed link status when a device is in super spe

svn commit: r357439 - stable/10/lib/libusb

2020-02-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Feb 3 11:05:59 2020 New Revision: 357439 URL: https://svnweb.freebsd.org/changeset/base/357439 Log: MFC r357298: Add missing mutex unlock in failure case. Differential Revision:https://reviews.freebsd.org/D23430 Submitted by: cem Reported by: Cover

svn commit: r357432 - in stable/10/sys/dev/usb: . serial

2020-02-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Feb 3 10:50:52 2020 New Revision: 357432 URL: https://svnweb.freebsd.org/changeset/base/357432 Log: MFC r356952: Add new USB ID to uslcom(4). Submitted by: Oleg Sharoyko PR: 243494 Sponsored by: Mellanox Technologies Modified: stable/10/sys/de

svn commit: r357429 - stable/10/sys/ofed/drivers/infiniband/ulp/ipoib

2020-02-03 Thread Hans Petter Selasky
Author: hselasky Date: Mon Feb 3 10:47:44 2020 New Revision: 357429 URL: https://svnweb.freebsd.org/changeset/base/357429 Log: MFC r356633: Make sure the VNET is properly set when reaping mbufs in ipoib. Else the following panic may happen: panic() icmp_error() ipoib_cm_mb_reap()

svn commit: r356783 - stable/10/sys/dev/usb/controller

2020-01-16 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jan 16 08:53:59 2020 New Revision: 356783 URL: https://svnweb.freebsd.org/changeset/base/356783 Log: MFC r356545: Fix a XHCI driver issue with Intel's Gemini Lake SOC. Do not configure any endpoint twice, but instead keep track of which endpoints are configure

svn commit: r356681 - in stable/10/sys: dev/usb sys

2020-01-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 13 11:33:03 2020 New Revision: 356681 URL: https://svnweb.freebsd.org/changeset/base/356681 Log: MFC r356409: Add own counter for cancelled USB transfers. Do not count these as errors. Bump the FreeBSD version to force recompilation of external modules.

svn commit: r356412 - stable/10/sys/dev/hyperv/netvsc

2020-01-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 6 09:51:54 2020 New Revision: 356412 URL: https://svnweb.freebsd.org/changeset/base/356412 Log: MFC r356201: Fix spelling. PR: 242891 Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/hyperv/netvsc/if_hn.c Directory Properties:

svn commit: r356407 - stable/10/usr.sbin/usbconfig

2020-01-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 6 09:40:18 2020 New Revision: 356407 URL: https://svnweb.freebsd.org/changeset/base/356407 Log: MFC r351146: Implement detach_kernel_driver command in usbconfig(8). Submitted by: Kevin Zheng PR: 239916 Modified: stable/10/usr.sbin/usbconfig/

svn commit: r356408 - stable/10/usr.sbin/usbconfig

2020-01-06 Thread Hans Petter Selasky
--- stable/10/usr.sbin/usbconfig/usbconfig.8Mon Jan 6 09:40:18 2020 (r356407) +++ stable/10/usr.sbin/usbconfig/usbconfig.8 Mon Jan 6 09:40:59 2020 (r356408) @@ -1,6 +1,6 @@ .\" $FreeBSD$ .\" -.\" Copyright (c) 2008-2010 Hans Petter Selasky

svn commit: r356406 - stable/10/usr.sbin/usbconfig

2020-01-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 6 09:38:57 2020 New Revision: 356406 URL: https://svnweb.freebsd.org/changeset/base/356406 Log: MFC r333089: Clean up the EXAMPLES section of usbconfig(8). This removes parts that become redundant after documenting all the subcommands, and switches to the n

svn commit: r356405 - stable/10/usr.sbin/usbconfig

2020-01-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 6 09:38:08 2020 New Revision: 356405 URL: https://svnweb.freebsd.org/changeset/base/356405 Log: MFC r332659: Make it possible to pass the ugenX.Y to usbconfig(8) without using "-d", eg "usbconfig ugen1.2 dump_all_desc". Reviewed by: hselasky@ Sponsored

svn commit: r356404 - stable/10/usr.sbin/usbconfig

2020-01-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 6 09:37:13 2020 New Revision: 356404 URL: https://svnweb.freebsd.org/changeset/base/356404 Log: MFC r330875: Add "usbconfig dump_all_desc", a subcommand to dump all device and config descriptors. Reviewed by: hselasky@ Sponsored by: The FreeBSD Foundat

svn commit: r356403 - stable/10/usr.sbin/usbconfig

2020-01-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 6 09:35:57 2020 New Revision: 356403 URL: https://svnweb.freebsd.org/changeset/base/356403 Log: MFC r327522: Fix warnings from "mandoc -Tlint -Wwarning". Reported by: Yuri Pankov Sponsored by: The FreeBSD Foundation Modified: stable/10/usr.sbin/usbco

svn commit: r356402 - stable/10/usr.sbin/usbconfig

2020-01-06 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 6 09:35:11 2020 New Revision: 356402 URL: https://svnweb.freebsd.org/changeset/base/356402 Log: MFC r327382: Improve usbconfig(8) manual page by adding descriptions for subcommands. Reviewed by: hselasky Sponsored by: The FreeBSD Foundation Differentia

svn commit: r356399 - stable/10/lib/libusb

2020-01-06 Thread Hans Petter Selasky
(r356398) +++ stable/10/lib/libusb/libusb20.3 Mon Jan 6 09:22:33 2020 (r356399) @@ -1,5 +1,5 @@ .\" -.\" Copyright (c) 2008 Hans Petter Selasky +.\" Copyright (c) 2008-2019 Hans Petter Selasky .\" .\" All rights reserved. .\" @@ -26,7 +26,7 @@ .\"

svn commit: r356396 - in stable/10/sys: dev/usb sys

2020-01-06 Thread Hans Petter Selasky
$ */ /*- - * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. + * Copyright (c) 2008-2019 Hans Petter Selasky. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -40,19

svn commit: r356074 - stable/10/sys/dev/mlx5

2019-12-25 Thread Hans Petter Selasky
Author: hselasky Date: Wed Dec 25 09:34:16 2019 New Revision: 356074 URL: https://svnweb.freebsd.org/changeset/base/356074 Log: MFC r355447: Fix compilation issue with mlx5core and sparc64 (gcc48): sys/dev/mlx5/mlx5_en/mlx5_en_tx.c:335: error: requested alignment is not a constant S

svn commit: r355419 - stable/10/sys/kern

2019-12-05 Thread Hans Petter Selasky
Author: hselasky Date: Thu Dec 5 14:53:46 2019 New Revision: 355419 URL: https://svnweb.freebsd.org/changeset/base/355419 Log: MFC r355108 and r355170: Fix panic when loading kernel modules before root file system is mounted. Make sure the rootvnode is always NULL checked. Differential

svn commit: r353179 - in stable/10/sys/dev/usb: . controller

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:25:25 2019 New Revision: 353179 URL: https://svnweb.freebsd.org/changeset/base/353179 Log: MFC r352556: Add quirk for XHCI(4) controllers to support USB control transfers above 1Kbyte. It might look like some XHCI(4) controllers do not support when the

svn commit: r353175 - stable/10/sys/dev/usb

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:13:49 2019 New Revision: 353175 URL: https://svnweb.freebsd.org/changeset/base/353175 Log: MFC r352555: Increase the maximum user-space buffer size from 256kBytes to 32MBytes for libusb. This is useful for speeding up large data transfers while reducing

svn commit: r353171 - stable/10/sys/dev/usb/controller

2019-10-07 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 7 08:11:12 2019 New Revision: 353171 URL: https://svnweb.freebsd.org/changeset/base/353171 Log: MFC r352554: The maximum TD size is 31 and not 15. Found at: EuroBSDcon 2019 Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/usb/control

svn commit: r351017 - stable/10/sys/dev/usb/net

2019-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Wed Aug 14 09:42:26 2019 New Revision: 351017 URL: https://svnweb.freebsd.org/changeset/base/351017 Log: MFC r350396: Add support for tethering with Nokia 7 plus and the alike. PR: 239495 Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev

svn commit: r349669 - stable/10/lib/libusb

2019-07-03 Thread Hans Petter Selasky
@@ /* $FreeBSD$ */ /*- - * Copyright (c) 2016 Hans Petter Selasky. All rights reserved. + * Copyright (c) 2016-2019 Hans Petter Selasky. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following

svn commit: r349666 - stable/10/usr.sbin/usbdump

2019-07-03 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jul 3 18:19:29 2019 New Revision: 349666 URL: https://svnweb.freebsd.org/changeset/base/349666 Log: MFC r349370: Fix parsing of corrupt data in usbdump(8). Check that the transfer type array lookup is within bounds to avoid segfault. PR: 238801 Sp

svn commit: r348895 - stable/10/lib/libusb

2019-06-11 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jun 11 08:53:26 2019 New Revision: 348895 URL: https://svnweb.freebsd.org/changeset/base/348895 Log: MFC r348797: Fix for reading the configuration descriptor in libusb. Catch invalid configuration descriptor reads early on to avoid issues with devices that don't

svn commit: r348857 - stable/10/sys/dev/usb

2019-06-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 10 13:37:38 2019 New Revision: 348857 URL: https://svnweb.freebsd.org/changeset/base/348857 Log: MFC r348631: In usb(4) fix a lost completion event issue towards libusb(3). It may happen if a USB transfer is cancelled that we need to fake a completion event.

svn commit: r348853 - stable/10/sys/dev/usb/controller

2019-06-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jun 10 13:17:39 2019 New Revision: 348853 URL: https://svnweb.freebsd.org/changeset/base/348853 Log: MFC r348604: In xhci(4) there is no stream ID in the completion TRB. Instead iterate all the stream IDs in stream mode to find the matching USB transfer. Spo

svn commit: r348832 - stable/10/sys/dev/mlx5/mlx5_en

2019-06-09 Thread Hans Petter Selasky
Author: hselasky Date: Sun Jun 9 08:22:38 2019 New Revision: 348832 URL: https://svnweb.freebsd.org/changeset/base/348832 Log: MFC r348603: Make sure the DMA tags get freed in mlx5en(4). Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Direct

svn commit: r346669 - stable/10/sys/dev/usb/controller

2019-04-25 Thread Hans Petter Selasky
Author: hselasky Date: Thu Apr 25 12:02:17 2019 New Revision: 346669 URL: https://svnweb.freebsd.org/changeset/base/346669 Log: MFC r346229 and r346248: Fix spelling and remove superfluous USB keyword. Submitted by: Dmitry Luhtionov Sponsored by: Mellanox Technologies

svn commit: r345943 - stable/10/sys/sys

2019-04-05 Thread Hans Petter Selasky
Author: hselasky Date: Fri Apr 5 11:35:58 2019 New Revision: 345943 URL: https://svnweb.freebsd.org/changeset/base/345943 Log: MFC r345499: Change all kernel C-type macros into static inline functions. The current kernel C-type macros might obscurely hide the fact that the input argume

svn commit: r345546 - in stable/10/sys/dev: sound/usb usb usb/quirk

2019-03-26 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 26 13:53:33 2019 New Revision: 345546 URL: https://svnweb.freebsd.org/changeset/base/345546 Log: MFC r342961: snd_uaudio: Add quirks for Edirol UA-25EX in advanced driver mode. Extend the vendor class USB audio quirk to cover devices without the USB audio

svn commit: r345541 - stable/10/lib/libusb

2019-03-26 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 26 13:46:47 2019 New Revision: 345541 URL: https://svnweb.freebsd.org/changeset/base/345541 Log: MFC r344795: Fix typos in libusb. Found by: Denis Ahrens Sponsored by: Mellanox Technologies Modified: stable/10/lib/libusb/libusb10.c

svn commit: r344695 - in stable/10/sys/dev/usb: . quirk

2019-03-01 Thread Hans Petter Selasky
Author: hselasky Date: Fri Mar 1 08:06:23 2019 New Revision: 344695 URL: https://svnweb.freebsd.org/changeset/base/344695 Log: MFC r344477: Add new USB quirk. PR: 235897 Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/usb/quirk/usb_quirk.c

svn commit: r344146 - stable/10/usr.sbin/bluetooth/sdpd

2019-02-15 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 15 09:22:23 2019 New Revision: 344146 URL: https://svnweb.freebsd.org/changeset/base/344146 Log: MFC r343905: Improve Bluetooth device discovery support for Android and Microsoft devices. Tested using the virtual_bt_speaker(8) tool from the virtual_oss(8)

svn commit: r343902 - in stable/10: lib/libsdp usr.sbin/bluetooth/sdpd

2019-02-08 Thread Hans Petter Selasky
@@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2019 Hans Petter Selasky + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1

svn commit: r343658 - in stable/10/sys/dev/usb: . quirk

2019-02-01 Thread Hans Petter Selasky
Author: hselasky Date: Fri Feb 1 10:09:54 2019 New Revision: 343658 URL: https://svnweb.freebsd.org/changeset/base/343658 Log: MFC r343453: Add new USB quirk. PR: 235202 Differential Revision:https://reviews.freebsd.org/D18917 Sponsored by: Mellanox

svn commit: r343139 - stable/10/sys/netinet6

2019-01-18 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jan 18 08:59:00 2019 New Revision: 343139 URL: https://svnweb.freebsd.org/changeset/base/343139 Log: MFC r342884: Fix loopback traffic when using non-lo0 link local IPv6 addresses. The loopback interface can only receive packets with a single scope ID, namely

svn commit: r343136 - stable/10/sys/dev/usb

2019-01-18 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jan 18 08:49:10 2019 New Revision: 343136 URL: https://svnweb.freebsd.org/changeset/base/343136 Log: MFC r342778: Reduce timeout for reading the USB HUB port status to 1000ms and try to filter out dead USB HUB devices by implementing an error counter, so that the U

svn commit: r343133 - stable/10/sys/dev/usb

2019-01-18 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jan 18 08:45:56 2019 New Revision: 343133 URL: https://svnweb.freebsd.org/changeset/base/343133 Log: MFC r342730: Improve USB generic debug messages. Print process ID and name when opening and closing usb/ugenX.Y character device nodes. Sponsored by: Mellanox

svn commit: r342727 - in stable/10/sys/dev/usb: . quirk

2019-01-03 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jan 3 09:28:18 2019 New Revision: 342727 URL: https://svnweb.freebsd.org/changeset/base/342727 Log: MFC r342549: Add USB quirk for SPL Crimson Rev 1. PR: 234380 Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/usb/q

svn commit: r342724 - stable/10/sys/dev/sound/usb

2019-01-03 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jan 3 09:25:39 2019 New Revision: 342724 URL: https://svnweb.freebsd.org/changeset/base/342724 Log: MFC r342456: Fix reading of USB sample rate descriptor for SPL Crimson Rev 1. Read first one entry, then try to read the full rate descriptor table. PR:

svn commit: r342037 - in stable/10/sys/dev/usb: . serial

2018-12-13 Thread Hans Petter Selasky
Author: hselasky Date: Thu Dec 13 10:34:26 2018 New Revision: 342037 URL: https://svnweb.freebsd.org/changeset/base/342037 Log: MFC r334648: Add support for SIMCom SIM7600E. PR: 226066 Sponsored by: MSI/FUNTORO Modified: stable/10/sys/dev/usb/serial/u3g.c stable/10/sys/de

svn commit: r341984 - stable/10/sys/dev/mlx5/mlx5_en

2018-12-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Dec 12 13:14:41 2018 New Revision: 341984 URL: https://svnweb.freebsd.org/changeset/base/341984 Log: MFC r341585: mlx5en: Improve configuration of HW LRO. In order to enable HW LRO, both the "hw_lro" sysctl in the mlx5en(4) config space must be set, and the if

svn commit: r340625 - stable/10/etc/newsyslog.conf.d

2018-11-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Nov 19 09:50:06 2018 New Revision: 340625 URL: https://svnweb.freebsd.org/changeset/base/340625 Log: MFC r340254: Put a size limit on the opensm.log and use bzip2(1). Discussed with: markj@ Sponsored by: Mellanox Technologies Modified:

svn commit: r340352 - stable/10/sys/dev/sound/usb

2018-11-11 Thread Hans Petter Selasky
Author: hselasky Date: Sun Nov 11 12:34:19 2018 New Revision: 340352 URL: https://svnweb.freebsd.org/changeset/base/340352 Log: MFC r340248: Don't read the USB audio sync endpoint when we don't use it to save isochronous bandwidth. Sponsored by: Mellanox Technologies Modified:

svn commit: r340317 - stable/10/sys/dev/usb/controller

2018-11-10 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 10 10:32:55 2018 New Revision: 340317 URL: https://svnweb.freebsd.org/changeset/base/340317 Log: MFC r340212: Sometimes the complete split packet may be queued too early and the transaction translator will return a NAK. Ignore this message and retry the compl

svn commit: r340281 - stable/10/usr.sbin/uhsoctl

2018-11-09 Thread Hans Petter Selasky
Author: hselasky Date: Fri Nov 9 08:47:54 2018 New Revision: 340281 URL: https://svnweb.freebsd.org/changeset/base/340281 Log: MFC r340089: Use correct type for IOCTL request argument. This fixes signed IOCTL value warnings in uhsoctl(). Submitted by: Marcin Cieslak Sponsore

svn commit: r339853 - stable/10/sys/dev/usb/serial

2018-10-29 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 29 12:11:27 2018 New Revision: 339853 URL: https://svnweb.freebsd.org/changeset/base/339853 Log: MFC r339587: Added support for formula-based arbitrary baud rates, in contrast to the current fixed values, which enables use of rates above 1 Mbps. Improved the

svn commit: r339721 - stable/10/sys/dev/sound/midi

2018-10-25 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 25 14:56:19 2018 New Revision: 339721 URL: https://svnweb.freebsd.org/changeset/base/339721 Log: MFC r339582: Drop sequencer mutex around uiomove() and make sure we don't move more bytes than is available, else a panic might happen. Found by: P

svn commit: r339715 - stable/10/sys/dev/sound/midi

2018-10-25 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 25 14:35:52 2018 New Revision: 339715 URL: https://svnweb.freebsd.org/changeset/base/339715 Log: MFC r339581: Fix off-by-one which can lead to panics. Found by: Peter Holm Sponsored by: Mellanox Technologies Modified: stable/10/sys/

svn commit: r339443 - stable/10/sys/dev/usb/controller

2018-10-19 Thread Hans Petter Selasky
Author: hselasky Date: Fri Oct 19 08:40:25 2018 New Revision: 339443 URL: https://svnweb.freebsd.org/changeset/base/339443 Log: MFC r339388: Fix for reception of large full speed isochronous frames via the transaction translator, when using the DWC OTG USB controller driver. Make sure to re-

svn commit: r339190 - stable/10/lib/libusb

2018-10-05 Thread Hans Petter Selasky
Author: hselasky Date: Fri Oct 5 07:50:44 2018 New Revision: 339190 URL: https://svnweb.freebsd.org/changeset/base/339190 Log: MFC r338993: When multiple threads are involved receiving completion events in LibUSB make sure there is always a master polling thread, by setting the "ctx_handle

svn commit: r339086 - stable/10/sys/ofed/drivers/net/mlx4

2018-10-02 Thread Hans Petter Selasky
Author: hselasky Date: Tue Oct 2 16:01:33 2018 New Revision: 339086 URL: https://svnweb.freebsd.org/changeset/base/339086 Log: Selectivly backport fix for firmware command hang when switching from polling-based firmware commands to event based firmware commands. This is a direct commit.

svn commit: r338792 - stable/10/lib/libusb

2018-09-19 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 19 08:12:41 2018 New Revision: 338792 URL: https://svnweb.freebsd.org/changeset/base/338792 Log: MFC r338679: Improve LibUSB debugging by simultaneously allowing both function and transfer prints. Make sure the debug level comes from the correct USB context.

svn commit: r338789 - stable/10/lib/libusb

2018-09-19 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 19 07:57:30 2018 New Revision: 338789 URL: https://svnweb.freebsd.org/changeset/base/338789 Log: MFC r338616: Fix issues about cancelling USB transfers in LibUSB when the USB device has been detached. When a USB device has been detached the kernel file handle

svn commit: r338615 - stable/10/sys/ofed/drivers/infiniband/core

2018-09-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 12 10:53:22 2018 New Revision: 338615 URL: https://svnweb.freebsd.org/changeset/base/338615 Log: Fix incorrect display of the sys.class.infiniband.xxx.ports.1.rate sysctl entry in ibcore by adding support for new rate types. This is a direct commit. Spo

svn commit: r338553 - stable/10/sys/dev/mlx5/mlx5_en

2018-09-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 10 08:10:52 2018 New Revision: 338553 URL: https://svnweb.freebsd.org/changeset/base/338553 Log: MFC r338492: Add support for receive side scaling stride, RSSS, in mlx5en(4). The receive side scaling stride parameter is a value which define the interval be

svn commit: r338551 - stable/10/sys/dev/mlx5/mlx5_en

2018-09-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 10 08:06:34 2018 New Revision: 338551 URL: https://svnweb.freebsd.org/changeset/base/338551 Log: MFC r338490: Don't stall transmit queue on drops in mlx5en(4). When a transmitted packet is dropped don't stall the transmit queue. Sponsored by: Me

svn commit: r338549 - stable/10/sys/dev/mlx5/mlx5_en

2018-09-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 10 08:03:52 2018 New Revision: 338549 URL: https://svnweb.freebsd.org/changeset/base/338549 Log: MFC r338489: Maximum number of mbuf frags is off-by-one for worst case scenario in mlx5en(4). Inspecting the PRM no more than 0x3F data segments, DS, of size 16

svn commit: r337748 - in stable/10/sys/dev/mlx5: mlx5_core mlx5_en mlx5_ib

2018-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 14 11:52:05 2018 New Revision: 337748 URL: https://svnweb.freebsd.org/changeset/base/337748 Log: Bump the mlx5core, mlx5en(4) and mlx5ib driver version. This is a direct commit. Sponsored by: Mellanox Technologies Modified: stable/10/sys/dev/mlx5/mlx5_

svn commit: r337747 - stable/10/sys/dev/mlx5/mlx5_en

2018-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 14 11:44:11 2018 New Revision: 337747 URL: https://svnweb.freebsd.org/changeset/base/337747 Log: MFC r330657: Use vport rather than physical-port MTU in mlx5en(4). Set and report vport MTU rather than physical MTU, The driver will set both vport and physic

svn commit: r337746 - stable/10/sys/dev/mlx5/mlx5_en

2018-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 14 11:43:02 2018 New Revision: 337746 URL: https://svnweb.freebsd.org/changeset/base/337746 Log: MFC r325661: Expose the current hardware MTU in mlx5en(4) as a separate entry in the sysctl tree. Sponsored by: Mellanox Technologies Modified: stable/10/sy

svn commit: r337743 - in stable/10/sys/dev/mlx5: mlx5_core mlx5_en

2018-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 14 11:24:14 2018 New Revision: 337743 URL: https://svnweb.freebsd.org/changeset/base/337743 Log: Enter error state when handling bad device in mlx5core and add checks for error state to mlx5en(4) to make live migration work. This is a direct commit. Spo

svn commit: r337742 - in stable/10/sys/dev/mlx5: . mlx5_core mlx5_en

2018-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 14 11:19:04 2018 New Revision: 337742 URL: https://svnweb.freebsd.org/changeset/base/337742 Log: MFC r336450: Do not inline transmit headers and use HW VLAN tagging if supported by mlx5en(4). Query the minimal inline mode supported by the card. When creat

svn commit: r337741 - stable/10/sys/dev/mlx5/mlx5_en

2018-08-14 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 14 11:15:05 2018 New Revision: 337741 URL: https://svnweb.freebsd.org/changeset/base/337741 Log: MFC r336407: Handle jumbo frames without requiring big clusters in mlx5en(4). The scatter list is formed by the chunks of MCLBYTES each, and larger than defaul

svn commit: r337042 - stable/10/sys/sys

2018-08-01 Thread Hans Petter Selasky
Author: hselasky Date: Wed Aug 1 13:13:43 2018 New Revision: 337042 URL: https://svnweb.freebsd.org/changeset/base/337042 Log: MFC r322596: Add SI_SUB_TASKQ after SI_SUB_INTR and move taskqueue initialization there for EARLY_AP_STARTUP This fixes a regression accidentally introduced in

svn commit: r337041 - in stable/10/sys: amd64/include i386/include

2018-08-01 Thread Hans Petter Selasky
Author: hselasky Date: Wed Aug 1 12:49:51 2018 New Revision: 337041 URL: https://svnweb.freebsd.org/changeset/base/337041 Log: MFC r311169, r312975, r313080, r315718 and r316031: Add support for atomic_(f)cmpset to x86. Modified: stable/10/sys/amd64/include/atomic.h stable/10/sys/i386

svn commit: r337036 - in stable/10/sys: arm/arm sys

2018-08-01 Thread Hans Petter Selasky
Author: hselasky Date: Wed Aug 1 11:08:52 2018 New Revision: 337036 URL: https://svnweb.freebsd.org/changeset/base/337036 Log: MFC r321686 and r330361: Add inline functions to convert between sbintime_t and decimal time units. Use them in some existing code that is vulnerable to roundoff er

svn commit: r337034 - in stable/10: share/man/man9 sys/kern sys/sys

2018-08-01 Thread Hans Petter Selasky
Author: hselasky Date: Wed Aug 1 10:34:53 2018 New Revision: 337034 URL: https://svnweb.freebsd.org/changeset/base/337034 Log: MFC r330349 and r330362: Allow pause_sbt() to catch signals during sleep by passing C_CATCH flag. Define pause_sig() function macro helper similarly to other ker

  1   2   3   4   >