Subject: ISA Probe Dies with 3c509 Installed
To: NetBSD/Alpha Users <port-alpha@NetBSD.ORG>
From: Curt Sampson <cjs@portal.ca>
List: port-alpha
Date: 06/22/1997 17:35:35
I've just compiled up a GENERIC kernel based on sources a couple
of days old, and when I put a 3c509 in my AXPpci33, it dies while
probing the ISA bus (see attachement #1). This occurs in
pci_swiz_io_common.c:pci_swiz_io_read_2() (see attachment #2).  I
don't have enough knowledge of interal bus goop on the Alpha to
fix this, unfortunately.

cjs

Curt Sampson    cjs@portal.ca		Info at http://www.portal.ca/
Internet Portal Services, Inc.		`And malt does more than Milton can
Vancouver, BC   (604) 257-9400		 To justify God's ways to man.' 

----- Attachment #1
NetBSD 1.2G (GENERIC) #0: Sat Jun 21 19:15:32 PDT 1997
    cjs@academic.cynic.net:/usr1/netbsd/co/academic/src/sys/arch/alpha/compile/GENERIC
Alpha PC AXPpci33 ("NoName"), 166MHz
8192 byte page size, 1 processor.
real mem = 33554432 (2072576 reserved for PROM, 31481856 used by NetBSD)
avail mem = 22192128
using 384 buffers containing 3145728 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21066 (pass 2)
lca0 at mainbus0
pci0 at lca0 bus 0
ncr0 at pci0 dev 6 function 0: NCR 53c810 SCSI
ncr0: interrupting at isa irq 11
ncr0: restart (scsi reset).
scsibus0 at ncr0: 8 targets
sd0 at scsibus0 targ 3 lun 0: <SEAGATE, ST31200N, 8630> SCSI2 0/direct fixed
sd0: sd0(ncr0:3:0): 10.0 MB/s (100 ns, offset 8)
1006MB, 2700 cyl, 9 head, 84 sec, 512 bytes/sec
sd1 at scsibus0 targ 5 lun 0: <HP, C3724S, 5153> SCSI2 0/direct fixed
sd1: sd1(ncr0:5:0): 10.0 MB/s (100 ns, offset 8)
1149MB, 3703 cyl, 5 head, 127 sec, 512 bytes/sec
sio0 at pci0 dev 7 function 0: Intel 82378IB PCI-ISA Bridge (System I/O) (rev. 0x03)
isa0 at sio0

fatal kernel trap:

    trap entry = 0x2 (memory management fault)
    a0         = 0x6948
    a1         = 0x1
    a2         = 0x0
    pc         = 0xfffffc000046d21c
    ra         = 0xfffffc000046d208
    curproc    = 0xfffffc00004d34e8
        pid = 0, comm = 

panic: trap
halted.

----- Attachment #2
(kgdb) l *(0xfffffc000046d21c)
0xfffffc000046d21c is in pci_swiz_io_read_2 (../../../../arch/alpha/pci/pci_swiz_io_common.c:163).
158             alpha_mb();
159     
160             tmpioh = ioh + off;
161             offset = tmpioh & 3;
162             port = (u_int32_t *)((tmpioh << 5) | (1 << 3));
163             val = *port;
164             rval = ((val) >> (8 * offset)) & 0xffff;
165     
166             return rval;
167     }