---<>--- GDB: debug ports: uart GDB: current port: uart KDB: debugger backends: ddb gdb KDB: current backend: ddb Copyright (c) 1992-2021 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-ALPHA1 #12 main-c255973-gb14cfecbf0ed: Fri Jan 15 09:32:46 CET 2021 root@tiny.0xfce3.net:/tank/nfs_public/tiny/obj/tank/nfs_public/tiny/src/arm64.aarch64/sys/GENERIC-TCP arm64 FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-rc2-0-g43ff75f2c3f) WARNING: WITNESS option enabled, expect reduced performance. VT(efifb): resolution 1776x984 module firmware already present! KLD file umodem.ko is missing dependencies real memory = 4147933184 (3955 MB) avail memory = 4017471488 (3831 MB) Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface MAP 39f38000 mode 2 pages 1 MAP 39f3e000 mode 2 pages 2 MAP 3b350000 mode 2 pages 16 MAP fe100000 mode 0 pages 1 WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0. kbd0 at kbdmux0 WARNING: Device "openfirm" is Giant locked and may be deleted before FreeBSD 13.0. ofwbus0: simplebus0: on ofwbus0 ofw_clkbus0: on ofwbus0 clk_fixed0: on ofw_clkbus0 clk_fixed1: on ofw_clkbus0 simplebus1: on ofwbus0 simplebus2: on ofwbus0 regfix0: on ofwbus0 regfix1: on ofwbus0 psci0: on ofwbus0 gic0: mem 0x40041000-0x40041fff,0x40042000-0x40043fff,0x40044000-0x40045fff,0x40046000-0x40047fff irq 46 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 256 gpio0: mem 0x7e200000-0x7e2000b3 irq 22,23 on simplebus0 gpiobus0: on gpio0 mbox0: mem 0x7e00b880-0x7e00b8bf irq 21 on simplebus0 bcm2835_firmware0: on simplebus0 gpio1: on bcm2835_firmware0 gpiobus1: on gpio1 gpioregulator0: on ofwbus0 generic_timer0: irq 4,5,6,7 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000 usb_nop_xceiv0: on ofwbus0 bcm_dma0: mem 0x7e007000-0x7e007aff irq 9,10,11,12,13,14,15,16,17,18,19 on simplebus0 bcmwd0: mem 0x7e100000-0x7e100113,0x7e00a000-0x7e00a023,0x7ec11000-0x7ec1101f on simplebus0 gpioc0: on gpio0 uart0: mem 0x7e201000-0x7e2011ff irq 24 on simplebus0 uart0: console (115200,n,8,1) spi0: mem 0x7e204000-0x7e2041ff irq 26 on simplebus0 spibus0: on spi0 spibus0: at cs 0 mode 0 spibus0: at cs 1 mode 0 iichb0: mem 0x7e804000-0x7e804fff irq 38 on simplebus0 sdhci_bcm0: mem 0x7e340000-0x7e3400ff irq 60 on simplebus0 uma_zalloc_debug: zone "malloc-2048" with the following non-sleepable locks held: exclusive sleep mutex SD slot mtx (sdhci) r = 0 (0xffffa00000cba438) locked @ /tank/nfs_public/tiny/src/sys/dev/sdhci/sdhci.c:617 stack backtrace: #0 0xffff0000004c5778 at witness_debugger+0x64 #1 0xffff0000004c68fc at witness_warn+0x3e8 #2 0xffff0000006df404 at uma_zalloc_debug+0x2c #3 0xffff0000006dee18 at uma_zalloc_arg+0x2c #4 0xffff00000042def0 at malloc+0xa0 #5 0xffff00000000d068 at xpt_alloc_ccb+0x1c #6 0xffff000000031230 at mmccam_start_discovery+0x18 #7 0xffff00000024c184 at sdhci_card_task+0x110 #8 0xffff000000744dc8 at bcm_sdhci_attach+0x41c #9 0xffff000000491354 at device_attach+0x400 #10 0xffff000000490ebc at device_probe_and_attach+0x7c #11 0xffff0000004930a4 at bus_generic_new_pass+0xf8 #12 0xffff000000493054 at bus_generic_new_pass+0xa8 #13 0xffff000000493054 at bus_generic_new_pass+0xa8 #14 0xffff000000493054 at bus_generic_new_pass+0xa8 #15 0xffff00000048e434 at bus_set_pass+0x4c #16 0xffff0000003e5cc0 at mi_startup+0x12c #17 0xffff0000000008a4 at virtdone+0x6c sdhci_bcm1: mem 0x7e300000-0x7e3000ff irq 61 on simplebus0 uma_zalloc_debug: zone "malloc-2048" with the following non-sleepable locks held: exclusive sleep mutex SD slot mtx (sdhci) r = 0 (0xffffa00000cba038) locked @ /tank/nfs_public/tiny/src/sys/dev/sdhci/sdhci.c:617 stack backtrace: #0 0xffff0000004c5778 at witness_debugger+0x64 #1 0xffff0000004c68fc at witness_warn+0x3e8 #2 0xffff0000006df404 at uma_zalloc_debug+0x2c #3 0xffff0000006dee18 at uma_zalloc_arg+0x2c #4 0xffff00000042def0 at malloc+0xa0 #5 0xffff00000000d068 at xpt_alloc_ccb+0x1c #6 0xffff000000031230 at mmccam_start_discovery+0x18 #7 0xffff00000024c184 at sdhci_card_task+0x110 #8 0xffff000000744dc8 at bcm_sdhci_attach+0x41c #9 0xffff000000491354 at device_attach+0x400 #10 0xffff000000490ebc at device_probe_and_attach+0x7c #11 0xffff0000004930a4 at bus_generic_new_pass+0xf8 #12 0xffff000000493054 at bus_generic_new_pass+0xa8 #13 0xffff000000493054 at bus_generic_new_pass+0xa8 #14 0xffff000000493054 at bus_generic_new_pass+0xa8 #15 0xffff00000048e434 at bus_set_pass+0x4c #16 0xffff0000003e5cc0 at mi_startup+0x12c #17 0xffff0000000008a4 at virtdone+0x6c gpioc1: on gpio1 fb0: on simplebus0 fb0: keeping existing fb bpp of 32 fbd0 on fb0 WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 13.0. VT: Replacing driver "efifb" with new "fb". fb0: 1776x984(1776x984@0,0) 32bpp fb0: fbswap: 1, pitch 7104, base 0x3e542000, screen_size 7047168 pmu0: irq 0,1,2,3 on ofwbus0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 pcib0: mem 0x7d500000-0x7d50930f,0x7e00f300-0x7e00f31f irq 66,67 on simplebus2 pcib0: hardware identifies as revision 0x304. pci0: on pcib0 pcib1: irq 77 at device 0.0 on pci0 pcib0: Failed to translate resource 0-fffff type 3 for pcib1 pcib1: failed to allocate initial prefetch window: 0-0xfffff pci1: on pcib1 bcm_xhci0: irq 78 at device 0.0 on pci1 bcm_xhci0: 32 bytes context size, 64-bit DMA usbus0 on bcm_xhci0 genet0: mem 0x7d580000-0x7d58ffff irq 68,69 on simplebus2 genet0: GENET version 5.0 phy 0x0000 miibus0: on genet0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto genet0: Ethernet address: dc:a6:32:9d:64:c4 gpioled0: on ofwbus0 lock order reversal: (sleepable after non-sleepable) 1st 0xffff000000bfa920 LED mtx (LED mtx, sleep mutex) @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 2nd 0xffffa00000c62810 Raspberry Pi firmware gpio (Raspberry Pi firmware gpio, sx) @ /tank/nfs_public/tiny/src/sys/arm/broadcom/bcm2835/raspberrypi_gpio.c:252 lock order LED mtx -> Raspberry Pi firmware gpio attempted at: #0 0xffff0000004c5458 at witness_checkorder+0xc50 #1 0xffff000000462358 at _sx_xlock+0x7c #2 0xffff00000074b6e4 at rpi_fw_gpio_pin_set+0xe8 #3 0xffff0000001ea3dc at led_create_state+0x158 #4 0xffff0000001b78e4 at gpioled_attach+0x290 #5 0xffff000000491354 at device_attach+0x400 #6 0xffff000000490ebc at device_probe_and_attach+0x7c #7 0xffff0000004930a4 at bus_generic_new_pass+0xf8 #8 0xffff000000493054 at bus_generic_new_pass+0xa8 #9 0xffff000000493054 at bus_generic_new_pass+0xa8 #10 0xffff00000048e434 at bus_set_pass+0x4c #11 0xffff0000003e5cc0 at mi_startup+0x12c #12 0xffff0000000008a4 at virtdone+0x6c uma_zalloc_debug: zone "malloc-64" with the following non-sleepable locks held: exclusive sleep mutex LED mtx (LED mtx) r = 0 (0xffff000000bfa920) locked @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 stack backtrace: #0 0xffff0000004c5778 at witness_debugger+0x64 #1 0xffff0000004c68fc at witness_warn+0x3e8 #2 0xffff0000006df404 at uma_zalloc_debug+0x2c #3 0xffff0000006dee18 at uma_zalloc_arg+0x2c #4 0xffff00000042def0 at malloc+0xa0 #5 0xffff0000007408b8 at bcm2835_firmware_property+0x44 #6 0xffff00000074b6fc at rpi_fw_gpio_pin_set+0x100 #7 0xffff0000001ea3dc at led_create_state+0x158 #8 0xffff0000001b78e4 at gpioled_attach+0x290 #9 0xffff000000491354 at device_attach+0x400 #10 0xffff000000490ebc at device_probe_and_attach+0x7c #11 0xffff0000004930a4 at bus_generic_new_pass+0xf8 #12 0xffff000000493054 at bus_generic_new_pass+0xa8 #13 0xffff000000493054 at bus_generic_new_pass+0xa8 #14 0xffff00000048e434 at bus_set_pass+0x4c #15 0xffff0000003e5cc0 at mi_startup+0x12c #16 0xffff0000000008a4 at virtdone+0x6c uma_zalloc_debug: zone "malloc-16" with the following non-sleepable locks held: exclusive sleep mutex LED mtx (LED mtx) r = 0 (0xffff000000bfa920) locked @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 stack backtrace: #0 0xffff0000004c5778 at witness_debugger+0x64 #1 0xffff0000004c68fc at witness_warn+0x3e8 #2 0xffff0000006df404 at uma_zalloc_debug+0x2c #3 0xffff0000006dee18 at uma_zalloc_arg+0x2c #4 0xffff00000042def0 at malloc+0xa0 #5 0xffff000000763fa0 at bounce_bus_dmamem_alloc+0x50 #6 0xffff000000743390 at bcm2835_mbox_property+0xdc #7 0xffff0000007408ec at bcm2835_firmware_property+0x78 #8 0xffff00000074b6fc at rpi_fw_gpio_pin_set+0x100 #9 0xffff0000001ea3dc at led_create_state+0x158 #10 0xffff0000001b78e4 at gpioled_attach+0x290 #11 0xffff000000491354 at device_attach+0x400 #12 0xffff000000490ebc at device_probe_and_attach+0x7c #13 0xffff0000004930a4 at bus_generic_new_pass+0xf8 #14 0xffff000000493054 at bus_generic_new_pass+0xa8 #15 0xffff000000493054 at bus_generic_new_pass+0xa8 #16 0xffff00000048e434 at bus_set_pass+0x4c #17 0xffff0000003e5cc0 at mi_startup+0x12c uma_zalloc_debug: zone "malloc-128" with the following non-sleepable locks held: exclusive sleep mutex LED mtx (LED mtx) r = 0 (0xffff000000bfa920) locked @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 stack backtrace: #0 0xffff0000004c5778 at witness_debugger+0x64 #1 0xffff0000004c68fc at witness_warn+0x3e8 #2 0xffff0000006df404 at uma_zalloc_debug+0x2c #3 0xffff0000006dee18 at uma_zalloc_arg+0x2c #4 0xffff00000042def0 at malloc+0xa0 #5 0xffff000000763fe8 at bounce_bus_dmamem_alloc+0x98 #6 0xffff000000743390 at bcm2835_mbox_property+0xdc #7 0xffff0000007408ec at bcm2835_firmware_property+0x78 #8 0xffff00000074b6fc at rpi_fw_gpio_pin_set+0x100 #9 0xffff0000001ea3dc at led_create_state+0x158 #10 0xffff0000001b78e4 at gpioled_attach+0x290 #11 0xffff000000491354 at device_attach+0x400 #12 0xffff000000490ebc at device_probe_and_attach+0x7c #13 0xffff0000004930a4 at bus_generic_new_pass+0xf8 #14 0xffff000000493054 at bus_generic_new_pass+0xa8 #15 0xffff000000493054 at bus_generic_new_pass+0xa8 #16 0xffff00000048e434 at bus_set_pass+0x4c #17 0xffff0000003e5cc0 at mi_startup+0x12c cryptosoft0: Timecounters tick every 1.000 msec [fib_algo] fib_module_register: attaching radix6_lockless to inet6 [fib_algo] fib_module_register: attaching radix6 to inet6 [fib_algo] fib_module_register: attaching bsearch4 to inet [fib_algo] fib_module_register: attaching radix4_lockless to inet [fib_algo] fib_module_register: attaching radix4 to inet Attempting to load tcp_bbr usbus0: 5.0Gbps Super Speed USB v3.0 tcp_bbr is now available iicbus0: on iichb0 iic0: on iicbus0 ugen0.1: <0x1106 XHCI root HUB> at usbus0 uhub0 on usbus0 uhub0: <0x1106 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 bcm2835_cpufreq0: ARM 600MHz, Core 200MHz, SDRAM 400MHz, Turbo OFF TCP Hpts created 4 swi interrupt threads and bound 0 to cpus Trying to mount root from ufs:/dev/ufs/rootfs [rw,noatime]... Root mount waiting for: CAM usbus0 Release APs...done CPU 0: ARM Cortex-A72 r0p3 affinity: 0 Cache Type = <64 byte D-cacheline,64 byte I-cacheline,PIPT ICache,64 byte ERG,64 byte CWG> Instruction Set Attributes 0 = Instruction Set Attributes 1 = <> Processor Features 0 = Processor Features 1 = <> Memory Model Features 0 = Memory Model Features 1 = <8bit VMID> Memory Model Features 2 = <32bit CCIDX,48bit VA> Debug Features 0 = <2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3,Debugv8> Debug Features 1 = <> Auxiliary Features 0 = <> Auxiliary Features 1 = <> CPU 1: ARM Cortex-A72 r0p3 affinity: 1 CPU 2: ARM Cortex-A72 r0p3 affinity: 2 CPU 3: ARM Cortex-A72 r0p3 affinity: 3 TCP_ratelimit: Is now initialized WARNING: WITNESS option enabled, expect reduced performance. uhub0: 5 ports with 4 removable, self powered sdda0 at sdhci_slot0 bus 0 scbus0 target 0 lun 0 sdda0: Relative addr: 0000aaaa Card features: Card memory OCR: 40ff8000 sdda0: Serial Number DBF21023 sdda0: SDHC SC64G 8.0 SN DBF21023 MFG 05/2020 by 3 SD ugen0.2: at usbus0 uhub1 on uhub0 uhub1: on usbus0 Root mount waiting for: usbus0 uhub1: 4 ports with 4 removable, self powered ugen0.3: at usbus0 ukbd0 on uhub1 ukbd0: on usbus0 kbd1 at ukbd0 mountroot: waiting for device /dev/ufs/rootfs... WARNING: / was not properly dismounted Warning: no time-of-day clock registered, system time will not be set accurately Dual Console: Serial Primary, Video Secondary WARNING: / was not properly dismounted lo0: link state changed to UP genet0: link state changed to DOWN genet0: link state changed to UP uhid0 on uhub1 uhid0: on usbus0 pflog0: promiscuous mode enabled Security policy loaded: MAC/ntpd (mac_ntpd) lock order reversal: 1st 0xffffa000225bd810 ufs (ufs, lockmgr) @ /tank/nfs_public/tiny/src/sys/kern/vfs_mount.c:1033 2nd 0xffffa00022634be0 devfs (devfs, lockmgr) @ /tank/nfs_public/tiny/src/sys/kern/vfs_mount.c:1045 lock order devfs -> ufs established at: #0 0xffff0000004c4c4c at witness_checkorder+0x444 #1 0xffff000000427c2c at lockmgr_lock_flags+0x1d8 #2 0xffff0000006c50e0 at ffs_lock+0x64 #3 0xffff00000054af4c at _vn_lock+0x54 #4 0xffff00000052bd4c at vfs_domount+0xea8 #5 0xffff00000052a0cc at vfs_donmount+0x2b4 #6 0xffff00000052e5d4 at kernel_mount+0x4c #7 0xffff000000530d58 at parse_mount+0x49c #8 0xffff00000052f2b4 at vfs_mountroot+0x3fc #9 0xffff0000003e6cb0 at start_init+0x24 #10 0xffff0000004131c8 at fork_exit+0x74 #11 0xffff000000788f38 at fork_trampoline+0x10 lock order ufs -> devfs attempted at: #0 0xffff0000004c5458 at witness_checkorder+0xc50 #1 0xffff0000004296a0 at lockmgr_xlock+0x50 #2 0xffff00000054af4c at _vn_lock+0x54 #3 0xffff00000052bd4c at vfs_domount+0xea8 #4 0xffff00000052a0cc at vfs_donmount+0x2b4 #5 0xffff000000529dd8 at sys_nmount+0x60 #6 0xffff000000789b14 at do_el0_sync+0x7cc #7 0xffff000000769224 at handle_el0_sync+0x90 --------------------------------------------------------------------------------------------------- diff --git a/sys/arm64/arm64/vm_machdep.c b/sys/arm64/arm64/vm_machdep.c index 6a84dc023562..90d628a7d6ee 100644 --- a/sys/arm64/arm64/vm_machdep.c +++ b/sys/arm64/arm64/vm_machdep.c @@ -175,6 +175,7 @@ cpu_copy_thread(struct thread *td, struct thread *td0) td->td_pcb->pcb_x[9] = (uintptr_t)td; td->td_pcb->pcb_lr = (uintptr_t)fork_trampoline; td->td_pcb->pcb_sp = (uintptr_t)td->td_frame; + td->td_pcb->pcb_fpflags &= ~(PCB_FP_STARTED | PCB_FP_KERN | PCB_FP_NOSAVE); td->td_pcb->pcb_fpusaved = &td->td_pcb->pcb_fpustate; td->td_pcb->pcb_vfpcpu = UINT_MAX; @@ -265,10 +266,6 @@ cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) td->td_pcb->pcb_x[8] = (uintptr_t)func; td->td_pcb->pcb_x[9] = (uintptr_t)arg; - td->td_pcb->pcb_lr = (uintptr_t)fork_trampoline; - td->td_pcb->pcb_sp = (uintptr_t)td->td_frame; - td->td_pcb->pcb_fpusaved = &td->td_pcb->pcb_fpustate; - td->td_pcb->pcb_vfpcpu = UINT_MAX; } void diff --git a/sys/crypto/armv8/armv8_crypto.c b/sys/crypto/armv8/armv8_crypto.c index 90d096b53b1a..d9fd4c1ac0da 100644 --- a/sys/crypto/armv8/armv8_crypto.c +++ b/sys/crypto/armv8/armv8_crypto.c @@ -112,7 +112,11 @@ armv8_crypto_probe(device_t dev) case ID_AA64ISAR0_AES_PMULL: ret = 0; break; + case ID_AA64ISAR0_AES_NONE: + device_printf(dev, "CPU lacks AES intrinsics"); + break; } + printf("AES val: %lx\n", ID_AA64ISAR0_AES_VAL(reg)); device_set_desc_copy(dev, "AES-CBC,AES-XTS");