From: Grant Grundler <grundler@parisc-linux.org>
To: Eric Sproul <esproul@ntelos.net>
Cc: PA-RISC Linux <parisc-linux@lists.parisc-linux.org>
Subject: Re: [parisc-linux] gdth driver on L2000
Date: Wed, 24 Mar 2004 10:31:17 -0700 [thread overview]
Message-ID: <20040324173117.GA32052@colo.lackof.org> (raw)
In-Reply-To: <1080142280.1928.35.camel@thunderbolt.oss.ntelos.net>
On Wed, Mar 24, 2004 at 10:31:20AM -0500, Eric Sproul wrote:
> Forgive me if this is a FAQ.
It's not - no problem
...
> I want to use an Intel SRCU RAID controller in this machine, so I
> modified my config to build the gdth driver into the kernel. It fails
> with an error about DMA_MODE_CASCADE being undeclared. Looking further,
> I note that this is normally declared in include/asm-$ARCH/dma.h, but it
> doesn't appear in include/asm-parisc/dma.h. Is it undeclared because it
> doesn't work or because no one has needed it before?
DMA_MODE_CASCADE is for ISA bus support (8237A chips).
AFAIK, parisc doesn't support ISA.
And EISA support isn't fully working yet.
EISA support still needs some code written for the WAX chip IOMMU.
gdth is a "multi-bus" driver:
static int gdth_init_eisa(ushort eisa_adr,gdth_ha_str *ha);
static int gdth_init_isa(ulong32 bios_adr,gdth_ha_str *ha);
static int gdth_init_pci(gdth_pci_str *pcistr,gdth_ha_str *ha);
The problem is the driver assumes EISA/ISA/PCI are all enabled.
The linux-2.6/drivers/scsi/Kconfig entry says only any one of those:
config SCSI_GDTH
tristate "Intel/ICP (former GDT SCSI Disk Array) RAID Controller support
"
depends on (ISA || EISA || PCI) && SCSI
In short, the driver needs to be mangled so it works with only PCI enabled.
[ Actually, this driver violates Documentation/CodingStyle pretty seriously.
o too many "#if LINUX_VERSION_CODE" spread out all over the place.
o indentation is 4 spaces and nests too deep
]
> Would I be better off with a 2.6 kernel?
Not really. linux-2.6 shows the same problem:
grundler <507>fgrep DMA_MODE_CASCADE drivers/*/gdth*
drivers/scsi/gdth.c: set_dma_mode(ha->drq,DMA_MODE_CASCADE);
I've hacked a quick patch together that lets this driver *build* without
ISA/EISA support using linux-2.6/arch/parisc/configs/a500_defconfig.
Just enable CONFIG_GDTH and apply this patch:
ftp://ftp.parisc-linux.org/patches/diff-2.6.5-gdth-01
If it "works for you", please submit the patch to linux-scsi mailing list
(linux-scsi@vger.kernel.org) and cc parisc-linux mailing list.
> I took the lack of stock 2.6
> kernels for hppa in sid to mean that there was a problem, but I'd love
> to be wrong about that.
2.6 is working pretty well and I think it's just up to someone to
package and upload a linux-2.6 kernel*hppa.deb.
Thanks to Paul Bame, prebuilt tar balls and .debs of nightly builds
are available for both 2.4 and 2.6 hppa kernels:
http://cvs.parisc-linux.org/download/linux-2.4/
http://cvs.parisc-linux.org/download/linux-2.6/
For the L2000, you can run the "a500" flavor builds.
grant
next prev parent reply other threads:[~2004-03-24 17:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 15:31 [parisc-linux] gdth driver on L2000 Eric Sproul
2004-03-24 17:31 ` Grant Grundler [this message]
2004-03-24 19:56 ` Eric Sproul
2004-03-24 21:21 ` Eric Sproul
2004-03-25 3:27 ` Grant Grundler
2004-03-25 13:31 ` Eric Sproul
2004-03-25 3:26 ` Grant Grundler
2004-03-25 17:04 ` Eric Sproul
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=20040324173117.GA32052@colo.lackof.org \
--to=grundler@parisc-linux.org \
--cc=esproul@ntelos.net \
--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