All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Terry Suereth <terry.suereth@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: libata-pmp.c patch for Silicon Image 3826 port multiplier
Date: Mon, 14 Jan 2013 16:23:46 +0400	[thread overview]
Message-ID: <50F3F8D2.70506@mvista.com> (raw)
In-Reply-To: <CANQSiW0f4A=Y3db0-=2fdiHbGO2SigOE1ejPTYsUcZHhpEg1pQ@mail.gmail.com>

Hello.

On 14-01-2013 1:58, Terry Suereth wrote:

> Hello linux-ide mailing list,

> I recently purchased and equipped one of my Slackware boxes with a
> Rosewill RAID enclosure (RSV-S8), which claimed to use a Sil3726 PMP
> chipset, but which actually uses a Sil3826 chipset.  This appears to
> be some relatively new silicon, and (presumably) a replacement for the
> 3726 going forward.

> I had some difficulties using this hardware at first - excessively
> long delays linking to the PMP at startup - but once I discovered the
> chipset version issue, it was simple to fix -- libata just needs to
> apply the same PMP quirks that are currently used on the 3726, to the
> 3826.  I've done this in a local kernel build and it's working great
> so far.

> The same bug/fix has been posted to the Red Hat bug tracker:
> https://bugzilla.redhat.com/show_bug.cgi?id=890237 -- although the
> patch noted there (in the PDF (!?) attachment) appears incomplete.

> My somewhat-redundant patch, based on the current linux-stable version
> from git, is pasted inline below.  It should be very simple and
> unsurprising.

> Best,

> Terry Suereth
> terry.suereth@gmail.com



> --- libata-pmp.c.old 2013-01-13 13:42:56.582780772 -0800
> +++ libata-pmp.c 2013-01-13 13:43:33.670964680 -0800
> @@ -289,24 +289,24 @@
>
>    /* Disable sending Early R_OK.
>    * With "cached read" HDD testing and multiple ports busy on a SATA
> - * host controller, 3726 PMP will very rarely drop a deferred
> + * host controller, 3x26 PMP will very rarely drop a deferred
>    * R_OK that was intended for the host. Symptom will be all
>    * 5 drives under test will timeout, get reset, and recover.
>    */
> - if (vendor == 0x1095 && devid == 0x3726) {
> + if (vendor == 0x1095 && (devid == 0x3726 || devid == 0x3826)) {
>    u32 reg;
>
>    err_mask = sata_pmp_read(&ap->link, PMP_GSCR_SII_POL, &reg);
>    if (err_mask) {
>    rc = -EIO;
> - reason = "failed to read Sil3726 Private Register";
> + reason = "failed to read Sil3x26 Private Register";
>    goto fail;
>    }
>    reg &= ~0x1;
>    err_mask = sata_pmp_write(&ap->link, PMP_GSCR_SII_POL, reg);
>    if (err_mask) {
>    rc = -EIO;
> - reason = "failed to write Sil3726 Private Register";
> + reason = "failed to write Sil3x26 Private Register";
>    goto fail;
>    }
>    }
> @@ -383,8 +383,8 @@
>    u16 devid = sata_pmp_gscr_devid(gscr);
>    struct ata_link *link;
>
> - if (vendor == 0x1095 && devid == 0x3726) {
> - /* sil3726 quirks */
> + if (vendor == 0x1095 && (devid == 0x3726 || devid == 0x3826)) {
> + /* sil3x26 quirks */
>    ata_for_each_link(link, ap, EDGE) {
>    /* link reports offline after LPM */
>    link->flags |= ATA_LFLAG_NO_LPM;

    Your patch is whitespace damaged, misses signoff and proper description.

MBR, Sergei


  reply	other threads:[~2013-01-14 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-13 21:58 libata-pmp.c patch for Silicon Image 3826 port multiplier Terry Suereth
2013-01-14 12:23 ` Sergei Shtylyov [this message]
2013-01-14 20:56   ` Terry Suereth

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=50F3F8D2.70506@mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=terry.suereth@gmail.com \
    /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.