>Synopsis:      arm64: syscall_return panic while booting
>Category:      kernel panic
>Environment:
        System      : OpenBSD 6.6
        Details     : OpenBSD 6.6-current (GENERIC.MP) #236: Fri Nov  8 
14:46:36 EST 2019
                         
[email protected]:/sys/arch/arm64/compile/GENERIC.MP

        Architecture: OpenBSD.arm64
        Machine     : arm64
>Description:
        Kernel panic in syscall_return while booting a RockPro64.

U-Boot TPL 2019.10-dirty (Oct 12 2019 - 14:09:09)
con reg        
cru , cic , grf , sgrf , pmucru , pmu 
Starting SDRAM initialization...
sdram_init: data trained for rank 1, ch 0
sdram_init: data trained for rank 1, ch 1
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
256B stride
lpddr4_set_ctl: channel 0 training pass
lpddr4_set_ctl: channel 1 training pass
lpddr4_set_rate: change freq to 400 mhz 0, 1
lpddr4_set_ctl: channel 0 training pass
lpddr4_set_ctl: channel 1 training pass
lpddr4_set_rate: change freq to 800 mhz 1, 0
Finish SDRAM initialization...
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2019.10-dirty (Oct 12 2019 - 14:09:09 -0400)
Trying to boot from MMC1
NOTICE:  BL31: v2.1(debug):2.1
NOTICE:  BL31: Built : 10:16:34, Sep 27 2019
INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:    plat_rockchip_pmu_init(1596): pd status 3e
INFO:    BL31: Initializing runtime services
WARNING: BL31: cortex_a53: CPU workaround for 819472 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 824069 was missing!
WARNING: BL31: cortex_a53: CPU workaround for 827319 was missing!
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2019.10-dirty (Oct 12 2019 - 14:09:09 -0400)

Model: Pine64 RockPro64
DRAM:  rk3399_dmc_probe: pmugrf = 00000000ff320000
3.9 GiB
MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMC... Card did not respond to voltage select!
*** Warning - No block device, using default environment

