X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C75F5F.7585905D@onstor-exch02.onstor.net>; Mon, 5 Mar 2007 12:50:00 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: exception output
Date: Mon, 5 Mar 2007 12:49:59 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E02A95BE7@onstor-exch02.onstor.net>
In-Reply-To: <20070305110330.371a72ab@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: exception output
Thread-Index: AcdfWPbrNCJexM92Q+uTi/wFX7sjoAAA+hbw
From: "Warren Gale" <warren.gale@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

HI Andy,
  Your right..Not much to go on...
Well this is what I found..
I made a special version for Dan that has some mods to the 83816
(MAC)config registers. (Auto Negotiation) (sc 0 / 1 ports)
From the Cause register below it seem to have an interrupt from Int_7
This is from the 83816.. (Mac 1)=20

------------------------ prom code  changes -------
int
dp83816_initRegs(dp83816_cfg_t *dpCfg)
{
        ushort16  *addr;
        uint32 *reg;
        uint32 val;
        dp83816_regs_t *regs;
        dp83816_cr_t cr;
        dp83816_cfgr_t cfg;
        dp83816_rxcfgr_t rxcfg;
        dp83816_txcfgr_t txcfg;
        dp83816_rfcr_t rfcr;
        dp83816_pcr_t pcr;

        //printf("[dp83816_initRegs] Enter\n");
        regs =3D dpCfg->regs;

        /*
         * Setup Config Register.
         */
        cfg.wd =3D 0;

        cfg.bits.pint_acen =3D 1;
        cfg.bits.pause_adv =3D 1;
        cfg.bits.aneg_sel  =3D 0x7;
// 4Dan this is the Auto-negotiation Select field
//      cfg.bits.aneg_sel  =3D 0x7; // 7 =3D Auto-negotiation enabled,
advertise 10/100 Mb/s half & full duplex
        cfg.bits.aneg_sel  =3D 0x6; // 6 =3D Auto-negotiation disabled,
force 100 Mb/s full duplex
        cfg.bits.reqalg    =3D 0;
        cfg.bits.pesel     =3D 1;
        cfg.bits.brom_dis  =3D 1;
        cfg.bits.bem       =3D 0;
        cfg.wd |=3D 0x00040000;

        dp83816_writeReg(&regs->cfg, cfg.wd);

//4Dan
        val =3D 0x0000A100;    //software reset Auto-negotiation off
100Mbs Full Duplex
        // dp83816_writeReg(&regs->bmcr, val);
        reg =3D (uint32 *)0xb9000080;
        *reg =3D val;
        reg =3D (uint32 *)0xb9800080;
        *reg =3D val;
//4Dan
------------------------------------------------------------------------
----
Looks like configuration for "sc0/1" was changed..

I can't find "DanS" directories any more either.=20
Use to be  "/n/users/dans/"
Don't know if this helps at all...
=20
Warren


-----Original Message-----
From: Andy Sharp=20
Sent: Monday, March 05, 2007 11:04 AM
To: Warren Gale
Subject: exception output

Warren,

Here is the output from the PROM:

SSC-PROM> bsd rt add 10.0.0.0 255.255.0.0 10.2.0.1
SSC-PROM> load -a 83000000 10.0.0.42 vmlinux.bin
load, ip addr =3D 0xa00002a, fname =3D vmlinux.bin
loading vmlinux.bin from 0xa00002a at 0x83000000
tpl_findBindCb prot=3D17 lport=3D9736
tpl_allocBindCb
tftp_tplAddConnInd
TFTP transfer completed.
tftp_tplDelConnInd
binary load, 2347144 bytes (0x23d088)
SSC-PROM> g
env[0] =3D 80388118:.cpuclock=3D799991712.
env[1] =3D 80388168:.memsize=3D512.
env[2] =3D 803881b8:.osloadoptions=3DmAt.
env[3] =3D 80388208:.boot=3Dcold.
env[4] =3D 80388258:.busclock=3D133.
env[5] =3D 803882a8:.ipaddr=3D10.2.9.7.
env[6] =3D 803882f8:.netmask=3D255.255.0.0.
env[7] =3D 80388348:.macaddr0=3D.00:07:34:02:9d:00.
env[8] =3D 80388398:.macaddr1=3D.00:07:34:02:9d:01.
env[9] =3D 803883e8:.bootdev=3D/dev/wd1a.

PMON Sys exception
EPC:      0x8300675c
RA:       0x8008cd70
Cause:    00008020
Autoreboot set "off", stopping in debug mode
DEBUG-PROM-SSC:4 > r
           zero              at               v0               v1
$00- 0000000000000000 0000000000000034 0000000000000fab ffffffff802d500c
            a0               a1               a2               a3
$04- ffffffff8300675c 0000000000008020 ffffffff8320d400 0000000000000000
            t0               t1               t2               t3
$08- 0000000000000005 0000000000000035 0000000000000035 000000000000002e
            t4               t5               t6               t7
$12- 0000000000000032 0000000000000035 0000000000000035 000000000000002e
            s0               s1               s2               s3
$16- 000000000000000a ffffffff80388100 ffffffff80031b8c ffffffff800c0000
            s4               s5               s6               s7
$20- ffffffff800c0000 000000000000000a ffffffff80388118 ffffffff800332f0
            t8               t9               k0               k1
$24- ffffffff819fda3c ffffffff818a1df8 0000000000000000 000000000005055f
            gp               sp               s8               ra
$28- ffffffff83136990 ffffffff803880b0 ffffffff83000080 ffffffff8008cd70
DEBUG-PROM-SSC:5 >
