The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Grant Grundler <grundler@google.com>
Cc: Linux IDE mailing list <linux-ide@vger.kernel.org>,
	Jeff Garzik <jgarzik@pobox.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 2.6.34-rc3 Disable R_OK (Early ACK) on SII 3726/4726 PMP
Date: Thu, 15 Apr 2010 09:31:56 +0900	[thread overview]
Message-ID: <4BC65E7C.5080203@kernel.org> (raw)
In-Reply-To: <m2gda824cf31004131746o15be77b1n7af6fac42ce25280@mail.gmail.com>

Hello,

On 04/14/2010 09:46 AM, Grant Grundler wrote:
> In 2009, While running "cache read" performance test of drives behind
> SII PMP we encountered a "all 5 drives" timeout on more than 30% of the
> machines under test.  This patch reduces the rate by a factor of about 70.
> Low enough that we didn't care to further investigate the issue.

Interesting.

> Performance impact with any sort of "normal" use was ~2%+ CPU and less
> than 1% throughput degradation.  Worst case impact (cached read) was
> 6% IOPS reduction. This is with NCQ off (q=1) but I believe FIS based
> switching enabled in the SATA driver.

Given the general flakiness of the device, I'm more than willing to
pay some overhead for stability and the performance hit seems pretty
small.

> @@ -260,12 +262,28 @@ static int sata_pmp_configure(struct ata_device
> *dev, int print_info)
>                 goto fail;
>         }
> 
> +       /* For Sil3726, disable sending Early R_OK */
> +       if (vendor == 0x1095 && devid == 0x3726) {

Isn't this also applicable to 4723 and 4726?

> diff --git a/include/linux/ata.h b/include/linux/ata.h
> index 700c5b9..18fc208 100644
> --- a/include/linux/ata.h
> +++ b/include/linux/ata.h
> @@ -386,6 +386,7 @@ enum {
>         SATA_PMP_GSCR_ERROR_EN  = 33,
>         SATA_PMP_GSCR_FEAT      = 64,
>         SATA_PMP_GSCR_FEAT_EN   = 96,
> +       SATA_PMP_GSCR_SII_POL   = 129,  /* VENDOR : Silicon Image 3726/4726 */

Can you plesae define it inside libata-pmp.c?  ata.h only contains
stuff defined by the ATA standard.

Other than the above nitpicks,

Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun

  reply	other threads:[~2010-04-15  0:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-14  0:46 [PATCH] 2.6.34-rc3 Disable R_OK (Early ACK) on SII 3726/4726 PMP Grant Grundler
2010-04-15  0:31 ` Tejun Heo [this message]
2010-04-15  0:57   ` Grant Grundler

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=4BC65E7C.5080203@kernel.org \
    --to=tj@kernel.org \
    --cc=grundler@google.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox