NetBSD Problem Report #10306

Received: (qmail 17779 invoked from network); 7 Jun 2000 09:07:28 -0000
Message-Id: <200006062238.SAA00386@zorkmid.mit.edu>
Date: Tue, 6 Jun 2000 18:38:12 -0400 (EDT)
From: John Hawkinson <jhawk@mit.edu>
Reply-To: jhawk@mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: pckbc at pnpbios can succeed partially, causing hosage.
X-Send-Pr-Version: 3.95
X-GNATS-Notify: chris@paradox.demon.co.uk

>Number:         10306
>Category:       port-i386
>Synopsis:       pckbc at pnpbios can succeed partially, causing hosage.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 07 09:08:00 +0000 2000
>Closed-Date:    
>Last-Modified:  Sat Dec 29 23:50:01 +0000 2001
>Originator:     John Hawkinson
>Release:        3 Jun 2000
>Organization:
MIT
>Environment:

System: NetBSD zorkmid.mit.edu 1.4Z NetBSD 1.4Z (ZORKMID-$Revision: 1.12 $) #169: Mon Jun 5 23:09:18 EDT 2000 jhawk@zorkmid.mit.edu:/usr/local/current-src/sys/arch/i386/compile/ZORKMID i386


>Description:

	With Jason's recent addition to GENERIC of

#pckbc*		at pnpbios? index ?	# PC keyboard/mouse controller

	My Sony VAIO loses in more interesting ways.
It appears that PNPBIOS pckbc attachment requires two pnpbios indices,
one for the regular keyboard slot and one for the "aux" slot. The latter
happens to cause my Vaio to spontaneously reboot (sigh).

	If pnpbios is configured to exclude the reboot-causing pnpbios
index, then the boot appears to be normal, however the console
keyboard is non-functional. It hasn't been convenient to test this
with a serial console, so I'm not certain if pckbd0 is attaching to
pckbc0.

	In any case, I get a machine with no working keyboard.

	I'm somewhat at a loss (failure to understand something
in the autoconfig system?) as to why pckbc0 does not attach
on isa0 as normal in this case. Does it have to do with the multiple
required attachments of pckbc? at pnpbios?

>How-To-Repeat:

Here are the kernel probe messages when "pckbc? at pnpbios?" is
configured:

pnpbios0: getting info for index 6
PNP0303 (static): type 0x09 subtype 0x00 dpi 0x00 attr 0x0003:
PNP0303: allocated config scan:
	tag io flags 01 min 0060 max 0060 align 0x01 len 0x01
	tag io flags 01 min 0064 max 0064 align 0x01 len 0x01
	tag irq flags 01 mask 0002
	tag end cksum 00
	possible config scan:
	tag end cksum 00
	compat id scan:
	tag end cksum 00
PNP0303 (dynamic): type 0x09 subtype 0x00 dpi 0x00 attr 0x0003:
PNP0303: allocated config scan:
	tag io flags 01 min 0060 max 0060 align 0x01 len 0x01
	tag io flags 01 min 0064 max 0064 align 0x01 len 0x01
	tag irq flags 01 mask 0002
	tag end cksum 00
	possible config scan:
	tag end cksum 00
	compat id scan:
	tag end cksum 00
pckbc1 at pnpbios0 index 6 (PNP0303): kbd port
pnpbios0: getting info for index 20
PNP0F13 (static): type 0x09 subtype 0x02 dpi 0x00 attr 0x0088:
PNP0F13: allocated config scan:
	tag irq flags 01 mask 1000
	tag end cksum 00
	possible config scan:
	tag irq flags 01 mask 1000
	tag end cksum 00
	compat id scan:
	tag end cksum 00

>Fix:
	workaround:
	  Don't configure "pckbc? at pnpbios?", and don't make it the default
	  in 1.5.
>Release-Note:
>Audit-Trail:

From: Bill Sommerfeld <sommerfeld@netbsd.org>
To: jhawk@mit.edu
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/10306: pckbc at pnpbios can succeed partially, causing hosage. 
Date: Wed, 07 Jun 2000 09:50:35 -0400

 See the mail I just sent a second ago to current-users..

  - Have you tried this with sys/dev/ic/pckbc.c rev 1.4?  
  - Have you rebuilt your entire kernel from scratch?

 I made a change on monday (pckbc.c rev 1.3) to add /dev/random
 sampling support to the keyboard controller code.

 The date in your bug report is after I committed rev 1.3 and well
 before I committed rev 1.4.

 						- Bill

From: nathanw@MIT.EDU (Nathan J. Williams)
To: jhawk@MIT.EDU
Cc:  
Subject: Re: port-i386/10306: pckbc at pnpbios can succeed partially, causing hosage.
Date: 07 Jun 2000 11:20:06 -0400

 <daemon@ATHENA.MIT.EDU> (John Hawkinson) writes:

 > 	I'm somewhat at a loss (failure to understand something
 > in the autoconfig system?) as to why pckbc0 does not attach
 > on isa0 as normal in this case. Does it have to do with the multiple
 > required attachments of pckbc? at pnpbios?

 The issue is that pnpbios is describing the same port range that the
 ISA attachment would use; they're very close to being the same
 attachment. Once pnpbios has attached it, then the extent management
 of the ISA port space will prevent the pcibc at isa probe from
 succeeding.

         - Nathan

From: John Hawkinson <jhawk@MIT.EDU>
To: sommerfeld@orchard.arlington.ma.us
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/10306: pckbc at pnpbios can succeed partially, causing hosage. 
Date: Wed, 07 Jun 2000 14:31:48 -0400

 For the record (gnats-bugs):

 >See the mail I just sent a second ago to current-users..
 >
 > - Have you tried this with sys/dev/ic/pckbc.c rev 1.4?  
 > - Have you rebuilt your entire kernel from scratch?

 Yes and Yes.

 Doesn't change things. Nathan posits this is due to extent
 maps, and that seems plausible to me. So you're off the hook.

 --jhawk

From: John Hawkinson <jhawk@MIT.EDU>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: port-i386/10306: pckbc at pnpbios can succeed partially, causing hosage. 
Date: Sat, 29 Dec 2001 18:49:43 -0500 (EST)

 duping port-i386/15093 into this.
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.