Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2022 03:27:11 +0000
From:      Dennis Clarke <dclarke@blastwave.org>
To:        riscv@freebsd.org
Subject:   Re: panic: pmap_l2_to_l3: PA out of range, PA: 0x0
Message-ID:  <bffecea8-75f7-8897-5584-3b5802aa5851@blastwave.org>
In-Reply-To: <55233680-630a-d800-3a06-9c13e9a7ba7d@blastwave.org>
References:  <cc66cdf0-04f8-913c-e2ec-4cea474a7995@blastwave.org> <13b80b07-1515-9aca-6490-a1b484c6aee4@freebsd.org> <55233680-630a-d800-3a06-9c13e9a7ba7d@blastwave.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/7/22 22:28, Dennis Clarke wrote:
> On 10/7/22 18:08, Mitchell Horne wrote:
>>
>>
>> On 10/7/22 02:59, Dennis Clarke wrote:
.
.
.
>>>

>>>
>>
>> Unlucky that you hit this, but the good news is the panic is known and 
>> recently fixed. I committed a series of changes yesterday which 
>> address the problem, ending with 1f9cc5ffc505.
> 
> Well darn.  Sometimes timing in life is everything.
> Thank you for letting me know. I will do a zpool scrub and then
> start over. Tomorrow maybe.
> 

Just added salt in the wounds I used the FreeBSD snapshot for
07 Oct 2022 and sure enough install blows up :


OpenSBI v1.1
    ____                    _____ ____ _____
   / __ \                  / ____|  _ \_   _|
  | |  | |_ __   ___ _ __ | (___ | |_) || |
  | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
  | |__| | |_) |  __/ | | |____) | |_) || |_
   \____/| .__/ \___|_| |_|_____/|____/_____|
         | |
         |_|

Platform Name             : riscv-virtio,qemu
Platform Features         : medeleg
Platform HART Count       : 4
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 10000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform Reboot Device    : sifive_test
Platform Shutdown Device  : sifive_test
Firmware Base             : 0x80000000
Firmware Size             : 320 KB
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 2
Domain0 HARTs             : 0*,1*,2*,3*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01          : 0x0000000080000000-0x000000008007ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000080200000
Domain0 Next Arg1         : 0x0000000082200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 2
Boot HART Domain          : root
Boot HART Priv Version    : v1.12
Boot HART Base ISA        : rv64imafdch
Boot HART ISA Extensions  : time
Boot HART PMP Count       : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count      : 16
Boot HART MIDELEG         : 0x0000000000001666
Boot HART MEDELEG         : 0x0000000000f0b509


U-Boot 2022.04 (Sep 06 2022 - 07:24:53 +0000)

CPU:   rv64imafdch_zicsr_zifencei_zba_zbb_zbc_zbs
Model: riscv-virtio,qemu
DRAM:  16 GiB
Core:  24 devices, 10 uclasses, devicetree: board
Flash: 32 MiB
Loading Environment from nowhere... OK
In:    uart@10000000
Out:   uart@10000000
Err:   uart@10000000
Net:   eth0: virtio-net#7
Hit any key to stop autoboot:  0

Consoles: EFI console
    ______               ____   _____ _____
   |  ____|             |  _ \ / ____|  __ \
   | |___ _ __ ___  ___ | |_) | (___ | |  | |
   |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |
   | |   | | |  __/  __/| |_) |____) | |__| |
   | |   | | |    |    ||     |      |      |
   |_|   |_|  \___|\___||____/|_____/|_____/      ``` 
      `
                                                 s` 
`.....---.......--.```   -/
  +---------- Welcome to FreeBSD -----------+    +o   .--`         /y:` 
      +.
  |                                         |     yo`:.            :o 
    `+-
  |  1. Boot Single user [Enter]            |      y/               -/` 
   -o/
  |  2. Boot Installer                      |     .- 
::/sy+:.
  |  3. Escape to loader prompt             |     / 
`--  /
  |  4. Reboot                              |    `: 
      :`
  |  5. Cons: Video                         |    `: 
      :`
  |                                         |     / 
      /
  |  Options:                               |     .- 
     -.
  |  6. Kernel: default/kernel (1 of 1)     |      -- 
    -.
  |  7. Boot Options                        |       `:`                  `:`
  |                                         |         .--             `--.
  |                                         |            .---.....----.
  +-----------------------------------------+

Loading kernel...
/boot/kernel/kernel text=0x5b3a88 text=0x175c2c data=0xf4208 
data=0x1f74+0x2738dc 0x8+0x1f46fb8+0x8+0xf3f1e-
Loading configured modules...
can't find '/etc/hostid'
can't find '/boot/entropy'
Using DTB provided by EFI at 0x87efb000.
Kernel entry at 0xf680002e...
Kernel args: (null)
---<<BOOT>>---
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Physical memory chunk(s):
   0x80000000 - 0x47fffffff, 16384 MB (4194304 pages)
Excluded memory regions:
   0x80000000 - 0x801fffff,     2 MB (    512 pages) NoAlloc NoDump
   0xf6800000 - 0xf9423fff,    44 MB (  11300 pages) NoAlloc
Found 4 CPUs in the device tree
Copyright (c) 1992-2022 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 14.0-CURRENT #0 main-n258483-b05b1ecbef0: Fri Oct  7 05:52:47 
UTC 2022
 
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/riscv.riscv64/sys/GENERIC 
riscv
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git 
llvmorg-14.0.5-0-gc12386ae247c)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffc002bff000.
Preloaded TSLOG data "TSLOG" at 0xffffffc002c08288.
SBI: OpenSBI v1.1
SBI Specification Version: 1.0
CPU(0): Unknown Implementer Unknown Processor
real memory  = 17179869184 (16384 MB)
Physical memory chunk(s):
0x0000000080200000 - 0x00000000f67fffff, 1986002944 bytes (484864 pages)
0x00000000f9424000 - 0x000000046674ffff, 14716944384 bytes (3593004 pages)
avail memory = 16649957376 (15878 MB)
No static device mappings.
Starting CPU 2 (hart 0)
Starting CPU 3 (hart 1)
Starting CPU 1 (hart 3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
panic: ISA string truncated
cpuid = 0
time = 1
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x38
kdb_backtrace() at kdb_backtrace+0x2c
vpanic() at vpanic+0x126
panic() at panic+0x2a
fill_elf_hwcap() at fill_elf_hwcap+0x220
mi_startup() at mi_startup+0x1d2
va() at va+0x7e
KDB: enter: panic
[ thread pid 0 tid 0 ]
Stopped at      kdb_enter+0x4a: sd      zero,0(s1)
db>

So darn it again ... I better wait a week.




-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bffecea8-75f7-8897-5584-3b5802aa5851>