From: Tejun Heo <tj@kernel.org>
To: linux-ide@vger.kernel.org,
Sascha Silbe <sascha-ml-reply-to-2009-4@silbe.org>,
Mark Lord <mlord@pobox.com>
Subject: Re: SiI3811 PATA->SATA bridge not working on OpenRD-Base
Date: Tue, 15 Dec 2009 08:07:37 +0900 [thread overview]
Message-ID: <4B26C539.1030202@kernel.org> (raw)
In-Reply-To: <20091214195909.GB29549@twin.sascha.silbe.org>
Hello,
cc'ing Mark and quoting whole body. Mark, sata_mv timing problem.
Can you please handle this one?
Thanks.
On 12/15/2009 04:59 AM, Sascha Silbe wrote:
> On Tue, Dec 01, 2009 at 03:08:08PM +0900, Tejun Heo wrote:
>> In libata-sff.c there are several places which set AC_ERR_HSM. They
>> store the reason why they're setting it using ata_eh_push_desc() but
>> for EH commands those messages aren't printed out (we probably need to
>> fix that). Anyways, can you please conver those to printk's and see
>> which one is setting HSM error?
> OK, this got me going, thanks! I couldn't find where AC_ERR_HSM is set,
> but sata_mv now told me about the IORDY timeout. It seems the IDE<->SATA
> converter is slower than the internal native SATA HD, but probably (see
> below) still within spec.
>
> mv_soc_reset_hc_port() sets EDMA_IORDY_TMOUT to the default value of
> 0xBC which assumes a 150MHz clock. After setting it to 0xFA (which
> assumes a 200MHz clock) the device works fine (at least with hdparm -tT).
>
> Clock description for the 88F6281 (the SoC on the OpenRD-Base) is
> incomplete and/or messy in the published documents (Functional
> Specifications and Hardware Specifications), so I'm not quite sure what
> the right value is:
> - Hardware Specifications defines TCLK/Core clock as 200MHz and SATA
> clock as 150MHz
> - stock UBoot (i.e. Marvell version) prints 400MHz for "SysClock" and
> 200MHz for "TClock"
> - Functional Specifications says eIORdyTimeout is the "number of system
> cycles", giving 0xBC for "SysClock == 150MHz"
>
> So depending on what exactly the clock source for the IORDY timeout is,
> the correct value should be one of:
> - 0x00BC (150MHz, SATA clock from Hardware Specifications; implying the
> device is too slow so unlikely as it works fine with other hosts)
> - 0x00FA (200MHz, TCLK from Hardware Specifications)
> - 0x01F4 (400MHz, SysClock from UBoot)
--
tejun
next prev parent reply other threads:[~2009-12-14 23:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 21:23 SiI3811 PATA->SATA bridge not working on OpenRD-Base Sascha Silbe
2009-12-01 6:08 ` Tejun Heo
2009-12-14 19:59 ` Sascha Silbe
2009-12-14 23:07 ` Tejun Heo [this message]
2009-12-15 0:51 ` Mark Lord
2009-12-15 1:02 ` Mark Lord
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=4B26C539.1030202@kernel.org \
--to=tj@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=mlord@pobox.com \
--cc=sascha-ml-reply-to-2009-4@silbe.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.