From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: lkml <linux-kernel@vger.kernel.org>,
andre@linux-ide.org, ralf.hildebrandt@charite.de
Subject: Re: Linux 2.4.21-pre1
Date: Wed, 11 Dec 2002 18:51:33 +0100 [thread overview]
Message-ID: <A09B1892F30@vcnet.vc.cvut.cz> (raw)
On 11 Dec 02 at 17:29, Alan Cox wrote:
> Ok this seems to be the problem
>
> 00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02) (prog-if
> 8a [Master SecP PriP])
> Subsystem: Toshiba America Info Systems: Unknown device 0001
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin A routed to IRQ 11
> Region 0: I/O ports at cff8 [size=8]
> Region 1: I/O ports at cff4 [size=4]
> Region 2: I/O ports at cfe8 [size=8]
> Region 3: I/O ports at cfe4 [size=4]
>
>
> The hardware isnt at the normal ide base addresse, yet the chip is
> reporting that it isnt in native mode. As far as I can see this
> configuration isnt allowed.
An old, pre-BMDMA, "PCI IDE Controller Specification, rev 1.0, 3/4/94"
I have here says on page 3, in chapter 2.4, second and third paragraphs say:
--
When a channel is in 'compatibility' mode, the controller can either
disable the first four Base Address registers (i.e.; make them not
writable and return 0's when read) or leave them fully programmable. In
either case the values in these registers are ignored as long as the
channel is in 'compatibility' mode.
When a channel is in compatibility mode the IRQ used by the channel
must be the 'compatibility' IRQ. PCI interrupt lines must not be effected
by that channel's interrupt. Conversely, when the channel is in native-PCI
mode the channel's interrupt should be connected to the appropriate INTx#.
Compatibility IRQs should not be effected (i.e.; they should be tristated).
--
> We see that the chip isnt in native mode so we defer to the legacy
> scanner. Since the ports are not valid the legacy scanner doesn't find
> them.
>
> Any thoughts on how we should handle this case Andre ?
We should ignore BARs (and reported INT#) when chip is not in native mode,
but I'm sure that it breaks something else (note that I do not know any
chip which honors BARs when using compatible mode; only problematic piece
of hardware I know is PDC20265, but this one does not report itself
as IDE hardware, so for this chip we have special cases in the code already;
maybe VIA uses IRQ number specified in PCI config space instead of
14/15?).
Petr Vandrovec
vandrove@vc.cvut.cz
next reply other threads:[~2002-12-11 17:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-11 17:51 Petr Vandrovec [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-11 3:58 Linux 2.4.21-pre1 Alex Davis
2002-12-12 15:12 ` Adrian Bunk
2002-12-10 20:37 Marcelo Tosatti
2002-12-11 1:14 ` Adrian Bunk
2002-12-11 8:55 ` Matthias Andree
2002-12-11 9:20 ` Marc-Christian Petersen
2002-12-11 9:08 ` Ralf Hildebrandt
2002-12-11 16:07 ` Alan Cox
2002-12-11 15:34 ` Ralf Hildebrandt
2002-12-11 15:56 ` Ralf Hildebrandt
2002-12-11 17:29 ` Alan Cox
2002-12-15 9:56 ` Ralf Hildebrandt
2002-12-16 6:34 ` Alan Cox
2002-12-17 8:02 ` Ralf Hildebrandt
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=A09B1892F30@vcnet.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andre@linux-ide.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ralf.hildebrandt@charite.de \
/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