usb uas Device Removal not detected in 22.04

Bug #1978867 reported by Harald Rudell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

22.04 5.15.0-37-generic xhci_hcd has some issues

2012 hardware no longer work with 2109:0715 #1978397
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086
:1e31] (rev 04)
        Subsystem: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:7270]
        Kernel driver in use: xhci_hcd

2018 hardware no longer work with 2109:0822 (this bug)
00:14.0 USB controller [0c03]: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller [8086:a36d] (rev 10)
        Subsystem: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller [8086:7270]
        Kernel driver in use: xhci_hcd

The problemprompting this bug is that uas disk removal from 2109:0715 is not detected by 8086:a36d
the /dev/sd device for the no longer present disk remains until:
echo 1 > /sys/block/sdd/device/delete

Here is 3:25 device removal:
Jun 15 03:25:54 c68z systemd[1]: mnt-vlx10-c68x.mount: Deactivated successfully.
Jun 15 03:25:55 c68z zed: eid=494 class=pool_export pool='vlx10' pool_state=EXPORTED
Jun 15 03:25:55 c68z zed: eid=495 class=config_sync pool='vlx10' pool_state=UNINITIALIZED

Here is 3:26 Synchronizing SCSI cache reading from the removed device:
Jun 15 03:26:13 c68z kernel: [ 5307.245185] usb 2-5.2: Disable of device-initiated U1 failed.
Jun 15 03:26:13 c68z kernel: [ 5307.252087] usb 2-5.2: Disable of device-initiated U2 failed.
Jun 15 03:26:13 c68z kernel: [ 5307.993998] usb 2-5.2: reset SuperSpeed USB device number 7 using xhci_hcd
Jun 15 03:26:29 c68z kernel: [ 5323.181119] usb 2-5.2: Disable of device-initiated U1 failed.
Jun 15 03:26:29 c68z kernel: [ 5323.188084] usb 2-5.2: Disable of device-initiated U2 failed.
Jun 15 03:26:29 c68z kernel: [ 5323.929678] usb 2-5.2: reset SuperSpeed USB device number 7 using xhci_hcd
Jun 15 03:26:41 c68z kernel: [ 5335.933396] sd 2:0:0:0: [sdc] tag#21 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
Jun 15 03:26:41 c68z kernel: [ 5335.933407] sd 2:0:0:0: [sdc] tag#21 Sense Key : Illegal Request [current]
Jun 15 03:26:41 c68z kernel: [ 5335.933414] sd 2:0:0:0: [sdc] tag#21 Add. Sense: Invalid command operation code
Jun 15 03:26:41 c68z kernel: [ 5335.933420] sd 2:0:0:0: [sdc] tag#21 CDB: Read(16) 88 00 00 00 00 04 8c 3f fa 50 00 00 00 e0 00 00
Jun 15 03:26:41 c68z kernel: [ 5335.933424] blk_update_request: critical target error, dev sdc, sector 19532872272 op 0x0:(READ) flags 0x0 phys_seg 28 prio class 0
Jun 15 03:26:41 c68z kernel: [ 5335.934158] sd 2:0:0:0: [sdc] tag#22 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
Jun 15 03:26:41 c68z kernel: [ 5335.934170] sd 2:0:0:0: [sdc] tag#22 Sense Key : Illegal Request [current]
Jun 15 03:26:41 c68z kernel: [ 5335.934177] sd 2:0:0:0: [sdc] tag#22 Add. Sense: Invalid command operation code
Jun 15 03:26:41 c68z kernel: [ 5335.934184] sd 2:0:0:0: [sdc] tag#22 CDB: Read(16) 88 00 00 00 00 04 8c 3f fc 50 00 00 00 e0 00 00
Jun 15 03:26:41 c68z kernel: [ 5335.934187] blk_update_request: critical target error, dev sdc, sector 19532872784 op 0x0:(READ) flags 0x0 phys_seg 28 prio class 0
Jun 15 03:27:05 c68z kernel: [ 5360.036887] sd 2:0:0:0: [sdc] tag#22 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
Jun 15 03:27:05 c68z kernel: [ 5360.036926] sd 2:0:0:0: [sdc] tag#22 Sense Key : Illegal Request [current]
Jun 15 03:27:05 c68z kernel: [ 5360.036935] sd 2:0:0:0: [sdc] tag#22 Add. Sense: Invalid command operation code
Jun 15 03:27:05 c68z kernel: [ 5360.036944] sd 2:0:0:0: [sdc] tag#22 CDB: Read(16) 88 00 00 00 00 04 8c 3f fa 50 00 00 00 e0 00 00
Jun 15 03:27:05 c68z kernel: [ 5360.036949] blk_update_request: critical target error, dev sdc, sector 19532872272 op 0x0:(READ) flags 0x0 phys_seg 28 prio class 0
Jun 15 03:27:05 c68z kernel: [ 5360.037677] sd 2:0:0:0: [sdc] tag#23 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
Jun 15 03:27:05 c68z kernel: [ 5360.037687] sd 2:0:0:0: [sdc] tag#23 Sense Key : Illegal Request [current]
Jun 15 03:27:05 c68z kernel: [ 5360.037700] sd 2:0:0:0: [sdc] tag#23 Add. Sense: Invalid command operation code
Jun 15 03:27:05 c68z kernel: [ 5360.037707] sd 2:0:0:0: [sdc] tag#23 CDB: Read(16) 88 00 00 00 00 04 8c 3f fc 50 00 00 00 e0 00 00
Jun 15 03:27:05 c68z kernel: [ 5360.037711] blk_update_request: critical target error, dev sdc, sector 19532872784 op 0x0:(READ) flags 0x0 phys_seg 28 prio class 0
Jun 15 03:30:21 c68z kernel: [ 5555.149307] usb 2-5.2: Disable of device-initiated U1 failed.
Jun 15 03:30:21 c68z kernel: [ 5555.156162] usb 2-5.2: Disable of device-initiated U2 failed.
Jun 15 03:30:21 c68z kernel: [ 5555.897428] usb 2-5.2: reset SuperSpeed USB device number 7 using xhci_hcd
Jun 15 03:33:26 c68z kernel: [ 5740.221793] usb 2-5.2: Disable of device-initiated U1 failed.
Jun 15 03:33:26 c68z kernel: [ 5740.228722] usb 2-5.2: Disable of device-initiated U2 failed.
Jun 15 03:33:26 c68z kernel: [ 5740.911469] usb 2-5.2: USB disconnect, device number 7
Jun 15 03:33:26 c68z kernel: [ 5740.945591] sd 2:0:0:0: [sdc] Synchronizing SCSI cache
Jun 15 03:33:27 c68z kernel: [ 5741.193619] sd 2:0:0:0: [sdc] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK

