Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Dec 1996 18:33:39 +0100
From:      Terje Normann Marthinussen <Terje.N.Marthinussen@cc.uit.no>
To:        se@freebsd.org (Stefan Esser)
Cc:        Freebsd-current@freebsd.org
Subject:   Re: pci-pci bridge on HP netserver 
Message-ID:  <199612051733.SAA18444@slibo.cc.uit.no>
In-Reply-To: Your message of "Thu, 05 Dec 1996 13:23:30 MET." <Mutt.19961205132330.se@x14.mi.uni-koeln.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
>NO! Hardcoding to 1 does not work!
>Think about any PCI card with an integrated PCI to PCI 
>bridge in bus 0 (an AH3940 or a 4channel Ethernet card,
>for example). The chips behind that bridge will be on
>bus 1, the second PCI bus on the motherboard will be 2
>now ...

Ah, I knew it couldn't be that simple.

>> what this chipset is called. 
>
>Please send me a verbose boot message log (from your 
>patched kernel, which is able to see the SCSI chips).

BIOS basemem (633K) != RTC basemem (640K), setting to BIOS value
Copyright (c) 1992-1996 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

FreeBSD 3.0-CURRENT #0: Wed Nov 27 15:51:42 MET 1996
    terjem@quattro:/usr/src/sys/compile/netserver
