Subject: port-i386/31885: PCI bus not detected with SIS 741 chipset
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <stephane.witzmann@gmail.com>
List: netbsd-bugs
Date: 10/22/2005 00:13:00
>Number:         31885
>Category:       port-i386
>Synopsis:       PCI bus not detected with SIS 741 chipset
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 22 00:13:00 +0000 2005
>Originator:     Stéphane Witzmann
>Release:        2.0.2
>Organization:
>Environment:
NetBSD wolfenstein 2.0.2 NetBSD 2.0.2 (WOLFENSTEIN) #0: Fri Oct 21 02:26:26 CEST 2005  durandil@:/home/durandil/NetBSD/2.0.2/src/sys/arch/i386/compile/WOLFENSTEIN i386
>Description:
The PCI bus is not detected on my mainboard (ECS 741GX). Here is the dmesg using a GENERIC kernel :

NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005
	jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC
total memory = 511 MB
avail memory = 493 MB
BIOS32 rev. 0 found at 0xfb490
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon 400+ (686-class), 1654.59 MHz, id 0x681
cpu0: features c3cbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3cbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbfbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 256 KB 64B/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
isa0 at mainbus0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atabus0 at wdc0 channel 0
wdc1 at isa0 port 0x170-0x177 irq 15
atabus1 at wdc1 channel 0
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pcppi0 at isa0 port 0x61
midi0 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
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <Maxtor 6Y160P0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 152 GB, 317632 cyl, 16 head, 63 sec, 512 bytes/sect x 320173056 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1 at atabus0 drive 1: <Maxtor 6B160P0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 152 GB, 317632 cyl, 16 head, 63 sec, 512 bytes/sect x 320173056 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <GCR-8523B, , 1.03> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd1 at atapibus0 drive 1: <R/RW 4x4x32, 4VO2033DD12065, 1.3B> cdrom removable
cd1: drive supports PIO mode 4, DMA mode 2
boot device: wd1
root on wd1a dumps on wd1b
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)


As you can see below, this has currently not been fixed in HEAD :

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.99.10 (GENERIC) #0: Tue Oct 18 05:50:11 UTC 2005
	builds@b2.netbsd.org:/home/builds/ab/HEAD/i386/200510180000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC
total memory = 511 MB
avail memory = 494 MB
BIOS32 rev. 0 found at 0xfb490
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon 400+ (686-class), 1654.61 MHz, id 0x681
cpu0: features c3cbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3cbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbfbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: "AMD Sempron(tm)   2400+"
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 256 KB 64B/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
isa0 at mainbus0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
attimer0 at isa0 port 0x40-0x43: AT Timer
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atabus0 at wdc0 channel 0
wdc1 at isa0 port 0x170-0x177 irq 15
atabus1 at wdc1 channel 0
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pcppi0 at isa0 port 0x61
midi0 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
pcppi0: attached to attimer0
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <Maxtor 6Y160P0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 152 GB, 317632 cyl, 16 head, 63 sec, 512 bytes/sect x 320173056 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1 at atabus0 drive 1: <Maxtor 6B160P0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 152 GB, 317632 cyl, 16 head, 63 sec, 512 bytes/sect x 320173056 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <GCR-8523B, , 1.03> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd1 at atapibus0 drive 1: <R/RW 4x4x32, 4VO2033DD12065, 1.3B> cdrom removable
cd1: drive supports PIO mode 4, DMA mode 2
boot device: wd1
root on wd1a dumps on wd1b
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)

>How-To-Repeat:
Boot a GENERIC kernel (for example).
>Fix:
Add "options PCI_CONF_MODE=1" to the kernel config file.

OR 

Modify /usr/src/sys/arch/x86/pci/pci_machdep.c : add the entry "_qe(0, 0, 0, PCI_VENDOR_SIS, PCI_PRODUCT_SIS_741)" to pcim1_quirk_tbl[].

Then the dmesg becomes :

