From: tj@kernel.org (Tejun Heo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 3/3] ahci_xgene: Fix the link down in first attempt for the APM X-Gene SoC AHCI SATA host controller driver.
Date: Tue, 19 Aug 2014 11:49:12 -0400 [thread overview]
Message-ID: <20140819154912.GC16480@htj.dyndns.org> (raw)
In-Reply-To: <1408429911-1406-4-git-send-email-stripathi@apm.com>
On Tue, Aug 19, 2014 at 12:01:51PM +0530, Suman Tripathi wrote:
> The link down issue in first attempt happens due to 2 H/W errata below:
>
> 1. Due to HW errata, during speed negotiation, sometimes controller
> is not able to detect ALIGN at GEN3(6Gbps) within 54.6us results in
> a timeout. This issue can be recovered by issuing a COMRESET again.
>
> 2. Due to HW errata, although ALIGH detection is successfull, due to
> 8b/10b and disparity BERR, sometimes the signature from the drive is
> not received successfully by the Host controller. Due to this the
> communication with the host and drive is not established due to
> locking of CDR(clock and data recovery) circuit. This issue can be
> recovered by issuing a COMRESET again.
>
> This patch fixes the above issues by retrying the COMRESET with a
> maximum attempts of 3.
It's kinda nasty but if it's necessary. That said, can you please
update the comment so that it actually matches the code? Also,
Wouldn't it be better to check how the reset failed before retrying?
Thanks.
--
tejun
next prev parent reply other threads:[~2014-08-19 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1408429911-1406-1-git-send-email-stripathi@apm.com>
[not found] ` <1408429911-1406-3-git-send-email-stripathi@apm.com>
2014-08-19 15:14 ` [PATCH v7 2/3] ahci_xgene: Skip the PHY and clock initialization if already configured by the firmware Tejun Heo
[not found] ` <1408429911-1406-4-git-send-email-stripathi@apm.com>
2014-08-19 15:49 ` Tejun Heo [this message]
[not found] ` <CAOHikRB6Kfg82ewx6e-a6SCvjt_ipSKuXLciS=nHA1EpZzXrYA@mail.gmail.com>
2014-08-21 14:14 ` [PATCH v7 3/3] ahci_xgene: Fix the link down in first attempt for the APM X-Gene SoC AHCI SATA host controller driver Tejun Heo
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=20140819154912.GC16480@htj.dyndns.org \
--to=tj@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).