[GTALUG] USB power reporting Type-c super speed skirmish and libpartd error

Russell Reiter rreiter91 at gmail.com
Thu Sep 17 12:26:02 EDT 2020


I had a power outage a couple of weeks ago which lasted longer than my UPS
battery life and have had a number of USB issues since then.

While I was separately recharging the UPS, which took about 5 hours, I
rebooted the system which then immediately froze on boot with an USB over
current condition. This appeared to be related to the MB front panel
connection and at first I thought that somehow a surge made it through the
UPS and had toasted the motherboards own front port connection. This turns
out not to have been the case. It’s what happened next that puzzles me tho.

I have an external NVME enclosure with a PCI-e X4 512 G M.2 storage which I
have been tinkering with. After disconnecting the front ports on the MB
and, I do have a PCI-e 5 port card with 4 x A + 1 Type-C connectors, which
I had configured to provide four more front ports, with two of them Type-C.
NB I don’t have the supplemental power connected as I was anticipating only
to use these ports to use data, for the time being. (This is part of what
makes me think the voltage demand reporting might be the culprit)

When the front adapter is plugged in this also isolates the Type-C port on
the actual PCI-e card from being used. After I removed all connections from
that card and I plugged my M.2 device into the motherboard’s one Type-C
port the system turned off like a light switch, no hang, just off.

After much fooling around, starting with connecting the keyboard and mouse
to the onboard legacy USB 2.0 slots, I’m sort of back where I started. The
two stock USB 3 front ports are connected and working. The supplemental
front ports are connected to the expansion card and working, sort of,
Type-A works, Type-C does not.

Connecting the device, if I connect using a cord adapter to Type-A, the
mounts show up in /run/media. It is configured as a boot device. At first I
thought the over current was related to the fact that that particular cord
adapter is 3 ft long, but I’m rethinking that although consistent power
negotiating and impedance seem to be part of the problem.

What did happen was that the M.2 drive had lost it’s type label and I
thought I did the right thing by using gdisk to relabel the volume, but now
it shows up as W95 Ext d (LBA). Also, gparted now shows a libparted error
for the actual volume I am currently booting from, although gnome-disks is
fine with it.

Perhaps the libparted error is related to my kernel version and non
complementary libparted updates. I have seen this as an old issue of out of
but I cannot so far consistently switch from connecting the device via Type
A and Type C connections. Maybe this is a memory hangover concerning the
voltage requested by Type-A vs Type-C


My current kernel.

Linux archon 5.8.8-100.fc31.x86_64 #1 SMP Wed Sep 9 20:29:23 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux


Here is what happens when I’m using the Type-A to C adapter cable.
Everything is detected and mounted in /run/media


udevadm monitor

monitor will print the received events for:

UDEV - the event which udev sends out after rule processing

KERNEL - the kernel uevent


KERNEL[1144.231633] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4 (usb)

KERNEL[1144.236767] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0 (usb)

KERNEL[1144.250366] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4
(scsi)

KERNEL[1144.250424] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/scsi_host/host4
(scsi_host)

KERNEL[1144.250509] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0 (usb)

KERNEL[1144.250602] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4 (usb)

KERNEL[1144.251689] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0
(scsi)

KERNEL[1144.251774] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0
(scsi)

KERNEL[1144.251822] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)

KERNEL[1144.251933] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)

KERNEL[1144.252009] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)

KERNEL[1144.252393] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0
(bsg)

UDEV [1144.259793] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4 (usb)

UDEV [1144.261835] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0 (usb)

UDEV [1144.262732] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4
(scsi)

UDEV [1144.263715] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/scsi_host/host4
(scsi_host)

UDEV [1144.264976] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0 (usb)

UDEV [1144.268728] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4 (usb)

UDEV [1144.269850] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0
(scsi)

UDEV [1144.270851] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0
(scsi)

UDEV [1144.271941] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)

UDEV [1144.272716] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)

UDEV [1144.273540] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0
(bsg)

UDEV [1144.273563] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)

KERNEL[1145.985198] add /devices/virtual/bdi/8:16 (bdi)

UDEV [1145.987911] add /devices/virtual/bdi/8:16 (bdi)

KERNEL[1145.988867] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb
(block)

KERNEL[1145.989065] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)

KERNEL[1145.989186] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb2
(block)

KERNEL[1145.989308] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb3
(block)

KERNEL[1145.989450] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb4
(block)

KERNEL[1145.989584] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb5
(block)

KERNEL[1145.990843] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0
(scsi)

UDEV [1146.031257] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb
(block)

UDEV [1146.035268] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb4
(block)

UDEV [1146.045437] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)

UDEV [1146.046036] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb3
(block)

UDEV [1146.046869] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb2
(block)

UDEV [1146.051277] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb5
(block)

UDEV [1146.052469] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.4/4-1.4:1.0/host4/target4:0:0/4:0:0:0
(scsi)



