From nobody Sun Aug 01 18:14:14 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 A0D1012D9D3E for ; Sun, 1 Aug 2021 18:14:23 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 4Gd8RM2xVRz3D2Q for ; Sun, 1 Aug 2021 18:14:23 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 171IEFWd015597 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sun, 1 Aug 2021 21:14:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 171IEFWd015597 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 171IEE09015596 for current@freebsd.org; Sun, 1 Aug 2021 21:14:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 1 Aug 2021 21:14:14 +0300 From: Konstantin Belousov To: current@freebsd.org Subject: Re: Panic with no keyboard after update to main-n248404-60fb9e10c74c Message-ID: 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on tom.home X-Rspamd-Queue-Id: 4Gd8RM2xVRz3D2Q X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sun, Aug 01, 2021 at 10:32:10AM -0700, David Wolfskill wrote: > 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. > > > ... > > > > 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 following > > patch: > > > > 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)); > > > > bzero(physmap, sizeof(physmap)); > > physmap_idx = 0; > > > > 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 = 0 > time = 1 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff82b2ead0 > 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> > > I can leave it as-is for a bit, and poke at it (given sufficient > clues), if that might be helpful. No need. Please revert that manual change (commenting out the call to vm_phys_early_add_seg()), and reproduce the issue anew. I want to see the updated "allocating kernel page" panic message. BTW, if you comment out loading nvidia.ko from loader.conf, does the system boot normally? If yes, can you kldload nvidia.ko after system booted?