From nobody Sun Aug 01 17:32:10 2021 X-Original-To: current@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 A494512D55D9 for ; Sun, 1 Aug 2021 17:32:12 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gd7Vh2kswz4s4R for ; Sun, 1 Aug 2021 17:32:12 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 171HWAmT006404; Sun, 1 Aug 2021 17:32:10 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 171HWAT0006403; Sun, 1 Aug 2021 10:32:10 -0700 (PDT) (envelope-from david) Date: Sun, 1 Aug 2021 10:32:10 -0700 From: David Wolfskill To: Konstantin Belousov Cc: current@freebsd.org Subject: Re: Panic with no keyboard after update to main-n248404-60fb9e10c74c Message-ID: Reply-To: current@freebsd.org Mail-Followup-To: current@freebsd.org, Konstantin Belousov References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HJY+fMHXYWIWAbGI" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Gd7Vh2kswz4s4R X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --HJY+fMHXYWIWAbGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 01, 2021 at 05:03:32PM +0300, Konstantin Belousov wrote: > On Sun, Aug 01, 2021 at 06:01:56AM -0700, David Wolfskill wrote: > > Once I was able to complete the "make installworld" after updating > > from main-n248391-f7f76c200a8c to main-n248404-60fb9e10c74c, the > > subsequent reboot yielded a panic with the keyboard inoperable. > > ...=20 >=20 > It seems you block my home external ip address (or country?). I apologize: I believe that's been remedied (recently). > Your issue with the kernel.old is that nvidia.ko was rebuilt against newer > kernel, so it cannot be loaded together with older kernel. OK; effectively copying the modules from /boot/modules.old to /boot/modules got past that. (Should loader be loding modules from /boot/modules (vs. /boot/modules.old) if it's booting kernel.old?) > Anyway, please update past 1a55a3a729cd4424e17308d3 _and_ apply the follo= wing > patch: >=20 > diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c > index 8599dc2fa8f6..144b4a522bcc 100644 > --- a/sys/amd64/amd64/machdep.c > +++ b/sys/amd64/amd64/machdep.c > @@ -1209,7 +1209,7 @@ getmemsize(caddr_t kmdp, u_int64_t first) > * Tell the physical memory allocator about pages used to store > * the kernel and preloaded data. See kmem_bootstrap_free(). > */ > - vm_phys_early_add_seg((vm_paddr_t)kernphys, trunc_page(first)); > +// vm_phys_early_add_seg((vm_paddr_t)kernphys, trunc_page(first)); > =20 > bzero(physmap, sizeof(physmap)); > physmap_idx =3D 0; >=20 OK; did that; rebuilt. Subsequent reboot shows (copy/paste from serial console, as this is from my headless build machine): SMP: passed TSC synchronization test TSC timecounter discards lower 1 bit(s) Timecounter "TSC-low" frequency 1795879156 Hz quality 1000 KTLS: Initialized 8 threads panic: vm_phys_free_pages: page 0xfffffe00000f4fe8 has unexpected order 0 cpuid =3D 0 time =3D 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff82b2e= ad0 vpanic() at vpanic+0x187/frame 0xffffffff82b2eb30 panic() at panic+0x43/frame 0xffffffff82b2eb90 vm_phys_free_pages() at vm_phys_free_pages+0x27d/frame 0xffffffff82b2ebd0 kmem_bootstrap_free() at kmem_bootstrap_free+0xfe/frame 0xffffffff82b2ec20 preload_delete_name() at preload_delete_name+0x70/frame 0xffffffff82b2ec40 ucode_release() at ucode_release+0x8a/frame 0xffffffff82b2ec60 mi_startup() at mi_startup+0x1f0/frame 0xffffffff82b2ecb0 btext() at btext+0x22 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x37: movq $0,0x127af3e(%rip) db>=20 I can leave it as-is for a bit, and poke at it (given sufficient clues), if that might be helpful. Peace, david --=20 David H. Wolfskill david@catwhisker.org Life is not intended to be a zero-sum game. See https://www.catwhisker.org/~david/publickey.gpg for my public key. --HJY+fMHXYWIWAbGI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAmEG2ppfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 Pclr1wgAy3o4e4Qa5mzZxgFSJMlyVj/HXjaetUsDLqny3hspwBJNsqkmwVtjCEQE ruKtPo1ASkziCYs+/bN0UkbcyrWM/EOfC57ls7vUUnf+RLLe80S8bADzmHgo0qZu uzvg/3ZfG8DxTGHe+gmDqcdHsRcgQra1O7qAA6lM1psDNsm1FYAGpmt/a6CfFklP rRXSkqFParKpltZqA+68QpHDoudC/lxBgKALCk3/gQSdQp77wQHdyPf56OOTh/6x Xj2FwlWX/XoXINVem5dScjEEfN5bEYbKJy0SDxyWChYr3hqZMSFKiKbl8HklypoV diUJauIYvC+SdUoghYaq8w/C+MW6jQ== =RuWL -----END PGP SIGNATURE----- --HJY+fMHXYWIWAbGI--