On Thu, 15 Sept 2022 at 10:10, John Verne <[email protected]> wrote:
>
> On Wed, 14 Sept 2022 at 18:11, John Verne <[email protected]> wrote:
>
> > I'm willing to sysupgrade to the latest snapshot for more
> > comprehensive testing. I can't tell from the recent changes around usb
> > in the tree what might have caused this, or if it's just my machine
> > somehow. If there is some specific instrumentation or setup I can
> > apply before upgrading to the recent snapshot that might help because
> > the failure mode doesn't really allow me to collect info afterwards.
> > Or, at least, I don't know how to do that.
> >
> I poked around the man pages for various "stat" commands but didn't
> really know what would be useful. I saw there were some changes made
> recently, but after the snapshot I was running, to DWC2 which is in
> the dmesg I posted. So I took the chance and did a sysupgrade -s to
> the Sept. 14 snapshot.
>
> The upgrade went well (though the sysupgrade stalled at one point and
> gave up -- but it did not lock up) and once it rebooted and was all
> updated I tried a few downloads of big sets from a mirror without any
> complaints.
>
> So, tentatively, this is either fixed because it was never a problem,
> or the recent usb or dwc changes (which are too large and unfamiliar
> for me to make sense of) corrected a corner case with USB ethernet
> devices.
I guess I spoke too soon. This was waiting for me on the serial console today:
[...]
fnord# usbd_start_next: error=5
usbd_free_xfer: xfer=0xffffff8004e66368 not free
smsc0: warning: Failed to read register 0x114
smsc0: warning: MII is busy
[...]
I had the serial console and 3 SSH shells open. System was otherwise idle.
New dmesg (well, I just copied the entire boot from the console) after
power cycling the system:
U-Boot 2021.10 (Jan 25 2022 - 01:09:33 -0700)
DRAM: 948 MiB
RPI 3 Model B (0xa22082)
MMC: mmc@7e202000: 0, mmcnr@7e300000: 1
Loading Environment from FAT... OK
In: serial
Out: vidconsole
Err: vidconsole
Net: No ethernet found.
starting USB...
Bus usb@7e980000: usb dr_mode not found
USB DWC2
scanning bus usb@7e980000 for devices... 8 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot: 0
Device 0: Vendor: ST325062 Rev: 3.AA Prod: 0A
Type: Hard Disk
Capacity: 238475.1 MB = 232.8 GB (488397169 x 512)
... is now current device
Scanning usb 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk [email protected]...
Card did not respond to voltage select! : -110
Scanning disk [email protected]...
Disk [email protected] not ready
Scanning disk usb_mass_storage.lun0...
Found 6 disks
Missing RNG device for EFI_RNG_PROTOCOL
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootaa64.efi
208243 bytes read in 14 ms (14.2 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootaa64.efi
disks: sd0* sd1
>> OpenBSD/arm64 BOOTAA64 1.12
boot>
booting sd0a:/bsd: 9730692+2394184+265296+832968
[708792+91+1152768+677541]=0x11783d8
[ using 2539968 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2022 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 7.2 (GENERIC.MP) #1820: Wed Sep 14 14:20:34 MDT 2022
[email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem = 970924032 (925MB)
avail mem = 906723328 (864MB)
random: good seed from bootblocks
mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: CRC32,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A53 r0p4
cpu1: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu1: 512KB 64b/line 16-way L2 cache
cpu1: CRC32,ASID16
cpu2 at mainbus0 mpidr 2: ARM Cortex-A53 r0p4
cpu2: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu2: 512KB 64b/line 16-way L2 cache
cpu2: CRC32,ASID16
cpu3 at mainbus0 mpidr 3: ARM Cortex-A53 r0p4
cpu3: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu3: 512KB 64b/line 16-way L2 cache
cpu3: CRC32,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20211000
apm0 at mainbus0
simplefb0 at mainbus0: 640x480, 32bpp
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0-5 added (std, vt100 emulation)
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0
bcmgpio0 at simplebus0
bcmaux0 at simplebus0
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA8 DMA9 DMA10 DMA11
bcmintc0 at simplebus0
pluart0 at simplebus0: rev 2, 16 byte fifo
pluart0: console
bcmsdhost0 at simplebus0: 250 MHz base clock
sdmmc0 at bcmsdhost0: 4-bit, sd high-speed, mmc high-speed, dma
dwctwo0 at simplebus0
bcmdog0 at simplebus0
bcmrng0 at simplebus0
bcmtemp0 at simplebus0
"local_intc" at simplebus0 not configured
sdhc0 at simplebus0
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc1 at sdhc0: 4-bit, sd high-speed, mmc high-speed
"firmware" at simplebus0 not configured
"power" at simplebus0 not configured
"mailbox" at simplebus0 not configured
"gpiomem" at simplebus0 not configured
"fb" at simplebus0 not configured
"vcsm" at simplebus0 not configured
"virtgpio" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: 19200 kHz
gpioleds0 at mainbus0: "led0"
"fixedregulator_3v3" at mainbus0 not configured
"fixedregulator_5v0" at mainbus0 not configured
"bootloader" at mainbus0 not configured
usb0 at dwctwo0: USB revision 2.0
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, NCard, 0010> removable
sd0: 29818MB, 512 bytes/sector, 61067264 sectors
uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev
2.00/1.00 addr 1
uhub1 at uhub0 port 1 configuration 1 interface 0 "Standard
Microsystems product 0x9514" rev 2.00/2.00 addr 2
bwfm0 at sdmmc1 function 1
manufacturer 0x02d0, product 0xa9a6 at sdmmc1 function 2 not configured
smsc0 at uhub1 port 1 configuration 1 interface 0 "Standard
Microsystems SMSC9512/14" rev 2.00/2.00 addr 3
smsc0: address b8:27:eb:83:2b:99
ukphy0 at smsc0 phy 1: Generic IEEE 802.3u media interface, rev. 3:
OUI 0x0001f0, model 0x000c
umass0 at uhub1 port 3 configuration 1 interface 0 "USB2.0 & IEEE1394
Combo Device ATAPI-6 Bridge Controller" rev 2.00/0.01 addr 4
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <ST325062, 0A, 3.AA>
sd1: 238475MB, 512 bytes/sector, 488397169 sectors
uhub2 at uhub1 port 4 configuration 1 interface 0 "Apple Inc. Keyboard
Hub" rev 2.00/96.15 addr 5
uhidev0 at uhub2 port 1 configuration 1 interface 0 "Mitsumi Electric
Apple Optical USB Mouse" rev 1.10/1.10 addr 6
uhidev0: iclass 3/1
ums0 at uhidev0: 4 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 2 configuration 1 interface 0 "Apple Inc. Apple
Keyboard" rev 2.00/0.70 addr 7
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 5 key codes, country code 33
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
uhidev2 at uhub2 port 2 configuration 1 interface 1 "Apple Inc. Apple
Keyboard" rev 2.00/0.70 addr 7
uhidev2: iclass 3/0
ucc0 at uhidev2: 7 usages, 7 keys, enum
wskbd1 at ucc0 mux 1
wskbd1: connecting to wsdisplay0
uhidev3 at uhub1 port 5 configuration 1 interface 0 "wch.cn
USB2IIC_CTP_CONTROL" rev 0.01/0.00 addr 8
uhidev3: iclass 3/0, 3 report ids
ums1 at uhidev3 reportid 1: 1 button, tip
wsmouse1 at ums1 mux 0
uhid0 at uhidev3 reportid 2: input=0, output=0, feature=1
ums2 at uhidev3 reportid 3: 0 buttons
wsmouse2 at ums2 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd1a (1f92ec81f42d2932.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
WARNING: CHECK AND RESET THE DATE!
gpio0 at bcmgpio0: 54 pins
bwfm0: address b8:27:eb:d6:7e:cc
Automatic boot in progress: starting file system checks.
/dev/sd1a (1f92ec81f42d2932.a): 1708 files, 53537 used, 451174 free
(206 frags, 56371 blocks, 0.0% fragmentation)
/dev/sd1a (1f92ec81f42d2932.a): MARKING FILE SYSTEM CLEAN
/dev/sd1l (1f92ec81f42d2932.l): 20 files, 64181 used, 47639930 free
(26 frags, 5954988 blocks, 0.0% fragmentation)
/dev/sd1l (1f92ec81f42d2932.l): MARKING FILE SYSTEM CLEAN
/dev/sd1d (1f92ec81f42d2932.d): 6 files, 5 used, 2028722 free (42
frags, 253585 blocks, 0.0% fragmentation)
/dev/sd1d (1f92ec81f42d2932.d): MARKING FILE SYSTEM CLEAN
/dev/sd1f (1f92ec81f42d2932.f): UNREF FILE I=51845 OWNER=root MODE=100444
/dev/sd1f: SIZE=3987184 MTIME=Sep 14 19:26 2022 (CLEARED)
/dev/sd1f (1f92ec81f42d2932.f): UNREF FILE I=103711 OWNER=root MODE=100444
/dev/sd1f: SIZE=366008 MTIME=Sep 14 19:26 2022 (CLEARED)
/dev/sd1f (1f92ec81f42d2932.f): FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/sd1f (1f92ec81f42d2932.f): SUMMARY INFORMATION BAD (SALVAGED)
/dev/sd1f (1f92ec81f42d2932.f): BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/sd1f (1f92ec81f42d2932.f): 15937 files, 516138 used, 2528613 free
(1461 frags, 315894 blocks, 0.0% fragmentation)
/dev/sd1f (1f92ec81f42d2932.f): MARKING FILE SYSTEM CLEAN
/dev/sd1g (1f92ec81f42d2932.g): 5802 files, 132590 used, 372121 free
(1089 frags, 46379 blocks, 0.2% fragmentation)
/dev/sd1g (1f92ec81f42d2932.g): MARKING FILE SYSTEM CLEAN
/dev/sd1h (1f92ec81f42d2932.h): 115 files, 1629 used, 10151978 free
(82 frags, 1268987 blocks, 0.0% fragmentation)
/dev/sd1h (1f92ec81f42d2932.h): MARKING FILE SYSTEM CLEAN
/dev/sd1k (1f92ec81f42d2932.k): 1 files, 1 used, 3044750 free (14
frags, 380592 blocks, 0.0% fragmentation)
/dev/sd1k (1f92ec81f42d2932.k): MARKING FILE SYSTEM CLEAN
/dev/sd1j (1f92ec81f42d2932.j): 132126 files, 711607 used, 809120 free
(816 frags, 101038 blocks, 0.1% fragmentation)
/dev/sd1j (1f92ec81f42d2932.j): MARKING FILE SYSTEM CLEAN
/dev/sd1e (1f92ec81f42d2932.e): 316 files, 4080 used, 2943423 free
(191 frags, 367904 blocks, 0.0% fragmentation)
/dev/sd1e (1f92ec81f42d2932.e): MARKING FILE SYSTEM CLEAN
pf enabled
starting network
reordering libraries: done.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd smtpd sndiod.
starting local daemons: cron.
Thu Sep 15 17:11:37 EDT 2022
OpenBSD/arm64 (fnord.clvrmnky.org) (console)
login: