From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Grant Grundler <grundler@google.com>
Cc: Jeff Garzik <jeff@garzik.org>,
linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] libata: rewrite SCSI host scheme to be one per ATA host
Date: Thu, 23 Apr 2009 18:09:00 +0000 [thread overview]
Message-ID: <1240510141.3514.22.camel@mulgrave.int.hansenpartnership.com> (raw)
In-Reply-To: <da824cf30904231059v64328d47qa9e535ee194e65e@mail.gmail.com>
On Thu, 2009-04-23 at 10:59 -0700, Grant Grundler wrote:
> > As to benefits, the phrase "more natural" means the code naturally aligns
> > with existing object topologies (ata_host becomes analagous to Scsi_Host),
> > which always has a long list of technical benefits.
> >
> > - we get to remove all the ugly hacks currently in place that assume
> > ata_port is _the_ first class object.
> > - we get to remove all the workarounds where SCSI assumes it manipulates all
> > devices on a controller (not true in current libata)
> > - SCSI (soon block) host-wide busy, block etc functionality now works as
> > expected
> > - it makes the libata conversion from SCSI to block layer easier
> > - it makes integration with SAS+SATA devices such as mvsas or ipr easier
> > - the list goes on; that is just off the top of my head, before my morning
> > Mountain Dew
>
> Your initial list is good. In particular the issue around "SCSI Host-wide busy"
> working as expected. Of all the things listed, this is the only one that *I* can
> clearly identify as a user visible functional change.
>
> I'm not familiar with the the "workarounds where SCSI assumes it manipulates
> all devices on a controller" issue. The few SATA controllers I've looked at can
> deal with each port independently - e.g. discovery and phy reset. Anyway, this
> seems to be closely tied with "SCSI Host-wide Busy".
>
> One reason I was thinking of NOT list above: "wide port" in SAS 2.0 controllers.
> aka "port aggregation". E.g. http://www.pmc-sierra.com/products/details/pm8005/
>
> To change port aggregation on the fly requires the SCSI host controller to be
> manageable object. This should be a change in transport and not a change
> in devices available....and there are some other problems with implementing
> this but this is the main one I initially see.
This isn't really a correct assessment. Wide ports are a SAS only
problem. So sas has phys and ports ... and it's the port (essentially a
virtual object) that communicates in the link diagram.
A wide port has two or more phys in it. You can see the handling of
this in libsas and the sas transport class today, but it's all handled
in a fashion completely invisible to the SCSI mid layer ... it's an
inessential abstraction, if you will.
James
next prev parent reply other threads:[~2009-04-23 18:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 9:09 Jeff Garzik
2009-04-22 9:23 ` Jeff Garzik
2009-04-22 12:16 ` Boaz Harrosh
2009-04-22 15:10 ` Daniela Engert
2009-04-22 15:18 ` Alan Cox
2009-04-22 15:37 ` James Bottomley
2009-04-22 16:27 ` Alan Cox
2009-04-22 18:36 ` Jeff Garzik
2009-04-22 19:27 ` James Bottomley
2009-04-22 16:48 ` Jeff Garzik
2009-04-23 6:35 ` Jens Axboe
2009-04-23 10:39 ` Jeff Garzik
2009-04-23 10:43 ` Jens Axboe
2009-04-22 13:09 ` Mark Lord
2009-04-22 16:52 ` Jeff Garzik
2009-04-22 19:08 ` Grant Grundler
2009-04-23 11:00 ` Jeff Garzik
2009-04-23 17:59 ` Grant Grundler
2009-04-23 18:09 ` James Bottomley [this message]
2009-04-24 11:00 ` Stefan Richter
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=1240510141.3514.22.camel@mulgrave.int.hansenpartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=grundler@google.com \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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
all inboxes | Powered by JetHome®