Re: Panic with no keyboard after update to main-n248404-60fb9e10c74c

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Sun, 01 Aug 2021 14:03:32 UTC
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.
> 
> I needed to power-cycle the laptop to get it to respond; once I did, I
> tried requesting that the loader laod & boot kernel.old.  It loaded it,
> with the whinie "module 'kernel' exists but with wron version" and
> didn't seem to pass control to it.
> 
> Screen shots in http://www.catwhisker.org/~david/FreeBSD/head/n248404/
> -- named "panic.jpg" and "kernel.old.jpg" (respectively).
> 
> 
> I'm heading out for a couple of hours, but should be able to respond
> upon my return.

It seems you block my home external ip address (or country?).

Your issue with the kernel.old is that nvidia.ko was rebuilt against newer
kernel, so it cannot be loaded together with older kernel.

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;