In:    serial@ff1a0000
Out:   serial@ff1a0000
Err:   serial@ff1a0000
Model: Pine64 RockPro64
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found EFI removable media binary efi/boot/bootaa64.efi
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk [email protected]...
Card did not respond to voltage select!
Scanning disk [email protected]...
Disk [email protected] not ready
Found 3 disks
BootOrder not defined
EFI boot manager: Cannot load any image
161090 bytes read in 15 ms (10.2 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
disks: sd0*
>> OpenBSD/arm64 BOOTAA64 0.19
boot> 
booting sd0a:/bsd: 7480340+1599872+539984+848776 
[621522+109+869160+526938]=0xd3fe68
type 0x2 pa 0x200000 va 0x200000 pages 0x4000 attr 0x8
type 0x7 pa 0x4200000 va 0x4200000 pages 0x3eec attr 0x8
type 0x4 pa 0x80ec000 va 0x80ec000 pages 0x28 attr 0x8
type 0x7 pa 0x8114000 va 0x8114000 pages 0xec1a1 attr 0x8
type 0x2 pa 0xf42b5000 va 0xf42b5000 pages 0xb33 attr 0x8
type 0x4 pa 0xf4de8000 va 0xf4de8000 pages 0x1 attr 0x8
type 0x2 pa 0xf4de9000 va 0xf4de9000 pages 0x3 attr 0x8
type 0x7 pa 0xf4dec000 va 0xf4dec000 pages 0x1 attr 0x8
type 0x2 pa 0xf4ded000 va 0xf4ded000 pages 0x100 attr 0x8
type 0x1 pa 0xf4eed000 va 0xf4eed000 pages 0x28 attr 0x8
type 0x0 pa 0xf4f15000 va 0xf4f15000 pages 0x7 attr 0x8
type 0x4 pa 0xf4f1c000 va 0xf4f1c000 pages 0x1 attr 0x8
type 0x6 pa 0xf4f1d000 va 0x53b9388000 pages 0x1 attr 0x8000000000000008
type 0x4 pa 0xf4f1e000 va 0xf4f1e000 pages 0x2 attr 0x8
type 0x0 pa 0xf4f20000 va 0xf4f20000 pages 0x4 attr 0x8
type 0x4 pa 0xf4f24000 va 0xf4f24000 pages 0x2 attr 0x8
type 0x6 pa 0xf4f26000 va 0x53b9391000 pages 0x1 attr 0x8000000000000008
type 0x2 pa 0xf4f27000 va 0xf4f27000 pages 0x3019 attr 0x8
type 0x5 pa 0xf7f40000 va 0x53bc3ab000 pages 0x10 attr 0x8000000000000008
type 0x2 pa 0xf7f50000 va 0xf7f50000 pages 0xb0 attr 0x8
[ using 2018704 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-2019 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6-current (GENERIC.MP) #236: Fri Nov  8 14:46:36 EST 2019
    [email protected]:/sys/arch/arm64/compile/GENERIC.MP
real mem  = 4094218240 (3904MB)
avail mem = 3895091200 (3714MB)
mainbus0 at root: Pine64 RockPro64
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: 512KB 64b/line 16-way L2 cache
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20191000
apm0 at mainbus0
psci0 at mainbus0: PSCI 1.1, SMCCC 1.1
agintc0 at mainbus0 sec shift 3:3 nirq 288 nredist 6 ipi: 0, 1: 
"interrupt-controller"
agintcmsi0 at agintc0
syscon0 at mainbus0: "qos"
syscon1 at mainbus0: "qos"
syscon2 at mainbus0: "qos"
syscon3 at mainbus0: "qos"
syscon4 at mainbus0: "qos"
syscon5 at mainbus0: "qos"
syscon6 at mainbus0: "qos"
syscon7 at mainbus0: "qos"
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "power-management"
"power-controller" at syscon25 not configured
syscon26 at mainbus0: "syscon"
"io-domains" at syscon26 not configured
syscon27 at mainbus0: "syscon"
syscon28 at mainbus0: "syscon"
rkclock0 at mainbus0
rkclock1 at mainbus0
syscon29 at mainbus0: "syscon"
"io-domains" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"phy" at syscon29 not configured
"pcie-phy" at syscon29 not configured
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
pwmreg0 at mainbus0
"fit-images" at mainbus0 not configured
"pmu_a53" at mainbus0 not configured
"pmu_a72" at mainbus0 not configured
agtimer0 at mainbus0: tick rate 24000 KHz
"xin24m" at mainbus0 not configured
simplebus0 at mainbus0: "amba"
"dma-controller" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
rkpcie0 at mainbus0: LT wait 22ms: gen1 link speed 2.5GT/s link width x1
pci0 at rkpcie0
ppb0 at pci0 dev 0 function 0 "Rockchip RK3399 Root Complex" rev 0x00: msi
pci1 at ppb0 bus 1
1:0:0: io address conflict 0x8000/0x8
1:0:0: io address conflict 0x8040/0x4
1:0:0: io address conflict 0x8100/0x8
1:0:0: io address conflict 0x8140/0x4
1:0:0: io address conflict 0x800000/0x20
1:0:0: mem address conflict 0x900000/0x800
1:0:0: rom address conflict 0xd0000000/0x10000
ahci0 at pci1 dev 0 function 0 "Marvell 88SE9128 AHCI" rev 0x20: msi, AHCI 1.2
ahci0: port 0: 6.0Gb/s
ahci0: port 7: 1.5Gb/s
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, Samsung SSD 840, EXT0> naa.50025388a003c28f
sd0: 476940MB, 512 bytes/sector, 976773168 sectors, thin
uk0 at scsibus0 targ 7 lun 0: <Marvell, 91xx Config, 1.01>
dwge0 at mainbus0: address 82:e5:f3:cb:08:95
rgephy0 at dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
dwmmc0 at mainbus0: 50 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
sdhc0 at mainbus0
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc1 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
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
ehci1 at mainbus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci1 at mainbus0: version 1.0
rkdwusb0 at mainbus0: "usb"
xhci0 at rkdwusb0, xHCI 1.10
usb2 at xhci0: USB revision 3.0
uhub2 at usb2 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
rkdwusb1 at mainbus0: "usb"
xhci1 at rkdwusb1, xHCI 1.10
usb3 at xhci1: USB revision 3.0
uhub3 at usb3 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
"saradc" at mainbus0 not configured
rkiic0 at mainbus0
iic0 at rkiic0
rkiic1 at mainbus0
iic1 at rkiic1
com0 at mainbus0: ns16550, no working fifo
com1 at mainbus0: ns16550, no working fifo
com1: console
"thermal-zones" at mainbus0 not configured
rktemp0 at mainbus0
rkiic2 at mainbus0
iic2 at rkiic2
rkpmic0 at iic2 addr 0x1b: RK808
fanpwr0 at iic2 addr 0x40: SYR827, 1.20 VDC
fanpwr1 at iic2 addr 0x41: SYR828, 1.00 VDC
rkiic3 at mainbus0
iic3 at rkiic3
fusbtc0 at iic3 addr 0x22
"pwm" at mainbus0 not configured
"pwm" at mainbus0 not configured
"dmc" at mainbus0 not configured
"efuse" at mainbus0 not configured
"phy" at mainbus0 not configured
"phy" at mainbus0 not configured
"watchdog" at mainbus0 not configured
"rktimer" at mainbus0 not configured
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"hdmi-sound" at mainbus0 not configured
"hdmi" at mainbus0 not configured
"gpu" at mainbus0 not configured
"opp-table0" at mainbus0 not configured
"opp-table1" at mainbus0 not configured
"opp-table2" at mainbus0 not configured
"external-gmac-clock" at mainbus0 not configured
"gpio-keys" at mainbus0 not configured
"leds" at mainbus0 not configured
"sdio-pwrseq" at mainbus0 not configured
"vcc12v-dcin" at mainbus0 not configured
"vcc1v8-s3" at mainbus0 not configured
"vcc3v3-pcie-regulator" at mainbus0 not configured
"vcc3v3-sys" at mainbus0 not configured
"vcc5v0-host-regulator" at mainbus0 not configured
"vcc5v0-typec-regulator" at mainbus0 not configured
"vcc5v0-sys" at mainbus0 not configured
"vcc5v0-usb" at mainbus0 not configured
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: 512KB 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: 512KB 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: 512KB 64b/line 16-way L2 cache
cpu4 at mainbus0 mpidr 100: ARM Cortex-A72 r0p2
cpu4: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu4: 1024KB 64b/line 16-way L2 cache
cpu5 at mainbus0 mpidr 101: ARM Cortex-A72 r0p2
cpu5: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu5: 1024KB 64b/line 16-way L2 cache
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 
addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 
addr 1
scsibus1 at sdmmc0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SD16G, 0020> removable
sd1: 29862MB, 512 bytes/sector, 61157376 sectors
sdmmc1: can't enable card
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd1a (4cbb6909064a3cdc.a) swap on sd1b dump on sd1b
panic: uvm_fault failed: ffffff800054da14
Stopped at      panic+0x150:        TID    PID    UID     PRFLAGS     PFLAGS  C
PU  COMMAND
 127209  40101      0     0x14000      0x200    5  zerothread
*336926      1      0         0x2          0    3  init
db_enter() at panic+0x14c
panic() at $x.0+0x6c
$x.0() at syscall_return+0x28
syscall_return() at 0xfffffffffffffffc
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb{3}> bt
db_enter() at panic+0x14c
panic() at $x.0+0x6c
$x.0() at syscall_return+0x28
syscall_return() at 0xfffffffffffffffc
ddb{3}> ps  
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 40101  127209      0      0  7     0x14200                zerothread
 91966    9431      0      0  3     0x14200  aiodoned      aiodoned
 67797  407520      0      0  3     0x14200  syncer        update
 48570  501896      0      0  3     0x14200  cleaner       cleaner
 58004  480869      0      0  3     0x14200  reaper        reaper
 42424  101330      0      0  3     0x14200  pgdaemon      pagedaemon
  9651  345830      0      0  3     0x14200  bored         crynlk
 36621  214087      0      0  3     0x14200  bored         crypto
  3438  180633      0      0  3     0x14200  bored         tztq
 31602  395372      0      0  1     0x14200                idle5
 25583   63381      0      0  7  0x40014200                idle4
 49096  468524      0      0  3  0x40014200                idle3
 69945  163974      0      0  7  0x40014200                idle2
 49404   99778      0      0  7  0x40014200                idle1
 61715  333913      0      0  3     0x14200  bored         sensors
 95614  507572      0      0  3     0x14200  usbtsk        usbtask
 56200  324647      0      0  3     0x14200  usbatsk       usbatsk
 69526  225650      0      0  3     0x14200  mmctsk        sdmmc1
  7590  493382      0      0  3     0x14200  mmctsk        sdmmc0
 65261   86138      0      0  3     0x14200  bored         softnet
 95958  522587      0      0  3     0x14200  bored         systqmp
 98180  492878      0      0  3     0x14200  bored         systq
 16486  136632      0      0  3  0x40014200  bored         softclock
  7797  178912      0      0  7  0x40014200                idle0
 15676  191866      0      0  3     0x14200  bored         smr
 89227  270750      0      0  3     0x14200  kmalloc       kmthread
*    1  336926      0      0  7         0x2                init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{3}> machine ddbcpu 0
Stopped at      agintc_ipi_ddb+0x1c:    db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{0}> bt
db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{0}> machine ddbcpu 1
Stopped at      agintc_ipi_ddb+0x1c:    db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{1}> bt
db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{1}> machine ddbcpu 2
Stopped at      agintc_ipi_ddb+0x1c:    db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{2}> bt
db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{2}> machine ddbcpu 4
Stopped at      agintc_ipi_ddb+0x1c:    db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{4}> bt
db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at sched_idle+0x220
sched_idle() at proc_trampoline+0x10
ddb{4}> machine ddbcpu 5
Stopped at      agintc_ipi_ddb+0x1c:    db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at pmap_zero_page+0x4c
pmap_zero_page() at uvm_pagezero_thread+0xf8
uvm_pagezero_thread() at proc_trampoline+0x10
ddb{5}> bt
db_enter() at agintc_ipi_ddb+0x18
agintc_ipi_ddb() at arm_cpu_intr+0x30
arm_cpu_intr() at handle_el1h_irq+0x6c
handle_el1h_irq() at pmap_zero_page+0x4c
pmap_zero_page() at uvm_pagezero_thread+0xf8
uvm_pagezero_thread() at proc_trampoline+0x10
ddb{5}> show uvm
Current UVM status:
  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
  961548 VM pages: 7 active, 0 inactive, 0 wired, 949553 free (5899 zero)
  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
  freemin=32051, free-target=42734, inactive-target=0, wired-max=320516
  faults=8, traps=0, intrs=0, ctxswitch=312 fpuswitch=0
  softint=221, syscalls=0, kmapent=17
  fault counts:
    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
    ok relocks(total)=2(2), anget(retries)=0(0), amapcopy=2
    neighbor anon/obj pg=0/0, gets(lock/unlock)=4/2
    cases: anon=0, anoncow=0, obj=2, prcopy=2, przero=3
  daemon and swap counts:
    woke=0, revs=0, scans=0, obscans=0, anscans=0
    busy=0, freed=0, reactivate=0, deactivate=0
    pageouts=0, pending=0, nswget=0
    nswapdev=0
    swpages=0, swpginuse=0, swpgonly=0 paging=0
  kernel pointers:
    objs(kern)=0xffffff8000caec60
ddb{5}> show regs
No such command
ddb{5}> show reg
x0                0xffffff800b4e3800    _end+0xa790728
x1                0xffffff8001d5e000    _end+0x100af28
x2                              0x40
x3                0xffffff8000cfe1b0    kernel_pmap_
x4                              0xc0    $d.0+0x63
x5                               0x1
x6                0xffffff8000a4c90f    $d.2+0x32
x7                                 0
x8                0xffffff800b4e3800    _end+0xa790728
x9                0xffffff8000b5f000    __retguard_1322
x10                             0x20
x11                              0x3
x12                             0xff    $d.0+0xa2
x13                            0x3c0    $d.0+0x363
x14               0xffffff8000ad5dd0    ap_bits_kern
x15               0x193d2cf713b93813
x16                                0
x17                                0
x18               0xffffff80530f5c30
x19               0xffffff80530f5cc0
x20                                0
x21               0xffffff8000d01000    tcp_syn_cache+0x20
x22                              0x1
x23                                0
x24               0xffffff800b4ea880    _end+0xa7977a8
x25                                0
x26                            0x100    $d.0+0xa3
x27                                0
x28                                0
x29               0xffffff80530f5c40
x30                                0
sp                0xffffff80530f5c30
spsr                      0xa0000345
elr               0xffffff8000723310    db_enter+0xc
lr                0xffffff800056271c    agintc_ipi_ddb+0x1c
agintc_ipi_ddb+0x1c:
ddb{5}> show proc
PROC (zerothread) pid=127209 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    pri=53, usrpri=53, nice=40
    forw=0xffffffffffffffff, list=0xffffff80530b25f8,0xffffff8000ce3f38
    process=0xffffff80530cd7b0 user=0xffffff80530f1000, vmspace=0xffffff8000d4f
920
    estcpu=3, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb{5}>  



rocky$ doas llvm-objdump -x /bsd | grep ffffff800054d[9a]
ffffff800054d978         .text  00000000 $x.0
ffffff800054da24         .text  00000000 $x.0
ffffff800054d978 g     F .text  000000ac ast   *******
ffffff800054d934 g     F .text  00000044 drm_send_event
ffffff800054da7c g     F .text  000001e4 in6_get_hw_ifid
ffffff800054da24 g     F .text  00000058 in6_get_rand_ifid

ffffff800054da14-ffffff800054d978=0x9c

obj/ast.o:      file format ELF64-aarch64-little

Disassembly of section .text:
0000000000000000 ast:
; /sys/arch/arm64/arm64/ast.c:39
       0:       f5 0f 1d f8     str     x21, [sp, #-48]!
       4:       f4 4f 01 a9     stp     x20, x19, [sp, #16]
       8:       fd 7b 02 a9     stp     x29, x30, [sp, #32]
       c:       fd 83 00 91     add     x29, sp, #32
; /sys/arch/arm64/compile/GENERIC.MP/obj/machine/cpu.h:148
      10:       88 d0 38 d5     mrs     x8, TPIDR_EL1
; /sys/arch/arm64/arm64/ast.c:40
      14:       13 65 41 f9     ldr     x19, [x8, #712]
; /sys/arch/arm64/arm64/ast.c:42
      18:       68 1a 41 f9     ldr     x8, [x19, #560]
      1c:       00 05 00 f9     str     x0, [x8, #8]
; /sys/sys/proc.h:589
      20:       60 12 40 f9     ldr     x0, [x19, #32]
; /sys/sys/proc.h:592
      24:       69 02 41 f9     ldr     x9, [x19, #512]
      28:       08 04 40 f9     ldr     x8, [x0, #8]
      2c:       1f 01 09 eb     cmp     x8, x9
      30:       60 00 00 54     b.eq    #12 <ast+0x3c>
; /sys/sys/proc.h:593
      34:       e1 03 13 aa     mov     x1, x19
      38:       00 00 00 94     bl      #0 <ast+0x38>
; /sys/arch/arm64/arm64/ast.c:45
      3c:       08 00 00 90     adrp    x8, #0
      40:       09 01 40 b9     ldr     w9, [x8]
      44:       29 05 00 11     add     w9, w9, #1
      48:       09 01 00 b9     str     w9, [x8]
; /sys/arch/arm64/compile/GENERIC.MP/obj/machine/cpu.h:148
      4c:       88 d0 38 d5     mrs     x8, TPIDR_EL1
; /sys/sys/syscall_mi.h:158
      50:       69 66 42 39     ldrb    w9, [x19, #153]
; /sys/arch/arm64/arm64/ast.c:46
      54:       14 0d 43 b9     ldr     w20, [x8, #780]
; /sys/sys/syscall_mi.h:158
      58:       c9 01 38 36     tbz     w9, #7, #56 <ast+0x90>
      5c:       75 62 02 91     add     x21, x19, #152
; /sys/sys/syscall_mi.h:159
      60:       00 00 00 94     bl      #0 <ast+0x60>
      64:       e8 03 11 32     orr     w8, wzr, #0x8000
; /sys/arch/arm64/compile/GENERIC.MP/obj/machine/atomic.h:52
      68:       a9 7e 5f 88     ldxr    w9, [x21]
      6c:       29 01 28 0a     bic     w9, w9, w8
      70:       a9 7e 0a 88     stxr    w10, w9, [x21]
      74:       aa ff ff 35     cbnz    w10, #-12 <ast+0x68>
; /sys/sys/syscall_mi.h:160
      78:       61 12 41 f9     ldr     x1, [x19, #544]
      7c:       62 2a 42 b9     ldr     w2, [x19, #552]
      80:       e0 03 13 aa     mov     x0, x19
      84:       00 00 00 94     bl      #0 <ast+0x84>
      88:       7f 16 01 f9     str     xzr, [x19, #552]
; /sys/sys/syscall_mi.h:161
      8c:       00 00 00 94     bl      #0 <ast+0x8c>
; /sys/sys/syscall_mi.h:163
      90:       54 00 00 34     cbz     w20, #8 <ast+0x98>
; /sys/sys/syscall_mi.h:164
      94:       00 00 00 94     bl      #0 <ast+0x94>
; /sys/arch/arm64/arm64/ast.c:47
      98:       e0 03 13 aa     mov     x0, x19
      9c:       fd 7b 42 a9     ldp     x29, x30, [sp, #32]   **************
      a0:       f4 4f 41 a9     ldp     x20, x19, [sp, #16]
      a4:       f5 07 43 f8     ldr     x21, [sp], #48
      a8:       00 00 00 14     b       #0 <ast+0xa8>

; /sys/arch/arm64/arm64/ast.c:47
        userret(p);

>How-To-Repeat:
        Unknown
>Fix:


dmesg:
OpenBSD 6.6-current (GENERIC.MP) #236: Fri Nov  8 14:46:36 EST 2019
    [email protected]:/sys/arch/arm64/compile/GENERIC.MP
real mem  = 4094218240 (3904MB)
avail mem = 3895091200 (3714MB)
mainbus0 at root: Pine64 RockPro64
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: 512KB 64b/line 16-way L2 cache
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20191000
apm0 at mainbus0
psci0 at mainbus0: PSCI 1.1, SMCCC 1.1
agintc0 at mainbus0 sec shift 3:3 nirq 288 nredist 6 ipi: 0, 1: 
"interrupt-controller"
agintcmsi0 at agintc0
syscon0 at mainbus0: "qos"
syscon1 at mainbus0: "qos"
syscon2 at mainbus0: "qos"
syscon3 at mainbus0: "qos"
syscon4 at mainbus0: "qos"
syscon5 at mainbus0: "qos"
syscon6 at mainbus0: "qos"
syscon7 at mainbus0: "qos"
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "power-management"
"power-controller" at syscon25 not configured
syscon26 at mainbus0: "syscon"
"io-domains" at syscon26 not configured
syscon27 at mainbus0: "syscon"
syscon28 at mainbus0: "syscon"
rkclock0 at mainbus0
rkclock1 at mainbus0
syscon29 at mainbus0: "syscon"
"io-domains" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"phy" at syscon29 not configured
"pcie-phy" at syscon29 not configured
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
pwmreg0 at mainbus0
"fit-images" at mainbus0 not configured
"pmu_a53" at mainbus0 not configured
"pmu_a72" at mainbus0 not configured
agtimer0 at mainbus0: tick rate 24000 KHz
"xin24m" at mainbus0 not configured
simplebus0 at mainbus0: "amba"
"dma-controller" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
rkpcie0 at mainbus0: LT wait 22ms: gen1 link speed 2.5GT/s link width x1
pci0 at rkpcie0
ppb0 at pci0 dev 0 function 0 "Rockchip RK3399 Root Complex" rev 0x00: msi
pci1 at ppb0 bus 1
1:0:0: io address conflict 0x8000/0x8
1:0:0: io address conflict 0x8040/0x4
1:0:0: io address conflict 0x8100/0x8
1:0:0: io address conflict 0x8140/0x4
1:0:0: io address conflict 0x800000/0x20
1:0:0: mem address conflict 0x900000/0x800
1:0:0: rom address conflict 0xd0000000/0x10000
ahci0 at pci1 dev 0 function 0 "Marvell 88SE9128 AHCI" rev 0x20: msi, AHCI 1.2
ahci0: port 0: 6.0Gb/s
ahci0: port 7: 1.5Gb/s
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, Samsung SSD 840, EXT0> naa.50025388a003c28f
sd0: 476940MB, 512 bytes/sector, 976773168 sectors, thin
uk0 at scsibus0 targ 7 lun 0: <Marvell, 91xx Config, 1.01>
dwge0 at mainbus0: address 82:e5:f3:cb:08:95
rgephy0 at dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
dwmmc0 at mainbus0: 50 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
sdhc0 at mainbus0
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc1 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
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
ehci1 at mainbus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1
ohci1 at mainbus0: version 1.0
rkdwusb0 at mainbus0: "usb"
xhci0 at rkdwusb0, xHCI 1.10
usb2 at xhci0: USB revision 3.0
uhub2 at usb2 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
rkdwusb1 at mainbus0: "usb"
xhci1 at rkdwusb1, xHCI 1.10
usb3 at xhci1: USB revision 3.0
uhub3 at usb3 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
"saradc" at mainbus0 not configured
rkiic0 at mainbus0
iic0 at rkiic0
rkiic1 at mainbus0
iic1 at rkiic1
com0 at mainbus0: ns16550, no working fifo
com1 at mainbus0: ns16550, no working fifo
com1: console
"thermal-zones" at mainbus0 not configured
rktemp0 at mainbus0
rkiic2 at mainbus0
iic2 at rkiic2
rkpmic0 at iic2 addr 0x1b: RK808
fanpwr0 at iic2 addr 0x40: SYR827, 0.80 VDC
fanpwr1 at iic2 addr 0x41: SYR828, 1.00 VDC
rkiic3 at mainbus0
iic3 at rkiic3
fusbtc0 at iic3 addr 0x22
"pwm" at mainbus0 not configured
"pwm" at mainbus0 not configured
"dmc" at mainbus0 not configured
"efuse" at mainbus0 not configured
"phy" at mainbus0 not configured
"phy" at mainbus0 not configured
"watchdog" at mainbus0 not configured
"rktimer" at mainbus0 not configured
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"hdmi-sound" at mainbus0 not configured
"hdmi" at mainbus0 not configured
"gpu" at mainbus0 not configured
"opp-table0" at mainbus0 not configured
"opp-table1" at mainbus0 not configured
"opp-table2" at mainbus0 not configured
"external-gmac-clock" at mainbus0 not configured
"gpio-keys" at mainbus0 not configured
"leds" at mainbus0 not configured
"sdio-pwrseq" at mainbus0 not configured
"vcc12v-dcin" at mainbus0 not configured
"vcc1v8-s3" at mainbus0 not configured
"vcc3v3-pcie-regulator" at mainbus0 not configured
"vcc3v3-sys" at mainbus0 not configured
"vcc5v0-host-regulator" at mainbus0 not configured
"vcc5v0-typec-regulator" at mainbus0 not configured
"vcc5v0-sys" at mainbus0 not configured
"vcc5v0-usb" at mainbus0 not configured
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: 512KB 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: 512KB 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: 512KB 64b/line 16-way L2 cache
cpu4 at mainbus0 mpidr 100: ARM Cortex-A72 r0p2
cpu4: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu4: 1024KB 64b/line 16-way L2 cache
cpu5 at mainbus0 mpidr 101: ARM Cortex-A72 r0p2
cpu5: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu5: 1024KB 64b/line 16-way L2 cache
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 
addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 
addr 1
scsibus1 at sdmmc0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SD16G, 0020> removable
sd1: 29862MB, 512 bytes/sector, 61157376 sectors
sdmmc1: can't enable card
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd1a (4cbb6909064a3cdc.a) swap on sd1b dump on sd1b

usbdevs:
Controller /dev/usb0:
addr 01: 0000:0000 Generic, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub0
Controller /dev/usb1:
addr 01: 0000:0000 Generic, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub1
Controller /dev/usb2:
addr 01: 0000:0000 Generic, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub2
Controller /dev/usb3:
addr 01: 0000:0000 Generic, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub3
Controller /dev/usb4:
addr 01: 0000:0000 Generic, OHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub4
Controller /dev/usb5:
addr 01: 0000:0000 Generic, OHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub5

Reply via email to