From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: Mark Lord <liml@rtr.ca>,
IDE/ATA development list <linux-ide@vger.kernel.org>,
Saeed Bishara <saeed@marvell.com>
Subject: Re: new ata_port_operations for .pmp_{read,write} ?
Date: Fri, 22 Feb 2008 21:59:26 -0500 [thread overview]
Message-ID: <47BF8C0E.2080908@garzik.org> (raw)
In-Reply-To: <47BF8859.4000505@gmail.com>
Tejun Heo wrote:
> Yeah, this is an interesting problem. There are basically multiple sets
> of TF registers and the SFF way of assuming single set doesn't really
> work well and I don't really think adding ->pmp_read/write is the
> correct long term solution to the problem. We need to confine direct TF
> register accesses to SFF layer only as controllers which don't implement
> SFF interface may or may not emulate TF registers and even when they do,
> it sometimes can't really match the SFF behavior.
Strongly agreed.
> I wish things are a bit clearer now. I think the problem here is that
> we're assuming SFF TF access on controllers which aren't really SFF.
> For sil24 and ahci, the driver emulates it and it isn't too difficult.
> The picture gets more interesting for sata_mv as its hardware interface
> much closer to SFF than sil24 or ahci and TF registers matter much more.
> For ahci and sil24, LLD can just fool libata core layer which assumes
> ubiquitous TF access. TF registers don't really matter to controller
> operation anyway and feeding bogus values work well. For sata_mv, it's
> different. Those registers are integral part of controller operation
> and sata_mv can't really tolerate core layer stepping in w/o notifying LLD.
I would definitely like to move away from the model where non-SFF
drivers have to emulate SFF in any way.
Re-reviewing the code, I don't see a lot of TF accesses outside of
SFF-specific code, so we are already in pretty good shape.
I think the picture gets more complicated with sata_mv and similar
drivers (soon sata_svw, too), because they use the SFF code but only for
certain TF protocols. The emulation question is not as clear, with
those drivers.
Jeff
next prev parent reply other threads:[~2008-02-23 2:59 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 21:56 only one drive in a port multiplier system is being recognized Greg Hennessy
2007-11-12 2:58 ` Tejun Heo
[not found] ` <4738827D.9060405@pobox.com>
2007-11-13 1:09 ` What's needed for PMP support? Tejun Heo
2008-02-20 19:03 ` Mark Lord
2008-02-21 3:39 ` Tejun Heo
2008-02-21 15:07 ` Mark Lord
2008-02-21 20:52 ` [PATCH] libata-pmp: clear hob for pmp register accesses Mark Lord
2008-02-21 21:51 ` saeed bishara
2008-02-22 1:40 ` Tejun Heo
2008-02-24 5:29 ` Jeff Garzik
2008-02-22 0:31 ` What's needed for PMP support? Mark Lord
2008-02-22 0:32 ` Mark Lord
2008-02-22 1:57 ` Tejun Heo
2008-02-22 2:04 ` Mark Lord
2008-02-22 2:12 ` Tejun Heo
2008-02-22 2:25 ` Mark Lord
2008-02-22 2:27 ` Mark Lord
2008-02-22 3:52 ` Mark Lord
2008-02-22 4:22 ` new ata_port_operations for .pmp_{read,write} ? Mark Lord
2008-02-22 14:23 ` Mark Lord
2008-02-22 14:28 ` Mark Lord
2008-02-23 0:38 ` Mark Lord
2008-02-23 2:49 ` Tejun Heo
2008-02-23 2:43 ` Tejun Heo
2008-02-23 2:59 ` Jeff Garzik [this message]
2008-02-23 5:15 ` Mark Lord
2008-02-24 7:03 ` Tejun Heo
2008-02-24 7:14 ` Jeff Garzik
2008-02-25 4:34 ` Mark Lord
2008-02-25 4:46 ` Jeff Garzik
2008-02-25 4:31 ` Mark Lord
2008-02-25 4:49 ` Mark Lord
2008-02-25 4:56 ` Jeff Garzik
2008-02-25 5:20 ` Tejun Heo
2008-02-25 16:55 ` Mark Lord
2008-02-25 23:44 ` Tejun Heo
2008-02-26 0:12 ` Mark Lord
2008-02-26 2:01 ` Tejun Heo
2008-02-22 9:57 ` What's needed for PMP support? Alan Cox
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=47BF8C0E.2080908@garzik.org \
--to=jeff@garzik.org \
--cc=htejun@gmail.com \
--cc=liml@rtr.ca \
--cc=linux-ide@vger.kernel.org \
--cc=saeed@marvell.com \
/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.