From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: martin@dalecki.de
Cc: linux-kernel@vger.kernel.org
Subject: IDE from current bk tree, UDMA and two channels...
Date: Tue, 30 Jul 2002 16:03:41 +0200 [thread overview]
Message-ID: <963E6E41A8@vcnet.vc.cvut.cz> (raw)
Hi Martin,
here at work I have i845 chipset, with one UDMA100 disk connected
to the primary channel, and one UDMA100 disk and one CD-DVD on the
secondary one. CD-DVD driver is not loaded at all, all three devices
are configured for UDMA by kernel.
Today 2.5.29-cset511 died when rebooting to 2.5.29-cset536 (rmap.c:212
BUG(), but I believe that it is fixed by Paulus's page->index patch
(cset520)) and after reboot I'm not able to fsck /dev/hdc1. It dies with
hdc: ide_dma_intr: status=0x58 [ drive ready,seek complete,data request]
hdc: request error, nr. 1
and fsck is D, and channel is stopped :-( First something easy: I think
that we should use ", " as a separator in dump_bits, and if there is
space after opening "[", there should be also space before closing "]".
Second problem is that read operation which ends with
"drive ready, seek complete, data request" (why it happened in first
place?) will just read one sector from drive (it was DMA transfer,
so drive->mult_count == 0), and then it returns from ata_error
with ATA_OP_CONTINUES. But what continues? Drive told us that
current operation is done, and no new operation was started, so
there is very low chance that some IRQ will ever come, and timer was
just removed by ata_irq_request(), so channel will never awake.
And third, why this happens at all? When I instrumented ide_dma_intr
with printk, udma_stop() returns zero: it means that everything went
fine, UDMA engine asked for interrupt, no error, UDMA engine stopped.
Only reason I can invent is that drive did not clear DRQ bit yet, or
that we programmed UDMA engine with too few bytes to transfer. Either
of these explanations looks strange to me, as this does not explain
why it happens only when both channels are in use simultaneously.
And last thing: problem does not happen when only one of channels is
active, it is triggered only when both channels are active, and
channel #1 is always one which dies. Channel #0 uses IRQ14, channel #1
IRQ15, so there should be no sharing involved.
Thanks,
Petr Vandrovec
vandrove@vc.cvut.cz
next reply other threads:[~2002-07-30 14:00 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-30 14:03 Petr Vandrovec [this message]
2002-07-30 14:25 ` IDE from current bk tree, UDMA and two channels Marcin Dalecki
-- strict thread matches above, loose matches on Subject: below --
2002-07-30 16:15 Petr Vandrovec
2002-07-30 18:19 Petr Vandrovec
2002-07-31 19:48 ` Marcin Dalecki
2002-07-30 19:26 Petr Vandrovec
2002-07-31 20:01 ` Marcin Dalecki
2002-08-01 9:56 ` Jens Axboe
2002-08-01 9:56 ` Marcin Dalecki
2002-08-01 10:05 ` Jens Axboe
2002-08-01 10:33 ` Marcin Dalecki
2002-08-01 10:45 ` Jens Axboe
2002-08-01 17:07 Petr Vandrovec
2002-08-01 22:00 ` Petr Vandrovec
2002-08-01 22:13 ` Marcin Dalecki
2002-08-01 22:39 ` Alexander Viro
2002-08-01 22:34 Petr Vandrovec
2002-08-01 22:42 Petr Vandrovec
2002-08-01 22:52 ` Alexander Viro
2002-08-02 9:11 ` Marcin Dalecki
[not found] <200208012219.g71MJV109133@penguin.transmeta.com>
2002-08-01 22:45 ` Alexander Viro
2002-08-02 9:10 ` Marcin Dalecki
2002-08-01 22:53 Petr Vandrovec
2002-08-01 23:02 ` Alexander Viro
2002-08-01 23:54 ` Linus Torvalds
2002-08-01 23:00 Petr Vandrovec
2002-08-01 23:05 ` Alexander Viro
2002-08-01 23:13 Petr Vandrovec
2002-08-02 13:07 ` Alan Cox
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=963E6E41A8@vcnet.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=martin@dalecki.de \
/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