All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Moore, Eric" <Eric.Moore@lsil.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-scsi@vger.kernel.org, James.Bottomley@SteelEye.com
Subject: Re: [PATCH 2/3] - mpt fusion -
Date: Thu, 13 Apr 2006 20:14:41 -0600	[thread overview]
Message-ID: <002c01c65f69$319745c0$201015ac@ericmoore> (raw)
In-Reply-To: 20060414010405.GB23580@infradead.org

On Thursday, April 13, 2006 7:04 PM, Christoph Hellwig wrote:

>> 
>> I'll explain the problem.
>> The sas drivers have a rphy to rphy relationship.  An rphy
>> created on a hba phy points to the expander phy.  Then the expander
>> phy creates a rphy pointing back to the same hba rphy. The expander
>> phy which contains the rphy pointing back to the hba phy, contains
>> the attributes device_type = SAS_END_DEVICE, and target_port_protocals =
>> 0.
>> Hence the recent change in sas_rphy_add() make it drop down to
>> scsi_scan_target, whereas before there was sepecial handling to 
>> prevent this case from happening.  With this change, the mptsas slave
>> entry 
>> points are called to enumerate the rphy that points back to the hba phy.
>> The target id in our data structures is the same as a real target device
>> on another phy.  Thus we end up mapping the same target to two different
>> rphys.
>> To fix this, I added a check in mptsas_slave_alloc to make sure the
>> requested rphy is mapped to a true end device.
> 
> This needs to be fixed in the transport class again.
> 

Christoph can you help me on this, please?
The original sas_rphy_add() function from three weeks back works for mptsas.
I'm not sure why that change was made, and whether reverting back to its orginal code
would break the other sas driver.  

Eric



  reply	other threads:[~2006-04-14  2:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13 22:08 [PATCH 2/3] - mpt fusion - Moore, Eric
2006-04-14  1:04 ` Christoph Hellwig
2006-04-14  2:14   ` Moore, Eric [this message]
2006-04-14 14:47     ` James Bottomley
2006-04-15  0:45       ` Moore, Eric
2006-04-15  0:56         ` James Bottomley

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='002c01c65f69$319745c0$201015ac@ericmoore' \
    --to=eric.moore@lsil.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=hch@infradead.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 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.