linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why is only one command issue per time in AHCI driver?
@ 2011-01-13 10:52 羅秉鈞
  2011-01-13 17:46 ` Jeff Garzik
  0 siblings, 1 reply; 8+ messages in thread
From: 羅秉鈞 @ 2011-01-13 10:52 UTC (permalink / raw)
  To: linux-ide

Hello,

Inside ahci_qc_issue() function, I see that driver always write one bit
to Px.CI register even enable the NCQ.

AHCI allows to fire 32 commands at one time and AHCI driver also
claims itself able to queue up to 31 commands.

Inside ahci.c :
static struct scsi_host_template ahci_sht = {
       ATA_NCQ_SHT(DRV_NAME),
       .can_queue              = AHCI_MAX_CMDS - 1,
............

Why upper layer(Block or SCSI layer) does not fill up as many as possible
commands into Command List before sending the commands out
(Write to Px.CI register)?

How do I configure my driver so that Block layer can queue more commands
into queue list?


Regards,
BingJiun

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-18 14:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 10:52 Why is only one command issue per time in AHCI driver? 羅秉鈞
2011-01-13 17:46 ` Jeff Garzik
2011-01-14  1:06   ` 羅秉鈞
2011-01-14  5:47     ` Robert Hancock
2011-01-17  1:19       ` BingJiun Luo
2011-01-18  7:56       ` Seed
2011-01-18  8:46         ` Jeff Garzik
2011-01-18 14:43         ` Robert Hancock

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).