Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Multiple EIDE cards
@ 2000-05-02  7:42 W Bauske
  2000-05-02 13:42 ` Jay Estabrook
  2000-05-02 15:44 ` Michal Jaegermann
  0 siblings, 2 replies; 5+ messages in thread
From: W Bauske @ 2000-05-02  7:42 UTC (permalink / raw)
  To: axp-list@redhat.com


In order to work around the problem of a slave drive on
my Promise UATA66 card causing a hang when probed at boot,
I've added a second card. For the moment, I'm using UATA33
cards instead of UATA66 cards. I found out that Alphas by
default will not configure more than 4 EIDE interfaces. So,
I modified include/asm-alpha/ide.h value MAX_HWIFS from 4
to 8 and also ran the scripts/MAKEDEV.ide script to add the
necessary device names in /dev. That all seems to have worked
and Linux now adds devices ide4/ide5 to the list of devices
but it doesn't seem to see the drives. I have a single drive
attached as master to ide channel one of the last card, which
I believe is ide4. This is all against 2.2.15pre17 code.

Current /proc/pci for the cards:

  Bus  0, device   8, function  0:
    RAID storage controller: Promise Technology IDE UltraDMA/33 (rev 1).
      Medium devsel.  IRQ 27.  Master Capable.  Latency=255.  
      I/O at 0x8800 [0x8801].
      I/O at 0x9000 [0x9001].
      I/O at 0x9800 [0x9801].
      I/O at 0xa000 [0xa001].
      I/O at 0xa800 [0xa801].

  Bus  1, device   7, function  0:
    RAID storage controller: Promise Technology IDE UltraDMA/33 (rev 1).
      Medium devsel.  IRQ 47.  Master Capable.  Latency=255.  
      I/O at 0x10000c000 [0x10000c001].
      I/O at 0x10000c800 [0x10000c801].
      I/O at 0x10000d000 [0x10000d001].
      I/O at 0x10000d800 [0x10000d801].
      I/O at 0x10000e000 [0x10000e001].

dmesg shows:

Uniform Multi-Platform E-IDE driver Revision: 6.30
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CY82C693: IDE controller on PCI bus 00 dev 29
CY82C693: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1220-0x1227, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1228-0x122f, BIOS settings: hdc:DMA, hdd:pio
PDC20246: IDE controller on PCI bus 00 dev 40
PDC20246: not 100% native mode: will probe irqs later
PDC20246: ROM enabled at 0x020a0000
PDC20246: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
PDC20246: FORCING BURST BIT 0x00 -> 0x01 ACTIVE
    ide2: BM-DMA at 0xa800-0xa807, BIOS settings: hde:DMA, hdf:DMA
    ide3: BM-DMA at 0xa808-0xa80f, BIOS settings: hdg:DMA, hdh:DMA
PDC20246: IDE controller on PCI bus 01 dev 38
PDC20246: not 100% native mode: will probe irqs later
PDC20246: ROM enabled at 0x01000000
PDC20246: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
PDC20246: FORCING BURST BIT 0x00 -> 0x01 ACTIVE
    ide4: BM-DMA at 0x10000e000-0x10000e007, BIOS settings: hdi:pio, hdj:DMA
    ide5: BM-DMA at 0x10000e008-0x10000e00f, BIOS settings: hdk:DMA, hdl:DMA
hda: Maxtor 93073U6, ATA DISK drive
hde: Maxtor 54098U8, ATA DISK drive
hdg: Maxtor 94098U8, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
io_request_lock is fffffc000051ea30
ide2 at 0x8800-0x8807,0x9002 on irq 27
ide3 at 0x9800-0x9807,0xa002 on irq 27
hda: Maxtor 93073U6, 29311MB w/2048kB Cache, CHS=59554/16/63, (U)DMA
hde: Maxtor 54098U8, 39082MB w/2048kB Cache, CHS=79406/16/63, UDMA(33)
hdg: Maxtor 94098U8, 39082MB w/2048kB Cache, CHS=79406/16/63, UDMA(33)
Partition check:
 hda: hda1 hda2 hda3 hda4
 hde: hde1
 hdg: hdg1

So, anyone have an idea on how to get the disks recognized
on the last card or what I need to change/add in the source?
My current thoughts are that somewhere 4 interfaces is hard
coded so the drive can't be found rather than using the
MAX_HWIFS defined value. Or, maybe the card didn't get initialized
right because it's on the second PCI bus.


Wes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple EIDE cards
  2000-05-02  7:42 Multiple EIDE cards W Bauske