Calibrating clock(s) relative to mc146818A clock ... i586 clock: 133333679 Hz, i8254 clock: 1193169 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
CLK_USE_I586_CALIBRATION not specified - using old calibration method
CPU: Pentium (130.67-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52b  Stepping=11
  Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
real memory  = 67108864 (65536K bytes)
avail memory = 62717952 (61248K bytes)
BIOS Geometries:
 0:03fe3f20 0..1022=1023 cylinders, 0..63=64 heads, 1..32=32 sectors
 1:03fe3f20 0..1022=1023 cylinders, 0..63=64 heads, 1..32=32 sectors
 0 accounted for
eisa0: <INT3190 (System Board)>
Probing for devices on the EISA bus
pcibus_setup(1):        mode 1 addr port (0x0cf8) is 0x80007804
pcibus_setup(1a):       mode1res=0x80000000 (0x80000000)
pcibus_check:   device 0 is there (id=12258086)
Probing for devices on PCI bus 0:
        configuration mode 1 allows 32 devices.
chip0 <generic PCI bridge (vendor=8086 device=1225 subclass=0)> rev 2 on pci0:0
chip1 <Intel 82375EB PCI-EISA bridge> rev 5 on pci0:14:0
pci0:15:0: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
pci0:15:1: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
pci0:15:2: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
pci0:15:3: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
pci0:15:4: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
pci0:15:5: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
pci0:15:6: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
pci0:15:7: Intel Corporation, device=0x0008, class=0xff, subclass=0x00 [no driver assigned]
        map(10): mem32(fff6fc08)
        map(14): mem32(fff6fc08)
        map(18): mem32(fff6fc08)
        map(1c): mem32(fff6fc08)
        map(20): mem32(fff6fc08)
        map(24): mem32(fff6fc08)
Probing for devices on PCI bus 1:
chip2 <generic PCI bridge (vendor=8086 device=1225 subclass=0)> rev 2 on pci1:0
vx0 <3COM 3C595 Fast Etherlink XL PCI> rev 0 int a irq 11 on pci1:12
        mapreg[10] type=1 addr=0000f8c0 size=0040.
mii[*mii*]: disable 'auto select' with DOS util! address 00:60:97:12:60:e8
ahc0 <Adaptec aic7870 SCSI host adapter> rev 3 int a irq 7 on pci1:13
        mapreg[10] type=1 addr=0000fc00 size=0100.
        mapreg[14] type=0 addr=ff9ff000 size=1000.
        reg16: ioaddr=0xfc00 size=0x100
ahc0: Reading SEEPROM...checksum error
ahc0: No SEEPROM availible
ahc0: Using left over BIOS settings
ahc0: aic7870 Wide Channel, SCSI Id=7, 16 SCBs
ahc0: Reseting Channel A
ahc0: Downloading Sequencer Program...Done
ahc0: Probing channel A
ahc0 waiting for scsi devices to settle
ahc0: target 0 using 16Bit transfers
ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
Sending SDTR!!
(ahc0:0:0): "HP 2.13 GB 1st ### 1221" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 2033MB (4165272 512 byte sectors)
sd0(ahc0:0:0): with 3511 cyls, 11 heads, and an average 107 sectors/track
ahc0: target 5 synchronous at 4.0MHz, offset = 0xf
(ahc0:5:0): "TOSHIBA CD-ROM XM-5301TA 1895" type 5 removable SCSI 2
cd0(ahc0:5:0): CD-ROM 
cd0(ahc0:5:0): NOT READY asc:3a,0 Medium not present
can't get the size
ahc1 <Adaptec aic7870 SCSI host adapter> rev 3 int a irq 10 on pci1:14
        mapreg[10] type=1 addr=0000f400 size=0100.
        mapreg[14] type=0 addr=ff9fe000 size=1000.
        reg16: ioaddr=0xf400 size=0x100
ahc1: Reading SEEPROM...checksum error
ahc1: No SEEPROM availible
ahc1: Using left over BIOS settings
ahc1: aic7870 Wide Channel, SCSI Id=6, 16 SCBs
ahc1: Reseting Channel A
ahc1: Downloading Sequencer Program...Done
ahc1: Probing channel A
ahc1 waiting for scsi devices to settle
ahc1: target 4 using 16Bit transfers
ahc1: target 4 synchronous at 10.0MHz, offset = 0x8
Sending SDTR!!
(ahc1:4:0): "HP 2.13 GB 1st ### 1221" type 0 fixed SCSI 2
sd1(ahc1:4:0): Direct-Access 2033MB (4165272 512 byte sectors)
sd1(ahc1:4:0): with 3511 cyls, 11 heads, and an average 107 sectors/track
pci1: uses 8192 bytes of memory from ff9fe000 upto ff9fffff.
pci1: uses 576 bytes of I/O space from f400 upto fcff.
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 not found at 0x2f8
lpt0 not found at 0xffffffff
mse0: wrong signature ff
mse0 not found at 0x23c
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
wdc0 not found at 0x1f0
npx0 on motherboard
npx0: INT 16 interface
imasks: bio c00004c0, tty c0030812, net c0030812
Device configuration finished.
Considering FFS root f/s.
changing root device to sd0a
configure() finished.
sd0s1: type 0xa5, start 0, end = 4165271, size 4165272 : OK
Automatic reboot in progress...
/dev/rsd0a: clean, 851096 free (15688 frags, 104426 blocks, 0.9% fragmentation)
vx0: strange connector type in EEPROM: 6
vx0: assuming AUI
vx0: strange connector type in EEPROM: 6
vx0: assuming AUI


># pciconf -l
205 root@quattro:/tmp/# pciconf -l    
pci0:0:0:       class=0x060000 card=0x00000000 chip=0x12258086 rev=0x02
pci0:14:0:      class=0x000000 card=0x00000000 chip=0x04828086 rev=0x05
pci0:15:0:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci0:15:1:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci0:15:2:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci0:15:3:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci0:15:4:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci0:15:5:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci0:15:6:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci0:15:7:      class=0xff0000 card=0x00088086 chip=0x00088086 rev=0x00
pci1:0:0:       class=0x060000 card=0x00000000 chip=0x12258086 rev=0x02
pci1:12:0:      class=0x020000 card=0x00000000 chip=0x905010b7 rev=0x00
pci1:13:0:      class=0x010000 card=0x00000000 chip=0x70789004 rev=0x03
pci1:14:0:      class=0x010000 card=0x00000000 chip=0x70789004 rev=0x03


list_pcireg is just a quick perl hack:
#!/usr/bin/perl
$| = 1;
for( $addr = hex($ARGV[1]); $addr <= hex($ARGV[2]); $addr++){
   printf "%x ", $addr; 
   system("/usr/sbin/pciconf -r $ARGV[0] $addr");
}


203 root@quattro:/tmp/# ./list_pcireg pci0:0:0 0x40 0x5f
40 0x00000000
41 0x00000000
42 0x00000000
43 0x00000000
44 0x00000000
45 0x00000000
46 0x00000000
47 0x00000000
48 0x00000000
49 0x00000000
4a 0x00000000
4b 0x00000000
4c 0x00000000
4d 0x00000000
4e 0x00000000
4f 0x00000000
50 0x76e8f006
51 0x76e8f006
52 0x76e8f006
53 0x76e8f006
54 0x000500ae
55 0x000500ae
56 0x000500ae
57 0x000500ae
58 0x00000000
59 0x00000000
5a 0x00000000
5b 0x00000000
5c 0x00000000
5d 0x00000000
5e 0x00000000
5f 0x00000000

204 root@quattro:/tmp/# ./list_pcireg pci1:0:0 0x40 0x5f
40 0x0000ff01
41 0x0000ff01
42 0x0000ff01
43 0x0000ff01
44 0x00000000
45 0x00000000
46 0x00000000
47 0x00000000
48 0x00000000
49 0x00000000
4a 0x00000000
4b 0x00000000
4c 0x00000000
4d 0x00000000
4e 0x00000000
4f 0x00000000
50 0x76e8f007
51 0x76e8f007
52 0x76e8f007
53 0x76e8f007
54 0x000700ae
55 0x000700ae
56 0x000700ae
57 0x000700ae
58 0x00000000
59 0x00000000
5a 0x00000000
5b 0x00000000
5c 0x00000000
5d 0x00000000
5e 0x00000000
5f 0x00000000


Terje Marthinussen
terjem@cc.uit.no




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