NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-macppc/54331: macppc MP kernels fail to boot successfully in -current (8.99.49)



The following reply was made to PR port-macppc/54331; it has been noted by GNATS.

From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
To: gnats-bugs%netbsd.org@localhost, matthew green <mrg%eterna.com.au@localhost>
Cc: 
Subject: Re: port-macppc/54331: macppc MP kernels fail to boot successfully
 in -current (8.99.49)
Date: Mon, 12 Aug 2019 23:17:10 -0400

 On Tue, 2019-08-13 at 12:46 +1000, matthew green wrote:
 > > I built an MP+DEBUG+DIAGNOSTIC+LOCKDEBUG 9.99.7 kernel with the
 > > patches
 > > included, and it's hanging after USB devices are attached. I can
 > > unplug
 > > and reattach USB devices and it continues to handle those events
 > > fine,
 > > but it never actually mounts (or prompts to mount) the hard drive. I
 > > don't see anything useful in the output to indicate why. I'm not
 > > able
 > > to get into ddb as far as I know. That is, typing something on the
 > > USB
 > > keyboard that's attached doesn't result in anything happening.
 > 
 > does it still have the cpu failure attach messages in early boot?
 
 The early boot issue with CPU attachment is fixed.
 
 > here's a simple way to see if i'm right about config_pending not
 > being reduced at this point:
 > 
 > in config_finalize() there is this loop:
 > 
 > 	while (config_pending != 0)
 > 		cv_wait(&config_misc_cv, &config_misc_lock);
 > 
 > if you convert it to a cv_timedwait() that sleeps for hz (or
 > even hz*2 or hz*5) and then prints config_pending, eg:
 > 
 > 	while (config_pending != 0) {
 > 		cv_timedwait(&config_misc_cv, &config_misc_lock, hz);
 > 		printf("%s: config_pending still %d\n", __func__,
 > 		    config_pending);
 > 	}
 > 
 > (untested/compiled).  this would at least give us any idea on
 > where to look next.
 
 Okay, I'll try that out, thanks!
 
 Dave
 
 


Home | Main Index | Thread Index | Old Index