This is what the Type-C connection reports on the front panel (w/o the
supplemental power connection from the card to the expansion panel) when I
attempt to hot switch from Type-A to C, even if I had un-mounted the
partitions from the disks app GUI, The first event is unbind.


udevadm monitor

monitor will print the received events for:

UDEV - the event which udev sends out after rule processing

KERNEL - the kernel uevent


KERNEL[1460.229192] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2/4-1.2:1.0 (usb)

KERNEL[1460.229310] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2/4-1.2:1.0 (usb)

KERNEL[1460.230680] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2 (usb)

KERNEL[1460.230806] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2 (usb)

UDEV [1460.235695] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2/4-1.2:1.0 (usb)

UDEV [1460.236812] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2/4-1.2:1.0 (usb)

UDEV [1460.237925] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2 (usb)

UDEV [1460.238627] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb4/4-1/4-1.2 (usb)

KERNEL[1460.434274] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)

KERNEL[1460.434407] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)

KERNEL[1460.436020] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2 (usb)

KERNEL[1460.436183] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2 (usb)

UDEV [1460.439331] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)

UDEV [1460.443163] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)

UDEV [1460.445660] unbind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2 (usb)

UDEV [1460.446564] remove
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.2 (usb)


Here is what udev reports with the front extension panel disconnected from
the PCI-e card and the drive is plugged into the expansion card's single
Type-C connection.


udevadm monitor

monitor will print the received events for:

UDEV - the event which udev sends out after rule processing

KERNEL - the kernel uevent


KERNEL[93.288656] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3 (usb)

KERNEL[93.297154] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)

KERNEL[93.297182] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3 (usb)

UDEV [93.303112] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3 (usb)

KERNEL[93.310552] add /module/usb_storage (module)

KERNEL[93.310602] add /bus/usb/drivers/usb-storage (drivers)

UDEV [93.311904] add /module/usb_storage (module)

UDEV [93.312259] add /bus/usb/drivers/usb-storage (drivers)

KERNEL[93.312655] add /module/uas (module)

UDEV [93.313198] add /module/uas (module)

KERNEL[93.324476] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4
(scsi)

KERNEL[93.324491] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/scsi_host/host4
(scsi_host)

KERNEL[93.324517] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)

KERNEL[93.324525] add /bus/usb/drivers/uas (drivers)

UDEV [93.324646] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)

UDEV [93.325326] add /bus/usb/drivers/uas (drivers)

KERNEL[93.325718] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0
(scsi)

KERNEL[93.325745] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0
(scsi)

KERNEL[93.325760] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)

KERNEL[93.325772] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)

KERNEL[93.325837] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)

KERNEL[93.325898] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0
(bsg)

UDEV [93.329778] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3 (usb)

UDEV [93.331051] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4
(scsi)

UDEV [93.332395] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/scsi_host/host4
(scsi_host)

UDEV [93.334102] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0 (usb)

UDEV [93.335352] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0
(scsi)

UDEV [93.336749] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0
(scsi)

UDEV [93.338326] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0
(scsi_device)

UDEV [93.338504] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0
(scsi_disk)

UDEV [93.339426] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2
(scsi_generic)

UDEV [93.340162] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0
(bsg)

KERNEL[94.516320] add /devices/virtual/bdi/8:16 (bdi)

UDEV [94.519016] add /devices/virtual/bdi/8:16 (bdi)

KERNEL[94.520794] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb
(block)

KERNEL[94.520944] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)

KERNEL[94.521091] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb2
(block)

KERNEL[94.521209] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb3
(block)

KERNEL[94.521326] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb4
(block)

KERNEL[94.521431] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb5
(block)

KERNEL[94.523245] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0
(scsi)

UDEV [94.603863] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb
(block)

UDEV [94.611530] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb4
(block)

UDEV [94.700559] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
(block)

UDEV [94.716164] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb2
(block)

UDEV [94.731543] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb5
(block)

UDEV [94.737275] add
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb3
(block)

UDEV [94.738283] bind
/devices/pci0000:00/0000:00:1c.1/0000:72:00.0/usb3/3-1/3-1.3/3-1.3:1.0/host4/target4:0:0/4:0:0:0
(scsi)

KERNEL[113.079306] add /devices/virtual/bdi/0:39 (bdi)

UDEV [113.083466] add /devices/virtual/bdi/0:39 (bdi)

Unfortunately the cable for connecting the supplementary power to the front
expansion port was too short so I’m wondering if this is at all related to
the system registering one voltage demand for the Type-C connection and not
releasing that info and then re-probing for the increased voltage the SS
port connection allows for.

Does anyone have any suggestions on how I can unwind some of this?

Perhaps sourcing a longer cable for connecting the expansion cards power to
the slot might do the trick. I can't say for sure, but I don't recall this
being an issue before the power issue.
-- 
Russell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20200917/003ba3b2/attachment.html>


More information about the talk mailing list