From: Tejun Heo <htejun@gmail.com>
To: Manuel Metz <mmetz@astro.uni-bonn.de>, studium@profihost.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: SATA ahci Bug in 2.6.19.x
Date: Sat, 24 Feb 2007 15:25:02 +0900 [thread overview]
Message-ID: <45DFDA3E.80402@gmail.com> (raw)
In-Reply-To: <45DC7769.7030206@astro.uni-bonn.de>
[-- Attachment #1: Type: text/plain, Size: 316 bytes --]
Manuel Metz wrote:
> Tejun Heo wrote:
>> Does it work if you give 'irqpoll' kernel parameter?
>>
>
> Yes this works with "irqpoll". But as you can see in the attached dmesg
> output, now I get a bunch of APIC errors ... ?
Manuel, Stefan, please try the attached patch over 2.6.20 and report the
result.
--
tejun
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 971 bytes --]
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 48616c6..882b205 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -209,6 +209,10 @@ struct ahci_port_priv {
unsigned int ncq_saw_dmas:1;
};
+static int msi;
+module_param(msi, int, 0444);
+MODULE_PARM_DESC(msi, "Enable use of PCI MSI (0=off, 1=on)");
+
static u32 ahci_scr_read (struct ata_port *ap, unsigned int sc_reg);
static void ahci_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val);
static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent);
@@ -1706,11 +1710,13 @@ static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
goto err_out;
}
- if (pci_enable_msi(pdev) == 0)
- have_msi = 1;
- else {
- pci_intx(pdev, 1);
- have_msi = 0;
+ if (msi) {
+ if (pci_enable_msi(pdev) == 0)
+ have_msi = 1;
+ else {
+ pci_intx(pdev, 1);
+ have_msi = 0;
+ }
}
probe_ent = kmalloc(sizeof(*probe_ent), GFP_KERNEL);
next prev parent reply other threads:[~2007-02-24 6:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7G2pJ-2iX-23@gated-at.bofh.it>
[not found] ` <7G828-3zn-3@gated-at.bofh.it>
[not found] ` <7HpWX-3D2-5@gated-at.bofh.it>
[not found] ` <7Hrci-5ou-5@gated-at.bofh.it>
[not found] ` <7HrP4-6t8-1@gated-at.bofh.it>
[not found] ` <7Hvzs-3Tj-23@gated-at.bofh.it>
[not found] ` <7IYJ1-281-27@gated-at.bofh.it>
2007-02-14 8:57 ` SATA ahci Bug in 2.6.19.x Manuel Metz
2007-02-21 11:55 ` Tejun Heo
2007-02-21 16:46 ` Manuel Metz
2007-02-24 6:25 ` Tejun Heo [this message]
2007-02-24 7:55 ` Jeff Garzik
2007-02-26 8:32 ` Manuel Metz
2007-01-22 8:02 Stefan Priebe - FH
2007-01-22 14:00 ` Stephen Evanchik
2007-01-25 21:24 ` Stefan Priebe - FH
2007-01-26 3:25 ` Luming Yu
2007-01-26 4:46 ` Stephen Evanchik
2007-01-26 5:22 ` Luming Yu
2007-01-26 6:18 ` Stephen Evanchik
2007-01-26 10:33 ` Alan
2007-01-26 9:19 ` Stefan Priebe - FH
2007-01-30 10:44 ` Stefan Priebe - FH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45DFDA3E.80402@gmail.com \
--to=htejun@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mmetz@astro.uni-bonn.de \
--cc=studium@profihost.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.