Date: Mon, 13 Jul 2020 00:59:36 -0700 From: Mark Millard <marklmi@yahoo.com> To: freebsd-arm <freebsd-arm@freebsd.org> Subject: Rock64 head -r363021 -> -r363123 kernel upgrade: hangs after "rk_tsadc0: <RockChip temperature sensors> mem ... irq 22 on ofwbus0" Message-ID: <7BB9973C-CCC4-4599-98D5-864BEBECE3DF@yahoo.com> References: <7BB9973C-CCC4-4599-98D5-864BEBECE3DF.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
With boot -v the kernel crashes instead of being silently-hung: . . . generic_timer0: <ARMv8 Generic Timer> irq 4,5,6,7 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 rk_tsadc0: <RockChip temperature sensors> mem 0xff250000-0xff2500ff irq = 22 on ofwbus0 panic: stack overflow detected; backtrace may be corrupted cpuid =3D 0 time =3D 1 KDB: stack backtrace: x0: fffffd00008c0a00 x1: ffff00000082e61c x2: ffff000000010018 x3: ffff00000000fff8 x4: 3 x5: ffff00000082b3a0 x6: ffff0000004d6fe0 x7: 63 x8: ffff000000f09088 x9: b6c2 x10: 30 x11: 818d4c x12: 61 x13: 61 x14: 0 x15: 0 x16: 1 x17: 0 x18: ffff00000000ffe0 x19: ffff000000010058 x20: ffff000000010078 x21: ffff00000082e61c x22: fffffd00008c0a00 x23: ffff000000ada0b0 x24: 0 x25: ffff00000082e61c x26: ffff000000c1a000 x27: 82e61c x28: ffff000000dfa000 x29: ffff00000000ffe0 sp: ffff00000000ffe0 lr: ffff0000004427cc elr: ffff0000004ad9d0 spsr: 200001c5 far: 30 esr: 96000005 panic: data abort in critical section or under mutex cpuid =3D 0 time =3D 1 KDB: stack backtrace: x0: fffffd00008c0a00 x1: ffff00000082e61c x2: ffff00000000f8c8 x3: ffff00000000f8a8 x4: 3 x5: ffff00000082b3a0 x6: ffff0000004d6fe0 x7: 63 x8: ffff000000f0aee8 x9: b6c2 x10: 30 x11: 7ff148 x12: 192 x13: 192 x14: 0 x15: 0 x16: 1 x17: 0 x18: ffff00000000f890 x19: ffff00000000f908 x20: ffff00000000f928 x21: ffff00000082e61c x22: fffffd00008c0a00 x23: ffff000000ada0b0 x24: 0 x25: ffff00000082e61c x26: ffff000000c1a000 x27: 82e61c x28: ffff000000dfa000 x29: ffff00000000f890 sp: ffff00000000f890 lr: ffff0000004427cc elr: ffff0000004ad9d0 spsr: 20000145 far: 30 esr: 96000005 panic: data abort in critical section or under mutex cpuid =3D 0 time =3D 1 KDB: stack backtrace: x0: fffffd00008c0a00 x1: ffff00000082e61c x2: ffff00000000f178 x3: ffff00000000f158 x4: 3 x5: ffff00000082b3a0 x6: ffff0000004d6fe0 x7: 63 x8: ffff000000f0de70 x9: b6c2 x10: 30 x11: 79f00c x12: 389 x13: 389 x14: 0 x15: 0 x16: 1 x17: 0 x18: ffff00000000f140 x19: ffff00000000f1b8 x20: ffff00000000f1d8 x21: ffff00000082e61c x22: fffffd00008c0a00 x23: ffff000000ada0b0 x24: 0 x25: ffff00000082e61c x26: ffff000000c1a000 x27: 82e61c x28: ffff000000dfa000 x29: ffff00000000f140 sp: ffff00000000f140 lr: ffff0000004427cc elr: ffff0000004a$9d0 spsr: 20000145 far: 30 esr: 96000005 panic: data abort in critical section or under mutex cpuid =3D 0 time =3D 1 KDB: stack backtrace: x0: fffffd00008c0a00 x1: ffff00000082e61c x2: ffff00000000ea28 x3: ffff00000000ea08 x4: 3 x5: ffff00000082b3a0 x6: ffff0000004d6fe0 x7: 63 x8: 18 x9: b6c2 x10: 30 x11: 7409f8 x12: 3a5 x13: 3a5 x14: 0 x15: 0 x16: 1 x17: 0 x18: ffff00000000e9f0 x19: ffff00000000ea68 x20: ffff00000000ea88 x21: ffff00000082e61c x22: fffffd00008c0a00 x23: ffff000000ada0b0 x24: 0 x25: ffff00000082e61c x26: ffff000000c1a000 x27: 82e61c x28: ffff000000dfa000 x29: ffff00000000e9f0 sp: ffff00000000e9f0 lr: ffff0000004427cc elr: ffff0000004ad9d0 spsr: 20000145 far: 30 esr: 96000005 panic: data abort in critical section or under mutex cpuid =3D 0 time =3D 1 KDB: stack backtrace: x0: fffffd00008c0a00 x1: ffff00000082e61c x2: ffff00000000e2d8 x3: ffff00000000e2b8 x4: 3 x5: ffff00000082b3a0 x6: ffff0000004d6fe0 x7: 63 x8: ffff000000f0fec8 x9: b6c2 x10: 30 x11: 719fa8 x12: 4f2 x13: 4f2 x14: 0 x15: 0 x16: 1 x17: 0 x18: ffff00000000e2a0 x19: ffff00000000e318 x20: ffff00000000e338 x21: ffff00000082e61c x22: fffffd00008c0a00 x23: ffff000000ada0b0 x24: 0 x25: ffff00000082e61c x26: ffff000000c1a000 x27: 82e61c x28: ffff000000dfa000 x29: ffff00000000e2a0 sp: ffff00000000e2a0 lr: ffff0000004427cc elr: ffff0000004ad9d0 spsr: 20000145 far: 30 esr: 96000005 panic: data abort in critical section or under mutex cpuid =3D 0 time =3D 1 KDB: stack backtrace: x0: fffffd00008c0a00 x1: ffff00000082e61c x2: ffff00000000db88 x3: ffff00000000db68 x4: 3 x5: ffff00000082b3a0 x6: ffff0000004d6fe0 x7: 63 x8: ffff000000f0b758 x9: b6c2 x10: 30 x11: 7f30f0 x12: 1ec x13: 1ec x14: 0 x15: 0 x16: 1 x17: 0 x18: ffff00000000db50 x19: ffff00000000dbc8 x20: ffff00000000dbe8 x21: ffff00000082e61c x22: fffffd00008c0a00 x23: ffff000000ada0b0 x24: 0 x25: ffff00000082e61c x26: ffff000000c1a000 x27: 82e61c x28: ffff000000dfa000 x29: ffff00000000db50 sp: ffff00000000db50 lr: ffff0000004427cc elr: ffff0000004ad9d0 spsr: 20000145 far: 30 esr: 96000005 panic: data abort in critical section or under mutex cpuid =3D 0 time =3D 1 KDB: stack backtrace: (It stopped there, so still hung up.) For reference, the prior boot -v output was: Loading kernel... /boot/kernel/kernel text=3D0xa7121c data=3D0x195bd8 data=3D0x0+0x300c5e = syms=3D[0x8+0x112230+0x8+0x137ffc] Loading configured modules... /boot/kernel/umodem.ko text=3D0x2180 text=3D0x1430 data=3D0x6f0+0x10 = syms=3D[0x8+0xf78+0x8+0xb8d] /boot/entropy size=3D0x1000 /boot/kernel/ucom.ko text=3D0x21bf text=3D0x3700 data=3D0x888+0x858 = syms=3D[0x8+0x1188+0x8+0xb1b] /etc/hostid size=3D0x25 Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 9 seconds...=20 Type '?' for a list of commands, 'help' for more detailed help. OK boot -v Using DTB provided by EFI at 0x80f0000. Loading DTB overlays: 'rk3328-dwc3.dtbo' /boot/dtb/overlays/rk3328-dwc3.dtbo size=3D0x501 applying DTB overlay '/boot/dtb/overlays/rk3328-dwc3.dtbo' ---<<BOOT>>--- KDB: debugger backends: ddb KDB: current backend: ddb Type Physical Virtual #Pages Attr ConventionalMemory 000000200000 200000 00007ef0 WB=20 BootServicesData 0000080f0000 80f0000 00000020 WB=20 ConventionalMemory 000008110000 8110000 000ebd5a WB=20 LoaderData 0000f3e6a000 f3e6a000 00008001 WB=20 LoaderCode 0000fbe6b000 fbe6b000 000000aa WB=20 Reserved 0000fbf15000 fbf15000 00000005 WB=20 BootServicesData 0000fbf1a000 fbf1a000 00000001 WB=20 RuntimeServicesData 0000fbf1b000 fbf1b000 00000001 WB RUNTIME BootServicesData 0000fbf1c000 fbf1c000 00000002 WB=20 Reserved 0000fbf1e000 fbf1e000 00000004 WB=20 BootServicesData 0000fbf22000 fbf22000 00000002 WB=20 RuntimeServicesData 0000fbf24000 fbf24000 00000001 WB RUNTIME Reserved 0000fbf25000 fbf25000 00000002 WB=20 RuntimeServicesData 0000fbf27000 fbf27000 00000001 WB RUNTIME Reserved 0000fbf28000 fbf28000 00000001 WB=20 LoaderData 0000fbf29000 fbf29000 00003007 WB=20 RuntimeServicesCode 0000fef30000 fef30000 00000010 WB RUNTIME LoaderData 0000fef40000 fef40000 000000c0 WB=20 Physical memory chunk(s): 0x00200000 - 0xfbf14fff, 4029 MB (1031445 pages) 0xfbf1a000 - 0xfbf1dfff, 0 MB ( 4 pages) 0xfbf22000 - 0xfbf24fff, 0 MB ( 3 pages) 0xfbf27000 - 0xfbf27fff, 0 MB ( 1 pages) 0xfbf29000 - 0xfef2ffff, 48 MB ( 12295 pages) 0xfef40000 - 0xfeffffff, 0 MB ( 192 pages) Excluded memory regions: 0xf4000000 - 0xf53defff, 19 MB ( 5087 pages) NoAlloc=20 0xfbf15000 - 0xfbf19fff, 0 MB ( 5 pages) NoAlloc=20 0xfbf1b000 - 0xfbf1bfff, 0 MB ( 1 pages) NoAlloc=20 0xfbf1e000 - 0xfbf21fff, 0 MB ( 4 pages) NoAlloc=20 0xfbf24000 - 0xfbf28fff, 0 MB ( 5 pages) NoAlloc=20 0xfef30000 - 0xfef3ffff, 0 MB ( 16 pages) NoAlloc=20 Found 4 CPUs in the device tree Copyright (c) 1992-2020 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-CURRENT #8 r363123M: Sun Jul 12 04:01:48 PDT 2020 = markmi@FBSDFHUGE:/usr/obj/cortexA53_clang/arm64.aarch64/usr/src/arm64.aarc= h64/sys/GENERIC-NODBG arm64 FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git = llvmorg-10.0.1-rc2-0-g77d76b71d7d) VT: init without driver. Preloaded elf kernel "/boot/kernel/kernel" at 0xffff0000011b1000. Preloaded elf module "/boot/kernel/umodem.ko" at 0xffff0000011b9f80. Preloaded boot_entropy_cache "/boot/entropy" at 0xffff0000011ba798. Preloaded elf module "/boot/kernel/ucom.ko" at 0xffff0000011ba7f0. Preloaded hostuuid "/etc/hostid" at 0xffff0000011bafc8. Preloaded dtbo "/boot/dtb/overlays/rk3328-dwc3.dtbo" at = 0xffff0000011bb018. module firmware already present! Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: read 4096 bytes from preloaded cache random: unblocking device. VIMAGE (virtualized network stack) enabled hostuuid: using a4f7fbeb-f668-11de-b280-ebb65474e619 ULE: setup cpu 0 ULE: setup cpu 1 ULE: setup cpu 2 ULE: setup cpu 3 snd_unit_init() u=3D0x00ff8000 [512] d=3D0x00007c00 [32] c=3D0x000003ff = [1024] feeder_register: snd_unit=3D-1 snd_maxautovchans=3D16 latency=3D2 = feeder_rate_min=3D1 feeder_rate_max=3D2016000 feeder_rate_round=3D25 random: entropy device external interface MAP fbf1b000 mode 2 pages 1 MAP fbf24000 mode 2 pages 1 MAP fbf27000 mode 2 pages 1 MAP fef30000 mode 2 pages 16 WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD = 13.0. kbd0 at kbdmux0 crypto: <crypto core> mem: <memory> null: <full device, null device, zero device> openfirm: <Open Firmware control device> WARNING: Device "openfirm" is Giant locked and may be deleted before = FreeBSD 13.0. ofwbus0: <Open Firmware Device Tree> simplebus0: <Flattened device tree simple bus> on ofwbus0 clk_fixed0: <Fixed clock> on ofwbus0 rk_grf0: <RockChip General Register Files> mem 0xff100000-0xff100fff on = ofwbus0 rk3328_cru0: <Rockchip RK3328 Clock and Reset Unit> mem = 0xff440000-0xff440fff on ofwbus0 Clock: apll, parent: xin24m(0), freq: 600000000 Clock: dpll, parent: xin24m(0), freq: 1596000000 Clock: cpll, parent: xin24m(0), freq: 594000000 Clock: gpll, parent: xin24m(0), freq: 576000000 Clock: npll, parent: xin24m(0), freq: 800000000 Clock: aclk_bus_pre, parent: gpll(1), freq: 96000000 Clock: hclk_bus_pre, parent: aclk_bus_pre(0), freq: 48000000 Clock: pclk_bus_pre, parent: aclk_bus_pre(0), freq: 48000000 Clock: armclk, parent: apll(0), freq: 600000000 Clock: clk_tsadc, parent: xin24m(0), freq: 315789 Clock: aclk_peri_pre, parent: gpll(1), freq: 144000000 Clock: pclk_peri, parent: aclk_peri_pre(0), freq: 36000000 Clock: hclk_peri, parent: aclk_peri_pre(0), freq: 28800000 Clock: clk_sdmmc, parent: xin24m(2), freq: 800000 Clock: clk_sdio, parent: cpll(0), freq: 297000000 Clock: clk_emmc, parent: gpll(1), freq: 96000000 Clock: clk_i2c0, parent: cpll(0), freq: 74250000 Clock: clk_i2c1, parent: cpll(0), freq: 74250000 Clock: clk_i2c2, parent: cpll(0), freq: 74250000 Clock: clk_i2c3, parent: cpll(0), freq: 74250000 Clock: clk_ref_usb3otg, parent: xin24m(0), freq: 24000000 Clock: clk_ref_usb3otg_src, parent: cpll(0), freq: 18562500 Clock: clk_usb3otg_suspend, parent: xin24m(0), freq: 30769 Clock: apll_core, parent: apll(0), freq: 600000000 Clock: dpll_core, parent: dpll(0), freq: 1596000000 Clock: gpll_core, parent: gpll(0), freq: 576000000 Clock: npll_core, parent: npll(0), freq: 800000000 Clock: gpll_peri, parent: gpll(0), freq: 576000000 Clock: cpll_peri, parent: cpll(0), freq: 594000000 Clock: clk_usb3otg_ref, parent: xin24m(0), freq: 24000000 Clock: pclk_bus, parent: pclk_bus_pre(0), freq: 48000000 Clock: pclk_phy_pre, parent: pclk_bus_pre(0), freq: 48000000 Clock: aclk_peri, parent: aclk_peri_pre(0), freq: 144000000 Clock: pclk_i2c0, parent: pclk_bus(0), freq: 48000000 Clock: pclk_i2c1, parent: pclk_bus(0), freq: 48000000 Clock: pclk_i2c2, parent: pclk_bus(0), freq: 48000000 Clock: pclk_i2c3, parent: pclk_bus(0), freq: 48000000 Clock: pclk_tsadc, parent: pclk_bus(0), freq: 48000000 Clock: pclk_gpio0, parent: pclk_bus(0), freq: 48000000 Clock: pclk_gpio1, parent: pclk_bus(0), freq: 48000000 Clock: pclk_gpio2, parent: pclk_bus(0), freq: 48000000 Clock: pclk_gpio3, parent: pclk_bus(0), freq: 48000000 Clock: pclk_usb3_grf, parent: pclk_phy_pre(0), freq: 48000000 Clock: hclk_sdmmc, parent: hclk_peri(0), freq: 28800000 Clock: hclk_sdio, parent: hclk_peri(0), freq: 28800000 Clock: hclk_emmc, parent: hclk_peri(0), freq: 28800000 Clock: hclk_peri_niu, parent: hclk_peri(0), freq: 28800000 Clock: pclk_peri_niu, parent: hclk_peri(0), freq: 28800000 Clock: aclk_usb3otg, parent: aclk_peri(0), freq: 144000000 Clock: hclk_sdmmc_ext, parent: hclk_peri(0), freq: 28800000 Clock: pclk_usb3phy_otg, parent: pclk_phy_pre(0), freq: 48000000 Clock: pclk_usb3phy_pipe, parent: pclk_phy_pre(0), freq: 48000000 rk3328_cru0: cannot get assigned clock at idx 30 rk3328_cru0: Set pclk_peri to 75000000 rk3328_cru0: Set hclk_peri to 75000000 rk3328_cru0: Set aclk_peri_pre to 150000000 rk3328_cru0: Set pclk_bus_pre to 75000000 rk3328_cru0: Set hclk_bus_pre to 75000000 rk3328_cru0: Set aclk_bus_pre to 150000000 rk3328_cru0: Set cpll to 1200000000 rk3328_cru0: Set gpll to 491520000 rk3328_cru0: Set armclk to 600000000 rk3328_cru0: cannot get assigned clock at idx 20 rk3328_cru0: cannot get assigned clock at idx 19 rk3328_cru0: Set clk_sdio to 50000000 rk3328_cru0: cannot get assigned clock at idx 17 rk3328_cru0: cannot get assigned clock at idx 16 rk3328_cru0: cannot get assigned clock at idx 15 rk3328_cru0: cannot get assigned clock at idx 14 rk3328_cru0: cannot get assigned clock at idx 13 rk3328_cru0: cannot get assigned clock at idx 12 rk3328_cru0: cannot get assigned clock at idx 11 rk3328_cru0: cannot get assigned clock at idx 10 rk3328_cru0: cannot get assigned clock at idx 9 rk3328_cru0: cannot get assigned clock at idx 8 rk3328_cru0: Set aclk_peri_pre to 15000000 rk3328_cru0: Set aclk_bus_pre to 15000000 rk3328_cru0: cannot get assigned clock at idx 5 rk3328_cru0: cannot get assigned clock at idx 4 rk3328_cru0: cannot get assigned clock at idx 3 rk3328_cru0: cannot get assigned clock at idx 2 rk3328_cru0: cannot get assigned clock at idx 1 rk3328_cru0: cannot get assigned clock at idx 0 clk_fixed1: <Fixed clock> on ofwbus0 regfix0: <Fixed Regulator> on ofwbus0 regfix1: <Fixed Regulator> on ofwbus0 regfix2: <Fixed Regulator> on ofwbus0 regfix3: <Fixed Regulator> on ofwbus0 simple_mfd0: <Simple MFD (Multi-Functions Device)> mem = 0xff450000-0xff45ffff on ofwbus0 psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0 psci0: PSCI version 0.2 compatible gic0: <ARM Generic Interrupt Controller> mem = 0xff811000-0xff811fff,0xff812000-0xff813fff,0xff814000-0xff815fff,0xff8160= 00-0xff817fff irq 49 on ofwbus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 160 rk_pinctrl0: <RockChip Pinctrl controller> on ofwbus0 gpio0: <RockChip GPIO Bank controller> mem 0xff210000-0xff2100ff irq 52 = on rk_pinctrl0 gpiobus0: <OFW GPIO bus> on gpio0 gpio1: <RockChip GPIO Bank controller> mem 0xff220000-0xff2200ff irq 53 = on rk_pinctrl0 gpiobus1: <OFW GPIO bus> on gpio1 gpio2: <RockChip GPIO Bank controller> mem 0xff230000-0xff2300ff irq 54 = on rk_pinctrl0 gpiobus2: <OFW GPIO bus> on gpio2 gpio3: <RockChip GPIO Bank controller> mem 0xff240000-0xff2400ff irq 55 = on rk_pinctrl0 gpiobus3: <OFW GPIO bus> on gpio3 Processing 1 pin-config node(s) in pinctrl-0 for spdif@ff030000 Processing 1 pin-config node(s) in pinctrl-0 for serial@ff130000 Processing 1 pin-config node(s) in pinctrl-0 for pmic@18 Processing 1 pin-config node(s) in pinctrl-0 for i2c@ff160000 Processing 4 pin-config node(s) in pinctrl-0 for spi@ff190000 Processing 1 pin-config node(s) in pinctrl-0 for tsadc@ff250000 Processing 3 pin-config node(s) in pinctrl-0 for hdmi@ff3c0000 Processing 4 pin-config node(s) in pinctrl-0 for mmc@ff500000 Processing 3 pin-config node(s) in pinctrl-0 for mmc@ff520000 Processing 1 pin-config node(s) in pinctrl-0 for ethernet@ff540000 Processing 1 pin-config node(s) in pinctrl-0 for sdmmc-regulator Processing 1 pin-config node(s) in pinctrl-0 for vcc-host-5v-regulator Processing 1 pin-config node(s) in pinctrl-0 for vcc-host1-5v-regulator Processing 1 pin-config node(s) in pinctrl-0 for ir-receiver rk_i2c0: <RockChip I2C> mem 0xff160000-0xff160fff irq 16 on ofwbus0 iicbus0: <OFW I2C bus> on rk_i2c0 rk805_pmu0: <RockChip RK805 PMIC> at addr 0x30 irq 56 on iicbus0 rk805_pmu0: Regulator DCDC_REG1 attached rk805_pmu0: Regulator DCDC_REG2 attached rk805_pmu0: Regulator DCDC_REG3 attached rk805_pmu0: Regulator DCDC_REG4 attached rk805_pmu0: Regulator LDO_REG1 attached rk805_pmu0: Regulator LDO_REG2 attached rk805_pmu0: Regulator LDO_REG3 attached (earlier material goes here) For reference, the -r363021 kernel in /boot/kernel.old/ still works for booting. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7BB9973C-CCC4-4599-98D5-864BEBECE3DF>