From: Herbert Poetzl <herbert@13thfloor.at>
To: James Bottomley <James.Bottomley@suse.de>
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 19:27:11 +0100 [thread overview]
Message-ID: <20110117182711.GP16039@MAIL.13thfloor.at> (raw)
In-Reply-To: <20110117182140.GO16039@MAIL.13thfloor.at>
On Mon, Jan 17, 2011 at 07:21:40PM +0100, Herbert Poetzl wrote:
> On Mon, Jan 17, 2011 at 12:05:04PM -0600, James Bottomley wrote:
> > 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.
>
> it seems that the SATA specification, specifically the PMP
> part 'defines' something called SEMB (Smart Enclosure Management
> Bridge) which is controlled via specific SATA PMP commands to
> send 'messages' over (typically) I2C to an SEP (Smart Enclosure
> Processor) which can act upon them and even generate data/replies
> to retrieve information like the temperature, fan status, etc
actually SEMS stands for Seria ATA Enclosure Management Bridge,
and SEP for Storage Enclosure Processor .. just looked up the
terms in the specification ...
> > 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.
> as far as I understood, the SEMB is a separate and well
> defined entity controllable via special PMP commands ...
> not every PMP has to have one, but if they do, it should
> conform to the specification, even on the I2C layer
the protocols used on I2C is IPMI, the command protocol to
communicate with the SEP is either SAF-TE or SES, AFAICT
but it might be proprietary if both the SEMB and the SEP
are from the same manufacturer ...
sorry for the confusion,
Herbert
> HTC,
> Herbert
>
> > James
> >
next prev parent reply other threads:[~2011-01-17 18:27 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 19:25 PMP and SEMB messages to SEP Herbert Poetzl
2011-01-14 14:20 ` Tejun Heo
2011-01-14 16:59 ` Herbert Poetzl
2011-01-14 17:04 ` Tejun Heo
2011-01-14 17:37 ` Herbert Poetzl
2011-01-17 15:40 ` 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
2011-01-17 18:21 ` Herbert Poetzl
2011-01-17 18:27 ` Herbert Poetzl [this message]
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=20110117182711.GP16039@MAIL.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=James.Bottomley@suse.de \
--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;
as well as URLs for NNTP newsgroup(s).