Subject: Re: powerbook g4 hangs at boot
To: None <port-macppc@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: port-macppc
Date: 01/24/2005 15:12:33
On Sat, Jan 22, 2005 at 09:12:02PM -0600, David Young wrote:
> On Sat, Jan 22, 2005 at 01:29:23AM -0600, David Young wrote:
> > On Thu, Jan 20, 2005 at 09:31:33PM -0600, David Young wrote:
> > > I'm running sources from last night.  At boot, directly after printing
> > > 
> > >         boot device: wd0
> > >         root on wd0a dumps on wd0b
> > >         root filesystem type: ffs
> > > 
> > > my 400MHz Powerbook G4 hangs.  I can drop into the debugger, where the
> > > stack trace is like this:
> > 
> > With "up to the minute" sources, the Powerbook hung again; here's the
> > stack trace this time:
> > 
> > 	internal_command
> > 	wskbd_translate
> > 	wskbd_input
> > 	kbd_passup
> > 	kbd_intr
> > 	kbd_processevent
> > 	kbd_adbcomplete
> > 	adb_soft_intr
> > 	softclock
> > 	hardclock
> > 	decr_intr
> > 	trapstart
> > 	lcsplx
> > 	Idel
> > 	mi_switch
> > 	ltsleep
> > 	sched_sync
> > 	cpu_switchto
> > 	ADBDevTable
> > 
> > What more information can I provide to help get to the bottom of this?
> > 
> 
> Hadn't seen this before: I broke into ddb, typed 'continue', and a little
> while later (or maybe I had just missed it?) the console says,
> 
> "zstty0: 1 silo overflow, 0 ibuf floods"

It's obvious now that processes are stuck waiting for 'ttyout.'
/sbin/init and children are running on the Powerbook's modem!  Between the
old kernel and the new, these messages have changed:

	zsc0 at obio0 offset 0x13000: irq 22,23
	zstty0 at zsc0 channel 0
	zstty1 at zsc0 channel 1

to these:

	enabling KeyLargo internal modem
	zsc0 at obio0 offset 0x13000: irq 22,23
	zstty0 at zsc0 channel 0 (console)
	zstty1 at zsc0 channel 1

As a stopgap, I can remove zstty[01] from my kernel configuration, but
others with this hardware are going to be bitten.  Is there some way to
make the kernel prefer wsdisplay0 at ofb0 over zstty0 as console?

BTW, the ofw strings input-device and output-device are set to 'keyboard'
and 'screen', respectively.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933