From: Tejun Heo <htejun@gmail.com>
To: albertl@mail.com
Cc: Jeff Garzik <jgarzik@pobox.com>, Doug Maxey <dwm@maxeymade.com>,
Linux IDE <linux-ide@vger.kernel.org>
Subject: Re: [PATCH/RFC 3/5] libata-dev: Let ata_hsm_move() work with both irq-pio and polling pio
Date: Sat, 11 Mar 2006 02:32:33 +0900 [thread overview]
Message-ID: <4411B831.6030607@gmail.com> (raw)
In-Reply-To: <441184B6.9060302@tw.ibm.com>
Albert Lee wrote:
> Tejun Heo wrote:
>>
>>For ATA PIO write transfers, the first transfer and n'th transfers
>>aren't really different. The code would be simpler if it handles the
>>first ATA PIO write in HSM_ST. And if we do that, HSM_ST_FIRST can be
>>renamed to HSM_ST_CDB. Hmmm.. Maybe this should be done in separate
>>series of patches.
>>
>
>
> For ATA PIO write transfer, the first transfer is different:
> It is always done by polling, even if irq is turned on.
>
> If we treat the first PIO write transfer as HSM_ST, we need to add some
> additional logic to HSM_ST and check whether it is first transfer or not. If it is,
> and irq is on, the transition from polling to interrupt-driven must be protected
> by spinlock, similar to what's done in HSM_ST_FIRST.
Oh, you're right. I wasn't thinking of the spinlock. I implemented HSM
for sata_sil vdma (still slightly broken) and made its HSM function
always called under the host spinlock, so I could merge ATA HSM_ST_FIRST
into HSM_ST for ATA WRITE's and got confused about your HSM. :-)
Hmmm.. I'm not sure but I recall to read about IDE controllers reacting
badly when disturbed during PIO thus requiring irq-off during PIO. Does
anyone know better about this?
--
tejun
next prev parent reply other threads:[~2006-03-10 17:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-09 8:41 [PATCH/RFC 0/5] libata-dev: integrate polling pio with irq-pio Albert Lee
2006-03-09 8:45 ` [PATCH/RFC 1/5] libata-dev: Move out the HSM code from ata_host_intr() Albert Lee
2006-03-10 9:18 ` Tejun Heo
2006-03-09 8:49 ` [PATCH/RFC 2/5] libata-dev: Minor fix for ata_hsm_move() to work with ata_host_intr() Albert Lee
2006-03-10 9:22 ` Tejun Heo
2006-03-09 8:51 ` [PATCH/RFC 3/5] libata-dev: Let ata_hsm_move() work with both irq-pio and polling pio Albert Lee
2006-03-10 9:31 ` Tejun Heo
2006-03-10 13:52 ` Albert Lee
2006-03-10 17:32 ` Tejun Heo [this message]
2006-03-09 8:54 ` [PATCH/RFC 4/5] libata-dev: Convert ata_pio_task() to use the new ata_hsm_move() Albert Lee
2006-03-10 9:35 ` Tejun Heo
2006-03-10 14:25 ` Albert Lee
2006-03-09 8:56 ` [PATCH/RFC 5/5] libata-dev: Cleanup unused enums/functions Albert Lee
2006-03-10 9:38 ` [PATCH/RFC 0/5] libata-dev: integrate polling pio with irq-pio Tejun Heo
2006-03-12 0:37 ` Jeff Garzik
2006-03-13 7:33 ` [PATCH 0/5] libata-dev: integrate polling pio with irq-pio (respin) Albert Lee
2006-03-13 7:37 ` [PATCH 1/5] libata-dev: Move out the HSM code from ata_host_intr() Albert Lee
2006-03-13 7:41 ` [PATCH 2/5] libata-dev: Minor fix for ata_hsm_move() to work with ata_host_intr() Albert Lee
2006-03-13 7:45 ` [PATCH 3/5] libata-dev: Let ata_hsm_move() work with both irq-pio and polling pio Albert Lee
2006-03-13 7:55 ` Jeff Garzik
2006-03-13 8:42 ` [PATCH 1/1] libata-dev: Make the the in_wq check as an inline function Albert Lee
2006-03-13 8:56 ` Jeff Garzik
2006-03-13 7:47 ` [PATCH 4/5] libata-dev: Convert ata_pio_task() to use the new ata_hsm_move() Albert Lee
2006-03-13 7:49 ` [PATCH 5/5] libata-dev: Cleanup unused enums/functions Albert Lee
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=4411B831.6030607@gmail.com \
--to=htejun@gmail.com \
--cc=albertl@mail.com \
--cc=dwm@maxeymade.com \
--cc=jgarzik@pobox.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).