From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 3/6] siimage: PIO mode setup fixes
Date: Wed, 04 Jul 2007 22:59:13 +0400 [thread overview]
Message-ID: <468BEE01.1050102@ru.mvista.com> (raw)
In-Reply-To: <200707042059.31567.bzolnier@gmail.com>
Bartlomiej Zolnierkiewicz wrote:
>>>>>* Add sil_tuneproc() wrapper for siimage_tuneproc() which also sets
>>>>> PIO mode on the device.
>>>> Planning on the global prefix change? :-)
>>>Yep.
>> Well, it didn't work out with 'ata_'... ;-)
> Because of bad libata taking over our precioussssss namespace... ;-)
Thievessss! 8-)
> Fortunately pata_sil680 driver uses "sil680_" prefix.
We'll make Coxsss pay. 8-)
>>>> Note that PIO setup keeps being somewhat borken IODRY-wise even with this
>>>>patch as sil_tune_pio() only controls taskfile IORDY sampling -- the Right
>>>>Thing could only be done via speedproc() method...
>>>After rehashing the datasheet I see the source of the issue:
>>>IORDY is controlled in two registers and moreover it is always enabled
>>>if MDMA or UDMA transfer modes are selected.
>> Yeah. I drafted some patch for pata_sil.c but Alan fixed it first and in a
>>more simple way -- libata calls PIO/DMA setting methods in the strict
>>sequence, and that allowed to bypass some checks...
> I fail to see how this helps in this case, care to explain?
The whole reason for that resetproc() ceases to exist, no? At least that's
what I was able to grasp from looing at the older versions... And it's mean to
reset both channels just to be able to downgrade from UDMA to MWDMA (not a
thing routinely done anyway), so this needs to go.
Well, I'm seeing that it's also called from the ide_dma_timeout() and even
ide_dma_lostirq() methods; not sure how much necessary it is -- at least for
the latter case this seems just wrong...
>>>+ /* cheat for now and use the docs */
>>>+ speedp = data_speed[pio];
>>>+ speedt = tf_speed[tf_pio];
>>>+
>>> if (hwif->mmio) {
>>> hwif->OUTW(speedp, addr);
>>> hwif->OUTW(speedt, tfaddr);
>>> /* Now set up IORDY */
>>>- if(mode_wanted == 3 || mode_wanted == 4)
>>>+ if (pio > 2)
>> Not tf_pio? This IORDY bit is for taskfile accesses...
> Would this be really OK (tf_pio takes minimum PIO mode)?
Well, probably not -- a slow mate drive could force IORDY disabled this
way... So, just 'pio' seems more correct.
> Thanks,
> Bart
MBR, Sergei
next prev parent reply other threads:[~2007-07-04 18:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-23 18:04 [PATCH 3/6] siimage: PIO mode setup fixes Bartlomiej Zolnierkiewicz
2007-06-26 19:51 ` Sergei Shtylyov
2007-06-29 22:12 ` Bartlomiej Zolnierkiewicz
2007-07-04 16:16 ` Sergei Shtylyov
2007-07-04 18:59 ` Bartlomiej Zolnierkiewicz
2007-07-04 18:59 ` Sergei Shtylyov [this message]
2007-07-06 0:31 ` Jeff Garzik
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=468BEE01.1050102@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.