From nobody Fri Oct 7 22:08:06 2022 X-Original-To: riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mkj9h2Wnxz4f0rV for ; Fri, 7 Oct 2022 22:08:08 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mkj9h21xFz3f53; Fri, 7 Oct 2022 22:08:08 +0000 (UTC) (envelope-from mhorne@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665180488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ubs5VcmhQDPLJnTy5H0iP9btpt+Ccg5EaTKvEI4+z38=; b=OgIHfksojrj3o49moVkbDtRgq08wBacbSIfcDl6UlhgY2JbuSrjdYCsKm4UQY/38IttYCJ q9B8wemoVk1CkineIMozVxVH4m5lND8VmmojSKguY4D8Z36JWe/MYvFjXw2hbzeoPapUGk QP0e0PUErApqC4/Nj15hPA5XGoB7XnbDhx6eINIqwjdKv6m+5L+KK8SuVklV1HkPW8JFw/ cg2eQq7NTGd5sbx8oJU9Eb1533P2zhz/9iMY+grnTHx/s8C/9DKgWS/tj2WGo4HbY7Fa0f XwfyPqjc9i2zBCcS/4hmLN7NZozO3gce5mn3T2U0wrosNgK7Gmr1hngSq6EDbQ== Received: from [192.168.1.106] (host-173-212-76-127.public.eastlink.ca [173.212.76.127]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Mkj9g6sySzg7Q; Fri, 7 Oct 2022 22:08:07 +0000 (UTC) (envelope-from mhorne@freebsd.org) Message-ID: <13b80b07-1515-9aca-6490-a1b484c6aee4@freebsd.org> Date: Fri, 7 Oct 2022 19:08:06 -0300 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: panic: pmap_l2_to_l3: PA out of range, PA: 0x0 Content-Language: en-CA To: Dennis Clarke , riscv@freebsd.org References: From: Mitchell Horne In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665180488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ubs5VcmhQDPLJnTy5H0iP9btpt+Ccg5EaTKvEI4+z38=; b=h/02XaUP1Ah6QwdRCbvj8XvJQH6tZgDvXVJvIspQ21gaZEWUfSZ+IJ2Vhh6EHNpTBPpgco P916V11SMobnyJiSDe9rFQivPPpfF9YSs7WIua4B3Q7/O2Je0m0cknoEaqLEMXUsN4tZxP +wyQ+Yli/V8Z4kA+A5+3C4gopP0dAuuHA58PjAmiP/ujq8dafl439ESCwyWu1+qYqU3c52 2HuN35mzi91XhdAjviHrFwUunl35+gi30W9flEPFuM4SZk6Q2wuOSgKUCIKSAHW2dXb4UJ J+dwax0wMEcZUEjNo+AnWXE8aHZQRQByIg/aYX8jJawlQAz9cyY/4mrnzKuFzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665180488; a=rsa-sha256; cv=none; b=KTIq8+3998LAtAAvq3usF5X6SNJRAXyALu/sz0uYrL0trrSA+iduu02HcDOOq5XdL+Dx5O t8zzSxfbjgyu6/EelUKbG0LNUlMg2z7RfuBTH7AKAT6UEwknsMWY7ucugFhc1e8csNX+sM Dw9K/Zy8FuzmpAYBtKg7TsM8V1TW6AxawkQRwoi9UY/woHmVH0hrzU7s2szcgzc3rVfTze XTxFYjNkgYuykU/fsjZzIb5FOngJPPqp9JpVCjqsrqDDbcBxdUvafDV89tXCJ48bHSb4gZ VClMWUo8eWOdhwFrjSf0wve5qtiRoq60jxZ/Es5B/+xalQTMVgUmBQ4/ohqFKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 10/7/22 02:59, Dennis Clarke wrote: > > Saw this while trying to do buildworld .. which it was for days : > > login: root > Password: > Oct  1 21:26:36 ison login[807]: ROOT LOGIN (root) ON ttyu0 > Last login: Sun May 15 17:27:43 on ttyu0 > FreeBSD 14.0-CURRENT #2 main-n255202-0aef8628458-dirty: Sun May  8 > 20:33:55 UTC 2022     root@ison:/usr/obj/usr/src/riscv.riscv64/sys/GENERIC > > . > . > . > > root@ison:~ # sysctl -a hw.ncpu > hw.ncpu: 8 > root@ison:~ # sysctl -a hw.physmem > hw.physmem: 34325733376 > > root@ison:~ # sysctl -a hw.ncpu | cut -f2 -d\: >  8 > root@ison:~ # panic: pmap_l2_to_l3: PA out of range, PA: 0x0 > cpuid = 4 > time = 1664870924 > 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+0x154 > panic() at panic+0x2a > pmap_remove_pages() at pmap_remove_pages+0x6c8 > vmspace_exit() at vmspace_exit+0xd6 > exit1() at exit1+0x4ac > sys_exit() at sys_exit+0x10 > do_trap_user() at do_trap_user+0x206 > cpu_exception_handler_user() at cpu_exception_handler_user+0x72 > --- exception 8, tval = 0 > KDB: enter: panic > [ thread pid 18297 tid 100640 ] > Stopped at      kdb_enter+0x4a: sd      zero,0(s1) > db> nt > No such command; use "help" to list available commands > db> bt > Tracing pid 18297 tid 100640 td 0xffffffc11af8a680 > kdb_enter() at kdb_enter+0x48 > vpanic() at vpanic+0x198 > panic() at panic+0x2a > pmap_remove_pages() at pmap_remove_pages+0x6c8 > vmspace_exit() at vmspace_exit+0xd6 > exit1() at exit1+0x4ac > sys_exit() at sys_exit+0x10 > do_trap_user() at do_trap_user+0x206 > cpu_exception_handler_user() at cpu_exception_handler_user+0x72 > --- exception 8, tval = 0 > db> > > Anything worth looking at here or just pull the plug? > > 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. Cheers, Mitchell