From: Matt Sealey <matt@genesi-usa.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-ide@vger.kernel.org
Subject: Re: how to handle pata_via when controller not in fully-pci-native mode (two irqs?)
Date: Sat, 23 Jun 2007 11:11:50 +0100 [thread overview]
Message-ID: <467CF1E6.8000905@genesi-usa.com> (raw)
In-Reply-To: <20070623105344.3ece6db1@the-village.bc.nu>
I'm a litle confused here.
Page 10 (4.2.1) so I just mask off bit 0 and bit 2 of the class prog-if byte and set
it to "compatible" mode which will basically mean PCI mapped registers and
two IRQs? This corresponds with the table on Page 7 (4.2.1.1)..
Checked the Pegasos IDE class code and in the firmware it's set to 0x1018F so, I
would assume the correct value is 0x1018A (knocking out the "native mode").
Okay! Great. This looks easy. Just gotta decode PCI addresses in Forth now..
--
Matt Sealey <matt@genesi-usa.com>
Genesi, Manager, Developer Relations
Alan Cox wrote:
> On Sat, 23 Jun 2007 10:33:46 +0100
> Matt Sealey <matt@genesi-usa.com> wrote:
>
>> Alan Cox wrote:
>>> On Sat, 23 Jun 2007 01:26:06 +0100
>>>
>>> The simplest way is probably to load the pci class and programming
>>> interface bits correctly for the device to match how your IRQ setup has
>>> been arranged. See page 78 of the VIA 8231 spec if you have it, and load
>>> the programming class in the boot firmware or in a PCI header quirk)
>> Ah so the correct way *is* to change the PCI class? I don't think we're
>> going to be publishing such a thing in the firmware (sadly) but this could
>> be done in a platform fixup for sure, then? Or a Forth script in the
>> firmware... hmm.. that sounds pretty easy actually.
>
> The programming interface.
>
> http://t13.org/Documents/UploadedDocuments/project/d1510r1-Host-Adapter.pdf
>
> explains it all.
>
> The only other gotcha is that if you want to change the class bits to
> indicate the device is in legacy mode you must do that in an "early"
> fixup so that it occurs before pci_setup_device makes decisions based
> upon the programming interface.
>
>
next prev parent reply other threads:[~2007-06-23 10:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-23 0:26 how to handle pata_via when controller not in fully-pci-native mode (two irqs?) Matt Sealey
2007-06-23 4:23 ` Jeff Garzik
2007-06-23 9:33 ` Alan Cox
2007-06-23 9:33 ` Matt Sealey
2007-06-23 9:53 ` Alan Cox
2007-06-23 10:11 ` Matt Sealey [this message]
2007-07-03 7:33 ` Tejun Heo
2007-07-03 8:11 ` Matt Sealey
2007-07-03 9:21 ` Tejun Heo
2007-07-03 12:44 ` Matt Sealey
2007-07-03 12:17 ` Alan Cox
2007-07-03 12:32 ` Matt Sealey
2007-07-03 13:38 ` Alan Cox
2007-07-03 13:41 ` Matt Sealey
2007-07-03 13:53 ` Jeff Garzik
2007-07-03 14:00 ` Matt Sealey
2007-07-03 15:08 ` Jeff Garzik
2007-07-03 13:53 ` Alan Cox
2007-07-03 13:54 ` Matt Sealey
2007-07-04 8:55 ` Tejun Heo
2007-07-04 19:08 ` Matt Sealey
2007-07-05 2:28 ` Tejun Heo
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=467CF1E6.8000905@genesi-usa.com \
--to=matt@genesi-usa.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).