[linux-tr] Re: [parisc-linux] IBM TR patch

mike_phillips@urscorp.com mike_phillips@urscorp.com
Tue, 15 Jan 2002 15:10:47 -0500


>> it's not broken, the assumptions in ibmtr are.  after you've ioremapped
>> a region, you can call readb/writeb on it.  ibmtr assumes you can just
>> do direct memory accesses.  now, this is something we want to fix,
>> but it's not a bug in the PA code.

Its in ibmtr purely for historical reasons, the driver is quite old and 
was around before the other architectures really came on stream, so we 
never had to worry about issues like this. 

>Then maybe it's best to define the TR_CHECKSUM macro to 0 as default with 

>an exception of architectures where the above assumption in true (i.e. 
>alpha, i386 and maybe ppc, as well) to gain the extra performance boost 
of 
>the IPv4 pre summarisation.

Possibly better to define it based upon the architecture in the code 
itself, either that or remove it altogether. Again because of the age of 
the driver this may be in there for a reason that is not valid anymore.

What I have to ensure is that we don't lose any functionality that we 
already have, i.e. a change for parisc stops i386/alpha/etc from working. 
Also, the pcmcia driver ibmtr_cs relies on ibmtr and, being pcmcia, can be 
used on more architectures and all changes to ibmtr have to be double 
checked against ibmtr_cs. 

Just out of interest, which t/r chipset does the token ring adapter for 
the old 712's use ? If its the tropic chipset I can test on my 712/80. 

Mike Phillips
Linux Token Ring Project
http://www.linuxtr.net