Author: hselasky
Date: Tue Jun 9 22:15:45 2020
New Revision: 361989
URL: https://svnweb.freebsd.org/changeset/base/361989
Log:
Adapt merge of r361581 to 9-stable to unbreak kernel compilation.
This is a direct commit.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/dev/u
Author: hselasky
Date: Mon Jun 8 09:35:32 2020
New Revision: 361922
URL: https://svnweb.freebsd.org/changeset/base/361922
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
Author: hselasky
Date: Mon Jun 8 09:31:52 2020
New Revision: 361917
URL: https://svnweb.freebsd.org/changeset/base/361917
Log:
MFC r361582:
Fix check for wMaxPacketSize in USB bluetooth driver,
in case device is not FULL speed.
Sponsored by: Mellanox Technologies
Modified:
stable/9/
Author: hselasky
Date: Mon Jun 8 09:29:08 2020
New Revision: 361913
URL: https://svnweb.freebsd.org/changeset/base/361913
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.
Author: hselasky
Date: Mon Jun 8 09:25:40 2020
New Revision: 361909
URL: https://svnweb.freebsd.org/changeset/base/361909
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:
Author: hselasky
Date: Fri May 22 09:02:40 2020
New Revision: 361359
URL: https://svnweb.freebsd.org/changeset/base/361359
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
Author: hselasky
Date: Sun Apr 26 08:38:53 2020
New Revision: 360336
URL: https://svnweb.freebsd.org/changeset/base/360336
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_
Author: hselasky
Date: Thu Mar 26 05:39:20 2020
New Revision: 359319
URL: https://svnweb.freebsd.org/changeset/base/359319
Log:
MFC r359120:
Correctly implement support for remote wakeup for USB 3.0 device.
Submitted by: Horse Ma
Sponsored by: Mellanox Technologies
Modified:
stable/
Author: hselasky
Date: Thu Mar 19 09:21:27 2020
New Revision: 359124
URL: https://svnweb.freebsd.org/changeset/base/359124
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
Author: hselasky
Date: Fri Mar 13 09:15:13 2020
New Revision: 358946
URL: https://svnweb.freebsd.org/changeset/base/358946
Log:
MFC r358838:
Add support for the device statistics IOCTL, needed by the coming
linux_libusb upgrade.
Sponsored by: Mellanox Technologies
Modified:
stable/9/
Author: hselasky
Date: Fri Mar 13 09:14:05 2020
New Revision: 358945
URL: https://svnweb.freebsd.org/changeset/base/358945
Log:
MFC r253338:
Add some missing LIBUSB IOCTL conversion codes.
Modified:
stable/9/sys/compat/linux/linux_ioctl.c
stable/9/sys/compat/linux/linux_ioctl.h
Directory
Author: hselasky
Date: Fri Mar 13 09:10:44 2020
New Revision: 358944
URL: https://svnweb.freebsd.org/changeset/base/358944
Log:
Define USB_FS_OPEN_STREAM, even if not supported.
This is a direct commit.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/dev/usb/usb_ioctl.h
Mod
Author: hselasky
Date: Fri Mar 13 08:54:57 2020
New Revision: 358938
URL: https://svnweb.freebsd.org/changeset/base/358938
Log:
MFC r358695:
Define more subsystem orders.
Intended for use with module_init_order() in the LinuxKPI.
Sponsored by: Mellanox Technologies
Modified:
stable/9
Author: hselasky
Date: Fri Mar 13 08:51:46 2020
New Revision: 358934
URL: https://svnweb.freebsd.org/changeset/base/358934
Log:
MFC r358694:
Fix some whitespace issues in ipoib.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
Di
Author: hselasky
Date: Wed Mar 11 08:26:52 2020
New Revision: 358880
URL: https://svnweb.freebsd.org/changeset/base/358880
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
Author: hselasky
Date: Wed Mar 11 08:23:14 2020
New Revision: 358876
URL: https://svnweb.freebsd.org/changeset/base/358876
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
:34 2020
(r357440)
@@ -1,6 +1,6 @@
/* $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
Author: hselasky
Date: Mon Feb 3 11:18:07 2020
New Revision: 357441
URL: https://svnweb.freebsd.org/changeset/base/357441
Log:
MFC r357298:
Add missing mutex unlock in failure case.
Differential Revision:https://reviews.freebsd.org/D23430
Submitted by: cem
Reported by: Cover
Author: hselasky
Date: Tue Jun 11 08:54:21 2019
New Revision: 348896
URL: https://svnweb.freebsd.org/changeset/base/348896
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
Author: hselasky
Date: Mon Jun 10 13:38:57 2019
New Revision: 348858
URL: https://svnweb.freebsd.org/changeset/base/348858
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.
Author: hselasky
Date: Fri Apr 5 11:37:17 2019
New Revision: 345944
URL: https://svnweb.freebsd.org/changeset/base/345944
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
Author: hselasky
Date: Fri Feb 15 09:25:52 2019
New Revision: 344147
URL: https://svnweb.freebsd.org/changeset/base/344147
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)
(r343903, copy of r343572,
head/usr.sbin/bluetooth/sdpd/audio_sink.c)
@@ -0,0 +1,188 @@
+/*-
+ * 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
Author: hselasky
Date: Thu Jan 3 09:30:10 2019
New Revision: 342729
URL: https://svnweb.freebsd.org/changeset/base/342729
Log:
MFC r342549:
Add USB quirk for SPL Crimson Rev 1.
PR: 234380
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/dev/usb/qu
Author: hselasky
Date: Thu Jan 3 09:29:37 2019
New Revision: 342728
URL: https://svnweb.freebsd.org/changeset/base/342728
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:
Author: hselasky
Date: Sun Nov 11 12:35:30 2018
New Revision: 340353
URL: https://svnweb.freebsd.org/changeset/base/340353
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:
Author: hselasky
Date: Mon Oct 29 12:13:05 2018
New Revision: 339854
URL: https://svnweb.freebsd.org/changeset/base/339854
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
Author: hselasky
Date: Thu Oct 25 14:57:33 2018
New Revision: 339722
URL: https://svnweb.freebsd.org/changeset/base/339722
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
Author: hselasky
Date: Thu Oct 25 14:36:56 2018
New Revision: 339716
URL: https://svnweb.freebsd.org/changeset/base/339716
Log:
MFC r339581:
Fix off-by-one which can lead to panics.
Found by: Peter Holm
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/d
Author: hselasky
Date: Fri Oct 5 07:52:28 2018
New Revision: 339191
URL: https://svnweb.freebsd.org/changeset/base/339191
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
Author: hselasky
Date: Wed Sep 19 08:13:58 2018
New Revision: 338793
URL: https://svnweb.freebsd.org/changeset/base/338793
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.
Author: hselasky
Date: Wed Sep 19 08:09:59 2018
New Revision: 338790
URL: https://svnweb.freebsd.org/changeset/base/338790
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
Author: hselasky
Date: Mon Jul 30 09:29:32 2018
New Revision: 336891
URL: https://svnweb.freebsd.org/changeset/base/336891
Log:
MFC r336632:
Update modify counter when setting a mixer control.
PR: 229969
Modified:
stable/9/sys/dev/sound/pcm/mixer.c
Directory Properties:
sta
Author: hselasky
Date: Mon Jul 30 09:22:21 2018
New Revision: 336888
URL: https://svnweb.freebsd.org/changeset/base/336888
Log:
MFC r335700:
Improve the kernel's USB descriptor reading function.
Some USB devices does not allow a partial descriptor readout.
Found by: bz@
Sponsored
Author: hselasky
Date: Mon Jul 30 09:18:45 2018
New Revision: 336885
URL: https://svnweb.freebsd.org/changeset/base/336885
Log:
MFC r335669:
Improve the userspace USB string reading function in LibUSB.
Some USB devices does not allow a partial descriptor readout.
Found by: b
Author: hselasky
Date: Thu Feb 1 13:17:42 2018
New Revision: 328657
URL: https://svnweb.freebsd.org/changeset/base/328657
Log:
MFC r328623:
Properly implement the cond_resched() function macro in the LinuxKPI.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/ofed/include/lin
Author: hselasky
Date: Fri Dec 8 15:30:59 2017
New Revision: 326693
URL: https://svnweb.freebsd.org/changeset/base/326693
Log:
MFC r326362:
Disallow TUN and TAP character device IOCTLs to modify the network device
type to any value. This can cause page faults and panics due to accessing
u
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
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
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
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
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
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
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
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
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
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/
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.
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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()
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
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
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:
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-
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
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
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
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
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
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
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
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/
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.
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
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
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
1 - 100 of 414 matches
Mail list logo