public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Promise, DMA and RAID5 problems running 2.4.1
@ 2001-02-07 20:40 Petr Vandrovec
  2001-02-07 20:06 ` Alan Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Petr Vandrovec @ 2001-02-07 20:40 UTC (permalink / raw)
  To: Alan Cox; +Cc: A.Sajjad Zaidi, linux-kernel

On  7 Feb 01 at 19:33, Alan Cox wrote:
> > It is known bug which I reported to Andre already. Open
> > drivers/ide/ide.c in favorite text editor, and replace strange
> > body of ide_delay_50ms() with simple mdelay(50). Promise driver
> > invokes ide_delay_50ms with interrupts disabled, so it freezes
> > here forever. If you have NMI watchdog, you'll get nice oopses.
> 
> Its a bug in the promise driver. ide_delay_50ms() is being friendly to the
> rest of the box. If the reset path for the promise cant be polite then it
> should use mdelay() itself.

Iff CONFIG_BLK_DEV_IDECS is set then yes, doing schedule is better.
But I do not see any benefit in doing

unsigned long timeout = jiffies + ((HZ + 19)/20) + 1;
while (0 < (signed long)(timeout - jiffies));

over

mdelay(50);

And on my box, busy while loop is executed, not schedule(HZ/20)...

                                                Thanks,
                                                    Petr Vandrovec
                                                    vandrove@vc.cvut.cz
                                                    
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <Pine.LNX.4.10.10102070924340.19012-100000@coffee.psychology.mcmaster.ca>]
* Re: Promise, DMA and RAID5 problems running 2.4.1
@ 2001-02-07 13:15 Petr Vandrovec
  2001-02-07 19:33 ` Alan Cox
  2001-02-08  5:07 ` A.Sajjad Zaidi
  0 siblings, 2 replies; 10+ messages in thread
From: Petr Vandrovec @ 2001-02-07 13:15 UTC (permalink / raw)
  To: A.Sajjad Zaidi; +Cc: linux-kernel

On  7 Feb 01 at 19:12, A.Sajjad Zaidi wrote:

> I just built a system that uses a K7V motherboard with the KT133
> chipset. It has an onboard Promise PDC20265 ATA-100 controller.  Im
> running RH6.2.
> 
> hda: dma_intr: bad DMA status
> hda: dma_intr: status=0x50 { DriveReady SeekComplete }
> hda: dma_intr: bad DMA status
> hda: dma_intr: status=0x50 { DriveReady SeekComplete }
> hda: dma_intr: bad DMA status
> hda: dma_intr: status=0x50 { DriveReady SeekComplete }
> hda: dma_intr: bad DMA status
> hda: dma_intr: status=0x50 { DriveReady SeekComplete }
> hda: DMA disabled
> hdb: DMA disabled
> 
> and the system freezes completely. I have no option, but to do a cold
> reboot.

It is known bug which I reported to Andre already. Open
drivers/ide/ide.c in favorite text editor, and replace strange
body of ide_delay_50ms() with simple mdelay(50). Promise driver
invokes ide_delay_50ms with interrupts disabled, so it freezes
here forever. If you have NMI watchdog, you'll get nice oopses.

As for DMA failure itself, I have no idea what is wrong in your
case, but I found that mine Promise works with Linux only iff there
is master on each channel, slave alone does not work. And I did not
tried master+slave together.
                                    Petr Vandrovec
                                    vandrove@vc.cvut.cz
                                    
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Promise, DMA and RAID5 problems running 2.4.1
@ 2001-02-07 10:12 A.Sajjad Zaidi
  0 siblings, 0 replies; 10+ messages in thread
From: A.Sajjad Zaidi @ 2001-02-07 10:12 UTC (permalink / raw)
  To: linux-kernel

I just built a system that uses a K7V motherboard with the KT133
chipset. It has an onboard Promise PDC20265 ATA-100 controller.  Im
running RH6.2.

I built a 2.4.1 kernel with support for the controller and it booted up
fine with the "ide=reverse" parameter. It was when I tried adding new
drives (all IBM-DTLA307045 s) that I realised that the cylinder/head
translation is different and I cant use the whole drive unless its
partitioned while attached to the other IDE ports.

The only option was to attach it to the normal ports and move the drive
back after partitioning. I dont see any jumpers or BIOS options to
change this so it must be a kernel setting, but I dont see anythere
there.


Second, I set up raid mirroring for 4 drives(2 raid, 2spare).  Since one
drive isnt available yet, one of the 2 raid partitions are set as
'failed-disk'. All drives are connected to the ATA-100 controller. This
worked fine and I could even boot off of /dev/md0 until I setup raid5.

The main problem started after I setup raid5 on the remaining space
(3raid, 1spare), total space of about 82GB. One of the 3 raid disks were
set to failed, so it included the spare in the array and continued
reconstruction.

After doing hdparm -tT /dev/md4 a couple of times or transfering data to
it, I get the following message:

hda: dma_intr: bad DMA status
hda: dma_intr: status=0x50 { DriveReady SeekComplete }
hda: dma_intr: bad DMA status
hda: dma_intr: status=0x50 { DriveReady SeekComplete }
hda: dma_intr: bad DMA status
hda: dma_intr: status=0x50 { DriveReady SeekComplete }
hda: dma_intr: bad DMA status
hda: dma_intr: status=0x50 { DriveReady SeekComplete }
hda: DMA disabled
hdb: DMA disabled

and the system freezes completely. I have no option, but to do a cold
reboot.

Without DMA support, everything is fine, but hdparm gives me a mere 8.xx
MB/s  transfer rate.
Anyone else have very similar problems?


A.Sajjad Zaidi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-02-09  8:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-07 20:40 Promise, DMA and RAID5 problems running 2.4.1 Petr Vandrovec
2001-02-07 20:06 ` Alan Cox
2001-02-07 20:53   ` Andre Hedrick
2001-02-09  8:09     ` Vojtech Pavlik
     [not found] <Pine.LNX.4.10.10102070924340.19012-100000@coffee.psychology.mcmaster.ca>
2001-02-08  2:00 ` A.Sajjad Zaidi
2001-02-08  2:06   ` Stephen Wille Padnos
  -- strict thread matches above, loose matches on Subject: below --
2001-02-07 13:15 Petr Vandrovec
2001-02-07 19:33 ` Alan Cox
2001-02-08  5:07 ` A.Sajjad Zaidi
2001-02-07 10:12 A.Sajjad Zaidi

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