All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard <tuxbox.guru@gmail.com>
To: Robert Hancock <hancockrwd@gmail.com>
Cc: Mark Lord <kernel@teksavvy.com>, linux-ide@vger.kernel.org
Subject: Re: Marvel PMP SATA controller
Date: Fri, 01 Oct 2010 07:33:26 +0100	[thread overview]
Message-ID: <4CA580B6.8030204@gmail.com> (raw)
In-Reply-To: <4CA52A20.6060208@gmail.com>

On 01/10/10 01:24, Robert Hancock wrote:
> On 09/30/2010 08:03 AM, Richard wrote:
>> On 30/09/10 14:39, Mark Lord wrote:
>>> On 10-09-29 04:32 PM, Richard wrote:
>>>> On 29/09/10 20:56, Mark Lord wrote:
>>>
>>>>> What are you trying to do?
>>>> Hi Mark,
>>>>
>>>> Its an embedded device whereby the one HDD I have does not work with
>>>> the Marvel PMP. I have the command to send to the PMP controller but
>>>> I am not an officianado with linux SATA(the code I have is from
>>>> VxWorks) The drive is confirmed working, but the PMP chip does not
>>>> default to SATA Generation 1, and this HDD is a bit dumb to figure it
>>>> out :) - so I have to force the PMP controller to Gen1 mode.
>>>> (I have tons of drives that work just fine, its just this ONE Maxtor
>>>> drive that is being a pain)
>>>>
>>>> The short - I need to write a command to the SATA controller before
>>>> this HDD can be recognised.
>>> ..
>>>
>>> Does the existing libata parameter take care of it for you?
>>>
>>> linux/Documentation/kernel-parameters.txt:
>>> eg. libata.force=[ID:]1.5" ## replace [ID:] with port[.device] for the
>>> PMP and/or HD
>>>
>> Unfortunately not.. which is why I asked how to write commands directly
>> on to the SATA bus from kernel space.
>
> Looking at the code it seems like it should.. what kernel version are 
> you using? See sata_set_spd in libata-core.c, which calls 
> sata_scr_write, which calls sata_pmp_scr_write if it's not a host link..
Its a bit more than 'Put it in to 1.5Gbps speed' - Even when selecting 
this speed nothing happens. When I write to the PMP controller using a 
Finisar SATA analyser (Write 0xE8 Register 0x02 Value 0x11) which 
according to the Marvel specifications is 'Set to SATA Generation 1 and 
Reset Drive' things start to happen.  Unfortunately the kernel is a 
2.6.18 one and there is no hope of updating it in the short term as its 
used across many projects.

Richard

  reply	other threads:[~2010-10-01  6:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-29  6:56 Marvel PMP SATA controller Richard
2010-09-29 19:56 ` Mark Lord
2010-09-29 20:32   ` Richard
2010-09-30 13:39     ` Mark Lord
2010-09-30 14:03       ` Richard
2010-10-01  0:24         ` Robert Hancock
2010-10-01  6:33           ` Richard [this message]
2010-10-01 13:46         ` 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=4CA580B6.8030204@gmail.com \
    --to=tuxbox.guru@gmail.com \
    --cc=hancockrwd@gmail.com \
    --cc=kernel@teksavvy.com \
    --cc=linux-ide@vger.kernel.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.