From: Randolph Chung <randolph@tausq.org>
To: Grant Grundler <grundler@parisc-linux.org>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Re: 2.6.4-rc1-pa3 siimage/NS87415 IDE progess (and another mystery)!
Date: Sun, 11 Jul 2004 16:34:39 -0700 [thread overview]
Message-ID: <20040711233439.GX546@tausq.org> (raw)
In-Reply-To: <20040711231401.GW546@tausq.org>
> don't have an IDE drive to try it with, but if it works, shouldn't it be
> done as a pcibios fixup instead? We already have a fixup routine in
> drivers/parisc/superio.c:superio_fixup_pci(), so you can probably just
> add it there.
i.e. (the progif write was removed since it's redundant):
Index: drivers/parisc/superio.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/parisc/superio.c,v
retrieving revision 1.9
diff -u -p -r1.9 superio.c
--- drivers/parisc/superio.c 18 May 2004 13:08:56 -0000 1.9
+++ drivers/parisc/superio.c 11 Jul 2004 23:33:06 -0000
@@ -482,6 +482,16 @@ void superio_fixup_pci(struct pci_dev *p
pci_write_config_byte(pdev, PCI_CLASS_PROG, pdev->class);
pci_read_config_byte(pdev, PCI_CLASS_PROG, &prog);
+
+ /* IODC clobbers the CTRL registers with:
+ * CTRL1 = 0xf0 = "ATAPI buffer mode (no prefetching)" for everyone
+ * CTRL2 = 0x03 = mask chan1/2 interrupts
+ * CTRL3 = 0x00 = "disable prefetch buffer"/"Master Wait States"
+ */
+ pci_write_config_byte(pdev, 0x40, 0xf0); /* IDE_CTRL1 */
+ pci_write_config_byte(pdev, 0x41, 0x00); /* IDE_CTRL2 */
+ pci_write_config_byte(pdev, 0x42, 0x00); /* IDE_CTRL3 */
+
printk("PCI: Enabled native mode for NS87415 (pif=0x%x)\n", prog);
}
works fine on my c3750 with a cdrom drive too! Great job Grant :)
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
next prev parent reply other threads:[~2004-07-11 23:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-09 6:29 [parisc-linux] Results of (IDE) kernel tests with modified io.c M. Grabert
2004-03-09 6:36 ` Randolph Chung
2004-03-09 7:11 ` M. Grabert
2004-03-09 7:29 ` Randolph Chung
2004-03-09 15:26 ` [parisc-linux] 2.6.4-rc1-pa3 siimage/NS87415 IDE progess (and another mystery)! M. Grabert
2004-07-11 22:18 ` [parisc-linux] " Grant Grundler
2004-07-11 22:48 ` M. Grabert
2004-07-11 23:14 ` Randolph Chung
2004-07-11 23:34 ` Randolph Chung [this message]
2004-07-12 0:12 ` Grant Grundler
2004-07-12 3:37 ` M. Grabert
2004-07-12 4:19 ` M. Grabert
2004-07-12 16:14 ` Grant Grundler
2004-07-12 18:51 ` M. Grabert
2004-07-13 3:56 ` Grant Grundler
2004-07-13 5:59 ` Grant Grundler
2004-07-12 19:44 ` Alan Cox
2004-07-12 16:05 ` Grant Grundler
2004-07-12 18:39 ` M. Grabert
2004-07-12 18:50 ` Randolph Chung
2004-07-13 4:17 ` Grant Grundler
2004-07-11 23:34 ` Grant Grundler
2004-03-09 18:38 ` [parisc-linux] Results of (IDE) kernel tests with modified io.c Grant Grundler
2004-03-09 15:25 ` John David Anglin
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=20040711233439.GX546@tausq.org \
--to=randolph@tausq.org \
--cc=grundler@parisc-linux.org \
--cc=parisc-linux@lists.parisc-linux.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