Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 1997 23:32:33 -0400 (EDT)
From:      jmb@freebsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/3214: PCI Saturn-II support broken (panic: can not mount root)
Message-ID:  <199704070332.XAA00364@Aspen.Woc.Atinc.COM>
Resent-Message-ID: <199704070430.VAA17528@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3214
>Category:       i386
>Synopsis:       /sys/i386/isa/pcibus.c 1.32 does not find pci on ASUS PCI/I-486 SP3G
>Confidential:   yes
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr  6 21:30:02 PDT 1997
>Last-Modified:
>Originator:     Jonathan M. Bresler
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	FreeBSD 3.0-CURRENT i386
	AMD 5x86-133
	40MB ram, 81MB swap
	NO ide disks, NO isa connected disks
	most recent cvsup: 970406

>Description:

	/sys/i386/isa/pcibus.c:pcibus_check() fails to find any pci devices

dmesg output:  (boot: /kernel -v)
FreeBSD 3.0-CURRENT #2: Sun Apr  6 17:51:23 EDT 1997
    root@:/usr/src/sys/compile/ASPEN
Calibrating clock(s) ... i8254 clock: 1205087 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
CPU: AMD Am5x86 Write-Through (486-class CPU)
  Origin = "AuthenticAMD"  Id = 0x4e4  Stepping=4
  Features=0x1<FPU>
real memory  = 41943040 (40960K bytes)
avail memory = 39194624 (38276K bytes)
bdevsw_add_generic: adding D_DISK flag for device 15
pcibus_setup(1):        mode 1 addr port (0x0cf8) is 0x00000000
pcibus_setup(1a):       mode1res=0x00000000 (0x80000000)
pcibus_setup(1b):       mode1res=0x00000000 (0xff000001)
pcibus_setup(2):        mode 2 enable port (0x0cf8) is 0x00
pcibus_setup(2a):       mode2res=0x0e (0x0e)
pcibus_setup(2a):       now trying mechanism 2
pcibus_check:   device 0 [class=0] 1 [class=10000] 2 [class=0] 3 4 [class=100] 5
 [class=0] 6 7 8 9 10 11 12 13 14 15 -- nothing found
Probing for devices on the ISA bus:

	pcibus_check() should find at least one device.

>How-To-Repeat:

	compile and install a kernel using /sys/i386/isa/pcibus.c 1.32
	on a Saturn-II PCI motherboard

>Fix:
	
TEMP FIX ONLY:

either revert to pcibus.c 1.31
or patch as shown below


Index: pcibus.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/isa/pcibus.c,v
retrieving revision 1.32
diff -r1.32 pcibus.c
180,182c180,183
< 		if ((class & 0xfff0ff00) != 0x06000000)
< 			continue;
< 
---
> /*
>  *		if ((class & 0xfff0ff00) != 0x06000000)
>  *			continue;
>  */
186,188c187,190
< 		if ((header & 0x007e0000) != 0)
< 			continue;
< 
---
> /*
>  *		if ((header & 0x007e0000) != 0)
>  *			continue;
>  */
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704070332.XAA00364>