NetBSD Problem Report #41606

From jukka+moray@salmi.ch  Tue Jun 16 16:51:25 2009
Return-Path: <jukka+moray@salmi.ch>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id EDD4F63B8BA
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Jun 2009 16:51:24 +0000 (UTC)
Message-Id: <20090616154904.C45735364@moray.salmi.ch>
Date: Tue, 16 Jun 2009 17:49:04 +0200 (CEST)
From: Jukka Salmi <j+nbsd@salmi.ch>
Reply-To: Jukka Salmi <j+nbsd@salmi.ch>
To: gnats-bugs@gnats.NetBSD.org
Subject: PS/2 keyboard and `boot -a' -> pckbport_start: command error
X-Send-Pr-Version: 3.95

>Number:         41606
>Category:       kern
>Synopsis:       PS/2 keyboard and `boot -a' -> pckbport_start: command error
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 16 16:55:00 +0000 2009
>Last-Modified:  Thu Jul 02 14:40:02 +0000 2009
>Originator:     Jukka Salmi
>Release:        NetBSD 5.99.12
>Organization:
>Environment:
System: NetBSD moray.salmi.ch 5.99.12 NetBSD 5.99.12 (MORAY) #0: Mon May 25 17:09:01 CEST 2009 root@moray.salmi.ch:/b/build/nbsd/c/i386/sys/arch/i386/compile/MORAY i386
Architecture: i386
Machine: i386
>Description:
Using a PS/2 keyboard and booting a current i386 system with the -a option
(RB_ASKNAME, ask for root file system etc.) I'm reproducibly seeing keyboard
port problems:

        [...]
        boot device: raid0
        root device (default raid0a): pckbport_start: command error
        jkfatal breakpoint trap in supervisor mode
        [...]
        db{0}> reboot 0x4

As can be seen above, I can't specify the root device because the system
doesn't seem to receive the keyboard input (except for the `j' and `k' I was
hitting several times while wondering what was going on; they are shown on the
line following the error message, just before the ddb output).  However, I'm
able to enter ddb from the keyboard, and to type commands inside ddb just fine.

When booting normally (i.e. without the -a option) the keyboard in question
works just fine.  Furthermore booting with -a and a PS/2 keyboard used to work
fine some time ago, but I'm not sure when exactly.  And, BTW, I don't see this
problem with an USB keyboard.
>How-To-Repeat:
Boot using `boot -a' and try to enter a name for the root device etc.  I'm not
sure what hardware is needed to reproduce the problem, but I'm seeing it with a
"Happy Hacking Keyboard Lite 2" (HHKB Lite 2) PS/2 keyboard and an i386 system
(Asus P4P800-VM):

[...]
acpi0 at mainbus0: Intel ACPICA 20080321
acpi0: X/RSDT: OemId <A M I ,OEMXSDT ,09000505>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
[...]
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, PNP0F03) (aux port): irq 12
[...]
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
[...]

>Fix:
Would be great...

>Audit-Trail:
From: Jukka Salmi <j+nbsd@2009.salmi.ch>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/41606: PS/2 keyboard and `boot -a' -> pckbport_start:
 command error
Date: Thu, 2 Jul 2009 16:38:24 +0200

 Jukka Salmi wrote:
 > Boot using `boot -a' and try to enter a name for the root device etc.  I'm not
 > sure what hardware is needed to reproduce the problem, but I'm seeing it with a
 > "Happy Hacking Keyboard Lite 2" (HHKB Lite 2) PS/2 keyboard and an i386 system
 > (Asus P4P800-VM):

 I just tried with another PS/2 keyboard and could _not_ reproduce the
 problem.  Then I tried with the original keyboard (HHKB Lite 2) and a
 5.0_STABLE kernel (instead of 5.99.12) on the same system, and again
 could _not_ reproduce the problem.  So it seems to be a regression
 introduced somewhen after netbsd-5 was branched, but only affecting
 _some_ PS/2 keyboards.

 Doesn't make debugging easier, I guess... ;-)

 -- 
 This email fills a much-needed gap in your mailbox.

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.