From: Martin Lottermoser <Martin.Lottermoser@t-online.de>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: PATA DMA problem leading to kernel panic on reading movie DVDs
Date: Tue, 19 May 2009 23:12:21 +0200 [thread overview]
Message-ID: <20090519211221.GA6977@wanza.invalid> (raw)
In-Reply-To: <200905192131.00168.bzolnier@gmail.com>
Hi,
On Tue, May 19, 2009 at 09:30:59PM +0200, Bartlomiej Zolnierkiewicz wrote:
> Incremental patch fixing it:
>
> diff -u b/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
> --- b/drivers/ide/ide-iops.c
> +++ b/drivers/ide/ide-iops.c
> @@ -255,7 +255,7 @@
> if (ivb) {
> const char *model = (char *)&id[ATA_ID_PROD];
>
> - if (strcmp("TSSTcorp CDDVDW SH-S202", model) == 0) {
> + if (strstr("TSSTcorp CDDVDW SH-S202", model)) {
> /*
> * These ATAPI devices always report 80c cable
> * so we have to depend on the host in this case.
>
I applied that, recompiled, installed, rebooted, and checked the syslog.
The message was still
hdc: UDMA/66 mode selected
and hdparm also showed "udma4" as being selected. I therefore didn't test
with a DVD.
However, after twice reading the POSIX definition of strstr() I reversed
the order of the arguments to
if (strstr(model, "TSSTcorp CDDVDW SH-S202")) {
and that did it. Syslog now contained:
hdc: host side 80-wire cable detection failed, limiting max speed to UDMA33
hdc: UDMA/33 mode selected
hdparm showed "udma2", and playing movie DVDs worked without DMA being
disabled. :-)
That seems to be it, then. Many thanks for your help, and in particular for
the explanations.
Regards,
Martin Lottermoser
--
Martin Lottermoser Martin.Lottermoser at _REMOVE_t-online.de
Greifswaldstrasse 28
38124 Braunschweig http://home.vrweb.de/martin.lottermoser
Germany
next prev parent reply other threads:[~2009-05-19 21:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-17 9:12 PATA DMA problem leading to kernel panic on reading movie DVDs Martin Lottermoser
2009-05-17 10:42 ` Borislav Petkov
2009-05-17 11:15 ` Martin Lottermoser
2009-05-17 12:14 ` Martin Lottermoser
2009-05-17 19:34 ` Borislav Petkov
2009-05-17 19:45 ` Bartlomiej Zolnierkiewicz
2009-05-17 19:50 ` Borislav Petkov
2009-05-17 20:18 ` Bartlomiej Zolnierkiewicz
2009-05-17 20:30 ` Borislav Petkov
2009-05-17 22:48 ` Bartlomiej Zolnierkiewicz
2009-05-18 6:32 ` Borislav Petkov
2009-05-17 17:59 ` Robert Hancock
2009-05-17 19:35 ` Bartlomiej Zolnierkiewicz
2009-05-17 20:18 ` Martin Lottermoser
2009-05-18 16:40 ` Martin Lottermoser
2009-05-18 19:12 ` Martin Lottermoser
2009-05-19 15:19 ` Bartlomiej Zolnierkiewicz
2009-05-19 18:29 ` Martin Lottermoser
2009-05-19 19:30 ` Bartlomiej Zolnierkiewicz
2009-05-19 21:11 ` Bartlomiej Zolnierkiewicz
2009-05-19 21:12 ` Martin Lottermoser [this message]
2009-05-19 21:31 ` Bartlomiej Zolnierkiewicz
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=20090519211221.GA6977@wanza.invalid \
--to=martin.lottermoser@t-online.de \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).