<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Edward Bockhoefer wrote:
<blockquote cite="mid44D20980.3030702@datadesigncorp.net" type="cite">Thank
you for the reply David, <br>
I have started the montavista 10/100 enet port from the xilinx edk
generated 2.4 driver to the 2.6 driver. Unfortunately, I can't post the
driver port publicly because it's not GLP'd, as far as I know. We only
needed a 10/100 mac, so we didn't bother with a TEMAC. I will work on
this more today. If you want to send me your TEMAC code, please do so.
I can always use the reference.<br>
</blockquote>
<br>
&nbsp;&nbsp;&nbsp; The original message for the GB TEMAC 2.6 patch is below. It is
from Andrei Konovalov.<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;&nbsp; I think it is just a newer version of the 2.4 Driver. Regardless
it just worked for me. I had to make a very minor change - I added an
"u32 spd" to the private data structure, initialized it to 10 (I am on
a 10Mhz Net), and found every reference to 1000Mhz replaced it with
lp-&gt;spd; There was one place I needed a switch statement to load the
appropriate value. I think there were only 3 really trivial changes. I
would post my changes but I am not setup to post them as a patch right
now. If you really want them I will just send my adaptor.c and you can
use everything else from the patch referenced below.<br>
<br>
&nbsp;&nbsp;&nbsp; I have also attached my Local Link TEMAC code. That is basically a
single file driver. Again I am not able to provide it as a patch at the
moment. It (much like the PLB TEMAC driver) requires a platform data
entry for the LL TEMAC in your Board support code. Though it could be
fairly trivially changed to work from defines. I beleive there are only
2 critical values - the DCR base address, the TEMAC memory address.
There is an IRQ value, but I can only get the LL TEMAC to generate PHY
interupts, so the driver is polled. It does work albeit with lots of
dropped packets, but that is probably debugging code and optimizing the
poll rate.<br>
&nbsp;&nbsp;&nbsp; The driver is solely my own work based loosely on several other
drivers, and is GPL'd. According to my client LL TEMAC performance has
tested abysmally in comparision to the PLB TEMAC, however the kicker
was the inability to generate rx interupts. We are working on other OS
ports, and some do not have strictly polled options, so for&nbsp; now the LL
TEMAC is on the back burner.<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; Of course I have learned an incredible amount about Linux Network
Drivers as well as now having a reasonable understanding of the
differences between the assorted Xilinx TEMAC's<br>
<br>
<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
 cellspacing="0">
  <tbody>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Return-Path: </th>
      <td><a class="moz-txt-link-rfc2396E" href="mailto:linuxppc-embedded-bounces+dhlii=dlasys.net@ozlabs.org">&lt;linuxppc-embedded-bounces+dhlii=dlasys.net@ozlabs.org&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Received: </th>
      <td>from colinux.fixit1.net (colinux.fixit1.com [216.37.233.220])
by xm.dlasys.net (Cyrus v2.2.12-Debian-2.2.12-4) with LMTPA; Tue, 14
Mar 2006 00:34:38 -0500</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">X-Sieve: </th>
      <td>CMU Sieve 2.2</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Received: </th>
      <td>from ozlabs.org ([203.10.76.45]:45331) by colinux.fixit1.net
