From: Randolph Chung <randolph@tausq.org>
To: "M. Grabert" <xam@cs.ucc.ie>
Cc: Grant Grundler <grundler@parisc-linux.org>,
parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Results of (IDE) kernel tests with modified io.c
Date: Mon, 8 Mar 2004 23:29:17 -0800 [thread overview]
Message-ID: <20040309072917.GN1113@tausq.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0403090656070.13701@sal.ucc.ie>
> But what I'm wondering about is why the Silicon Image driver
> (always) detects the Seagate ST311022A hard drive as "TS130220A2".
> Since it uses mmio instead of PIO as the other drivers, maybe there is
> some big-endian problem in the Linux/PA-RISC mmio code? But then this
> problem must be somewhere in the IDE code, since all mmio in general
> seems to be working fine!
oh, for mmio you need to fix the macros in include/asm-parisc/ide.h. the
ones in io.c are for pio access. the mmio ones are new, i think, and
haven't been fixed properly (__ide_mm_insw, etc) -- you can try
replacing readw with __raw_readw, etc.
can you also try the native-mode fixup? something like this (sorry
it's not in patch format, my tree is a bit of a mess right now and it's
late....)
in arch/parisc/kernel/pci.c, change:
struct pci_fixup pcibios_fixups[] = {
{ PCI_FIXUP_HEADER, PCI_ANY_ID, PCI_ANY_ID, parisc_fixup_ide },
{ 0 }
};
parisc_fixup_ide is something like this:
static void __devinit parisc_fixup_ide(struct pci_dev *dev)
{
u8 prog;
if ((dev->class >> 8) != PCI_CLASS_STORAGE_IDE)
return;
pci_read_config_byte(dev, 8, &prog);
pci_write_config_byte(dev, 8, prog | 0x5);
dev->class |= 0x5;
}
not tested, YMMV :)
Grant tells me that he suspects there's a bug somewhere in the pci
config accessor functions tho... on my box i saw that, using something
similar to the above sequence, i read 0x8a into prog (this is the
default), but after the write if i read it again the value is still
0x8a :(
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
next prev parent reply other threads:[~2004-03-09 7:29 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 [this message]
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
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=20040309072917.GN1113@tausq.org \
--to=randolph@tausq.org \
--cc=grundler@parisc-linux.org \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=xam@cs.ucc.ie \
/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.