linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: James Bottomley <James.Bottomley@parallels.com>,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH] scsi_transport_spi: Export host width and HBA id
Date: Wed, 01 Jun 2011 17:00:24 +0200	[thread overview]
Message-ID: <4DE65408.2020502@suse.de> (raw)
In-Reply-To: <1306940171.11897.52.camel@mulgrave.site>

On 06/01/2011 04:56 PM, James Bottomley wrote:
> On Wed, 2011-06-01 at 15:18 +0200, Hannes Reinecke wrote:
>> Currently it's impossible to find out if the host supports
>> wide SCSI unless you're committed to trawl through syslog.
>> And it's near impossible to find the actual HBA id, which
>> is settable for some SCSI HBAs (like aic7xxx).
>> So export them via sysfs.
>
> Um, that's what the the
>
> /sys/class/spi_transport/target<x:y:x>/max_width
>
> parameter gives you, isn't it?
>
> max_width tells you if the HBA/device combination supports wide; width
> tells you if the device is using it.
>
Not quite. You'll only have that parameter if there is a target 
attached to the HBA.
If there is none you still wouldn't know how far you should be 
scanning as there won't be any indicator in sysfs.

In this case that's an ESX server emulating an sym53c8xx HBA.
And disks attached to it on the fly.
If you start up with no disks attached and attach a new disc
to eg target ID 12 you're stuck.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-06-01 15:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 13:18 [PATCH] scsi_transport_spi: Export host width and HBA id Hannes Reinecke
2011-06-01 14:56 ` James Bottomley
2011-06-01 15:00   ` Hannes Reinecke [this message]
2011-06-01 15:15     ` Douglas Gilbert
2011-06-03  5:59       ` Hannes Reinecke

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=4DE65408.2020502@suse.de \
    --to=hare@suse.de \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=James.Bottomley@parallels.com \
    --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;
as well as URLs for NNTP newsgroup(s).