Subject: Re: iMac console keyboard breakage analyzed
To: None <current-users@netbsd.org>
From: Todd Whitesel <toddpw@best.com>
List: current-users
Date: 11/10/1999 04:05:13
> This was the change which removed the timeout driven
> "glue code" which connected keyboards to displays.
> Since that day it is important that the "console"ness
> of the devices is properly kept track of.
> How does your `dmesg` look like? It should contain
> lines like:
> wsdisplay0 at vga1: console (80x25, sun emulation)
> [...]
> wskbd0 at pckbd0: console keyboard, using wsdisplay0

Well, the messages do shift around somewhat, but they both appear to match
up the console keyboard and display.

Looks to me like the USB stuff is getty cranky because of the console changes,
since it switches from "restarting port 1" to "giving up port 1" ...

Here is the context diff, followed by the older "good" dmesg.

*** leia-good.dmesg	Wed Nov 10 03:15:50 1999
--- leia-bad.dmesg	Wed Nov 10 03:11:56 1999
***************
*** 1,8 ****
! NetBSD 1.4B (GENERIC) #0: Mon Nov  8 01:03:50 PST 1999
      toddpw@leia.toddpw.net:/usr/src/sys/arch/macppc/compile/GENERIC
  CPU: 750 (Revision 202)
  real mem  = 33554432
! avail mem = 26509312
  using 409 buffers containing 1675264 bytes of memory
  mainbus0 (root)
  cpu0 at mainbus0
--- 1,8 ----
! NetBSD 1.4B (GENERIC) #1: Tue Nov  9 01:15:55 PST 1999
      toddpw@leia.toddpw.net:/usr/src/sys/arch/macppc/compile/GENERIC
  CPU: 750 (Revision 202)
  real mem  = 33554432
! avail mem = 26513408
  using 409 buffers containing 1675264 bytes of memory
  mainbus0 (root)
  cpu0 at mainbus0
***************
*** 40,62 ****
  ohci0: OHCI version 1.0
  usb0 at ohci0
  uhub0 at usb0
! uhub0: Fujitsu Limited {97 bytes of Meta mush} OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub0: 2 ports with 2 removable, self powered
! uhub0: port error, restarting port 1
  uhub1 at uhub0 port 1
  uhub1: Alps Electric Hub in Apple USB Keyboard, class 9/0, rev 1.10/2.10, addr 2
  uhub1: 3 ports with 2 removable, bus powered
  ukbd0 at uhub1 port 1 configuration 1 interface 0
  ukbd0: Alps Electric Apple USB Keyboard, rev 1.10/1.02, addr 3, iclass 3/1
! wskbd1 at ukbd0: console keyboard
  ums0 at uhub1 port 2 configuration 1 interface 0
  ums0: Logitech M4848, rev 1.00/5.00, addr 4, iclass 3/1
  ums0: 1 buttons
  wsmouse1 at ums0
! uhub0: port error, restarting port 2
  ugen0 at uhub0 port 2
  ugen0: Connectix Corp. QuickCam, rev 1.00/1.00, addr 5
- wscons: wskbd1 glued to wsdisplay0 (console)
  boot device: bm0
  nfs_boot: trying DHCP/BOOTP
  nfs_boot: DHCP server: 10.0.0.3
--- 40,61 ----
  ohci0: OHCI version 1.0
  usb0 at ohci0
  uhub0 at usb0
! uhub0: Fujitsu Limited  OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub0: 2 ports with 2 removable, self powered
! uhub0: port error, giving up port 1
  uhub1 at uhub0 port 1
  uhub1: Alps Electric Hub in Apple USB Keyboard, class 9/0, rev 1.10/2.10, addr 2
  uhub1: 3 ports with 2 removable, bus powered
  ukbd0 at uhub1 port 1 configuration 1 interface 0
  ukbd0: Alps Electric Apple USB Keyboard, rev 1.10/1.02, addr 3, iclass 3/1
! wskbd1 at ukbd0: console keyboard, using wsdisplay0
  ums0 at uhub1 port 2 configuration 1 interface 0
  ums0: Logitech M4848, rev 1.00/5.00, addr 4, iclass 3/1
  ums0: 1 buttons
  wsmouse1 at ums0
! uhub0: port error, giving up port 2
  ugen0 at uhub0 port 2
  ugen0: Connectix Corp. QuickCam, rev 1.00/1.00, addr 5
  boot device: bm0
  nfs_boot: trying DHCP/BOOTP
  nfs_boot: DHCP server: 10.0.0.3

# eof

NetBSD 1.4B (GENERIC) #0: Mon Nov  8 01:03:50 PST 1999
    toddpw@leia.toddpw.net:/usr/src/sys/arch/macppc/compile/GENERIC
CPU: 750 (Revision 202)
real mem  = 33554432
avail mem = 26509312
using 409 buffers containing 1675264 bytes of memory
mainbus0 (root)
cpu0 at mainbus0
pci0 at mainbus0 bus 0
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Motorola product 0x0002 (rev. 0x40)
obio0 at pci0 dev 16 function 0: addr 0x80800000
interrupt-controller at obio0 offset 0x10 not configured
scsi at obio0 offset 0x10000 not configured
escc-legacy at obio0 offset 0x12000 not configured
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
fdc at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 0 targets
aed0 at adb0 addr 0: ADB Event device
wdc0 at obio0 offset 0x20000 irq 13
wd0 at wdc0 channel 0 drive 0: <WDC AC26400R>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6149MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wdc1 at obio0 offset 0x21000 irq 14
atapibus0 at wdc1 channel 0
cd0 at atapibus0 drive 0: <MATSHITA CR-175, , 5ADF> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
bm0 at obio0 offset 0x11000 irq 42,33: address 00:50:e4:ce:9b:06
nvram0 at obio0 offset 0x60000
ofb0 at pci0 dev 18 function 0: ATI Technologies Mach64 B
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0: console (std, vt100 emulation)
ohci0 at pci0 dev 20 function 0: Fujitsu Limited (4th PCI Vendor ID) product 0x5801 (rev. 0x12)
ohci0: interrupting at irq 28
ohci0: OHCI version 1.0
usb0 at ohci0
uhub0 at usb0
uhub0: Fujitsu Limited {97 bytes of Meta mush} OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: port error, restarting port 1
uhub1 at uhub0 port 1
uhub1: Alps Electric Hub in Apple USB Keyboard, class 9/0, rev 1.10/2.10, addr 2
uhub1: 3 ports with 2 removable, bus powered
ukbd0 at uhub1 port 1 configuration 1 interface 0
ukbd0: Alps Electric Apple USB Keyboard, rev 1.10/1.02, addr 3, iclass 3/1
wskbd1 at ukbd0: console keyboard
ums0 at uhub1 port 2 configuration 1 interface 0
ums0: Logitech M4848, rev 1.00/5.00, addr 4, iclass 3/1
ums0: 1 buttons
wsmouse1 at ums0
uhub0: port error, restarting port 2
ugen0 at uhub0 port 2
ugen0: Connectix Corp. QuickCam, rev 1.00/1.00, addr 5
wscons: wskbd1 glued to wsdisplay0 (console)
boot device: bm0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP server: 10.0.0.3
nfs_boot: my_addr=10.0.9.0
nfs_boot: my_mask=255.0.0.0
root on bespin:/cargo/export/leia/root
root file system type: nfs

# eof

Todd Whitesel
toddpw @ best.com