@ 2000-05-02 13:42 ` Jay Estabrook
  2000-05-02 16:57   ` W Bauske
  2000-05-02 15:44 ` Michal Jaegermann
  1 sibling, 1 reply; 5+ messages in thread
From: Jay Estabrook @ 2000-05-02 13:42 UTC (permalink / raw)
  To: axp-list

On Tue, May 02, 2000 at 02:42:44AM -0500, W Bauske wrote:
> 
> Current /proc/pci for the cards:
> 
>   Bus  1, device   7, function  0:
>     RAID storage controller: Promise Technology IDE UltraDMA/33 (rev 1).
>       Medium devsel.  IRQ 47.  Master Capable.  Latency=255.  
>       I/O at 0x10000c000 [0x10000c001].
>       I/O at 0x10000c800 [0x10000c801].
>       I/O at 0x10000d000 [0x10000d001].
>       I/O at 0x10000d800 [0x10000d801].
>       I/O at 0x10000e000 [0x10000e001].
> 
> dmesg shows:
> 
>     ide4: BM-DMA at 0x10000e000-0x10000e007, BIOS settings: hdi:pio, hdj:DMA
>     ide5: BM-DMA at 0x10000e008-0x10000e00f, BIOS settings: hdk:DMA, hdl:DMA

> Or, maybe the card didn't get initialized right because it's on the
> second PCI bus.

I'm betting on the second PCI bus theory myself. It's possible that
somewhere in the IDE disk code that the upper 32-bits of the I/O
address is getting lost, which will have a serious side-effect... :-\

The messages seem to indicate that the DMA code preserves the full
64-bits, but there's nothing that shows what the disk probing code
is using; it may be PIO in there, and there may be some assumptions
as to the addresses to be used (ie hardwired to 32-bits, perhaps even
some specific 32-bit addresses).

Workaround: try to get that card on the first PCI bus, and see if it
is happier.

Good luck.

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple EIDE cards
  2000-05-02  7:42 Multiple EIDE cards W Bauske
  2000-05-02 13:42 ` Jay Estabrook
@ 2000-05-02 15:44 ` Michal Jaegermann
  2000-05-02 16:24   ` W Bauske
  1 sibling, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 2000-05-02 15:44 UTC (permalink / raw)
  To: axp-list

W Bauske wrote:
> 
> I found out that Alphas by
> default will not configure more than 4 EIDE interfaces.

Did you apply to your kernel IDE patches (to be found under
linux/kernel/people/hedrick/ on ftp.kernel.org mirrors)?  I do not
recall ever trying Alpha with that many IDE interfaces (one is usually
enough :-) so I do not know that these patches would help but I would
not be surprised to learn that they are necessary.

  Michal


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple EIDE cards
  2000-05-02 15:44 ` Michal Jaegermann
@ 2000-05-02 16:24   ` W Bauske
  0 siblings, 0 replies; 5+ messages in thread
From: W Bauske @ 2000-05-02 16:24 UTC (permalink / raw)
  To: axp-list

Michal Jaegermann wrote:
> 
> W Bauske wrote:
> >
> > I found out that Alphas by
> > default will not configure more than 4 EIDE interfaces.
> 
> Did you apply to your kernel IDE patches (to be found under
> linux/kernel/people/hedrick/ on ftp.kernel.org mirrors)?  I do not
> recall ever trying Alpha with that many IDE interfaces (one is usually
> enough :-) so I do not know that these patches would help but I would
> not be surprised to learn that they are necessary.
> 

I have the IDE DMA patches applied. Wouldn't be able to
run the Promise cards without them I think. I'm going
to try Jay's suggestion and swap a couple cards. I know
the video has to be on bus zero too so with two UATA33
cards and video, I'll be out of bus zero slots on a UP2K.

Should have that tested in a bit.


Wes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Multiple EIDE cards
  2000-05-02 13:42 ` Jay Estabrook
@ 2000-05-02 16:57   ` W Bauske
  0 siblings, 0 replies; 5+ messages in thread
From: W Bauske @ 2000-05-02 16:57 UTC (permalink / raw)
  To: axp-list

Jay Estabrook wrote:
> 
> On Tue, May 02, 2000 at 02:42:44AM -0500, W Bauske wrote:
> >
> > Current /proc/pci for the cards:
> >
> >   Bus  1, device   7, function  0:
> >     RAID storage controller: Promise Technology IDE UltraDMA/33 (rev 1).
> >       Medium devsel.  IRQ 47.  Master Capable.  Latency=255.
> >       I/O at 0x10000c000 [0x10000c001].
> >       I/O at 0x10000c800 [0x10000c801].
> >       I/O at 0x10000d000 [0x10000d001].
> >       I/O at 0x10000d800 [0x10000d801].
> >       I/O at 0x10000e000 [0x10000e001].
> >
> > dmesg shows:
> >
> >     ide4: BM-DMA at 0x10000e000-0x10000e007, BIOS settings: hdi:pio, hdj:DMA
> >     ide5: BM-DMA at 0x10000e008-0x10000e00f, BIOS settings: hdk:DMA, hdl:DMA
> 
> > Or, maybe the card didn't get initialized right because it's on the
> > second PCI bus.
> 
> I'm betting on the second PCI bus theory myself. It's possible that
> somewhere in the IDE disk code that the upper 32-bits of the I/O
> address is getting lost, which will have a serious side-effect... :-\
> 
> The messages seem to indicate that the DMA code preserves the full
> 64-bits, but there's nothing that shows what the disk probing code
> is using; it may be PIO in there, and there may be some assumptions
> as to the addresses to be used (ie hardwired to 32-bits, perhaps even
> some specific 32-bit addresses).
> 
> Workaround: try to get that card on the first PCI bus, and see if it
> is happier.
>

OK. Putting the second UATA33 card on bus zero allows
me to access it correctly.

So, that means the EIDE code has a problem somewhere
in it's probing(??) that is a 32bit'ism. I wonder if 
that also accounts for the hang I see when I put a slave
drive on the first channel when it probes the channel
at boot?


Wes


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-05-02 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-02  7:42 Multiple EIDE cards W Bauske
2000-05-02 13:42 ` Jay Estabrook
2000-05-02 16:57   ` W Bauske
2000-05-02 15:44 ` Michal Jaegermann
2000-05-02 16:24   ` W Bauske

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