From: Frans Pop <elendil@planet.nl>
To: David Miller <davem@davemloft.net>
Cc: bzolnier@gmail.com, sparclinux@vger.kernel.org,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: cmd64x: irq 14: nobody cared - system is dreadfully slow
Date: Tue, 23 Jun 2009 16:58:54 +0200 [thread overview]
Message-ID: <200906231658.56489.elendil@planet.nl> (raw)
In-Reply-To: <20090623.031506.214747802.davem@davemloft.net>
On Tuesday 23 June 2009, you wrote:
> We might need to bisect this one. But Frans, just for the record
> could you simply test reverting just that hunk? Thanks!
I'm way ahead of you :-)
Instead of a bisect [1] I decided to first see if some printks in both .26
and .31 would show anything useful.
With 2.6.31 and code included below I get:
hda: ST34342A, ATA DISK drive
FJP: id_dma_bug 0x7: &4: 0x0-0x4 no error
hda: MWDMA2 mode selected
hdc: Maxtor 6E040L0, ATA DISK drive
hdd: CD-ROM 56X/AKH, ATAPI CD/DVD-ROM drive
hdc: host max PIO5 wanted PIO255(auto-tune) selected PIO4
FJP: ID_FIELD_VALID: 0x7 (true)
FJP: id_dma_bug 0x7: &4: 0x0-0x4 no error
hdc: MWDMA2 mode selected
hdd: host max PIO5 wanted PIO255(auto-tune) selected PIO4
FJP: ID_FIELD_VALID: 0x2 (true)
FJP: id_dma_bug 0x2: &2: 0x1-0x1 bad modes <-------------
hdd: bad DMA info in identify block
Note that this included a complete revert of 8d64fcd9 (with minor conflict
resolved).
Here's the same output with 2.6.26.3 with equivalent debug statements:
hda: ST34342A, ATA DISK drive
FJP: id_dma_bug 0x7: &4: 0x0-0x0 no error
hda: MWDMA2 mode selected
hdc: Maxtor 6E040L0, ATA DISK drive
hdd: CD-ROM 56X/AKH, ATAPI CD/DVD-ROM drive
FJP: id_dma_bug 0x7: &4: 0x0-0x0 no error
hdc: MWDMA2 mode selected
FJP: id_dma_bug 0x2: &2: 0x0-0x0 no error <-------------
hdd: MWDMA2 mode selected
So it seems to me that in 2.6.26 something was broken in the way these ID
fields were handled, at least in this check. This is now fixed (possibly
by the changes around 5b90e990..48fb2688) and *that* causes the
regression. Note that the hard disks are also affected.
If I'm correct I guess that supports Bart's patch to just remove the whole
thing. But did this only affect the id_dma_bug check or also the use of
these fields elsewhere?
Cheers,
FJP
[1] I don't have a crossbuild environment for sparc, so a bisect would be
painful with 300MHz; I at least have plenty memory luckily.
int ide_id_dma_bug(ide_drive_t *drive)
{
u16 *id = drive->id;
printk("FJP: id_dma_bug 0x%x:", id[ATA_ID_FIELD_VALID]);
if (id[ATA_ID_FIELD_VALID] & 4) {
printk(" &4: 0x%x-0x%x", (id[ATA_ID_UDMA_MODES] >> 8),
(id[ATA_ID_MWDMA_MODES] >> 8));
if ((id[ATA_ID_UDMA_MODES] >> 8) &&
(id[ATA_ID_MWDMA_MODES] >> 8)) {
printk(" bad modes");
goto err_out;
}
} else if (id[ATA_ID_FIELD_VALID] & 2) {
printk(" &2: 0x%x-0x%x", (id[ATA_ID_MWDMA_MODES] >> 8),
(id[ATA_ID_SWDMA_MODES] >> 8));
if ((id[ATA_ID_MWDMA_MODES] >> 8) &&
(id[ATA_ID_SWDMA_MODES] >> 8)) {
printk(" bad modes");
goto err_out;
}
}
printk(" no error\n");
return 0;
err_out:
printk("\n");
printk(KERN_ERR "%s: bad DMA info in identify block\n",
drive->name);
return 1;
}
next prev parent reply other threads:[~2009-06-23 14:58 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-20 21:52 cmd64x: irq 14: nobody cared - system is dreadfully slow Frans Pop
2009-06-21 0:19 ` David Miller
2009-06-21 4:47 ` Frans Pop
2009-06-21 12:46 ` Frans Pop
2009-06-21 13:33 ` Bartlomiej Zolnierkiewicz
2009-06-21 20:14 ` Frans Pop
2009-06-22 1:56 ` David Miller
2009-06-22 4:28 ` Frans Pop
2009-06-22 5:45 ` David Miller
2009-06-22 6:43 ` Frans Pop
2009-06-22 6:44 ` David Miller
2009-06-22 11:21 ` Bartlomiej Zolnierkiewicz
2009-06-22 14:04 ` Frans Pop
2009-06-22 14:39 ` Bartlomiej Zolnierkiewicz
2009-06-22 15:16 ` Frans Pop
2009-06-22 17:38 ` Bartlomiej Zolnierkiewicz
2009-06-22 19:01 ` Frans Pop
2009-06-22 21:35 ` Bartlomiej Zolnierkiewicz
2009-06-23 7:51 ` [PATCH] ide-cd: Improve "weird block size" error message Frans Pop
2009-06-23 7:57 ` Borislav Petkov
2009-06-23 8:02 ` Borislav Petkov
2009-06-23 23:03 ` David Miller
2009-06-23 8:20 ` Frans Pop
2009-06-23 10:59 ` David Miller
2009-06-23 11:13 ` Frans Pop
2009-06-23 11:18 ` David Miller
2009-06-23 21:30 ` Frans Pop
2009-06-23 23:01 ` David Miller
2009-06-29 11:19 ` Jan Engelhardt
2009-06-23 10:15 ` cmd64x: irq 14: nobody cared - system is dreadfully slow David Miller
2009-06-23 14:58 ` Frans Pop [this message]
2009-06-23 16:13 ` Bartlomiej Zolnierkiewicz
2009-06-23 23:04 ` David Miller
2009-06-23 10:47 ` David Miller
2009-06-23 10:43 ` David Miller
2009-07-31 14:08 ` Frans Pop
2009-08-01 5:46 ` David Miller
2009-08-05 20:43 ` [stable] " Greg KH
2009-06-21 13:15 ` Bartlomiej Zolnierkiewicz
2009-06-21 21:19 ` David Miller
2009-06-21 22:34 ` Bartlomiej Zolnierkiewicz
2009-06-21 22:57 ` David Miller
2009-06-21 23:13 ` New IDE maintainer (was Re: cmd64x: irq 14: nobody cared - system is dreadfully slow) David Miller
2009-06-21 23:45 ` Bartlomiej Zolnierkiewicz
2009-06-21 23:52 ` New IDE maintainer David Miller
2009-06-22 0:53 ` New IDE maintainer (was Re: cmd64x: irq 14: nobody cared - system is dreadfully slow) Matthew Wilcox
2009-06-22 0:00 ` Stephen Rothwell
2009-06-22 0:20 ` New IDE maintainer David Miller
2009-06-22 3:39 ` New IDE maintainer (was Re: cmd64x: irq 14: nobody cared - system is dreadfully slow) Greg Freemyer
2009-06-22 17:03 ` Jeff Garzik
2009-06-22 17:11 ` Alan Cox
2009-06-22 17:21 ` Arnd Bergmann
2009-06-22 17:32 ` Alan Cox
2009-06-22 3:47 ` cmd64x: irq 14: nobody cared - system is dreadfully slow Frans Pop
2009-06-21 15:43 ` Bartlomiej Zolnierkiewicz
2009-06-21 21:21 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2009-06-20 21:39 Frans Pop
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=200906231658.56489.elendil@planet.nl \
--to=elendil@planet.nl \
--cc=bzolnier@gmail.com \
--cc=davem@davemloft.net \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sparclinux@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).