From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Zhao Yakui <yakui.zhao@intel.com>,
linux-ide@vger.kernel.org, len.brown@intel.com,
shaohua.li@intel.com, rui.zhang@intel.com
Subject: Re: a question about interrupt of IDE controller( bug 5637)
Date: Wed, 05 Dec 2007 17:32:49 +0300 [thread overview]
Message-ID: <4756B691.3080202@ru.mvista.com> (raw)
In-Reply-To: <20071205141809.615d1f59@the-village.bc.nu>
Hello.
Alan Cox wrote:
>>When IDE device works in legacy mode, the IRQ of IDE is fixed at 14/15
>>for the two channel. But IDE controller is a PCI device, OS will assign
>>an interrupt number for the PCI device in which IDE controller resides.
>>This is realized by calling ide_pci_enable, which will call
>>pcibios_enable_irq.
> And pcibios_enable_irq should see interrupt in as 0 in that case. It also
Should doesn't mean it actually does. I've just looked at my 82801DB
configuration, see yourself:
[root@wasted etc]# lspci -x -s 0:1f.1
00:1f.1 IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 02)
00: 86 80 cb 24 07 00 80 02 02 8a 01 01 00 00 00 00
10: 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00
20: 01 f0 00 00 00 00 00 20 00 00 00 00 43 10 89 80
30: 00 00 00 00 00 00 00 00 00 00 00 00 09 01 00 00
The controller is in legacy mode (programming i/f is 0x8a), yet it
requests IRQ (interrupt pin = 1) and got assigned IRQ9.
MBR, Sergei
next prev parent reply other threads:[~2007-12-05 14:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 3:28 a question about interrupt of IDE controller( bug 5637) Zhao Yakui
2007-12-04 12:38 ` Alan Cox
2007-12-05 5:33 ` Zhao Yakui
2007-12-05 14:18 ` Alan Cox
2007-12-05 14:32 ` Sergei Shtylyov [this message]
2007-12-06 1:04 ` Zhao Yakui
2007-12-06 1:30 ` Zhao Yakui
2007-12-06 2:32 ` Alan Cox
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=4756B691.3080202@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=len.brown@intel.com \
--cc=linux-ide@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=shaohua.li@intel.com \
--cc=yakui.zhao@intel.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.