with esmtp (Exim 4.50 #1 (Debian)) id 1FIny3-0002KK-J4 for
<a class="moz-txt-link-rfc2396E" href="mailto:dhlii@dlasys.net">&lt;dhlii@dlasys.net&gt;</a>; Mon, 13 Mar 2006 09:24:16 -0500</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Received: </th>
      <td>from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org
(Postfix) with ESMTP id 628F067B23 for <a class="moz-txt-link-rfc2396E" href="mailto:dhlii@dlasys.net">&lt;dhlii@dlasys.net&gt;</a>; Tue,
14 Mar 2006 01:17:33 +1100 (EST)</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">X-Original-To:
      </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Delivered-To:
      </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Received: </th>
      <td>from mail.dev.rtsoft.ru (unknown [85.21.88.2]) by ozlabs.org
(Postfix) with SMTP id A94B7679E2 for
<a class="moz-txt-link-rfc2396E" href="mailto:linuxppc-embedded@ozlabs.org">&lt;linuxppc-embedded@ozlabs.org&gt;</a>; Tue, 14 Mar 2006 01:17:21 +1100
(EST)</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Received: </th>
      <td>(qmail 31931 invoked from network); 13 Mar 2006 14:17:16 -0000</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Received: </th>
      <td>from unknown (HELO ?192.168.1.108?) (192.168.1.108) by
mail.dev.rtsoft.ru with SMTP; 13 Mar 2006 14:17:16 -0000</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Message-ID: </th>
      <td><a class="moz-txt-link-rfc2396E" href="mailto:44157EEF.5000900@ru.mvista.com">&lt;44157EEF.5000900@ru.mvista.com&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Date: </th>
      <td>Mon, 13 Mar 2006 17:17:19 +0300</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">From: </th>
      <td>Andrei Konovalov <a class="moz-txt-link-rfc2396E" href="mailto:akonovalov@ru.mvista.com">&lt;akonovalov@ru.mvista.com&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">User-Agent: </th>
      <td>Mozilla Thunderbird 1.0.2-6 (X11/20050513)</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">X-Accept-Language:
      </th>
      <td>en-us, en</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">MIME-Version:
      </th>
      <td>1.0</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">To: </th>
      <td>linuxppc-embedded list <a class="moz-txt-link-rfc2396E" href="mailto:linuxppc-embedded@ozlabs.org">&lt;linuxppc-embedded@ozlabs.org&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Subject: </th>
      <td>[PATCH][RFC] ppc32: TEMAC driver for ML403</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">X-BeenThere: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">X-Mailman-Version:
      </th>
      <td>2.1.7</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Precedence: </th>
      <td>list</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">List-Id: </th>
      <td>Linux on Embedded PowerPC Developers Mail List
&lt;linuxppc-embedded.ozlabs.org&gt;</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">List-Unsubscribe:
      </th>
      <td><a class="moz-txt-link-rfc2396E" href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">&lt;https://ozlabs.org/mailman/listinfo/linuxppc-embedded&gt;</a>,
<a class="moz-txt-link-rfc2396E" href="mailto:linuxppc-embedded-request@ozlabs.org?subject=unsubscribe">&lt;mailto:linuxppc-embedded-request@ozlabs.org?subject=unsubscribe&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">List-Archive:
      </th>
      <td><a class="moz-txt-link-rfc2396E" href="http://ozlabs.org/pipermail/linuxppc-embedded">&lt;http://ozlabs.org/pipermail/linuxppc-embedded&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">List-Post: </th>
      <td><a class="moz-txt-link-rfc2396E" href="mailto:linuxppc-embedded@ozlabs.org">&lt;mailto:linuxppc-embedded@ozlabs.org&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">List-Help: </th>
      <td><a class="moz-txt-link-rfc2396E" href="mailto:linuxppc-embedded-request@ozlabs.org?subject=help">&lt;mailto:linuxppc-embedded-request@ozlabs.org?subject=help&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">List-Subscribe:
      </th>
      <td><a class="moz-txt-link-rfc2396E" href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">&lt;https://ozlabs.org/mailman/listinfo/linuxppc-embedded&gt;</a>,
<a class="moz-txt-link-rfc2396E" href="mailto:linuxppc-embedded-request@ozlabs.org?subject=subscribe">&lt;mailto:linuxppc-embedded-request@ozlabs.org?subject=subscribe&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Content-Type:
      </th>
      <td>text/plain; charset="us-ascii"</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Content-Transfer-Encoding:
      </th>
      <td>7bit</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Sender: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:linuxppc-embedded-bounces+dhlii=dlasys.net@ozlabs.org">linuxppc-embedded-bounces+dhlii=dlasys.net@ozlabs.org</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Errors-To: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:linuxppc-embedded-bounces+dhlii=dlasys.net@ozlabs.org">linuxppc-embedded-bounces+dhlii=dlasys.net@ozlabs.org</a></td>
    </tr>
  </tbody>
</table>
<br>
<br>
<pre>Here:
   <a class="moz-txt-link-freetext" href="http://source.mvista.com/~ank/paulus-powerpc/20060309/">http://source.mvista.com/~ank/paulus-powerpc/20060309/</a>
is an StGIT patchset against
   516450179454de9e689e0a53ed8f34b896e8651c
   branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc

virtex-ppc_sys_devices-fix.patch - is the same fix posted by Grant Likely few days ago (only formatting is different),
ppc32_xilinx_edk_temac.patch - the low level code from EDK-7.1i used by the this driver
ppc32_xilinx_edk_temac_mods.patch - few modifications to EDK-7.1i code to get rid of compiling the xparameters.h
   #defines into the driver. These mods should not be needed after EDK-8.1 SP2 is released.
ppc32_xilinx_temac.patch - the linux driver itself
ppc32_xilinx_ml403_temac.patch - modifications to the ML403 platform code to add TEMAC.
temac.paulus-powerpc.20060309.tgz - all the patches put together into a tarball (just in case).
temac.config - .config used.

This is not the final version yet (no MII support; SGDMA is operational, but seems to need some additional work).
And I would probably wait for EDK-8.1 SP2 (up to one month or so) where both the TEMAC IP and the EDK code
should be updated.

But it would be nice to know if there is anything to rework in the current code to get the driver
accepted into linux/kernel/git/paulus/powerpc.git or linux/kernel/git/torvalds/linux-2.6.git tree.

And probably someone could start playing with the current driver now. At least I was able to mount
the root over NFS and to run several netperf tests.


Thanks,
Andrei
_______________________________________________
Linuxppc-embedded mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org</a>
<a class="moz-txt-link-freetext" href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a>
</pre>
<br>
<pre class="moz-signature" cols="72">-- 
Dave Lynch                                                       DLA Systems
Software Development:                                           Embedded Linux
717.627.3770                <a class="moz-txt-link-abbreviated" href="mailto:dhlii@dlasys.net">dhlii@dlasys.net</a>           <a class="moz-txt-link-freetext" href="http://www.dlasys.net">http://www.dlasys.net</a>
fax: 1.253.369.9244                                    Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.

"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
</pre>
</body>
</html>