mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: IDE todo list
Date: Sun, 23 Mar 2003 04:49:58 +0100	[thread overview]
Message-ID: <20030323034957.GA28820@vana.vc.cvut.cz> (raw)
In-Reply-To: <1048360040.9221.23.camel@irongate.swansea.linux.org.uk>

On Sat, Mar 22, 2003 at 07:07:21PM +0000, Alan Cox wrote:
> On Sat, 2003-03-22 at 17:24, Petr Vandrovec wrote:
> >   any hope that promise 20265 driver could detect non-udma66 cable
> > and run at udma2 only? BIOS properly detect this, but Linux driver
> > wants to use udma100, and usually dies hard with CRC errors during
> > reading of PTBL extended chain (it also should not lockup when
> > CRC error happens 5 times in a row, but ...).
> 
> The five CRC in a row is what causes the DMA->PIO changedown. That
> implies there is a real bug in the error handling locking, or in
> the driver handling of that.
> 
> Can you throw some printks into the ide code and see what kind of 
> a death you get when it tries to change back to PIO.
> 
> As to the cable stuff, I'll take a look at it in time, but both
> need fixing

This one fixes lockup, but I'm not actually sure that it is better
than before, as both channels are downgraded to the PIO:

... CRC error stuff ...
PDC202XX: Secondary channel reset
PDC202XX: Primary channel reset
ide3: reset: master: error (0x00?)
... USB stuff & so on, before mounting root ...
... repeat 4 times:
hde: dma_timer_expiry: dma status = 0x21
hde: timeout waiting for DMA
PDC202XX: Primary channel reset
PDC202XX: Secondary channel reset
hde: timeout waiting for DMA
... end of repeat
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 292k freed
init-2.04#

It looks like that hde resurrecting did not cause any damage to the
filesystems (and obviously hde is completely innocent udma100 citizen;
hdg is the only one which should be turned to udma2 or pio).

And strange thing, once I was lucky enough to read partition table from 
hdg, so I could run atapci, and it reports that hde host interface is setup 
for UDMA4, while hdg for UDMA2. So host hardware is actually probably set 
ok, it is just "hdg: 234441648 sectors (120034 MB) w/2048KiB Cache, 
CHS=232581/16/63, UDMA(100)" which contains wrong value, and hdg itself, 
which says that udma5 is selected (and does not work).
						Petr Vandrovec
						vandrove@vc.cvut.cz


--- linux-2.5.65-c1197.dist/drivers/ide/ide-iops.c	2003-03-22 15:29:16.000000000 +0100
+++ linux-2.5.65-c1197/drivers/ide/ide-iops.c	2003-03-23 04:26:14.000000000 +0100
@@ -902,7 +902,7 @@
         /*
          * Select the drive, and issue the SETFEATURES command
          */
-	disable_irq(hwif->irq);	/* disable_irq_nosync ?? */
+	disable_irq_nosync(hwif->irq);
 	udelay(1);
 	SELECT_DRIVE(drive);
 	SELECT_MASK(drive, 0);

  parent reply	other threads:[~2003-03-23  3:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-22 17:01 Alan Cox
2003-03-22 17:24 ` Petr Vandrovec
2003-03-22 19:07   ` Alan Cox
2003-03-22 18:03     ` Nicholas Wourms
2003-03-22 20:36       ` Alan Cox
2003-03-22 20:33         ` Nicholas Wourms
2003-03-22 23:32           ` Alan Cox
2003-03-23  3:49     ` Petr Vandrovec [this message]
2003-03-23 15:41       ` Alan Cox
2003-03-23  9:27 ` Matthias Andree
2003-03-23 11:19   ` Jens Axboe
2003-03-23 11:20     ` Jens Axboe
2003-03-23 12:33       ` Matthias Andree
2003-03-23 10:49 ` Jens Axboe
2003-03-23 15:23   ` Alan Cox
2003-03-23 14:13     ` Jens Axboe
2003-03-23 21:07 ` Andre Hedrick
     [not found] <20030322160012$0f05@gated-at.bofh.it>
     [not found] ` <20030322173016$24a8@gated-at.bofh.it>
     [not found]   ` <20030322180018$5114@gated-at.bofh.it>
2003-03-23 12:14     ` Allan Duncan

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=20030323034957.GA28820@vana.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®