From: Andrew Morton Subject: Re: [RFT] major libata update Date: Thu, 18 May 2006 16:07:58 -0700 Message-ID: <20060518160758.5911e4b7.akpm@osdl.org> References: <20060515170006.GA29555@havoc.gtf.org> <20060516190507.35c1260f.akpm@osdl.org> <446AAB3C.6050303@gmail.com> <20060516215610.2b822c00.akpm@osdl.org> <446AB12C.10001@gmail.com> <446AC418.4070704@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.osdl.org ([65.172.181.4]:28343 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751143AbWERXIU (ORCPT ); Thu, 18 May 2006 19:08:20 -0400 In-Reply-To: <446AC418.4070704@gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Tejun Heo Cc: jeff@garzik.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@osdl.org Tejun Heo wrote: > > Tejun Heo wrote: > > Andrew Morton wrote: > >> No. In fact, it doesn't even work with the 2.6.17-rc4-mm1 lineup plus > >> the > >> latest git-libata-all. It needs this tweak: > >> > >> --- devel/drivers/scsi/ata_piix.c~2.6.17-rc4-mm1-ich8-fix > >> 2006-05-16 18:36:12.000000000 -0700 > >> +++ devel-akpm/drivers/scsi/ata_piix.c 2006-05-16 > >> 18:36:12.000000000 -0700 > >> @@ -542,6 +542,14 @@ static unsigned int piix_sata_probe (str > >> port = map[base + i]; > >> if (port < 0) > >> continue; > >> + if (ap->flags & PIIX_FLAG_AHCI) { > >> + /* FIXME: Port status of AHCI controllers > >> + * should be accessed in AHCI memory space. */ > >> + if (pcs & 1 << port) > >> + present_mask |= 1 << i; > >> + else > >> + pcs &= ~(1 << port); > >> + } > >> if (ap->flags & PIIX_FLAG_IGNORE_PCS || pcs & 1 << (4 + port)) > >> present_mask |= 1 << i; > >> else > > The above patch doesn't do anything. Yes it does. I dropped it and got SCSI subsystem initialized ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ] ACPI (acpi_bus-0191): Device is not power manageable [20060310] ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 19 (level, low) -> IRQ 19 ata1: SATA max UDMA/133 cmd 0x2148 ctl 0x217E bmdma 0x2110 irq 19 ata2: SATA max UDMA/133 cmd 0x2140 ctl 0x217A bmdma 0x2118 irq 19 ata1: SATA port has no device. Then I undropped it and got SCSI subsystem initialized ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ] ACPI (acpi_bus-0191): Device is not power manageable [20060310] ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 19 (level, low) -> IRQ 19 ata1: SATA max UDMA/133 cmd 0x2148 ctl 0x217E bmdma 0x2110 irq 19 ata2: SATA max UDMA/133 cmd 0x2140 ctl 0x217A bmdma 0x2118 irq 19 ata1.00: ATA-7, max UDMA/133, 321672960 sectors: LBA48 NCQ (depth 0/32) ata1.00: configured for UDMA/133 scsi0 : ata_piix and a computer which boots. Look closer, please ;)