[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130531012006.GB29975@mtj.dyndns.org>
Date: Fri, 31 May 2013 10:20:06 +0900
From: Tejun Heo <tj@...nel.org>
To: Mark Langsdorf <mark.langsdorf@...xeda.com>
Cc: timur@...i.org, linux-kernel@...r.kernel.org,
linux-ide@...r.kernel.org
Subject: Re: [PATCH v2] ata: increase retry count but shorten duration for
Calxeda controller
On Thu, May 30, 2013 at 09:18:29AM -0500, Mark Langsdorf wrote:
> The Calxeda SATA phy intermittently fails to bring up a link with Gen3
> Retrying the phy hard reset can work around the issue, but the drive
> may fail again. In less than 150 out of 15000 test runs, it took more
> than 10 tries for the link to be established (but never more than 35).
> Triple the maximum observed retry count to provide plenty of margin for
> rare events and to guarantee that the link is established.
>
> Also, the default 2 second time-out on a failed drive is too long in
> this situation. The uboot implementation of the same driver function
> uses a much shorter time-out period and never experiences a time out
> issue. Shorten the Linux time-out value for this driver to 500 ms and
> keep the other timing constants the same as the stock AHCI driver. This
> change was also tested 15000 times on 24 drives and none of them
> experienced a time out.
>
> Signed-off-by: Mark Langsdorf <mark.langsdorf@...xeda.com>
> ---
> Changes from v1
> Add const to the timing variable definition
> Added more detail in why the various numbers were chosen
Can you make the detailed explanation comment in the code so that
people don't have to try to hunt down this commit later on? The
commit message can explain it briefly and refer to the comment in the
body.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists