From: James Bottomley <James.Bottomley@suse.de>
To: Herbert Poetzl <herbert@13thfloor.at>
Cc: Tejun Heo <tj@kernel.org>,
linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: PMP and SEMB messages to SEP
Date: Mon, 17 Jan 2011 12:05:04 -0600 [thread overview]
Message-ID: <1295287504.3015.190.camel@mulgrave.site> (raw)
In-Reply-To: <20110117174806.GN16039@MAIL.13thfloor.at>
On Mon, 2011-01-17 at 18:48 +0100, Herbert Poetzl wrote:
> On Mon, Jan 17, 2011 at 06:39:46PM +0100, Tejun Heo wrote:
> > On Mon, Jan 17, 2011 at 06:34:33PM +0100, Herbert Poetzl wrote:
> > > hmm, haven't had the time to dig through the specs yet, but
> > > at least addonics seems to disagree here:
> > >
> > > http://www.addonics.com/products/host_controller/tutorial_pm.asp
> > >
> > > but maybe that's just a marketing page with no relation
> > > to reality ....
> >
> > That's hardware RAID PMP. It would just show up as a single drive to
> > the host. They can do whatever they want to if they do that.
>
> okay, understood.
>
> > > > AFAIK, it just doesn't care. It could be ses-2 or whatever else. It
> > > > just transmits the binary blob it receives via sysfs and vice-versa.
> > >
> > > the interesting part here is, that the AHCI host controller
> > > my PMP is connected to recognizes the PMP perfectly fine
> > > (i.e. more than one drive works just as expected), but doesn't
> > > seem to allow for the em_message part (despite the fact that
> > > the attached PMP seems to be SEMB/SEP capable) ...
> > >
> > > maybe this is just a bug in the kernel code, maybe the AHCI
> > > implementation doesn't allow a PMP to receive enclosure
> > > management messages at all ...
> >
> > AFAIK, the ahci em message thing is not via PMP.
> > It's for cases where the ahci controller is directly connected
> > to an enclosure. Well, that's my understanding anyway.
>
> okay, so something similar would be useful for controlling
> enclosures attached to PMPs then?
>
> what would be the 'proper' place in the sysfs tree, espceically
> as the PMP doesn't show up there (yet)?
>
> how would I go about adding something like that to the kernel
> and where should it be placed (sysfs and code wise)?
OK, just so we're not at cross purposes:
1. For an enclosure processor to show up and be attached to the
enclosure driver, it has to present as a SCSI target. This
often means handling nasty encapsulations somewhere (SES is most
often used on non-standard busses like i2c or GPIO). If it's
within a PMP and has a defined encapsulation which ATA
recognises, it sounds like libata is the best place for this.
2. The above has nothing to do with whether the PMP device shows up
in sysfs or has a bsg command port. That's a completely
separate discussion based on whether it makes sense (and whether
we can cope with the topological complexity). Just by way of
example, it's mostly not possible to use expanders with
enclosure devices via our expander bsg device, because there's
no SMP encapsulation of SES. What mostly happens is that the
expander has two or more target ports, one of which is SMP and
the other (completely separate one) is an addressable SES
target.
James
next prev parent reply other threads:[~2011-01-17 18:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20110113192558.GE16039@MAIL.13thfloor.at>
[not found] ` <20110114142018.GA978@htj.dyndns.org>
[not found] ` <20110114165957.GH16039@MAIL.13thfloor.at>
[not found] ` <20110114170407.GE978@htj.dyndns.org>
[not found] ` <20110114173759.GI16039@MAIL.13thfloor.at>
2011-01-17 15:40 ` PMP and SEMB messages to SEP Tejun Heo
2011-01-17 16:18 ` James Bottomley
2011-01-17 17:13 ` Herbert Poetzl
2011-01-17 17:20 ` Tejun Heo
2011-01-17 17:34 ` Herbert Poetzl
2011-01-17 17:39 ` Tejun Heo
2011-01-17 17:48 ` Herbert Poetzl
2011-01-17 18:05 ` James Bottomley [this message]
2011-01-17 18:21 ` Herbert Poetzl
2011-01-17 18:27 ` Herbert Poetzl
2011-01-17 17:18 ` Tejun Heo
2011-01-17 17:21 ` James Bottomley
2011-01-17 17:24 ` Tejun Heo
2011-01-25 3:07 ` Herbert Poetzl
2011-01-25 14:14 ` James Bottomley
2011-04-03 17:39 ` Herbert Poetzl
2011-04-03 18:38 ` James Bottomley
2011-01-17 18:55 ` 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=1295287504.3015.190.camel@mulgrave.site \
--to=james.bottomley@suse.de \
--cc=herbert@13thfloor.at \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=tj@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