From: "Bjoern Slotkowski" <bjoern.slotkowski@imc-berlin.de>
To: <linuxppc-dev@ozlabs.org>
Subject: Networkinterface on MPC5200b
Date: Wed, 17 Aug 2011 13:31:49 +0200 [thread overview]
Message-ID: <FPEIIEKCABPOOBGGCOCHEEKMFEAA.bjoern.slotkowski@imc-berlin.de> (raw)
Hello,
We have two problems when using the fec of the MPC5200b.
The occurence of both problems is very seldom.
1.
Sometimes the first two octets of the MAC-Adress are wrong.
Removing/inserting the driver does not help.
2.
Sometimes the communication stops.
When Removing the driver following message occurs:
net eth0: queues didn't drain
net eth0: tx: index: 9, outdex: 23
net eth0: rx: index: 81, outdex: 82
Is there any known issue about this ?
For the second point I was able to create a situation to reproduce the
behavior:
For this only a wrong checksum has to be appended to the ethernet-frame
transmitted to the fec.
When sending normal frames afterward nothing happens, the comunication is
dead.
It seems as if the part of the bestcom dma which handles the fec stops.
So we modified the driver code:
Normallly when a checksum error occurs, an error interrupt is generated for
the fec-driver and nothing will be done
beside error counting.
We modified the interrupt routine: The bestcom dma for the fec is setup
again.
This modification helps sometimes but not always.
Sometimes receiving frames does not work.
Sometimes sending frames does not work after the handling of the error.
So we tried to modify the microcode of the dma to find out what wents wrong.
But here we run into trouble:
Every modifiaction especially inserting a NOP at the end leads to a non
working dma
(We also modified the size in the setup-header).
Does anyone has experience with the microcode of the bestcom dma ?
We found some documentation of the dma and how it could be possible to do
something like a debugging
and we were roughly able to read what is happening in the mirocode.
But probably we do not understand all.
Thanks a million,
Björn Slotkowski
--
imc Messsysteme GmbH
Bereich Entwicklung / Dept. Development
Voltastraße 5
D-13355 Berlin
Germany
Tel: +49 30 46 70 90 23
Fax: +49 30 46 31 57 6
mailto:Bjoern.Slotkowski@imc-berlin.de
Homepage: http://www.imc-berlin.de
Sitz der Gesellschaft : Berlin
Handelsregister : Berlin-Charlottenburg HRB 28778
Geschäftsführer : Dr.-Ing. Dietmar Sprenger
reply other threads:[~2011-08-17 11:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FPEIIEKCABPOOBGGCOCHEEKMFEAA.bjoern.slotkowski@imc-berlin.de \
--to=bjoern.slotkowski@imc-berlin.de \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox