Port-sandpoint archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: DS-207 network failure



Hi,

> I didn't find the time last evening, but now I uploaded a new altboot
> which dumps most of the sknet registers. The whole register space is 16K,
> but I will dump only the first 4K, because the rest was completely zeroed
> in my case (but you may want to check that too, if we don't find anything
> else). Some regions are crashing the system when being read: 0x180-0x190
> and 0xf20-0xf40. I will print "??" for those.

This was very useful - thanks!  The differences are:

--- sk.works.text       2011-05-28 16:52:45.000000000 +0100
+++ sk.fails.text       2011-05-28 22:15:18.000000000 +0100
@@ -1,2 +1,2 @@
-0000:  00 00 00 00 46 04 01 a6 00 00 00 00 00 00 00 00
-0010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0000:  00 00 00 00 4a 04 02 a6 00 00 40 00 ff ff eb bf
+0010:  00 00 00 00 ff 0f 00 00 00 00 00 00 00 00 00 00
@@ -7 +7 @@
-0060:  40 55 15 01 00 00 00 00 40 55 15 01 40 55 15 01
+0060:  40 55 15 01 00 00 00 00 40 55 15 01 80 55 15 01
@@ -9,2 +9,2 @@
-0080:  00 00 00 00 46 04 01 a6 00 00 00 00 00 00 00 00
-0090:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0080:  00 00 00 00 4a 04 02 a6 00 00 40 00 00 00 00 00
+0090:  00 00 00 00 ff 0f 00 00 00 00 00 00 00 00 00 00
@@ -20,2 +20,2 @@
-0130:  00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00
-0140:  00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00
+0130:  d0 c6 d7 04 13 e7 ef 03 04 02 00 00 00 00 00 00
+0140:  85 cf 00 00 e9 bd 00 00 04 02 00 00 82 00 00 00
@@ -26,2 +26,2 @@
-0190:  20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 00
-01a0:  01 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00
+0190:  24 24 24 24 24 24 24 24 24 24 24 24 00 00 00 00
+01a0:  02 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00
@@ -34 +34 @@
-0210:  55 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0210:  56 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00
@@ -61,2 +61,2 @@
-03c0:  00 00 f0 05 00 80 a0 01 01 50 02 fe 00 2e 00 0c
-03d0:  03 00 00 80 00 00 00 00 00 00 04 00 00 00 00 00
+03c0:  00 00 f0 05 04 80 a0 01 01 50 02 fe 00 2e 00 0c
+03d0:  03 00 fc 80 00 00 00 78 00 00 04 00 00 00 00 00
@@ -108 +108 @@
-06b0:  00 00 00 00 40 55 15 01 00 06 00 0a 02 02 02 02
+06b0:  00 00 00 00 80 55 15 01 00 06 00 0a 02 02 02 02
@@ -225,2 +225,2 @@
-0e00:  00 00 00 00 00 00 00 00 01 00 02 00 00 00 00 00
-0e10:  00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00
+0e00:  ff ff ff 00 10 71 2e 00 02 00 02 00 00 00 00 00
+0e10:  00 00 00 00 e6 35 16 a5 04 02 00 00 00 00 00 00
@@ -241 +241 @@
-0f00:  5a 00 00 00 02 e0 fd 0b 00 00 00 00 00 00 00 00
+0f00:  59 00 00 00 01 00 00 00 04 00 00 00 00 00 00 00

which (assuming register offsets correspond to if_skreg.h) is:

Offset  Register        Works           Fails
0x0000  SK_CSR          46 04           4a 04
0x0006  SK_LED          01 a6           02 a6
0x0008  SK_ISR          00 00 00 00     00 00 40 00
0x000C  SK_IMR          00 00 00 00     ff ff eb bf
0x0014  SK_IEMR         00 00 00 00     ff 0f 00 00
0x006C  SK_BMU_TXA_CSR0 40 55 15 01     80 55 15 01
0x0130  SK_TIMERINIT    00 00 00 00     d0 c6 d7 04
0x0134  SK_TIMER        00 00 00 00     13 e7 ef 03
0x0138  SK_TIMERCTL     02              04
0x0140  SK_IMTIMERINIT  00 00 00 00     85 cf 00 00
0x0144  SK_IMTIMER      00 00 00 00     e9 bd 00 00
0x0148  SK_IMTIMERCTL   02              04
0x014C  SK_IMMR         00              82
0x0190  SK_TO0          20              24
0x0190  SK_TO1          20              24
0x0190  SK_TO2          20              24
0x0190  SK_TO3          20              24
0x0190  SK_TO4          20              24
0x0190  SK_TO5          20              24
0x0190  SK_TO6          20              24
0x0190  SK_TO7          20              24
0x0190  SK_TO8          20              24
0x0190  SK_TO9          20              24
0x0190  SK_TO10         20              24
0x0190  SK_TO11         20              24
0x01A0  SK_RAMCTL       01 00           02 00
0x01A2  SK_RITIMER_TST  02 00           0a 00
0x0e00  SK_DPT_INIT     00 00 00 00     ff ff ff 00
0x0e04  SK_DPT_TIMER    00 00 00 00     10 71 2e 00
0x0e08  SK_DPT_TIMER_CTRL
                        01 00           02 00
0x0e14  SK_TSTAMP_COUNT 00 00 00 00     e6 35 16 a5
0x0e18  SK_TSTAMP_CTL   02 02           04 02
0x0f00  SK_GMAC_CTRL    5a 00 00 00     59 00 00 00
0x0f04  SK_GPHY_CTRL    02 e0 fd 0b     01 00 00 00
0x0f08  SK_GMAC_ISR     00 00 00 00     04 00 00 00

I'm not sure if the interrupt mask registers or the timer registers would
make any difference.  However, I do wonder about the altered settings in
SK_GPHY_CTRL.  Also, I have SK_ISR_RX2_EOB set in SK_ISR, which we don't
handle in if_sk.c

Thanks,

J

PS.  Apologies for delay in replying.  I have the DS-207 connected to a Sun
which uses sab(4).  Our driver can drop characters on receive (no flow
control), which made it awkward to transfer files.  So, I spent a while
trying to see if I could fix that instead ;-/

-- 
  My other computer also runs NetBSD    /        Sailing at Newbiggin
        http://www.netbsd.org/        /   http://www.newbigginsailingclub.org/


Home | Main Index | Thread Index | Old Index