Summary: | [usb] [if_ure] device gets stuck in link down after a few linkup/linkdown events | ||
---|---|---|---|
Product: | Base System | Reporter: | Erik Inge Bolsø <knan-bfo> |
Component: | usb | Assignee: | freebsd-usb (Nobody) <usb> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | grahamperrin, hselasky |
Priority: | --- | ||
Version: | 13.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Erik Inge Bolsø
2021-06-17 15:33:38 UTC
Hi, There are two patches you can try: https://reviews.freebsd.org/D30376 https://reviews.freebsd.org/D28136 --HPS Hi. Tried applying these two patches to releng/13.0 and got a compile error. What branch should I try these against? cc -target x86_64-unknown-freebsd13.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.subr_epoch.o -MTsubr_epoch.o -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx -std=iso9899:1999 -Werror /usr/src/sys/kern/subr_epoch.c /usr/src/sys/kern/subr_epoch.c:489:6: error: no member named 'et_old_priority' in 'struct epoch_tracker' et->et_old_priority = 0; /* not used */ ~~ ^ 1 error generated. *** Error code 1 These patches are for 14-current. Maybe they will work on the latest 13-stable too. --HPS Applied the patches to latest 13-stable. Doesn't seem to have improved things much, devices still get stuck occasionally. Nothing fun in dmesg when it happens. Just a link down that doesn't get back up. If you issue: usbconfig -d X.Y reset Where X.Y are the numbers after ugen, does the device come back with the link up? --HPS Yes, that seems to get them going again. |