[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-bugs
Subject:    usb regression on armv7 after upgrade to 7.0
From:       Paul de Weerd <weerd () weirdnet ! nl>
Date:       2021-09-22 16:58:37
Message-ID: YUtgvbVutAd9EN+w () despair ! weirdnet ! nl
[Download RAW message or body]

Hi all,

While trying to test 7.0 on a bunch of machines, I upgraded my armv7
machine (a CuBox) that I use for console access to my home router.
There's a uplcom(4) that stopped working after upgrading to the latest
snapshot:

cu: open("/dev/cuaU0"): Input/output error

After downgrading the kernel to 6.9, I can open cuaU0 without an issue
again.

Things worked fine with

OpenBSD 7.0-beta (GENERIC) #80398: Thu Aug 26 13:18:27 MDT 2021

Things broke with

OpenBSD 7.0 (GENERIC) #80403: Sun Sep 19 00:05:48 MDT 2021

And I'm now back to 

OpenBSD 6.9 (GENERIC) #386: Tue Apr 20 04:06:48 MDT 2021


dmesg for #80398 and #80403 are below, but at least I see no obvious
difference that would explain the change in behaviour there.

As this is very slow and space constrained machine, does anyone have
any candidates to try to revert?  Looking at source-changes since
August 25, I see a bunch of commits to ucc(4), some to dwctwo(4), the
addition of uaq(4) but nothing really seems to be relevant for this
issue.

Any suggestions?

Paul


--- dmesg 7.0-beta #80398 --------------------------------------------
U-Boot SPL 2019.01 (Apr 10 2019 - 00:26:35 +0200)
Trying to boot from MMC1


U-Boot 2019.01 (Apr 10 2019 - 00:26:35 +0200)

CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 49C
Reset cause: WDOG
Board: MX6 Cubox-i
DRAM:  2 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to HDMI
Display: HDMI (1024x768)
In:    serial
Out:   serial
Err:   serial
Card did not respond to voltage select!
Net:   FEC
Hit any key to stop autoboot:  
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
36813 bytes read in 17 ms (2.1 MiB/s)
Found EFI removable media binary efi/boot/bootarm.efi
Scanning disks on usb...
Disk usb0 not ready
Disk usb1 not ready
Disk usb2 not ready
Disk usb3 not ready
Scanning disks on mmc...
Card did not respond to voltage select!
MMC: no card present
MMC Device 2 not found
MMC Device 3 not found
Scanning disks on sata...
Disk sata0 not ready
Found 3 disks
108944 bytes read in 31 ms (3.4 MiB/s)
## Starting EFI application at 12000000 ...
disks: sd0*
> > OpenBSD/armv7 BOOTARM 1.18
boot> 
booting sd0a:/bsd: 4882708+714080+335496+594256 [274716+120+338816+300609]=0x0

OpenBSD/armv7 booting ...
arg0 0xc0a1a594 arg1 0x0 arg2 0x17ef4000
Allocating page tables
IRQ stack: p0x10a49000 v0xc0a49000
ABT stack: p0x10a4a000 v0xc0a4a000
UND stack: p0x10a4b000 v0xc0a4b000
SVC stack: p0x10a4c000 v0xc0a4c000
Creating L1 page table at 0x10a1c000
Mapping kernel
Constructing L2 page tables
undefined page type 0x2 pa 0x10000000 va 0x10000000 pages 0x2000 attr 0x8
type 0x7 pa 0x12000000 va 0x10000000 pages 0x5ef4 attr 0x8
type 0x6 pa 0x17ef4000 va 0x17ef4000 pages 0x18 attr 0x8000000000000008
type 0x7 pa 0x17f0c000 va 0x17f0c000 pages 0x76548 attr 0x8
type 0x4 pa 0x8e454000 va 0x8e454000 pages 0x1 attr 0x8
type 0x2 pa 0x8e455000 va 0x8e452000 pages 0x100 attr 0x8
type 0x1 pa 0x8e555000 va 0x8e555000 pages 0x1b attr 0x8
type 0x6 pa 0x8e570000 va 0x8e570000 pages 0x1 attr 0x8000000000000008
type 0x0 pa 0x8e571000 va 0x8e56c000 pages 0x4 attr 0x8
type 0x6 pa 0x8e575000 va 0x8e575000 pages 0x1 attr 0x8000000000000008
type 0x0 pa 0x8e576000 va 0x8e576000 pages 0x2 attr 0x8
type 0x2 pa 0x8e578000 va 0x8e578000 pages 0x1a01 attr 0x8
type 0x5 pa 0x8ff79000 va 0x8ff79000 pages 0x1 attr 0x8000000000000008
type 0x2 pa 0x8ff7a000 va 0x8e578000 pages 0x86 attr 0x8
pmap [ using 914876 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-2021 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.0-beta (GENERIC) #80398: Thu Aug 26 13:18:27 MDT 2021
    deraadt@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 2118369280 (2020MB)
avail mem = 2066780160 (1971MB)
random: good seed from bootblocks
mainbus0 at root: SolidRun Cubox-i Dual/Quad
cpu0 at mainbus0 mpidr 0: ARM Cortex-A9 r2p10
cpu0: 32KB 32b/line 4-way L1 VIPT I-cache, 32KB 32b/line 4-way L1 D-cache
cortex0 at mainbus0
amptimer0 at cortex0: 396000 kHz
armliicc0 at cortex0: rtl 7 waymask: 0x0000000f
imxtemp0 at mainbus0simplebus0 at mainbus0: "soc"
ampintc0 at simplebus0 nirq 160, ncpu 4: "interrupt-controller"
"dma-apbh" at simplebus0 not configured
"hdmi" at simplebus0 not configured
"gpu" at simplebus0 not configured
"gpu" at simplebus0 not configured
"timer" at simplebus0 not configured
"l2-cache" at simplebus0 not configured
simplebus1 at simplebus0: "aips-bus"
imxccm0 at simplebus1
imxanatop0 at simplebus1
syscon0 at simplebus1: "snvs"
imxrtc0 at syscon0
"snvs-lpgpr" at syscon0 not configured
imxsrc0 at simplebus1
syscon1 at simplebus1: "iomuxc-gpr"
"mux-controller" at syscon1 not configured
"ipu1_csi0_mux" at syscon1 not configured
"ipu2_csi1_mux" at syscon1 not configured
imxiomuxc0 at simplebus1
simplebus2 at simplebus1: "spba-bus"
"spdif" at simplebus2 not configured
imxuart0 at simplebus2: console
"asrc" at simplebus2 not configured
"vpu" at simplebus1 not configured
"pwm" at simplebus1 not configured
"gpt" at simplebus1 not configured
imxgpio0 at simplebus1
imxgpio1 at simplebus1
imxgpio2 at simplebus1
imxgpio3 at simplebus1
imxgpio4 at simplebus1
imxgpio5 at simplebus1
imxgpio6 at simplebus1
imxdog0 at simplebus1
"usbphy" at simplebus1 not configured
"usbphy" at simplebus1 not configured
imxgpc0 at simplebus1
"sdma" at simplebus1 not configured
simplebus3 at simplebus0: "aips-bus"
syscon2 at simplebus3: "ocotp"
"caam" at simplebus3 not configured
imxehci0 at simplebus3
usb0 at imxehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "i.MX EHCI root hub" rev 2.00/1.00 addr 1
imxehci1 at simplebus3
usb1 at imxehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "i.MX EHCI root hub" rev 2.00/1.00 addr 1
"usbmisc" at simplebus3 not configured
fec0 at simplebus3
fec0: address d0:63:b4:00:3f:fb
atphy0 at fec0 phy 0: AR8035 10/100/1000 PHY, rev. 2
imxesdhc0 at simplebus3
imxesdhc0: 198 MHz base clock
sdmmc0 at imxesdhc0: 4-bit, sd high-speed, mmc high-speed, dma
imxesdhc1 at simplebus3
imxesdhc1: 198 MHz base clock
sdmmc1 at imxesdhc1: 4-bit, sd high-speed, mmc high-speed, dma
imxiic0 at simplebus3
iic0 at imxiic0
imxiic1 at simplebus3
iic1 at imxiic1
pcfrtc0 at iic1 addr 0x68: battery low
"mmdc" at simplebus3 not configured
"vdoa" at simplebus3 not configured
imxuart1 at simplebus3
"ipu" at simplebus0 not configured
"sram" at simplebus0 not configured
imxahci0 at simplebus0: AHCI 1.3
scsibus0 at imxahci0: 32 targets
"gpu" at simplebus0 not configured
"ipu" at simplebus0 not configured
scsibus1 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <Sandisk, SA16G, 0024> removable
sd0: 14772MB, 512 bytes/sector, 30253056 sectors
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0x4330 at sdmmc0 function 2 not configured
uplcom0 at uhub0 port 1 configuration 1 interface 0 "Prolific Technology Inc. \
USB-Serial Controller" rev 1.10/3.00 addr 2 ucom0 at uplcom0
umodem0 at uhub1 port 1 configuration 1 interface 0 "HP HPN Serial Port" rev \
                2.00/0.01 addr 2
umodem0: data interface 1, has no CM over data, has break
umodem0: status change notification available
ucom1 at umodem0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd0a (fe2f3d685a24e68d.a) swap on sd0b dump on sd0b
bwfm0: address b8:5a:f7:82:99:b6
----------------------------------------------------------------------

--- dmesg 7.0 #80403 -------------------------------------------------
U-Boot SPL 2019.01 (Apr 10 2019 - 00:26:35 +0200)
Trying to boot from MMC1


U-Boot 2019.01 (Apr 10 2019 - 00:26:35 +0200)

CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 30C
Reset cause: POR
Board: MX6 Cubox-i
DRAM:  2 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to HDMI
Display: HDMI (1024x768)
In:    serial
Out:   serial
Err:   serial
Card did not respond to voltage select!
Net:   FEC
Hit any key to stop autoboot: 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
36813 bytes read in 16 ms (2.2 MiB/s)
Found EFI removable media binary efi/boot/bootarm.efi
Scanning disks on usb...
Disk usb0 not ready
Disk usb1 not ready
Disk usb2 not ready
Disk usb3 not ready
Scanning disks on mmc...
Card did not respond to voltage select!
MMC: no card present
MMC Device 2 not found
MMC Device 3 not found
Scanning disks on sata...
Disk sata0 not ready
Found 3 disks
108944 bytes read in 31 ms (3.4 MiB/s)
## Starting EFI application at 12000000 ...
disks: sd0*
> > OpenBSD/armv7 BOOTARM 1.18
boot> 
booting sd0a:/bsd: 4882968+715008+337428+593472 [274145+120+338976+300769]=0x0

OpenBSD/armv7 booting ...
arg0 0xc0a1a918 arg1 0x0 arg2 0x17ef4000
Allocating page tables
IRQ stack: p0x10a49000 v0xc0a49000
ABT stack: p0x10a4a000 v0xc0a4a000
UND stack: p0x10a4b000 v0xc0a4b000
SVC stack: p0x10a4c000 v0xc0a4c000
Creating L1 page table at 0x10a1c000
Mapping kernel
Constructing L2 page tables
undefined page type 0x2 pa 0x10000000 va 0x10000000 pages 0x2000 attr 0x8
type 0x7 pa 0x12000000 va 0x10000000 pages 0x5ef4 attr 0x8
type 0x6 pa 0x17ef4000 va 0x17ef4000 pages 0x18 attr 0x8000000000000008
type 0x7 pa 0x17f0c000 va 0x17f0c000 pages 0x76548 attr 0x8
type 0x4 pa 0x8e454000 va 0x8e454000 pages 0x1 attr 0x8
type 0x2 pa 0x8e455000 va 0x8e452000 pages 0x100 attr 0x8
type 0x1 pa 0x8e555000 va 0x8e555000 pages 0x1b attr 0x8
type 0x6 pa 0x8e570000 va 0x8e570000 pages 0x1 attr 0x8000000000000008
type 0x0 pa 0x8e571000 va 0x8e56c000 pages 0x4 attr 0x8
type 0x6 pa 0x8e575000 va 0x8e575000 pages 0x1 attr 0x8000000000000008
type 0x0 pa 0x8e576000 va 0x8e576000 pages 0x2 attr 0x8
type 0x2 pa 0x8e578000 va 0x8e578000 pages 0x1a01 attr 0x8
type 0x5 pa 0x8ff79000 va 0x8ff79000 pages 0x1 attr 0x8000000000000008
type 0x2 pa 0x8ff7a000 va 0x8e578000 pages 0x86 attr 0x8
pmap [ using 914628 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-2021 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.0 (GENERIC) #80403: Sun Sep 19 00:05:48 MDT 2021
    deraadt@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 2118369280 (2020MB)
avail mem = 2066780160 (1971MB)
random: good seed from bootblocks
mainbus0 at root: SolidRun Cubox-i Dual/Quad
cpu0 at mainbus0 mpidr 0: ARM Cortex-A9 r2p10
cpu0: 32KB 32b/line 4-way L1 VIPT I-cache, 32KB 32b/line 4-way L1 D-cache
cortex0 at mainbus0
amptimer0 at cortex0: 396000 kHz
armliicc0 at cortex0: rtl 7 waymask: 0x0000000f
imxtemp0 at mainbus0simplebus0 at mainbus0: "soc"
ampintc0 at simplebus0 nirq 160, ncpu 4: "interrupt-controller"
"dma-apbh" at simplebus0 not configured
"hdmi" at simplebus0 not configured
"gpu" at simplebus0 not configured
"gpu" at simplebus0 not configured
"timer" at simplebus0 not configured
"l2-cache" at simplebus0 not configured
simplebus1 at simplebus0: "aips-bus"
imxccm0 at simplebus1
imxanatop0 at simplebus1
syscon0 at simplebus1: "snvs"
imxrtc0 at syscon0
"snvs-lpgpr" at syscon0 not configured
imxsrc0 at simplebus1
syscon1 at simplebus1: "iomuxc-gpr"
"mux-controller" at syscon1 not configured
"ipu1_csi0_mux" at syscon1 not configured
"ipu2_csi1_mux" at syscon1 not configured
imxiomuxc0 at simplebus1
simplebus2 at simplebus1: "spba-bus"
"spdif" at simplebus2 not configured
imxuart0 at simplebus2: console
"asrc" at simplebus2 not configured
"vpu" at simplebus1 not configured
"pwm" at simplebus1 not configured
"gpt" at simplebus1 not configured
imxgpio0 at simplebus1
imxgpio1 at simplebus1
imxgpio2 at simplebus1
imxgpio3 at simplebus1
imxgpio4 at simplebus1
imxgpio5 at simplebus1
imxgpio6 at simplebus1
imxdog0 at simplebus1
"usbphy" at simplebus1 not configured
"usbphy" at simplebus1 not configured
imxgpc0 at simplebus1
"sdma" at simplebus1 not configured
simplebus3 at simplebus0: "aips-bus"
syscon2 at simplebus3: "ocotp"
"caam" at simplebus3 not configured
imxehci0 at simplebus3
usb0 at imxehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "i.MX EHCI root hub" rev 2.00/1.00 addr 1
imxehci1 at simplebus3
usb1 at imxehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "i.MX EHCI root hub" rev 2.00/1.00 addr 1
"usbmisc" at simplebus3 not configured
fec0 at simplebus3
fec0: address d0:63:b4:00:3f:fb
atphy0 at fec0 phy 4: AR8035 10/100/1000 PHY, rev. 2
imxesdhc0 at simplebus3
imxesdhc0: 198 MHz base clock
sdmmc0 at imxesdhc0: 4-bit, sd high-speed, mmc high-speed, dma
imxesdhc1 at simplebus3
imxesdhc1: 198 MHz base clock
sdmmc1 at imxesdhc1: 4-bit, sd high-speed, mmc high-speed, dma
imxiic0 at simplebus3
iic0 at imxiic0
imxiic1 at simplebus3
iic1 at imxiic1
pcfrtc0 at iic1 addr 0x68: battery low
"mmdc" at simplebus3 not configured
"vdoa" at simplebus3 not configured
imxuart1 at simplebus3
"ipu" at simplebus0 not configured
"sram" at simplebus0 not configured
imxahci0 at simplebus0: AHCI 1.3
scsibus0 at imxahci0: 32 targets
"gpu" at simplebus0 not configured
"ipu" at simplebus0 not configured
scsibus1 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <Sandisk, SA16G, 0024> removable
sd0: 14772MB, 512 bytes/sector, 30253056 sectors
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0x4330 at sdmmc0 function 2 not configured
uplcom0 at uhub0 port 1 configuration 1 interface 0 "Prolific Technology Inc. \
USB-Serial Controller" rev 1.10/3.00 addr 2 ucom0 at uplcom0
umodem0 at uhub1 port 1 configuration 1 interface 0 "HP HPN Serial Port" rev \
                2.00/0.01 addr 2
umodem0: data interface 1, has no CM over data, has break
umodem0: status change notification available
ucom1 at umodem0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd0a (fe2f3d685a24e68d.a) swap on sd0b dump on sd0b
bwfm0: address b8:5a:f7:82:99:b6
----------------------------------------------------------------------

-- 
> ++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic