Subject: NetBSD RC3 and my laptop.
To: None <port-i386@netbsd.org>
From: Richard Rauch <rauch@rice.edu>
List: port-i386
Date: 09/10/2002 03:43:38
(Again, since 1.6 now has a distinct -current, I'm not really sure which
list this should go to.  I chose port-i386 somewhat arbitrarily, since I'm
running NetBSD on an i386.  (^&)

I tried both the GENERIC and GENERIC_LAPTOP kernels from 1.6 ``RC3'', on
my laptop.  Normally, I boot with a customized 1.5.2 kernel whose chief
feature is simply that it wires down my ne* PCIMCIA ethernet card as ne0,
where it always works.  (Under 1.5.2, GENERIC will literally alternate the
card between ne1 and ne2 on warmboots; the card only worked as ne2 under
1.5.2 GENERIC, which is where it came up on a cold boot.)

The bulk of this message contains 3 dmesg outputs.  One from 1.5.2 with my
customized kernel config, one from GENERIC 1.6, and one from
GENERIC_LAPTOP 1.6.  However, the overview of things I want to mention is:

 a) I canNOT seem to access my ethernet at all with either of these
    1.6 kernels.  I haven't tried building a custom kernel.
    (Maybe I needed to warmboot 1.6 GENERIC a second time; but
    GENERIC_LAPTOP put the card at ne0; it just failed to support it.)

 b) The _LAPTOP kernel emits a number of odd messages, near the top.
    Are those PNP-related and harmless?  Or should I be concerned?

 c) I *can* use the laptop's USB from 1.6's GENERIC_LAPTOP, but apparently
    not from the other two kernels.


Since the only stuff of value on the laptop is a directory tree of TeX
sources, I'll probably try upgrading to 1.6 shortly after the release and
see if I can build a new kernel to support both the ethernet card and the
USB interface.  (Unfortunately, I just don't have time to fiddle with it
right now.)


For those who are interested, dmesg outputs follow:

 /~~~ 1.5.2 custom kernel

NetBSD 1.5.2 (GENERICrauch) #3: Wed Jun  5 04:50:03 CDT 2002
    root@odysseus:/usr/src/sys/arch/i386/compile/GENERICrauch
cpu0: Intel Pentium/MMX (Tillamook) (586-class), 233.87 MHz
total memory = 127 MB
avail memory = 115 MB
using 1659 buffers containing 6636 KB of memory
BIOS32 rev. 0 found at 0xf5e30
mainbus0 (root)
pnpbios0 at mainbus0: code f0000, data f0000, entry 4699, control 1 eventp faf8c
pnpbios0: nodes 18, max len 118
PNP0C02 (mem fffe0000-ffffffff, io 80 b2-b3 74-75 398-399 372-373 2180-219f) at pnpbios0 index 0 ignored
PNP0C01 (mem 0-9ffff dc000-fffff 100000-7ffffff) at pnpbios0 index 1 ignored
PNP0C02 (io 4d0-4d1 8000-803f) at pnpbios0 index 2 ignored
wss0 at pnpbios0 index 3 (NMX2210)
wss0: io 220-22f 530-537 388-38f 330-331 370-371, irq 11, dma 0 1
wss0: CS4231 or AD1845
audio0 at wss0: full duplex, mmap
opl0 at wss0: model OPL3
midi0 at opl0: WSS Yamaha OPL3
NMX2220 (io 201) at pnpbios0 index 4 ignored
PNP0A03 (io cf8-cff) at pnpbios0 index 5 ignored
PNP0200 (io 0-f 81-8f c0-df, dma 4) at pnpbios0 index 6 ignored
PNP0000 (io 20-21 a0-a1, irq 2) at pnpbios0 index 7 ignored
PNP0100 (io 40-43, irq 0) at pnpbios0 index 8 ignored
PNP0B00 (io 70-71, irq 8) at pnpbios0 index 9 ignored
PNP0303 (io 60 64, irq 1) at pnpbios0 index 10 ignored
PNP0C04 (io f0-ff, irq 13) at pnpbios0 index 11 ignored
PNP0800 (io 61) at pnpbios0 index 12 ignored
PNP0F13 (irq 12) at pnpbios0 index 13 ignored
PNP0501 (io 3f8-3ff, irq 4) at pnpbios0 index 14 ignored
PNP0510 (io 2f8-2ff, irq 3, dma 3) at pnpbios0 index 15 ignored
PNP0401 (io 378-37f 778-77a, irq 7) at pnpbios0 index 16 ignored
PNP0700 (io 3f0-3f5 3f7, irq 6, dma 2) at pnpbios0 index 17 ignored
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
vga1 at pci0 dev 2 function 0: Neomagic MagicGraph 128XD (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK227A-41>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <UJDA110, , 1.21> type 5 cdrom removable
cd0: 32-bit data port
cd0: 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)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: can't map i/o space
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 0 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 1 not configured
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
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
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
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has no sockets
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
apm0 at mainbus0: Power Management spec V1.2
biomask e765 netmask e765 ttymask f7e7
pcic0: controller 0 detecting irqs with mask 0xdeb8:..5..9
pcic0: using irq 5 for socket events
IPsec: Initialized Security Association Processing.
pcmcia0: CIS version unknown (major=1, minor=0)
pcmcia0: CIS info: PCMCIA, 10/100 Ethernet Card, ,
pcmcia0: Manufacturer code 0x8a01, product 0xc1ab
pcmcia0: function 0: network adapter, ccr addr 3c0 mask 63
pcmcia0: function 0, config table entry 7: I/O card; irq mask ffff; iomask a, iospace 300-31f; mwait_required io16 irqlevel
ne0 at pcmcia0 function 0 port 0x300-0x30f port 0x310-0x31f
ne0: LAN iobase 0x300 (0x300) -> 0x300
ne0: Melco LPC3-TX (AX88190) Ethernet
ne0: Ethernet address 00:02:dd:77:2b:1d
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
pcmcia0: card irq 9
ne0: LAN iobase 0x300 (0x300) -> 0x300
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0

 \___ 1.5.2 custom kernel

 /~~~ 1.6 GENERIC

NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002
    autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (Tillamook) (586-class), 233.87 MHz
cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8001bf<MMX>
total memory = 127 MB
avail memory = 112 MB
using 1658 buffers containing 6632 KB of memory
BIOS32 rev. 0 found at 0xf5e30
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
vga1 at pci0 dev 2 function 0: Neomagic MagicGraph 128XD (rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK227A-41>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <UJDA110, , 1.21> type 5 cdrom removable
cd0: 32-bit data port
cd0: 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)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: can't map i/o space
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 0 not configured
Texas Instruments PCI1220 PCI-CardBus Bridge (CardBus bridge, revision 0x02) at pci0 dev 10 function 1 not configured
isa0 at pcib0
ne1 at isa0 port 0x300-0x31f irq 10
ne1: NE2000 Ethernet
ne1: Ethernet address 00:02:dd:77:2b:1d
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
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
wss0 at isa0 port 0x530-0x537 irq 10 drq 0,1: CS4231
audio1 at wss0: full duplex, mmap
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
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
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff irq
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has no sockets
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
isapnp0: no ISA Plug 'n Play devices found
biomask eb45 netmask ef45 ttymask ffc7
pcic0: controller 0 detecting irqs with mask 0xdeb8:..9
pcic0: can't share irq with cards; polling for socket events
Kernelized RAIDframe activated
ne2 at pcmcia0 function 0: no suitable config entry
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
ne1: device timeout
ne1: device timeout
ne1: device timeout
ne1: device timeout
ne1: device timeout
ne1: device timeout
ne1: device timeout
ne1: device timeout

 \___ 1.6 GENERIC

 /~~~ 1.6 GENERIC_LAPTOP

NetBSD 1.6 (GENERIC_LAPTOP) #0: Sun Sep  8 19:55:58 UTC 2002
    autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC_LAPTOP
