Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Richard Mortimer Humphrey <m0rt1m3r@ccrma.stanf0rd.edu>
Subject: Re: ATA-133 interface on a 164LX ? Works great, but not with TWO!
Date: Wed, 30 Apr 2003 15:12:45 -0700	[thread overview]
Message-ID: <3EB04A5D.3060908@ccrma.stanf0rd.edu> (raw)
In-Reply-To: yw1xznm8se4b.fsf@zaphod.guide

Actually I solved it!

  That's a very good point but it turns out one ribbon equals one interface.

  In the kernel source in ide-pci.c it uses the constant MAX_HWIFS
which I assumed(!) was 10. I put in a printk and it's 4!

  I knew this was defined in a .h somewhere but where? I got frustrated 
and went into include/ in the kernel source three and did a brute-force 
search of different wildcard depths till I got:

grep MAX_HWIFS */* | grep -i define

Here is what I got! Pretty logical place for it, really!

asm-alpha/ide.h:#define MAX_HWIFS       4
asm-arm/ide.h:#define MAX_HWIFS 4
asm-cris/ide.h:#define MAX_HWIFS        4
asm-i386/ide.h:#define MAX_HWIFS        10
asm-i386/ide.h:#define MAX_HWIFS        6
asm-ia64/ide.h:#define MAX_HWIFS        10
asm-ia64/ide.h:#define MAX_HWIFS        6
asm-m68k/ide.h:#define MAX_HWIFS        4       /* same as the other 
archs */
asm-mips64/ide.h:#define MAX_HWIFS      10
asm-mips64/ide.h:#define MAX_HWIFS      6
asm-mips/ide.h:#define MAX_HWIFS        10
asm-mips/ide.h:#define MAX_HWIFS        6
asm-parisc/ide.h:#define MAX_HWIFS      2
asm-ppc64/ide.h:#define MAX_HWIFS       4
asm-ppc/ide.h:#define MAX_HWIFS 8
asm-s390/ide.h:#define MAX_HWIFS        0
asm-s390x/ide.h:#define MAX_HWIFS       0
asm-sh/ide.h:#define MAX_HWIFS  2
asm-sparc64/ide.h:#define MAX_HWIFS     2
asm-sparc/ide.h:#define MAX_HWIFS       2
asm-x86_64/ide.h:#define MAX_HWIFS      10
asm-x86_64/ide.h:#define MAX_HWIFS      6

Who knows why they did that, I guess they didn't expect autoprobed 
interfaces on alpha. I changed it to a 6 and recompiled. Six drives on 
six different ribbons, everything works!! Yay! I have no idea how high 
you can actually go. No intention of finding out either!

Now I have to do some testing to make sure this is reliable and stable, 
but so far it looks pretty good and the speed of this box is pretty 
respectable for a six year old machine! So far, it does what I want. 
I'll just back things up as best I can until I completely trust it. It's 
all my data....

Now I can get some sleep....

Thanks,
=Rich
_____________________________________________________________________
Richard Mortimer Humphrey
CCRMA

M�ns Rullg�rd wrote:
> Richard Mortimer Humphrey <m0rt1m3r@ccrma.stanf0rd.edu> writes:
> 
> 
>>I've got that working but I have a new problem.
>>
>>I have a Promise ATA133 ( pdc20269 ) controller in my machine, a
>>PC164LX 533, running Redhat 7.2 on 2.4.20. You could put the system on
>>the ATA-133 but to boot, you need a drive on the primary with a kernel
>>on it.
>>
>>
>>My problem is that I want to use TWO pdc20269 cards. They are
>>recognized just fine and appear to function but the kernel won't
>>support more than four ide interfaces for some reason, it says 'too
>>many ide interfaces, no room in table' which is just wierd because it
>>should support up to ten.
> 
> 
> Have you checked the configuration option for this?  Two onboard and
> four addin channels make a total of 12 interfaces.
> 




      reply	other threads:[~2003-04-30 22:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-03 16:55 ATA-133 interface on a 164LX ? Abroad
2003-04-16 23:35 ` OSY
2003-04-17  4:30   ` Michal Jaegermann
2003-04-18 11:05     ` Per
2003-04-19  8:14       ` Måns Rullgård
2003-04-19 18:07       ` Michal Jaegermann
2003-04-26  6:25     ` OSY
2003-04-27  1:06       ` Michal Jaegermann
2003-04-30  2:35         ` ATA-133 interface on a 164LX ? Works great, but not with TWO! Richard Mortimer Humphrey
2003-04-30  6:17           ` Måns Rullgård
2003-04-30 22:12             ` Richard Mortimer Humphrey [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox