On 21/10/2024 02:43, Thomas Schmitt wrote:
Max Nikulin wrote:
Just booting grub from internal drive in the case of a USB3 port
does not cause switch from Transcend to SMI for Linux kernel.

Can you provoke the transition while this Linux kernel is running ?

My creativity has been almost exhausted and that is why I am asking for
commands that I may try. I am not familiar with USB protocols close
enough, so I do not know how many reset/reinitialize variants exist. I
have not even figured out how to force USB2 when the stick is plugged
into a USB3 port (specific port, not whole PCI device).

I have seen transition a couple of times: f3write, umount, unplug, plug
it immediately, mount, f3read. It was connected to a USB2 port. It might
be overheating (due to plastic case). It is rather time consuming test.
Write speed is 10 MB/s, read one is 30 MB/s (for USB2).

If so: what does the kernel log say about that point in time ?

Oct 09 09:02:25 hp kernel: usb 3-3: new high-speed USB device number 7
using xhci_hcd
Oct 09 09:02:25 hp kernel: usb 3-3: New USB device found,
idVendor=8564, idProduct=1000, bcdDevice=11.00
Oct 09 09:02:25 hp kernel: usb 3-3: New USB device strings: Mfr=1,
Product=2, SerialNumber=3
Oct 09 09:02:25 hp kernel: usb 3-3: Product: Mass Storage Device
Oct 09 09:02:25 hp kernel: usb 3-3: Manufacturer: JetFlash
Oct 09 09:02:25 hp kernel: usb 3-3: SerialNumber: CCHRKA60JFMHRIME
Oct 09 09:02:25 hp kernel: usb-storage 3-3:1.0: USB Mass Storage
device detected
Oct 09 09:02:25 hp kernel: scsi host4: usb-storage 3-3:1.0
Oct 09 09:02:27 hp kernel: scsi 4:0:0:0: Direct-Access     JetFlash
Transcend 128GB  1100 PQ: 0 ANSI: 6
Oct 09 09:02:27 hp kernel: sd 4:0:0:0: Attached scsi generic sg1 type 0
Oct 09 09:02:27 hp kernel: sd 4:0:0:0: [sdb] 236222464 512-byte
logical blocks: (121 GB/113 GiB)
Oct 09 09:02:27 hp kernel: sd 4:0:0:0: [sdb] Write Protect is off
Oct 09 09:02:27 hp kernel: sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
Oct 09 09:02:27 hp kernel: sd 4:0:0:0: [sdb] Write cache: enabled,
read cache: enabled, doesn't support DPO or FUA
Oct 09 09:02:27 hp kernel:  sdb: sdb1
Oct 09 09:02:27 hp kernel: sd 4:0:0:0: [sdb] Attached SCSI removable disk
...
Oct 09 09:51:22 hp kernel: usb 3-3: reset high-speed USB device number
7 using xhci_hcd
Oct 09 09:51:24 hp kernel: usb 3-3: device firmware changed
Oct 09 09:51:24 hp kernel: sd 4:0:0:0: [sdb] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=2s
Oct 09 09:51:24 hp kernel: sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00
0b f1 de 30 00 00 f0 00
Oct 09 09:51:24 hp kernel: I/O error, dev sdb, sector 200400432 op
0x0:(READ) flags 0x84700 phys_seg 2 prio class 0
Oct 09 09:51:24 hp kernel: usb 3-3: USB disconnect, device number 7
Oct 09 09:51:24 hp kernel: sd 4:0:0:0: [sdb] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s
Oct 09 09:51:24 hp kernel: sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00
0b f1 df 20 00 00 20 00
Oct 09 09:51:24 hp kernel: I/O error, dev sdb, sector 200400672 op
0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector
200400704 op 0x0:(READ) flags 0x84700 phys_seg 2 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector
200400944 op 0x0:(READ) flags 0x84700 phys_seg 2 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector
200401184 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector
200400192 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector
200400192 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector
200400192 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector 0 op
0x1:(WRITE) flags 0x800 phys_seg 0 prio class 0
Oct 09 09:51:24 hp kernel: device offline error, dev sdb, sector 65740
op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
Oct 09 09:51:24 hp kernel: Buffer I/O error on dev sdb1, logical block
65548, lost async page write
Oct 09 09:51:26 hp udisksd[1214]: Cleaning up mount point
/media/test/Transcend (device 8:17 no longer exists)
Oct 09 09:51:26 hp kernel: FAT-fs (sdb1): unable to read boot sector
to mark fs as dirty
Oct 09 09:51:26 hp systemd[1]: media-test-Transcend.mount:
Deactivated successfully.
Oct 09 09:51:26 hp kernel: usb 3-3: new high-speed USB device number 8
using xhci_hcd
Oct 09 09:51:26 hp kernel: usb 3-3: New USB device found,
idVendor=090c, idProduct=3265, bcdDevice= 1.00
Oct 09 09:51:26 hp kernel: usb 3-3: New USB device strings: Mfr=1,
Product=2, SerialNumber=0
Oct 09 09:51:26 hp kernel: usb 3-3: Product: SM3265AB MEMORY BAR
Oct 09 09:51:26 hp kernel: usb 3-3: Manufacturer: Silicon Motion,Inc.
Oct 09 09:51:26 hp kernel: usb-storage 3-3:1.0: USB Mass Storage
device detected
Oct 09 09:51:26 hp kernel: scsi host4: usb-storage 3-3:1.0
Oct 09 09:51:27 hp kernel: scsi 4:0:0:0: Direct-Access     SMI
USB MEMORY BAR   1000 PQ: 0 ANSI: 5
Oct 09 09:51:27 hp kernel: sd 4:0:0:0: Attached scsi generic sg1 type 0
Oct 09 09:51:27 hp kernel: sd 4:0:0:0: [sdb] Media removed, stopped
polling
Oct 09 09:51:27 hp kernel: sd 4:0:0:0: [sdb] Attached SCSI removable disk

USB3 xhci driver may reset the device multiple times while f3read is running, but test completes successfully:

Oct 03 18:25:40 hp kernel: usb 2-2: reset SuperSpeed USB device number 5 using xhci_hcd

It is possible to boot from the USB stick when it is connected to a USB3 port of HP ProBook 445 G7. It fails in the case of the USB2 port of the same laptop.

My attempt to determine efidisk read speed failed. Grub's md5sum command fails on this laptop (both USB2 and USB3) on 1G files

    error: out of memory

On the old laptop it works with USB2 speed of this flash drive.

Reply via email to