Linux ATA/IDE development
 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

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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox