From: Jens Axboe <jens.axboe@oracle.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Alok kataria <alokkataria1@gmail.com>, linux-ide@vger.kernel.org
Subject: Re: use_clustering (sht) bit set to 0 in AHCI ?
Date: Tue, 22 May 2007 09:45:39 +0200 [thread overview]
Message-ID: <20070522074538.GP4705@kernel.dk> (raw)
In-Reply-To: <46520C68.7090105@garzik.org>
On Mon, May 21 2007, Jeff Garzik wrote:
> Jens Axboe wrote:
> >ahci has always had clustering disabled, perhaps Jeff can expand on why?
>
>
> Just historical reasons. libata had clustering disabled by default in
> the beginning, for all drivers. Then we enabled it globally by changing
> the value of ATA_SHT_USE_CLUSTERING... but apparently forgot to change
> drivers which use their own value rather than ATA_SHT_USE_CLUSTERING.
>
> Feel free to submit a patch turning it on...
The below works for me, but it's only lightly tested. I booted it up and
ran some large IO tests, I've verified really large IO sizes as well
(using blktrace, I've verified ios up to 9216KiB being accepted and
completed by the drive).
-----
From: Jens Axboe <jens.axboe@oracle.com>
ahci: enable sg segment clustering
The specification states that ahci supports segments up to 4MiB in size,
so enable clustering.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index e00e1b9..bfcd8ec 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -54,7 +54,7 @@ enum {
AHCI_MAX_PORTS = 32,
AHCI_MAX_SG = 168, /* hardware max is 64K */
AHCI_DMA_BOUNDARY = 0xffffffff,
- AHCI_USE_CLUSTERING = 0,
+ AHCI_USE_CLUSTERING = 1,
AHCI_MAX_CMDS = 32,
AHCI_CMD_SZ = 32,
AHCI_CMD_SLOT_SZ = AHCI_MAX_CMDS * AHCI_CMD_SZ,
--
Jens Axboe
next prev parent reply other threads:[~2007-05-22 7:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 5:49 use_clustering (sht) bit set to 0 in AHCI ? Alok kataria
2007-05-21 12:17 ` Jens Axboe
2007-05-21 21:17 ` Jeff Garzik
2007-05-22 7:45 ` Jens Axboe [this message]
2007-05-25 3:06 ` Jeff Garzik
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=20070522074538.GP4705@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=alokkataria1@gmail.com \
--cc=jeff@garzik.org \
--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 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).