[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BD599B881C1D407DA7BC93A9244650B0@realtek.com.tw>
Date: Wed, 9 Jun 2010 10:47:01 +0800
From: hayeswang <hayeswang@...ltek.com>
To: 'Timo Teräs' <timo.teras@....fi>,
'Francois Romieu' <romieu@...zoreil.com>
CC: <netdev@...r.kernel.org>, <davem@...emloft.net>
Subject: RE: [PATCH] r8169: fix random mdio_write failures
I think the major point is that it needs a delay (20 us) after both read and
write completed indiacation before next command.
It needs almost 100 us for the indication to be completed, so our engineer
suggests us to check the indication per 100 us.
However, it is ok to reduce the timer from 100 us to 25 us for checking .
Best Regards,
Hayes
-----Original Message-----
From: Timo Teräs [mailto:timo.teras@...il.com] On Behalf Of Timo Teras
Sent: Tuesday, June 08, 2010 2:06 PM
To: Francois Romieu
Cc: Hayeswang; netdev@...r.kernel.org; davem@...emloft.net
Subject: Re: [PATCH] r8169: fix random mdio_write failures
On 06/08/2010 12:51 AM, Francois Romieu wrote:
> hayeswang <hayeswang@...ltek.com> :
>> Our hardware engineer suggests that check the completed indication
>> per 100 micro seconds. And it needs 20 micro seconds delay after the
>> completed indication for the next command.
>
> Should we do the same for mdio_read as well (100 us per iteration + an
> extra 20 us) ?
Well, doing 100us per iteration will increase the latency that the code
notices "write complete" which slows down things. It'll also slightly
decrease bus traffic which is good. But I'd be just fine with 25us per
iteration. It sounds unlikely that polling the status register would slow
down the actual write operation (if that is the case then 100us would be
desirable).
Changing my 25us to 20us would good. The original 25us was just a guess.
The comment should be probably also updated that those delays are from
realtek hw specs then.
Would you like me to send a patch?
- Timo
------Please consider the environment before printing this e-mail.
--
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