Hello, I am investigating a usb issue on my imx6-based novena, and I tried to set a breakpoint to inspect the backtrace when the issue occurs. The problem is, when resuming execution out of ddb, I get a uvm_fault and then the only way forward is to reboot the system.
Am I missing a step ? or is it a bug ? -> Kernel config $ diff -Naur /usr/src/sys/arch/armv7/conf/{GENERIC,USBDEBUG} --- /usr/src/sys/arch/armv7/conf/GENERIC Mon Dec 14 09:19:10 2020 +++ /usr/src/sys/arch/armv7/conf/USBDEBUG Sun Dec 13 17:26:09 2020 @@ -26,6 +26,11 @@ option USBVERBOSE option USER_PCICONF # user-space PCI configuration +option USB_DEBUG +option UHUB_DEBUG +option UMASS_DEBUG +option EHCI_DEBUG + config bsd swap generic # The main bus device -> steps to reproduce over serial console $ doas sysctl ddb.trigger=1 Stopped at db_enter: ldrb r15, [r15, r15, ror r15]! ddb> break umass_bbb_reset ddb> c uvm_fault(0xc08d1260, c0659000, 2, 0) -> e Fatal kernel mode data abort: 'Permission fault (L1)' trapframe: 0xd0ccfcf8 DFSR=0000080d, DFAR=c06595b8, spsr=20000013 r0 =000000ff, r1 =c06595b8, r2 =00000000, r3 =00000002 r4 =c08e5164, r5 =c06595b8, r6 =d0ccfd91, r7 =00000003 r8 =c083ee30, r9 =00000004, r10=c06595b8, r11=d0ccfd88 r12=000fffff, ssp=d0ccfd48, slr=10600000, pc =c04d69c0 Stopped at db_write_bytes+0x3ac: strb r0, [r5], #0x001 ddb> trace db_write_bytes+0x3ac rlv=0xc03973fc rfp=0xd0ccfda0 db_put_value+0x50 rlv=0xc0669cc0 rfp=0xd0ccfdb0 db_set_breakpoints+0x54 rlv=0xc072e670 rfp=0xd0ccfdd8 db_restart_at_pc+0x178 rlv=0xc06731c4 rfp=0xd0ccfe00 db_trap+0x14c rlv=0xc04d6b18 rfp=0xd0ccfe20 db_trapper+0x88 rlv=0xc06f4734 rfp=0xd0ccfe50 undefinedinstruction+0x114 rlv=0xc05b5a68 rfp=0xd0ccfed8 $a.13 rlv=0xc04b1a18 rfp=0xd0ccff40 sys_sysctl+0x17c rlv=0xc0427620 rfp=0xd0ccffa8 swi_handler+0x2e0 rlv=0xc05b5898 rfp=0xbffe1460 -> dmesg Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyrght (c) 1995-2020 OpenBSD. All rights reserved. https://www.OpenBS.org OpenBSD 6.8-current (USBDEBUG) #2: Mon Dec 14 10:18:02 CET 2020 dermi...@derrida.kilob.yt:/usr/src/sys/arch/armv/compile/USBDEBUG real mem = 3933511680 (3751MB) avail mem = 3847270400 (3669MB) random: good seed from bootblocks mainbus0 at root: Kosagi Novena 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: tick rate 396000 KHz armliicc0 at cortex0: rtl 7 waymask: 0x0000000f ampintc0 at mainbus0 nirq 160, ncpu 4: "interrupt-controller" simplebus0 at mainbus0: "soc" "dma-apbh" at simplebus0 not configured "gpu" at simplebus0 not configured "gpu" at simplebus0 not configured "hdmi" at simplebus0 not configured "timer" at simplebus0 not configured "l2-cache" at simplebus0 not configured "pcie" at simplebus0 not configured "pmu" at simplebus0 not configured simplebus1 at simplebus0: "aips-bus" imxccm0 at simplebus1 imxanatop0 at simplebus1 syscon0 at simplebus1: "snvs" imxrtc0 at syscon0 imxsrc0 at simplebus1 syscon1 at simplebus1: "iomuxc-gpr" imxiomuxc0 at simplebus1 simplebus2 at simplebus1: "spba-bus" "ssi" at simplebus2 not configured "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 "kpp" at simplebus1 not configured imxdog0 at simplebus1 imxtemp0 at simplebus1 "usbphy" at simplebus1 not configured "usbphy" at simplebus1 not configured imxgpc0 at simplebus1 "ldb" at simplebus1 not configured "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 uhub0: 1 port with 1 removable, self powered 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 uhub1: 1 port with 1 removable, self powered "usbmisc" at simplebus3 not configured fec0 at simplebus3 fec0: address 00:1f:11:02:17:de ukphy0 at fec0 phy 7: Generic IEEE 802.3u media interface, rev. 1: OUI 0x000885, model 0x0021 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 "sbs,sbs-battery" at iic0 addr 0xb not configured "kosagi,senoko" at iic0 addr 0x20 not configured "st,stmpe811" at iic0 addr 0x44 not configured "fsl,mma8452" at iic0 addr 0x1c not configured pcfrtc0 at iic0 addr 0x68: battery low imxiic1 at simplebus3 iic1 at imxiic1 "fsl,pfuze100" at iic1 addr 0x8 not configured imxiic2 at simplebus3 iic2 at imxiic2 "everest,es8328" at iic2 addr 0x11 not configured "kosagi,eepromoops" at iic2 addr 0x56 not configured "it,it6251" at iic2 addr 0x5c not configured "mmdc" at simplebus3 not configured "weim" at simplebus3 not configured "audmux" at simplebus3 not configured imxuart0 at simplebus3: console imxuart1 at simplebus3 imxuart2 at simplebus3 "ipu" at simplebus0 not configured "sram" at simplebus0 not configured imxahci0 at simplebus0: AHCI 1.3 imxahci0: port 0: 3.0Gb/s scsibus0 at imxahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: <ATA, Samsung SSD 840, EXT0> naa.50025388a05aed8c sd0: 238475MB, 512 bytes/sector, 488397168 sectors, thin "gpu" at simplebus0 not configured "ipu" at simplebus0 not configured uhub1: intr status=0 uhub0: port 1 status=0x0500 change=0x0000 uhub1: port 1 status=0x0501 change=0x0001 scsibus1 at sdmmc1: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SMI, 0010> removable sd1: 486MB, 512 bytes/sector, 996352 sectors uhub1: intr status=0 uhub1: port 1 status=0x0503 change=0x0000 uhub2 at uhub1 port 1 configuration 1 interface 0 "Genesys Logic USB2.0 Hub Charger" rev 2.00/1.97 addr 2 uhub2: 4 ports with 2 removable, self powered, multiple transaction translators uhub2: intr status=0 uhub2: port 1 status=0x0101 change=0x0001 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: port 1 status=0x0503 change=0x0000 umass0 at uhub2 port 1 configuration 1 interface 0 "LG Electronics USB Flash Drive" rev 2.00/11.00 addr 3 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 sd2 at scsibus2 targ 1 lun 0: <LGE, USB Drive, 1100> removable serial.043e70d5012700026968 sd2: 3824MB, 512 bytes/sector, 7831552 sectors uhub2: port 2 status=0x0101 change=0x0001 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: port 2 status=0x0503 change=0x0000 axe0 at uhub2 port 2 configuration 1 interface 0 "ASIX Electronics AX88772B" rev 2.00/0.01 addr 4 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 uhub2: intr status=0 axe0: AX88772B, address 00:0e:c6:87:72:01 ukphy1 at axe0 phy 16: Generic IEEE 802.3u media interface, rev. 1: OUI 0x000ec6, model 0x0008 uhub2: port 3 status=0x0100 change=0x0000 uhub2: port 4 status=0x0101 change=0x0001 uhub2: intr status=0 uhub2: port 4 status=0x0503 change=0x0000 uhub3 at uhub2 port 4 configuration 1 interface 0 "Genesys Logic USB2.0 Hub Charger" rev 2.00/1.97 addr 5 uhub3: 4 ports with 4 removable, self powered, multiple transaction translators uhub3: port 1 status=0x0100 change=0x0000 uhub3: port 2 status=0x0100 change=0x0000 uhub3: port 3 status=0x0100 change=0x0000 uhub3: port 4 status=0x0100 change=0x0000 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets bootfile: sd1a:/bsd boot device: sd1 root on sd0a (693b6ba8fef17d9a.a) swap on sd0b dump on sd0b