Here is another unplug that failed:
Jun 15 12:40:54 c68z kernel: [31565.962337] usb 2-5.2: Disable of device-initiated U1 failed.
Jun 15 12:40:54 c68z kernel: [31565.969755] usb 2-5.2: Disable of device-initiated U2 failed.
Jun 15 12:40:55 c68z kernel: [31566.714223] usb 2-5.2: reset SuperSpeed USB device number 7 using xhci_hcd
Jun 15 12:41:29 c68z kernel: [31600.849069] sd 3:0:0:0: [sdd] Synchronizing SCSI cache

Here is output when issuing the delete command:
Jun 15 12:41:32 c68z kernel: [31603.996223] sd 3:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
Jun 15 12:41:32 c68z kernel: [31603.996227] sd 3:0:0:0: [sdd] Sense Key : Illegal Request [current]
Jun 15 12:41:32 c68z kernel: [31603.996228] sd 3:0:0:0: [sdd] Add. Sense: Invalid command operation code

Other devices fail, too, here is a device that has been used for 3 years with 10 GiB hardware:
(error -32 usually precedes xHCI dead and usb shutdown, but this does not happen because the device is on.a hub)
(this device worked for 3 years on 20.04 until yesterday’s upgrade to 22.04)
Jun 15 13:24:15 c68z kernel: [34166.876258] usb 1-8.4: new full-speed USB device number 13 using xhci_hcd
Jun 15 13:24:17 c68z kernel: [34168.944300] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:18 c68z kernel: [34169.132373] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:18 c68z kernel: [34169.324213] usb 1-8.4: new full-speed USB device number 14 using xhci_hcd
Jun 15 13:24:18 c68z kernel: [34169.408229] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:18 c68z kernel: [34169.600272] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:18 c68z kernel: [34169.712477] usb 1-8-port4: attempt power cycle
Jun 15 13:24:19 c68z kernel: [34170.324203] usb 1-8.4: new full-speed USB device number 15 using xhci_hcd
Jun 15 13:24:19 c68z kernel: [34170.324361] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:19 c68z kernel: [34170.532346] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:19 c68z kernel: [34170.740205] usb 1-8.4: device not accepting address 15, error -71
Jun 15 13:24:19 c68z kernel: [34170.824192] usb 1-8.4: new full-speed USB device number 16 using xhci_hcd
Jun 15 13:24:19 c68z kernel: [34170.824361] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:20 c68z kernel: [34171.032346] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:20 c68z kernel: [34171.240173] usb 1-8.4: device not accepting address 16, error -71
Jun 15 13:24:20 c68z kernel: [34171.240733] usb 1-8-port4: unable to enumerate USB device
Jun 15 13:24:20 c68z kernel: [34171.504169] usb 1-8.4: new full-speed USB device number 17 using xhci_hcd
Jun 15 13:24:20 c68z kernel: [34171.588269] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:20 c68z kernel: [34171.776817] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:20 c68z kernel: [34171.972153] usb 1-8.4: new full-speed USB device number 18 using xhci_hcd
Jun 15 13:24:21 c68z kernel: [34172.056241] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:21 c68z kernel: [34172.248236] usb 1-8.4: device descriptor read/64, error -32
Jun 15 13:24:21 c68z kernel: [34172.356737] usb 1-8-port4: attempt power cycle
Jun 15 13:24:21 c68z kernel: [34172.964146] usb 1-8.4: new full-speed USB device number 19 using xhci_hcd
Jun 15 13:24:21 c68z kernel: [34172.964266] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:22 c68z kernel: [34173.172497] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:22 c68z kernel: [34173.380142] usb 1-8.4: device not accepting address 19, error -71
Jun 15 13:24:22 c68z kernel: [34173.464148] usb 1-8.4: new full-speed USB device number 20 using xhci_hcd
Jun 15 13:24:22 c68z kernel: [34173.464327] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:22 c68z kernel: [34173.672294] usb 1-8.4: Device not responding to setup address.
Jun 15 13:24:22 c68z kernel: [34173.880122] usb 1-8.4: device not accepting address 20, error -71
Jun 15 13:24:22 c68z kernel: [34173.880649] usb 1-8-port4: unable to enumerate USB device

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-37-generic 5.15.0-37.39
ProcVersionSignature: Ubuntu 5.15.0-37.39-generic 5.15.35
Uname: Linux 5.15.0-37-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D2', '/dev/snd/pcmC0D10p', '/dev/snd/pcmC0D9p', '/dev/snd/pcmC0D8p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D3p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
CasperMD5CheckResult: unknown
Date: Wed Jun 15 13:24:12 2022
HibernationDevice: RESUME=none
IwConfig:
 lo no wireless extensions.

 enp4s0 no wireless extensions.

 enx0050b61d8323 no wireless extensions.
MachineType: Apple Inc. Macmini8,1
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 TERM=screen
 PATH=(custom, no user)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: root=ZFS=rpool/ROOT/ubuntu_mc4at7 ro initrd=EFI\hostname\initrd.img
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-37-generic N/A
 linux-backports-modules-5.15.0-37-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.2
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/24/2022
dmi.bios.release: 0.1
dmi.bios.vendor: Apple Inc.
dmi.bios.version: 1731.120.10.0.0 (iBridge: 19.16.15071.0.0,0)
dmi.board.name: Mac-7BA5B2DFE22DDD8C
dmi.board.vendor: Apple Inc.
dmi.board.version: Macmini8,1
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-7BA5B2DFE22DDD8C
dmi.modalias: dmi:bvnAppleInc.:bvr1731.120.10.0.0(iBridge19.16.15071.0.0,0):bd04/24/2022:br0.1:svnAppleInc.:pnMacmini8,1:pvr1.0:rvnAppleInc.:rnMac-7BA5B2DFE22DDD8C:rvrMacmini8,1:cvnAppleInc.:ct9:cvrMac-7BA5B2DFE22DDD8C:sku:
dmi.product.family: Mac mini
dmi.product.name: Macmini8,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Harald Rudell (harald-rudell) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.