SCSI PMC card
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ok here is the information you asked for. I am using 2.4.3 from kernel.org. I was using 2.4.3-pre3 forever from the linuxppc_2_4 stable tree and I had the same mappings. I recently grabbed the 2.4.3 tarball from kernel.org and updated my bk tree with it. I did check every change I committed to make sure nothing looked bad. I had to do this under the gun so please excuse the cross breeding of bk and kernel.org.
The SPAN card is the PMC SPAN from motorola that gives you 2 extra PMC slots.
Here is the output of my 2400 boot WITHOUT the SCSI card and WITHOUT the SPAN. I have enabled DEBUG in drivers/pci/pci.c and arch/ppc/kernel/pci.c along with adding my own own debugs (ignore the BJW: lines )
OpenPIC timer frequency is 12.500098 MHzreqest_irq() for irq 16 !reqest_irq() for irq 2 !time_init: decrementer frequency = 24.999999 MHz
Calibrating delay loop... 699.59 BogoMIPS
Memory: 124848k available (1048k kernel code, 664k data, 88k init, 0k highmem) Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes) Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 8192 (order: 4, 65536 bytes) POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
BJW: Bus 0
Scanning bus 00
Found 00:00 [1057/4803] 000600 00
Fixup mem res, dev: 0.0, res_start: 3c000000->fc000000
Found 00:58 [10ad/0565] 000601 00
Found 00:59 [10ad/0105] 000101 00
Found 00:68 [10e3/0000] 000680 00
Fixup mem res, dev: 0.d, res_start: 2ff7f000->eff7f000
Found 00:70 [1011/0019] 000200 00
Fixup mem res, dev: 0.e, res_start: 2ff7ec00->eff7ec00
Fixup mem res, dev: 0.e, res_start: fffc0000->bffc0000
Found 00:88 [14c1/8043] 000000 00
Fixup mem res, dev: 0.11, res_start: 2e000000->ee000000
Fixup mem res, dev: 0.11, res_start: fff80000->bff80000
Fixups for bus 00
Bus scan for 00 returning with max=00
BJW: setup mem_resource flags 0
BJW: setup mem_resource flags 0
BJW: setup mem_resource flags 0
BJW: All busses probed
BJW: Fixingup
Setting PCI interrupts for a "MVME 2400"
Set winbond IDE to native mode
BJW: Done
BJW: Allocate
1
PCI:0:0:0: Resource fc000000-fc03ffff (f=200)
PCI:0:b:1: Resource 0ff7fff8-0ff7ffff (f=109)
PCI:0:b:1: Resource 0ff7fff4-0ff7fff7 (f=105)
PCI:0:b:1: Resource 0ff7ffe8-0ff7ffef (f=109)
PCI:0:b:1: Resource 0ff7ffe4-0ff7ffe7 (f=105)
PCI:0:b:1: Resource 0ff7ffd0-0ff7ffdf (f=101)
PCI:0:b:1: Resource 0ff7ffc0-0ff7ffcf (f=101)
PCI:0:d:0: Resource eff7f000-eff7ffff (f=200)
PCI:0:d:0: Resource 0ff7e000-0ff7efff (f=101)
PCI:0:e:0: Resource eff7ec00-eff7efff (f=200)
PCI:0:11:0: Resource ee000000-eeffffff (f=120c)
2
3BJW: Done
Linux NET4.0 for Linux 2.4
.
.
Thanks
Brian
Quoted 55 lines · you
Quoted 3 lines · Brian Waite
I am trying to put a Cyclone SCSI PMC (symbios 53c895 chipset) card on my Motorola MVME2400 and I see some wierd stuff. If I put the SCSI card on a SPAN card, the kernel comes up and see the card, but when I place the
SCSI
Quoted 2 lines
card on either of the 2 PMC slots on the base, I hang while probing PCI hardware. It gets part way through the PCI fixup resources section and
just
Quoted 1 line
hangs. Here is my boot
<snip>
Quoted 5 lines
PCI: Probing PCI hardware
Fixup mem res, dev: 0.0,res_start: 3c000000->fc000000 Fixup mem res, dev: 0.d,res_start: 2ff7f000->eff7f000 Fixup mem res, dev: 0.e,res_start: 2ff7ec00->eff7ec00 Fixup mem res, dev: 0.e,res_start:fffc0000->bffc0000You are in resource hell.
In a PReP map,
0xfffc0000isn't a legal PCI base address since it lies in PCI's system memory space (0x80000000-0xffffffff). I seem to remember a bug in the ppc resourcepci_mem_offsethandling that appliedpci_mem_offsettwice in some cases. It is fixed at least in the 2_4_devel tree. You can confirm this by reading the contents of the BAR corresponding to that last fixup directly. I'll bet that it is0x3ffc0000, PPCBUG's autoconfiguration code is real good so I highly doubt that it assigned0xfffc0000to a memory BAR.#define DEBUG in
drivers/pci/pci.candarch/ppc/kernel/pci.cand repost your results.Quoted 3 lines
A thing to note is that I do not have and SCSI support built into this kernel. I built
scsi_mod,sd_md, and sym53c8xx and load them as modules. I am using the 2.4.3 kernel and I have tried building the sym module intothe
Quoted 1 line
driver, but the hangs occurs before the driver ever loads! Any idea what
has
Quoted 1 line
gone wrong while tring to probe this card? It is strage that it works
fine on
Quoted 1 line
a SPAN card. Too bad that is not a solution for us. PS this worked under
2.2
Quoted 7 lines
Quoted 1 line
so I know the card is OK.
By SPAN card do you mean a PMCSPAN? Which 2.4.3 are you using? kernel.org,
linuxppc_2_4,linuxppc_2_4_devel?Regards,
--
Brian Waite
Looking for a TeraFLOP in a closet
www.fastcluster.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Ok now I moved up to a 2.4.9 kernel from the linuxppc_2_4_stable tree and I see the same problem. Here is the output of debug being defined in both drivers/pci.c and arch/ppc/kernel/pci.c. Below are the dumps of 2 boots, one without the SCSI card attached and one with the SCSI card attached to the baseboard. Does anything looks suspicious? This card did work on the base under 2.2.18 when I initiaslly tested it.
PS I can't seem to get my 2.4 devel tree to boot on the 2400, the decompress_kernel fails with fffffffd.
Without SCSI card attached:
OpenPIC Version 1.3 (2 CPUs and 16 IRQ sources) at effde000 OpenPIC timer frequency is 12.500243 MHztime_init: decrementer frequency = 24.999957 MHz
Calibrating delay loop... 699.59 BogoMIPS
Memory: 125408k available (1000k kernel code, 540k data, 96k init, 0k highmem) Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes) Inode-cache hash table entries: 8192 (order: 4, 65536 bytes) Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Scanning bus 00
Found 00:00 [1057/4803] 000600 00
Fixup res 1 (200) of dev 00:00.0: 3c000000 -> fc000000
Found 00:58 [10ad/0565] 000601 00
Found 00:59 [10ad/0105] 000101 00
Found 00:68 [10e3/0000] 000680 00
Fixup res 0 (200) of dev 00:0d.0: 2ff7f000 -> eff7f000
Found 00:70 [1011/0019] 000200 00
Fixup res 1 (200) of dev 00:0e.0: 2ff7ec00 -> eff7ec00 PCI:00:0e.0 Resource 6 [fffc0000-ffffffff] is unassigned
Fixups for bus 00
Bus scan for 00 returning with max=00
Setting PCI interrupts for a "MVME 2400"
PCI:00:00.0: Resource 1: fc000000-fc03ffff (f=200)
PCI:00:0b.1: Resource 0: 0ff7fff8-0ff7ffff (f=109)
PCI:00:0b.1: Resource 1: 0ff7fff4-0ff7fff7 (f=105)
PCI:00:0b.1: Resource 2: 0ff7ffe8-0ff7ffef (f=109)
PCI:00:0b.1: Resource 3: 0ff7ffe4-0ff7ffe7 (f=105)
PCI:00:0b.1: Resource 4: 0ff7ffd0-0ff7ffdf (f=101)
PCI:00:0b.1: Resource 5: 0ff7ffc0-0ff7ffcf (f=101)
PCI:00:0d.0: Resource 0: eff7f000-eff7ffff (f=200)
PCI:00:0d.0: Resource 1: 0ff7e000-0ff7efff (f=101)
PCI:00:0e.0: Resource 0: 0ff7df80-0ff7dfff (f=101)
PCI:00:0e.0: Resource 1: eff7ec00-eff7efff (f=200)
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI edttyS00 at 0x03f8 (irq = 4) is a 16550A
block: 128 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: DC21143 at 0xff7df80 (PCI bus 0, device 14), h/w address
08:00:3e:2f:14:9, and requires IRQ18 (provided by PCI BIOS).
de4x5.c:V0.546 2001/02/22 [email protected]
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 1189k freed
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 96k init 12k pmac 4k chrp 4k openfirmware
Good morning from the ROMFS
mounting /proc..
With SCSI card attached:
OpenPIC Version 1.3 (2 CPUs and 16 IRQ sources) at effde000 OpenPIC timer frequency is 12.500243 MHztime_init: decrementer frequency = 24.999957 MHz
Calibrating delay loop... 699.59 BogoMIPS
Memory: 125408k available (1000k kernel code, 540k data, 96k init, 0k highmem) Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes) Inode-cache hash table entries: 8192 (order: 4, 65536 bytes) Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Scanning bus 00
Found 00:00 [1057/4803] 000600 00
Fixup res 1 (200) of dev 00:00.0: 3c000000 -> fc000000
Found 00:58 [10ad/0565] 000601 00
Found 00:59 [10ad/0105] 000101 00
Found 00:68 [10e3/0000] 000680 00
Fixup res 0 (200) of dev 00:0d.0: 2ff7f000 -> eff7f000
Found 00:70 [1011/0019] 000200 00
Fixup res 1 (200) of dev 00:0e.0: 2ff7ec00 -> eff7ec00 PCI:00:0e.0 Resource 6 [fffc0000-ffffffff] is unassigned
Found 00:88 [1000/000c] 000100 00
<HANGS HERE>
--
Brian Waite
Looking for a TeraFLOP in a closet
www.fastcluster.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 7 lines · Brian Waite
Ok now I moved up to a 2.4.9 kernel from the
linuxppc_2_4_stabletree and I see the same problem. Here is the output of debug being defined in bothdrivers/pci.candarch/ppc/kernel/pci.c. Below are the dumps of 2 boots, one without the SCSI card attached and one with the SCSI card attached to the baseboard. Does anything looks suspicious? This card did work on the base under 2.2.18 when I initiaslly tested it.
Everything looks good...excepting the unassigned resource (which isn't used by the tulip driver anyway). I've never seen a hard hang except on a new bridge design bringup so you're going to have to trace the flow through all the resource assignment process.
Quoted 2 lines
PS I can't seem to get my 2.4 devel tree to boot on the 2400, the
decompress_kernelfails with fffffffd.
I think Gabriel Paubert is the only other person I've seen using Linux on a 2400 lately...maybe he'll chime in. It could be a temporary effect of the bootloader reorg right now...prep is being touched.
Regards,
--
Matt Porter
MontaVista Software, Inc.
[email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/