NetBSD 2.0.2 (GENERIC) #0: Sat Oct 22 01:12:51 CEST 2005
	durandil@wolfenstein:/home/durandil/NetBSD/2.0.2/src/sys/arch/i386/compile/GENERIC
total memory = 511 MB
avail memory = 493 MB
BIOS32 rev. 0 found at 0xfb490
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon 400+ (686-class), 1654.61 MHz, id 0x681
cpu0: features c3cbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3cbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbfbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 256 KB 64B/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
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: Silicon Integrated System SiS 741 Host Bridge (rev. 0x03)
agp0 at pchb0: aperture at 0xc0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: Silicon Integrated System product 0x0003 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Nvidia Corporation GeForce2 MX 100/200 (rev. 0xb2)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 2 function 0
pcib0: Silicon Integrated System product 0x0964 (rev. 0x36)
siside0 at pci0 dev 2 function 5
siside0: Silicon Integrated System 96X UDMA5741 IDE controller (rev. 0x01)
siside0: bus-master DMA support present
siside0: primary channel configured to compatibility mode
siside0: primary channel interrupting at irq 14
atabus0 at siside0 channel 0
siside0: secondary channel configured to compatibility mode
siside0: secondary channel interrupting at irq 15
atabus1 at siside0 channel 1
auich0 at pci0 dev 2 function 7: SiS 7012 AC-97 Audio
auich0: interrupting at irq 5
auich0: ac97: Avance Logic ALC655 codec; no 3D stereo
auich0: ac97: ext id 9c4<AC97_23,LDAC,SDAC,CDAC,SPDIF>
ohci0 at pci0 dev 3 function 0: Silicon Integrated System 5597/5598 USB host controller (rev. 0x0f)
ohci0: interrupting at irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 3 function 1: Silicon Integrated System 5597/5598 USB host controller (rev. 0x0f)
ohci1: interrupting at irq 11
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci2 at pci0 dev 3 function 2: Silicon Integrated System 5597/5598 USB host controller (rev. 0x0f)
ohci2: interrupting at irq 9
ohci2: OHCI version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 3 function 3: Silicon Integrated System 7002 USB 2.0 host controller (rev. 0x00)
ehci0: interrupting at irq 3
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1 ohci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Silicon Integra EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 8 ports with 8 removable, self powered
sip0 at pci0 dev 4 function 0: SiS 900 10/100 Ethernet, rev 0x91
sip0: interrupting at irq 11
sip0: Ethernet address 00:11:5b:4f:16:1a
ukphy0 at sip0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000004, model 0x0020, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
clcs0 at pci0 dev 10 function 0: Cirrus Logic CS4280 CrystalClear Audio Interface (rev. 0x01)
clcs0: interrupting at irq 5
clcs0: ac97: Crystal CS4297A codec; headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
clcs0: ac97: ext id 200<AMAP>
audio0 at clcs0: full duplex, independent
midi0 at clcs0: CS4280 MIDI UART
unknown vendor 0x1412 product 0x1724 (audio multimedia, revision 0x01) at pci0 dev 11 function 0 not configured
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
pcppi0 at isa0 port 0x61
midi1 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
isapnp0: no ISA Plug 'n Play devices found
audio1 at auich0: full duplex, independent
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <Maxtor 6Y160P0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 152 GB, 317632 cyl, 16 head, 63 sec, 512 bytes/sect x 320173056 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1 at atabus0 drive 1: <Maxtor 6B160P0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 152 GB, 317632 cyl, 16 head, 63 sec, 512 bytes/sect x 320173056 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(siside0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd1(siside0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <GCR-8523B, , 1.03> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd1 at atapibus0 drive 1: <R/RW 4x4x32, 4VO2033DD12065, 1.3B> cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2
cd0(siside0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
cd1(siside0:1:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: Microsoft Microsoft Wheel Mouse OpticalM-., rev 1.10/1.21, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
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)