From patchwork Wed Apr 8 21:13:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejun Heo X-Patchwork-Id: 25736 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id DBF81DE14C for ; Thu, 9 Apr 2009 07:14:34 +1000 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from hera.kernel.org (hera.kernel.org [140.211.167.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1082ADDED9 for ; Thu, 9 Apr 2009 07:14:13 +1000 (EST) Received: from htj.dyndns.org (IDENT:U2FsdGVkX1+e2pOm/yxc6brz/IN5sBOI8PPfPgXx6to@localhost [127.0.0.1]) by hera.kernel.org (8.14.2/8.14.2) with ESMTP id n38LChjK017562 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 8 Apr 2009 21:12:44 GMT Received: from [10.32.252.39] (72-254-98-160.client.stsn.net [72.254.98.160]) by htj.dyndns.org (Postfix) with ESMTPSA id 1F1D34139A827; Thu, 9 Apr 2009 06:12:40 +0900 (KST) Message-ID: <49DD1375.8030400@kernel.org> Date: Wed, 08 Apr 2009 14:13:25 -0700 From: Tejun Heo User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Timur Tabi Subject: Re: "ahci: drop intx manipulation on msi enable" breaks ULI M1575 References: <49DB6914.1030107@freescale.com> <49DBE858.9040004@kernel.org> <1239156559.10104.7.camel@localhost> <49DD1154.3040106@kernel.org> <49DD11D1.7060105@freescale.com> In-Reply-To: <49DD11D1.7060105@freescale.com> X-Enigmail-Version: 0.95.7 X-Virus-Scanned: ClamAV 0.93.3/9214/Wed Apr 8 16:46:42 2009 on hera.kernel.org X-Virus-Status: Clean X-Spam-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hera.kernel.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Wed, 08 Apr 2009 21:12:46 +0000 (UTC) Cc: linux-ide@vger.kernel.org, Jeff Garzik , Linux PPC Development X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Timur Tabi wrote: > Tejun Heo wrote: > >> Running "lspci -nnvvvxxx" before loading the driver should be enough. > > That might be difficult. My root file system is on my SATA drive. > It'll be a while before I can build an NFS rootfs. > Yeah, right. The following patch should do the trick then. diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 788bba2..b3f4df7 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -2606,6 +2606,12 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) if (!printed_version++) dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); + { + u16 cmd; + pci_read_config_word(pdev, PCI_COMMAND, &cmd); + printk("XXX PCI_COMMAND=0x%x\n", cmd); + } + /* The AHCI driver can only drive the SATA ports, the PATA driver can drive them all so if both drivers are selected make sure AHCI stays out of the way */