[781] in linux-net channel archive

home help back first fref pref prev next nref lref last post

IBM Token Ring problems

daemon@ATHENA.MIT.EDU (Hildo@CONSUL.NL)
Wed Jul 26 20:59:54 1995

From: Hildo@CONSUL.NL
Date: Wed, 26 Jul 1995 12:18 +0100 (MET)
To: linux-net@vger.rutgers.edu
Cc: dwn@SHELL.PORTAL.COM

 
Hi all,
 
I tried to use an IBM Token Ring adapter today
(the Auto 16/4 Token Ring ISA Adapter), and ran into some problems.
 
(I tried this with 1.2.12 plus the 1.2.0 Token Ring patches,
 and with the 1.3.12 kernel as well.)
 
First of all, if I run the driver without modification,
the card is detected properly, but it dies when trying to use
the srb:
el: tr0: PIOaddr:  a20 seg/intr: b7 mmio base: 000da000 intr: 3
el: tr0: irq=11.
el: tr0: hw address: 0004AC371995
el: tr0: atype=c, drate=d, trel=d, asram=63K, srp=e, dhb(4mb=d, 16mb=b)
el: tr0: shared ram page size: 16K
el: tr0: Using 16K shared RAM
el: tr0: ibmtr.c:v1.1.48 8/7/94 Peter De Schrijver and Mark Swanson
el:            modified 10/3/94 David W. Morris
el: tr0: resetting card
el: tr0: card reset
-----
tr0: Initial tok int received
ti->sram: dbe00000; t->mmio: 000da000; ACA_OFFSET: 00001e00
tr0: init_srb(dbe03fc4):general protection: 0000
EIP:    0010:0018aebf
(rest of OOPS deleted)
 
It turns out that the srb address, computed from the shared-RAM
address, is wrong.
 
I altered the code so that in the ISAPNP case, it sets the
sram address to zero, and used to ISA non-PNP code to determine the
base address.  This works properly:
 
tr0: Initial tok int received
ti->sram: 000d0000; t->mmio: 000da000; ACA_OFFSET: 00001e00
tr0: init_srb(000d3fc4):80 7B 07 00 00 00 00 00 02 DC 01 30 02 E8 02 52
tr0: srb_init_response->encoded_address: DC02
tr0: ntohs(srb_init_response->encoded_address): 02DC
tr0: encoded addr (DC02,02DC,000d02dc): 00:04:AC:37:19:95
tr0: now opening the board...
tr0: Unrecoverable error: error code = 1100
(last 2 messages repeated every few seconds)
 
The error code 1100 occurred when the card was not plugged into the
network.  I took a MAU with a working OS/2 machine attached, and
plugged my machine into the MAU.  Now I get:
tr0: now opening the board...
tr0: Unrecoverable error: error code = 2D00
(last 2 messages repeated every few seconds)
 
And I cannot get any further at this point.
The card works properly when used under OS/2, so it would seem
to work.
 
Any hints?
Thanks in advance, Hildo Biersma

home help back first fref pref prev next nref lref last post