From: "Stéphane ANCELOT" <sancelot@free.fr>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: netdev@vger.kernel.org, sancelot@numalliance.com,
Hayes Wang <hayeswang@realtek.com>
Subject: Re: Fwd: Re: RTL 8169 linux driver question
Date: Mon, 26 Nov 2012 08:35:26 +0100 [thread overview]
Message-ID: <50B31BBE.2000509@free.fr> (raw)
In-Reply-To: <20121123192056.GA30290@electric-eye.fr.zoreil.com>
On 23/11/2012 20:20, Francois Romieu wrote:
> Stéphane ANCELOT <sancelot@free.fr> :
> [...]
>> I have an adapted version of this driver for a realtime linux kernel
>> and a 8168/811B rev 2 component (as listed by lspci).
> You should grep for the XID line in the kernel dmesg to identify
> the chipset version.
XID 1c4000c0
>> I had problem with it, my application sends a frame that is
>> immediately transmitted back by some slaves, there was abnormally
>> 100us lost between the send and receive call.
>>
>> Finally I found it was coming from the following register setup in
>> the driver :
>>
>> RTL_W16(IntrMitigate, 0x5151);
>>
>> Can you give me some details about it, since I do not have the
>> RTL8169 programming guide.
> "Reserved" in my 2007 8168c rev1.0 datasheet.
>
> I merged it long ago from Realtek's driver. It has now changed to 0x5f51.
>
> On the old PCI 8169, bits 15..8 relate to Tx and 7..0 to Rx. Bits 7..4
> count in units of 125 us and bits 0..3 in packet units. You may give
> 0x..00 a try.
>
> Hayes knows better for the 8168 line.
>
>> /100us is important since this component acts as an Ethercat Master
>> running at 1ms./
> Which realtime kernel is it ?
xenomai.
next prev parent reply other threads:[~2012-11-26 7:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <50AFC971.7010103@free.fr>
2012-11-23 19:14 ` Fwd: Re: RTL 8169 linux driver question Stéphane ANCELOT
2012-11-23 19:20 ` Francois Romieu
2012-11-26 7:35 ` Stéphane ANCELOT [this message]
2012-11-26 9:15 ` David Laight
2012-11-27 22:46 ` Francois Romieu
2012-11-28 0:35 ` Stéphane ANCELOT
2012-11-28 2:32 ` hayeswang
2012-11-28 9:33 ` David Laight
2012-11-28 23:18 ` Francois Romieu
2017-09-27 20:30 ` RTL8169 vs low-latency (was: Re: Re: RTL 8169 linux driver question) Kirill Smelkov
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=50B31BBE.2000509@free.fr \
--to=sancelot@free.fr \
--cc=hayeswang@realtek.com \
--cc=netdev@vger.kernel.org \
--cc=romieu@fr.zoreil.com \
--cc=sancelot@numalliance.com \
/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;
as well as URLs for NNTP newsgroup(s).