Bug 256822

Summary: arm64/rockpro64/13-Rp2/mmc: Instapanic with recoverdisk(1)
Product: Base System Reporter: Poul-Henning Kamp <phk>
Component: armAssignee: freebsd-arm (Nobody) <freebsd-arm>
Status: Closed FIXED    
Severity: Affects Some People CC: emaste, kjopek
Priority: --- Keywords: crash
Version: 13.0-RELEASE   
Hardware: arm64   
OS: Any   

Description Poul-Henning Kamp freebsd_committer freebsd_triage 2021-06-25 06:12:30 UTC
Fresh install on micro-SD card, freebsd-update'ed to p2:

    root@generic:~ # freebsd-update fetch install
    [...]
    No updates needed to update system to 13.0-RELEASE-p2.
    No updates are available to install.
    root@generic:~ # recoverdisk -v /dev/mmcsd0
    Bigsize = 4194304, medsize = 4194304, minsize = 4194304
    panic: dwmmc_ring_setup: error != 0 (27)
 
    cpuid = 2
    time = 1617951410
    KDB: stack backtrace:
    #0 0xffff00000050ce7c at kdb_backtrace+0x60
    #1 0xffff0000004b704c at vpanic+0x184
    #2 0xffff0000004b6ec4 at panic+0x44
    #3 0xffff00000085c110 at dwmmc_ring_setup+0x14c
    #4 0xffff0000004ffb88 at bus_dmamap_load+0xf8
    #5 0xffff00000085be24 at dwmmc_next_operation+0x27c
    #6 0xffff00000085c548 at dwmmc_request+0x130
    #7 0xffff000000203ed4 at mmc_wait_for_request+0x128
    #8 0xffff00000020d3f4 at mmcsd_rw+0x1a8
    #9 0xffff00000020bf0c at mmcsd_task+0x284
    #10 0xffff000000467610 at fork_exit+0x88
    #11 0xffff000000823ae8 at fork_trampoline+0x10
    Uptime: 1m33s
 
    U-Boot TPL 2020.10 (Apr 09 2021 - 04:06:34)
    [...]
Comment 1 Konrad Jopek 2021-06-25 08:36:44 UTC
Potential solution is provided in this review: https://reviews.freebsd.org/D30387
Comment 2 Poul-Henning Kamp freebsd_committer freebsd_triage 2021-10-25 15:40:02 UTC
Just tried

    FreeBSD 14.0-CURRENT #6 main-n250192-5bb67f5f3f5: Mon Oct 25 11:36:01 UTC 2021

on my rockpro64, no panic.