All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Enable parallel scan on ata_piix
@ 2009-04-24  4:44 Arjan van de Ven
  2009-04-24 10:29 ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Arjan van de Ven @ 2009-04-24  4:44 UTC (permalink / raw)
  To: linux-ide; +Cc: alan

Hi,

This patch turns on parallel scanning for the ata_piix driver.
This driver is used on most netbooks (no AHCI for cheap storage it seems).
The scan is the dominating time factor in the kernel boot for these
devices; with this flag it gets cut in half for the device I used
for testing (eeepc).
Alan took a look at the driver source and concluded that it ought to be safe
to do for this driver.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>

diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index ef8b30d..993f7af 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1563,6 +1563,7 @@ static int __devinit piix_init_one(struct pci_dev *pdev,
 		host->ports[1]->mwdma_mask = 0;
 		host->ports[1]->udma_mask = 0;
 	}
+	host->flags |= ATA_HOST_PARALLEL_SCAN;
 
 	pci_set_master(pdev);
 	return ata_pci_sff_activate_host(host, ata_sff_interrupt, &piix_sht);


-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

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

* Re: [patch] Enable parallel scan on ata_piix
  2009-04-24  4:44 [patch] Enable parallel scan on ata_piix Arjan van de Ven
@ 2009-04-24 10:29 ` Jeff Garzik
  2009-04-24 11:28   ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2009-04-24 10:29 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-ide, alan

Arjan van de Ven wrote:
> Hi,
> 
> This patch turns on parallel scanning for the ata_piix driver.
> This driver is used on most netbooks (no AHCI for cheap storage it seems).
> The scan is the dominating time factor in the kernel boot for these
> devices; with this flag it gets cut in half for the device I used
> for testing (eeepc).
> Alan took a look at the driver source and concluded that it ought to be safe
> to do for this driver.
> 
> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>

I tend to doubt "safe", given the complicated and buggy silicon state 
machine that recreates the legacy IDE interface on SATA...

	Jeff





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

* Re: [patch] Enable parallel scan on ata_piix
  2009-04-24 10:29 ` Jeff Garzik
@ 2009-04-24 11:28   ` Alan Cox
  2009-04-24 11:33     ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2009-04-24 11:28 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Arjan van de Ven, linux-ide

> > Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
> 
> I tend to doubt "safe", given the complicated and buggy silicon state 
> machine that recreates the legacy IDE interface on SATA...

The two channels on the ICH and PIIX are independant. There are other
controllers that have all sorts of nasty dependancies and shared state,
and there is also a bug/known limitation in the case of simplex hardware
- we don't honour the can queue checks during probing.

Alan

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

* Re: [patch] Enable parallel scan on ata_piix
  2009-04-24 11:28   ` Alan Cox
@ 2009-04-24 11:33     ` Jeff Garzik
  2009-04-24 11:41       ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2009-04-24 11:33 UTC (permalink / raw)
  To: Alan Cox; +Cc: Arjan van de Ven, linux-ide

Alan Cox wrote:
>>> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
>> I tend to doubt "safe", given the complicated and buggy silicon state 
>> machine that recreates the legacy IDE interface on SATA...
> 
> The two channels on the ICH and PIIX are independant. There are other

Starting with ICH5, not true.  Think PATA/SATA combined mode...

	Jeff




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

* Re: [patch] Enable parallel scan on ata_piix
  2009-04-24 11:33     ` Jeff Garzik
@ 2009-04-24 11:41       ` Alan Cox
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 2009-04-24 11:41 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Arjan van de Ven, linux-ide

On Fri, 24 Apr 2009 07:33:46 -0400
Jeff Garzik <jeff@garzik.org> wrote:

> Alan Cox wrote:
> >>> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
> >> I tend to doubt "safe", given the complicated and buggy silicon state 
> >> machine that recreates the legacy IDE interface on SATA...
> > 
> > The two channels on the ICH and PIIX are independant. There are other
> 
> Starting with ICH5, not true.  Think PATA/SATA combined mode...

The register sets as presented to us are independent, and there are no
interactions on our side. Wecould be extra paranoid about this but
testing says it works, code inspection says it works and there is nothing
in the chip docs or errata saying don't do it.

So at this point I don't think assuming the worst case is actually useful
because its only by trying this that we are going to find out if there
are any corner cases.

Alan

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

end of thread, other threads:[~2009-04-24 11:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-24  4:44 [patch] Enable parallel scan on ata_piix Arjan van de Ven
2009-04-24 10:29 ` Jeff Garzik
2009-04-24 11:28   ` Alan Cox
2009-04-24 11:33     ` Jeff Garzik
2009-04-24 11:41       ` Alan Cox

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.