From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
linux-ide@vger.kernel.org
Subject: Re: ide patches
Date: Tue, 24 Jul 2007 02:06:10 +0400 [thread overview]
Message-ID: <46A52652.2040509@ru.mvista.com> (raw)
In-Reply-To: <1185227295.5439.131.camel@localhost.localdomain>
Hello.
Benjamin Herrenschmidt wrote:
>>>Ok, there's a combination of things here:
>>> - First, doing a set_pio from userland (hdparm -p XX) causes the kernel
>>>to disable DMA, which I think is incorrect.
>> That's the way ide_config_drive_speed() works.
> And I still think that's bad.
Bart has just named one reason for that -- many chips have shared PIO/DMA
timing regs -- not all driver actually care about that issue and that's *not*
the safest way to do this via ide_dma_{on|off}() calls anyway...
>>>It's not the case with 2.6.22 from my quick tests.
>> Which means that PIO autotuning is broken there, i.e. that
>>ide_config_drive_speed() not called from the driver's tuneproc() method.
> Yes, the driver uses it's own function which doesn't disable DMA
> permanently, which is, IMHO, the way to go. I consider the current
> behaviour a regression.
Hm... "it's the way the cookie crumbles" for all the other drivers. :-)
>>>The problem is that ide_config_drive_speed
>>>disables DMA, but only re-enables it when setting a DMA speed.
>> It never "re-enables" DMA. ide_dma_host_on() method is not the same as
>>ide_dma_on() which actually enables DMA.
> Ugh ? It re-enables DMA in the sense that if called to configure a DMA
> speed, it re-enables dma on the host, thus effectively leaving with DMA
> enabled.
No. DMA is still diabled for the IDE core at this point. You need a real
ide_dma_on() method call to do it.
MBR, Sergei
next prev parent reply other threads:[~2007-07-23 22:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-22 18:19 [PATCH] ide-pmac: fix drive->init_speed reporting Bartlomiej Zolnierkiewicz
2007-07-22 21:50 ` Benjamin Herrenschmidt
2007-07-23 21:20 ` Bartlomiej Zolnierkiewicz
2007-07-22 23:55 ` ide patches Benjamin Herrenschmidt
2007-07-23 1:21 ` Benjamin Herrenschmidt
2007-07-23 1:57 ` Benjamin Herrenschmidt
2007-07-23 2:01 ` Benjamin Herrenschmidt
2007-07-23 13:50 ` Sergei Shtylyov
2007-07-23 21:49 ` Benjamin Herrenschmidt
2007-07-23 21:22 ` Bartlomiej Zolnierkiewicz
2007-07-23 22:00 ` Benjamin Herrenschmidt
2007-07-29 10:48 ` Sergei Shtylyov
2007-07-29 14:39 ` Bartlomiej Zolnierkiewicz
2007-07-23 13:16 ` Sergei Shtylyov
2007-07-23 21:48 ` Benjamin Herrenschmidt
2007-07-23 22:06 ` Sergei Shtylyov [this message]
2007-07-23 22:08 ` Benjamin Herrenschmidt
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=46A52652.2040509@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=benh@kernel.crashing.org \
--cc=bzolnier@gmail.com \
--cc=linux-ide@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).