Subject: Re: Panic with USB KVM and 1.5.2
To: None <port-i386@netbsd.org>
From: Steven Grunza <steven_grunza@ieee.org>
List: port-i386
Date: 07/31/2002 00:44:05
Here's the dmesg output:

NetBSD 1.5.2 (CDSERVER) #16: Tue Jul 30 02:15:35 EDT 2002
     toor@cd-server:/usr/src/sys/arch/i386/compile/CDSERVER
cpu0: Intel Pentium/MMX (586-class), 232.68 MHz
total memory = 48768 KB
avail memory = 42568 KB
using 635 buffers containing 2540 KB of memory
BIOS32 rev. 0 found at 0xfb3d0
mainbus0 (root)
pnpbios0 at mainbus0: nodes 15, max len 69
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82437VX System Controller (TVX) (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 
0x00)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <Maxtor 90640D4>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6149 MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
wd1 at pciide0 channel 0 drive 1: <WDC AC313000R>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 12416 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 25429824 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <HP      CD-Writer+ 7200, 4VO0898341329400021, 
V:003.0> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 3, DMA mode 1
cd1 at atapibus0 drive 1: <ATAPI CDROM, , V2.30> type 5 cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 1
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1 (using DMA data transfers)
cd1(pciide0:1:1): using PIO mode 0, DMA mode 1 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371SB USB Host Controller (PIIX3) 
(rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at uhub0 port 2
uhub1: Genesys Logic, Inc. USB Hub, class 9/0, rev 1.01/0.12, addr 2
uhub1: 4 ports with 4 removable, self powered
uhub2 at uhub1 port 1
uhub2: HP Multimedia Keyboard Hub, class 9/0, rev 1.10/0.03, addr 3
uhub2: 3 ports with 2 removable, bus powered
ukbd0 at uhub2 port 1 configuration 1 interface 0
ukbd0: HP Multimedia Keyboard Hub, rev 1.10/0.03, addr 4, iclass 3/1
wskbd0 at ukbd0
uhid0 at uhub2 port 1 configuration 1 interface 1
uhid0: HP Multimedia Keyboard Hub, rev 1.10/0.03, addr 4, iclass 3/0
ums0 at uhub2 port 2 configuration 1 interface 0
ums0: HP HP USB WHEEL MOUSE, rev 1.00/0.00, addr 5, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
ukbd1 at uhub1 port 4 configuration 1 interface 0
ukbd1: Tangtop Generic KVM102UC, rev 1.10/0.01, addr 6, iclass 3/1
wskbd1 at ukbd1
ums1 at uhub1 port 4 configuration 1 interface 1
ums1: Tangtop Generic KVM102UC, rev 1.10/0.01, addr 6, iclass 3/1
ums1: 3 buttons and Z dir.
wsmouse1 at ums1 mux 0
vga1 at pci0 dev 11 function 0: S3 Trio64V2/DX (rev. 0x16)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-3 added (80x25, vt100 emulation)
tl0 at pci0 dev 19 function 0
tl0: Compaq Netelligent 10/100 TX
tl0: Ethernet address 00:08:c7:28:c4:af
tl0: interrupting at irq 10
ukphy0 at tl0 phy 1: Generic IEEE 802.3u media interface
ukphy0: DP83840 10/100 media interface (OUI 0x080017, model 0x0000), rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlphy0 at tl0 phy 31: ThunderLAN 10baseT media interface, rev. 5
tlphy0: no media present
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd2 at pckbd0: console keyboard, using wsdisplay0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
biomask fb65 netmask ff65 ttymask ffe7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wskbd0: connecting to wsdisplay0
wskbd1: connecting to wsdisplay0

Here's the gdb where information:
Script started on Wed Jul 31 00:35:33 2002
# gdb netbsd.3
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsd"...(no debugging symbols found)...
(gdb) target kcore netbsd.3.core
panic: trap
#0  0xc02a939b in i386_features ()
(gdb) where
#0  0xc02a939b in i386_features ()
#1  0x28ff000 in ?? ()
#2  0xc0224337 in cpu_reboot ()
#3  0xc013a7b7 in panic ()
#4  0xc0228921 in trap ()
#5  0xc0100cbf in calltrap ()
#6  0xc01104f3 in uhci_idone ()
#7  0xc01103c2 in uhci_check_intr ()
#8  0xc011033b in uhci_softintr ()
#9  0xc0288643 in usb_schedsoftintr ()
#10 0xc011030f in uhci_intr ()
#11 0xc0101768 in Xintr11 ()
#12 0xc01339e2 in ltsleep ()
#13 0xc013dbc7 in sys_poll ()
#14 0xc0228f50 in syscall ()
#15 0xc0100d37 in syscall1 ()
can not access 0xbfbfdd68, invalid translation (invalid PDE)
can not access 0xbfbfdd68, invalid translation (invalid PDE)
Cannot access memory at address 0xbfbfdd68.
(gdb) quit
# ls -l
total 51271
-rw-r--r--  1 root      wheel      1280 Jul 31 00:36 gdb.txt
drwxr-xr-x  7 grunza    wheel       512 May 17 22:47 grunza
-rw-r--r--  1 root      wheel       360 Jun 14 22:25 mvit
-rwx--x--x  1 root      wheel   2514856 Jul 31 00:14 netbsd.3
-rw-------  1 root      wheel  49934868 Jul 31 00:18 netbsd.3.core
drwxr-xr-x  2 pc_user   wheel       512 Mar 27 00:39 pc_user
drwxr-xr-x  9 root      wheel       512 Apr 30 05:18 rtems
drwxr-xr-x  9 t2server  wheel       512 May 17 23:56 t2
# exit

Script done on Wed Jul 31 00:36:39 2002

>At 09:27 PM 7/30/2002 +0200, Manuel Bouyer wrote:
> >On Tue, Jul 30, 2002 at 03:05:03PM -0400, Steven Grunza wrote:
> > > I'm running 1.5.2 on an older PC (200 MHz Pentium).  The BIOS doesn't
> > > recognize the USB keyboard I have attached through a KVM switch but 
> NetBSD
> > > finds and uses it with a "keyboard" command in the /etc/wscons.conf file
> > >
> > > My problem is when I switch to the other system on the KVM switch NetBSD
> > > panics.
> > >
> > > I read in the man pages that if the console device is not present a panic
> > > will occur; however, I've actually got two console keyboards, one is the
> > > PS/2 port (that doesn't have a keyboard plugged in) and the other is
> > > through the KVM switch.
> >
> >Are you sure your PS2 port is detected ?
> >Maybe post your dmesg, the panic message, and the ddb backtrace ?
> >



-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com