cpu0: Intel Pentium/MMX (Tillamook) (586-class), 233.87 MHz
cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8001bf<MMX>
total memory = 127 MB
avail memory = 113 MB
using 1658 buffers containing 6632 KB of memory
BIOS32 rev. 0 found at 0xf5e30
PCI BIOS rev. 2.1 found at 0xf603d
pcibios: config mechanism [1][x], special cycles [x][x], last bus 0
PCI IRQ Routing Table rev. 1.0 found at 0xf6620, size 224 bytes (12 entries)
PCI Interrupt Router at 000:07:0
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:02:0 0x10c8 0x0004   A  0x00  10  0    already assigned
000:07:2 0x8086 0x7112   D  0x03  10  0    already assigned
000:10:0 0x104c 0xac17   A  0x00  10  0    fixed up
000:10:1 0x104c 0xac17   B  0x01  10  0    fixed up
------------------------------------------
PCI fixup examining 8086:7100
PCI fixup examining 10c8:04
PCI fixup examining 8086:7110
PCI fixup examining 8086:7111
PCI fixup examining 8086:7112
PCI fixup examining 8086:7113
PCI fixup examining 104c:ac17
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 104c:ac17
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7100
		[OK]
000:02:0 0x10c8 0x0004
	10h mem  0xfd000000 0x01000000
	14h mem  0xfea00000 0x00200000
	18h mem  0xfed00000 0x00100000
		[OK]
000:07:0 0x8086 0x7110
		[OK]
000:07:1 0x8086 0x7111
	20h port 0x0000fcd0 0x00000010
		[OK]
000:07:2 0x8086 0x7112
	20h port 0x0000fce0 0x00000020
		[OK]
000:07:3 0x8086 0x7113
		[OK]
000:10:0 0x104c 0xac17
	10h mem  0x00000000 0x00001000
		[NG]
000:10:1 0x104c 0xac17
	10h mem  0x00000000 0x00001000
		[NG]
--------------------------[  2 devices bogus]
 Physical memory end: 0x07ff9000
 PCI memory mapped I/O space start: 0x08000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7100
		[OK]
000:02:0 0x10c8 0x0004
	10h mem  0xfd000000 0x01000000
	14h mem  0xfea00000 0x00200000
	18h mem  0xfed00000 0x00100000
		[OK]
000:07:0 0x8086 0x7110
		[OK]
000:07:1 0x8086 0x7111
	20h port 0x0000fcd0 0x00000010
		[OK]
000:07:2 0x8086 0x7112
	20h port 0x0000fce0 0x00000020
		[OK]
000:07:3 0x8086 0x7113
		[OK]
000:10:0 0x104c 0xac17
	10h mem  0x08000000 0x00001000
		[OK]
000:10:1 0x104c 0xac17
	10h mem  0x08001000 0x00001000
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
vga1 at pci0 dev 2 function 0: Neomagic MagicGraph 128XD (rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK227A-41>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <UJDA110, , 1.21> type 5 cdrom removable
cd0: 32-bit data port
cd0: 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)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 10
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
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
cbb0 at pci0 dev 10 function 0: Texas Instruments PCI1220 PCI-CardBus Bridge (rev. 0x02)
cbb1 at pci0 dev 10 function 1: Texas Instruments PCI1220 PCI-CardBus Bridge (rev. 0x02)
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
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex, mmap, independent
midi0 at sb0: SB MIDI UART
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
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
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 10
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0
pcmcia0 at cardslot0
cbb1: interrupting at irq 10
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0
pcmcia1 at cardslot1
apm0 at mainbus0: Power Management spec V1.2
biomask ef45 netmask ef45 ttymask ffc7
ne0 at pcmcia0 function 0
ne0 (manf 00008a01 prod 0000c1ab) cis PCMCIA 10/100 Ethernet Card: can't match ethernet vendor code
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

 \___ 1.6 GENERIC_LAPTOP


  ``I probably don't know what I'm talking about.'' --rauch@math.rice.edu