Subject: Re: Joys with the new adaptec driver
To: None <wrstuden@nas.nasa.gov>
From: None <Havard.Eidnes@runit.sintef.no>
List: port-macppc
Date: 03/12/2000 19:11:32
----Next_Part(Sun_Mar_12_19:10:08_2000_561)--
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I've done some testing of the new ahc code on my Mac 7600, and we
clinched one bug -- the downloaded sequencer program needs to be
byte-swapped on big-endian machines:

--- aic7xxx.c.old       Sun Mar 12 19:04:46 2000
+++ aic7xxx.c   Sun Mar 12 19:04:47 2000
@@ -4666,6 +4666,7 @@
                                      | (fmt1_ins->opcode << 25);
                        }
                }
+               instr.integer =3D htole32(instr.integer);
                ahc_outsb(ahc, SEQRAM, instr.bytes, 4);
                break;
        default:

However, that was not sufficient to make it go.  I fiddled with
AHC_DEBUG, used the default value in the commented-out #define in
aic7xxxvar.h (had to do a little surgery to get ahc_print_ccb
compiled; it's trivial changing "#if 0" to "#ifdef AHC_DEBUG"),
and the end of the boot messages follow below.  Apparently the
HADDR looks quite suspicious...

If anyone else has any hints as to what might be wrong, that'd be
great.


Regards,

- H=E5vard

----Next_Part(Sun_Mar_12_19:10:08_2000_561)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

wsdisplay0 at ofb0
Apple Computer PlanB (undefined subclass 0x00, revision 0x01) at pci1 dev 13 function 0 not configured
scsibus0: waiting 2 seconds for devices to settle...
probe(ahc0:0:0): opcode 0 tag 1d len 0 flags 4000 control 40 fpos 1 rate 0
ahc0: possible PCI intr: CCHADDR =  f0f0f0f HADDR = 0
probe(ahc0:0:0): SCB 1d - timed out in Data-out phase, SEQADDR == 0x1
SCSIRATE == 0x0
scb:0xe0147488 tag 1d control:0x40 tcl:0x0 cmdlen:6 cmdpointer:0x60c79e00
        datlen:0 data:0x0 segs:0x0 segp:0x0
        sg_addr:0 sg_len:0
        cdb:0 0 0 0 0 0 0 0 0 0 0 0
probe(ahc0:0:0): SCB 1d: Immediate reset.  Flags = 0x4040
probe(ahc0:0:0): ahc_done opcode 0 tag 1d
probe(ahc0:0:0): no longer in timeout, status = 0
probe(ahc0:0:0): opcode 0 tag 1d len 0 flags 4000 control 40 fpos 1 rate 0
probe(ahc0:0:0): ahc_done opcode 0 tag 1d
ahc0: Issued Channel A Bus Reset. 2 SCBs aborted
probe(ahc0:0:0): opcode 0 tag 1d len 0 flags 4000 control 40 fpos 2 rate 0
ahc0: possible PCI intr: CCHADDR =  f0f0f0f HADDR = 0
probe(ahc0:0:0): SCB 1d - timed out in Data-out phase, SEQADDR == 0x1
SCSIRATE == 0x0
scb:0xe0147488 tag 1d control:0x40 tcl:0x0 cmdlen:6 cmdpointer:0x60c79e00
        datlen:0 data:0x0 segs:0x0 segp:0x0
        sg_addr:0 sg_len:0
        cdb:0 0 0 0 0 0 0 0 0 0 0 0
probe(ahc0:0:0): SCB 1d: Immediate reset.  Flags = 0x4040
probe(ahc0:0:0): ahc_done opcode 0 tag 1d
probe(ahc0:0:0): no longer in timeout, status = 0
probe(ahc0:0:0): opcode 0 tag 1d len 0 flags 4000 control 40 fpos 1 rate 0
panic: lockmgr: no context
Stopped at      0x293c18:       lwz r0, r1, 0x14,
db> 

----Next_Part(Sun_Mar_12_19:10:08_2000_561)----