* Thuban <thubanyeuxdelibad!net> le [14-01-2019 16:16:01 +0000]:
> Hello,
> While transferring files over SSH (either scp or sftp used) from/to an USB
> drive
> plugged in a ROCK64 from/to another machine, the CPU usage keep increasing and
> finally, the ROCK64 freeze.
> Because of the freeze, I'm not sure how to get errors. Please telle me how to
> debug this.
>
> Some details :
> - Both systems (server and client) are on OpenBSD : client is 6.4 (any
> architecture), ROCK64 is
> last -current (architecture arm64).
> - The usb drive is mounted with this fstab entry :
> 782f1ddb783cdd13.b /mnt/bigstorage ffs rw,noexec,nodev,nosuid 1 2
> - The issue only happens when transferring from/to the USB hard drive.
> - I guess the issue can be related to USB transfert, not SSH.
> - dmesg :
>
> OpenBSD 6.4-current (GENERIC.MP) #383: Mon Jan 14 05:05:43 MST 2019
> [email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
> real mem = 4213792768 (4018MB)
> avail mem = 4050677760 (3863MB)
> mainbus0 at root: Pine64 Rock64
> 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: 256KB 64b/line 16-way L2 cache
> efi0 at mainbus0: UEFI 2.0.5
> efi0: Das U-boot rev 0x0
> psci0 at mainbus0: PSCI 1.0
> syscon0 at mainbus0: "syscon"
> "io-domains" at syscon0 not configured
> "grf-gpio" at syscon0 not configured
> "power-controller" at syscon0 not configured
> "reboot-mode" at syscon0 not configured
> rkclock0 at mainbus0
> syscon1 at mainbus0: "syscon"
> "usb2-phy" at syscon1 not configured
> ampintc0 at mainbus0 nirq 160, ncpu 4 ipi: 0, 1: "interrupt-controller"
> rkpinctrl0 at mainbus0: "pinctrl"
> rkgpio0 at rkpinctrl0
> rkgpio1 at rkpinctrl0
> rkgpio2 at rkpinctrl0
> rkgpio3 at rkpinctrl0
> simplebus0 at mainbus0: "amba"
> "dmac" at simplebus0 not configured
> agtimer0 at mainbus0: tick rate 24000 KHz
> com0 at mainbus0: ns16550, no working fifo
> com0: console
> rkiic0 at mainbus0
> iic0 at rkiic0
> rkpmic0 at iic0 addr 0x18: RK805
> rktemp0 at mainbus0
> dwmmc0 at mainbus0: 50 MHz base clock
> sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
> dwmmc1 at mainbus0: 50 MHz base clock
> sdmmc1 at dwmmc1: 8-bit, mmc high-speed, dma
> dwge0 at mainbus0
> dwge0: address: d6:8f:58:d2:50:ce
> rgephy0 at dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
> ehci0 at mainbus0
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev
> 2.00/1.00 addr 1
> ohci0 at mainbus0: version 1.0
> 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: 256KB 64b/line 16-way L2 cache
> 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: 256KB 64b/line 16-way L2 cache
> 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: 256KB 64b/line 16-way L2 cache
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "Generic OHCI root hub" rev
> 1.00/1.00 addr 1
> scsibus0 at sdmmc1: 2 targets, initiator 0
> sd0 at scsibus0 targ 1 lun 0: <SD/MMC, NCard, 0000> SCSI2 0/direct removable
> sd0: 29600MB, 512 bytes/sector, 60620800 sectors
> scsibus1 at sdmmc0: 2 targets, initiator 0
> sd1 at scsibus1 targ 1 lun 0: <SD/MMC, USD00, 0010> SCSI2 0/direct removable
> sd1: 15080MB, 512 bytes/sector, 30883840 sectors
> umass0 at uhub0 port 1 configuration 1 interface 0 "Western Digital Ext HDD
> 1021" rev 2.00/20.21 addr 2
> umass0: using SCSI over Bulk-Only
> scsibus2 at umass0: 2 targets, initiator 0
> sd2 at scsibus2 targ 1 lun 0: <WD, Ext HDD 1021, 2021> SCSI2 0/direct fixed
> serial.10581021383235373034
> sd2: 1907727MB, 512 bytes/sector, 3907024896 sectors
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> bootfile: sd0a:/bsd
> boot device: sd0
> root on sd0a (532ea4ce9a5e001c.a) swap on sd0b dump on sd0b
> WARNING: preposterous clock chip time
> WARNING: CHECK AND RESET THE DATE!
I've got some more.
After mounting the disk with "softdep" option, I saw this message on the
console a short while before the crash :
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
/var: got error 5 while accessing filesystem
panic: softdep_deallocate_dependencies: unrecovered I/O error
Stopped at panic+0x154: TID PID UID PRFLAGS
PFLAGS C
PU COMMAND
311215 63029 73 0x100010 0 1 syslogd
390837 99391 0 0x panic+0x150
panic() at brelse+0xc4
brelse() at sd_buf_done+0x10c
sd_buf_done() at scsi_done+0x34
scsi_done() at usb_transfer_complete+0x238
usb_transfer_complete() at ehci_abort_xfer+0x258
ehci_abort_xfer() at ehci_timeout_task+0x34
Then, the ddb prompt showed up, but I wasn't sure what to do next.
Please, tell me how to give you more relevant information to solve this
issue.
Regards.