| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Decode the "LACP Fast Timeout" LAGG option flag
r286700 added the "lacp_fast_timeout" option to `ifconfig', but we forgot to
include the new option in the string used to decode the option bits. Add
"LACP_FAST_TIMO" to LAGG_OPT_BITS.
Also, s/LAGG_OPT_LACP_TIMEOUT/LAGG_OPT_LACP_FAST_TIMO/g , to be clearer that
the flag indicates "Fast Timeout" mode.
Notes:
svn path=/stable/10/; revision=362368
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 such packets will get dropped.
Backtrace:
mlx5e_sq_xmit()
mlx5e_xmit()
ether_output_frame()
ether_output()
ip_output_send()
ip_output()
rip_output()
sosend_generic()
sosend()
kern_sendit()
sendit()
sys_sendto()
amd64_syscall()
fast_syscall_common()
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362313
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 error cases. Use unlikely() for these cases.
No functional change.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362310
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 using
the const keyword, no fields are to be modified inside the transmitted
packet.
No functional change.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362307
|
| |
|
|
|
|
|
|
|
|
| |
Add missing range checks when receiving USB ethernet packets.
Found by: Ilja Van Sprundel, IOActive
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=362168
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 such push levels.
If the push level is not restored within the processing of the same
HID item, an invalid memory location may be used for subsequent HID
item processing.
Verify that the push level is always valid when processing HID items.
Reported by: Andy Nguyen (Google)
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361921
|
| |
|
|
|
|
|
|
|
|
| |
Fix check for wMaxPacketSize in USB bluetooth driver,
in case device is not FULL speed.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361916
|
| |
|
|
|
|
|
|
|
|
| |
Implement helper function, usbd_get_max_frame_length(), which allows kernel
device drivers to correctly predict the default USB transfer frame length.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361912
|
| |
|
|
|
|
|
|
|
|
| |
Don't allow USB device drivers to parent own interface.
It will prevent proper USB device detach.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361908
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Assign process group of the TTY under the "proctree_lock".
This fixes a race where concurrent calls to doenterpgrp() and
leavepgrp() while TIOCSCTTY is executing may result in tp->t_pgrp
changing value so that tty_rel_pgrp() misses clearing it to NULL. For
more details refer to the use of pgdelete() in the kernel.
No functional change intended.
Panic backtrace:
__mtx_lock_sleep() # page fault due to using destroyed mutex
tty_signal_pgrp()
tty_ioctl()
ptsdev_ioctl()
kern_ioctl()
sys_ioctl()
amd64_syscall()
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361358
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Bring HCI error messages up-to-date.
See Bluetooth v5.6 core specification Vol.1 Part F: Controller error codes.
Submitted by: Marc Veldman <marc@bumblingdork.com>
PR: 245737
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=361157
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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_ERROR_BANDWIDTH for isochronous USB 3.0
transactions.
Submitted by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=360335
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cast all ioctl command arguments through uint32_t internally.
Hide debug print showing use of sign extended ioctl command argument
under INVARIANTS. The print is available to all and can easily fill
up the logs.
No functional change intended.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=360332
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add the missing braces to fix the code not guarded by the if clause and has
misleading indentation. This is found by gcc -Wmisleading-indentation
Approved by: erj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20428
Notes:
svn path=/stable/10/; revision=360304
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This fixes the following warning from recent versions of clang and gcc:
sys/dev/drm2/radeon/evergreen.c:554:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
Direct commit to stable/{10,11,12}, since this driver has been removed
from FreeBSD 13.
Notes:
svn path=/stable/10/; revision=360303
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for multiple playback and recording devices per physical USB audio
device. This requires some structural refactoring inside the driver, mostly
about converting existing audio channel structures into arrays.
The main audio mixer is provided by the first PCM instance.
The non-first audio instances may only have a software mixer for PCM playback.
Tested by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359890
|
| |
|
|
|
|
|
|
|
| |
Implement new mixer API to return the device pointer based on the mixer pointer.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359887
|
| |
|
|
|
|
|
|
|
|
| |
Change default microphone level from 0 to 25.
Discussed with: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359884
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 they deliver audio to the USB host.
- make sure there are no duplicate record selections.
- remove internal only mixer class type.
- don't add software volume controls for recording only.
- some minor mixer code cleanup.
Tested by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359881
|
| |
|
|
|
|
|
|
|
|
| |
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 by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359878
|
| |
|
|
|
|
|
|
|
|
| |
Make mute controls available for USB audio mixers.
Submitted by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359875
|
| |
|
|
|
|
|
|
|
| |
Factor out USB audio mixer value range check.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359872
|
| |
|
|
|
|
|
|
|
| |
Avoid scaling USB audio mixer values twice.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359869
|
| |
|
|
|
|
|
|
|
|
| |
Count number of times transmit ring is out of buffers in mlx5en(4).
Differential Revision: https://reviews.freebsd.org/D24273
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359855
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 making assumptions about the inline size limit
in the fast transmit path later on.
Use a signed integer variable to catch underflow.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359847
|
| |
|
|
|
|
|
|
|
|
| |
Correctly implement support for remote wakeup for USB 3.0 device.
Submitted by: Horse Ma <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359318
|
| |
|
|
|
|
|
|
|
|
|
|
| |
With this patch, users can play the MIDI files through /dev/sequencer
device with tools like playmidi. The audio output will go through
the external MIDI device such like wavetable synthesis card.
Reviewed by: matk (a long time ago), kib
Tested with: Terratec SiXPack 5.1+ + Yamaha DB50XG
Notes:
svn path=/stable/10/; revision=359161
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix for double unlock in ipoib.
The ipoib_unicast_send() function is not supposed to unlock the priv lock.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=359123
|
| |
|
|
|
|
|
|
|
|
| |
Add support for the device statistics IOCTL, needed by the coming
linux_libusb upgrade.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358941
|
| |
|
|
|
|
|
|
|
|
| |
Define more subsystem orders.
Intended for use with module_init_order() in the LinuxKPI.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358937
|
| |
|
|
|
|
|
|
|
| |
Fix some whitespace issues in ipoib.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358933
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 someone is using it.
This avoids applications having to wait for the DSP read data
timeout before they receive any error indication.
Tested with virtual_oss(8).
Remove some unused definitions while at it.
PR: 194727
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358879
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
speed mode. Currently the power bit is not needed for anything in the USB
hub driver.
This fixes USB warm reset for super speed devices.
Tested by: Shichun.Ma@dell.com
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=358875
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a crash in the NFSv4 server.
The PR reported a crash that occurred when a file was removed while
client(s) were actively doing lock operations on it.
Since nfsvno_getvp() will return NULL when the file does not exist,
the bug was obvious and easy to fix via this patch. It is a little
surprising that this wasn't found sooner, but I guess the above
case rarely occurs.
PR: 242768
Notes:
svn path=/stable/10/; revision=358035
|
| |
|
|
|
|
|
|
|
|
|
| |
Add new USB ID to uslcom(4).
Submitted by: Oleg Sharoyko <osharoiko@gmail.com>
PR: 243494
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=357432
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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()
linux_work_fn()
taskqueue_run_locked()
taskqueue_thread_loop()
fork_exit()
fork_trampoline()
Submitted by: Andreas Kempe <kempe@lysator.liu.se>
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=357429
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 configured on a per device basis, and use an evaluate
endpoint context command instead. When changing the configuration make
sure all endpoints get deconfigured and the configured endpoint mask
is reset.
This fixes an issue where an endpoint might stop working if there is
an error and the endpoint needs to be reconfigured as a part of the
error recovery mechanism in the FreeBSD USB stack.
Tested by: Shichun.Ma@dell.com
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=356783
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add own counter for cancelled USB transfers.
Do not count these as errors.
Bump the FreeBSD version to force recompilation of external modules.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=356681
|
| |
|
|
|
|
|
|
|
|
| |
Fix spelling.
PR: 242891
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=356412
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Make USB statistics per device instead of per bus.
Bump the FreeBSD version due to structure change to
force recompilation of external USB modules.
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=356396
|
| |
|
|
|
|
|
|
|
|
|
| |
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
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=356074
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Fix panic when loading kernel modules before root file system is mounted.
Make sure the rootvnode is always NULL checked.
Differential Revision: https://reviews.freebsd.org/D22545
PR: 241639
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=355419
|
| |
|
|
|
|
|
|
|
|
| |
In em_handle_link(), only re-arm the link state change interrupt for
82574 and also only if such a device uses MSI-X, i. e. takes advantage
of autoclearing. In case of INTx and MSI re-arming isn't appropriate
here and setting EM_MSIX_LINK isn't either.
Notes:
svn path=/stable/10/; revision=354209
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r325596, r326026, r328420, r331472, r333276, r333650, r333652, r334406,
r334409-r334410, r334489, r336042, r340651, r342603, and r345083.
This updates the cxgbe firmwares in stable/10 and also pulls in support
for some newer boards and flash parts.
r319872:
cxgbe(4): Do not request an FEC setting that the port does not support.
r321063:
cxgbe(4): Various link/media related improvements.
r321582:
cxgbe(4): Some updates to the common code.
r322034:
cxgbe(4): Always use the first and not the last virtual interface
associated with a port in begin_synchronized_op.
r322425:
cxgbe(4): Save the last reported link parameters and compare them with
the current state to determine whether to generate a link-state change
notification. This fixes a bug introduced in r321063 that caused the
driver to sometimes skip these notifications.
r322962:
cxgbe(4): Remove write only variable from t4_port_init.
r322985:
cxgbe(4): Maintain one ifmedia per physical port instead of one per
Virtual Interface (VI). All autonomous VIs that share a port share the
same media.
r325596:
cxgbe(4): Do not request settings not supported by the port.
r326026:
cxgbe(4): Add a custom board to the device id list.
r328420:
cxgbe(4): Do not display harmless warning in non-debug builds.
r331472:
cxgbe(4): Always initialize requested_speed to a valid value.
This fixes an avoidable EINVAL when the user tries to disable AN after
the port is initialized but l1cfg doesn't have a valid speed to use.
r333276:
cxgbe(4): Update all firmwares to 1.19.1.0.
r333650:
cxgbe(4): Claim some more T5 and T6 boards.
r333652:
cxgbe(4): Add support for two more flash parts.
r334406:
cxgbe(4): Consider all supported speeds when building the ifmedia list
for a port. Fix other related issues while here:
- Require port lock for access to link_config.
- Allow 100Mbps operation by tracking the speed in Mbps. Yes, really.
- New port flag to indicate that the media list is immutable. It will
be used in future refinements.
This also fixes a bug where the driver reports incorrect media with
recent firmwares.
r334409:
cxgbe(4): Implement ifm_change callback.
r334410:
cxgbe(4): Use ifm for ifmedia just like the rest of the kernel.
No functional change.
r334489:
cxgbe(4): Include full duplex mediaopt in media that can be reported as
active. Always report full duplex in active media.
r336042:
cxgbe(4): Assume that any unknown flash on the card is 4MB and has 64KB
sectors, instead of refusing to attach to the card.
r340651:
cxgbe(4): Update T4/5/6 firmwares to 1.22.0.3.
r342603:
cxgbe(4): Attach to two T540 variants.
r345083:
cxgbe(4): Update T4/5/6 firmwares to 1.23.0.0.
Notes:
svn path=/stable/10/; revision=353418
|
| |
|
|
|
|
|
|
|
|
| |
Add several new media types to if_media.h
These include several 25G types (for active direct attach cables and LR modules),
and a missing type for 10G active direct attach.
Notes:
svn path=/stable/10/; revision=353414
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 USB control transfer is split using a link TRB. The
next NORMAL TRB after the link TRB is simply failing with XHCI error
code 4. The quirk ensures we allocate a 64Kbyte buffer so that the
data stage TRB is not broken with a link TRB.
Found at: EuroBSDcon 2019
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=353179
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Increase the maximum user-space buffer size from 256kBytes to 32MBytes for
libusb. This is useful for speeding up large data transfers while reducing
the interrupt rate.
Found at: EuroBSDcon 2019
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=353175
|
| |
|
|
|
|
|
|
|
|
| |
The maximum TD size is 31 and not 15.
Found at: EuroBSDcon 2019
Sponsored by: Mellanox Technologies
Notes:
svn path=/stable/10/; revision=353171
|
| |
|
|
|
|
|
| |
Add missing definition in DEBUG code.
Notes:
svn path=/stable/10/; revision=353164
|
| |
|
|
|
|
|
|
|
| |
ipf mistakenly regards UDP packets with a checksum of 0xffff as bad.
Obtained from: NetBSD fil.c r1.30, NetBSD PR/54443
Notes:
svn path=/stable/10/; revision=352866
|