Re: [REGRESSION] USB flash drive unusable with constant resets, since commit 4f53138fff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patch works when applied over commit 4f53138fff ! (bflags change and
it avoids the issue)

----working on patched 4f53138fff----
May 31 17:15:58 oldell kernel: usb 1-1.3: new high-speed USB device
number 5 using ehci-pci
May 31 17:15:58 oldell kernel: usb 1-1.3: New USB device found,
idVendor=0951, idProduct=1624, bcdDevice= 1.00
May 31 17:15:58 oldell kernel: usb 1-1.3: New USB device strings:
Mfr=1, Product=2, SerialNumber=3
May 31 17:15:58 oldell kernel: usb 1-1.3: Product: DataTraveler G2
May 31 17:15:58 oldell kernel: usb 1-1.3: Manufacturer: Kingston
May 31 17:15:58 oldell kernel: usb 1-1.3: SerialNumber: 0014780F9955F971A5EC08D7
May 31 17:15:58 oldell kernel: usb-storage 1-1.3:1.0: USB Mass Storage
device detected
May 31 17:15:58 oldell kernel: scsi host6: usb-storage 1-1.3:1.0
May 31 17:15:58 oldell kernel: usbcore: registered new interface
driver usb-storage
May 31 17:15:58 oldell kernel: usbcore: registered new interface driver uas
May 31 17:15:59 oldell kernel: scsi 6:0:0:0: bflags = 0x400000000
May 31 17:15:59 oldell kernel: scsi 6:0:0:0: Direct-Access
Kingston DataTraveler G2  1.00 PQ: 0 ANSI: 2
May 31 17:15:59 oldell kernel: sd 6:0:0:0: [sdb] 15654848 512-byte
logical blocks: (8.02 GB/7.46 GiB)
May 31 17:15:59 oldell kernel: sd 6:0:0:0: [sdb] Write Protect is off
May 31 17:15:59 oldell kernel: sd 6:0:0:0: [sdb] Mode Sense: 16 24 09 51
May 31 17:15:59 oldell kernel: sd 6:0:0:0: [sdb] Incomplete mode parameter data
May 31 17:15:59 oldell kernel: sd 6:0:0:0: [sdb] Assuming drive cache:
write through
May 31 17:15:59 oldell kernel:  sdb: sdb1 sdb2
May 31 17:15:59 oldell kernel: sd 6:0:0:0: [sdb] Attached SCSI removable disk
May 31 17:17:34 oldell kernel: wlp2s0: deauthenticating from
f0:f2:49:98:2c:b8 by local choice (Reason: 3=DEAUTH_LEAVING)
------

Maybe code changes on recent commits are interfering with the patch.
Same behavioral differences are replicated on QEMU using USB pass
through for this device: tested both 4f53138fff patched (OK) &
1613e604df0 patched (Not OK).

Thanks Bart.


On Thu, May 30, 2024 at 5:38 PM Bart Van Assche <bvanassche@xxxxxxx> wrote:
>
> On 5/30/24 02:46, Joao Machado wrote:
> > Tried the patch over commit 1613e604df0. Issue persists.
> > Attached git and journal logs - notice here usb is using xhci_hcd
> > instead of ehci-pci, but this is because it's a different
> > computer/environment than the one originally reported.
>
> Thank you for having shared the systemd journal. In that journal I found
> the following:
>
> May 30 10:23:56 archlinux kernel: scsi 6:0:0:0: bflags = 0x0
> May 30 10:23:56 archlinux kernel: scsi 6:0:0:0: Direct-Access
> Kingston DataTraveler G2  1.00 PQ: 0 ANSI: 2
>
> This is unexpected. It seems like the new entry in
> scsi_static_device_list is being ignored?
>
> +       {"Kingston", "DataTraveler G2", NULL, BLIST_SKIP_IO_HINTS},
>
> Thanks,
>
> Bart.





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux