From: Tim Hockin <thockin@sun.com>
To: Andre Hedrick <andre@linuxdiskcert.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
andre@linux-ide.org
Subject: Re: [PATCH] IDE initialization fix
Date: Wed, 17 Oct 2001 20:21:11 -0700 [thread overview]
Message-ID: <3BCE4AA7.EBF134DC@sun.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10110162223350.2087-100000@master.linux-ide.org>
Andre Hedrick wrote:
> > for chipsets does not get called. I'll speak specifically about the CSB5.
> > The CSB5 in non-native mode has a PCI irqline register forced to 0. The
> > PCI probe then skips it's PCI init and it never gets called.
OK! This is what I have learned. The ide-pci init code has one case that
isn't caught. Perhaps you can clarify what it means, for me.
* If an IDE controller has a PCI IRQ and has class code bit 0x5 set, it is
100% native.
* CSB5 _CAN_NOT_ have a PCI IRQ assigned (RO register).
* CSB5 spec clearly indicates that you can turn on class code bits 0x5 for
native mode operation.
* My system has the native mode bits turned on, but not an IRQ. The driver
incorrectly drops this case into teh "bad irq" case.
* Solution: cleanup probe to something like:
if ((is_storage_ide || is_storage_other) && native_bits && pciirq) {
/* 100% native mode */
init_chipset();
} else if ((is_storage_ide || is_storage_other) && native_bits) {
/* native mode */
init_chipset();
} else if (is_storage_ide || is_storage_other) {
/* non-native mode */
init_chipset();
} else {
/* what here ?!?! */
}
or simpler:
if (is_storage_ide || is_storage_other) {
if (native_bits && pciirq) {
/* 100% native mode */
} else if (native_bits) {
/* plain-old native mode */
} else {
/* non-native mode */
}
init_chipset();
} else {
/* what here?!? */
}
What do you think of this case? The other alternative is to turn OFF
native bits on any CSB5, since it can't have a PCI IRQ assigned.
Please let me know, and I'll work up and test a patch.
--
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.com
prev parent reply other threads:[~2001-10-18 3:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-16 17:38 [PATCH] IDE initialization fix Tim Hockin
2001-10-16 18:17 ` Andre Hedrick
2001-10-17 0:38 ` Tim Hockin
2001-10-17 5:35 ` Andre Hedrick
2001-10-18 3:21 ` Tim Hockin [this message]
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=3BCE4AA7.EBF134DC@sun.com \
--to=thockin@sun.com \
--cc=andre@linux-ide.org \
--cc=andre@linuxdiskcert.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox