[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121123192056.GA30290@electric-eye.fr.zoreil.com>
Date: Fri, 23 Nov 2012 20:20:56 +0100
From: Francois Romieu <romieu@...zoreil.com>
To: Stéphane ANCELOT <sancelot@...e.fr>
Cc: netdev@...r.kernel.org, sancelot@...alliance.com,
Hayes Wang <hayeswang@...ltek.com>
Subject: Re: Fwd: Re: RTL 8169 linux driver question
Stéphane ANCELOT <sancelot@...e.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.
> 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 ?
--
Ueimor
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists