From: Douglas Gilbert <dougg@torque.net>
To: "Cameron, Steve" <Steve.Cameron@hp.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: HBA self selection
Date: Thu, 13 Apr 2006 13:58:25 -0400 [thread overview]
Message-ID: <443E9141.6030901@torque.net> (raw)
In-Reply-To: <5CCF5F0F2514664CBE20FD24BCE17614044BF8@cceexc17.americas.cpqcorp.net>
Cameron, Steve wrote:
> Noticed in scsi_scan.c (2.6.15.2 kernel...)
>
> 1336 static void __scsi_scan_target(struct device *parent, unsigned int chann el,
> 1337 unsigned int id, unsigned int lun, int rescan)
> 1338 {
> 1339 struct Scsi_Host *shost = dev_to_shost(parent);
> 1340 int bflags = 0;
> 1341 int res;
> 1342 struct scsi_target *starget;
> 1343
> 1344 if (shost->this_id == id)
> 1345 /*
> 1346 * Don't scan the host adapter
> 1347 */
> 1348 return;
> 1349
>
> There exist some target devices which depend on the adapter being
> able to do self selection. The HP MSA30 presents a processor device
> at ID 7, for instance.
>
> The processor device at ID 7 will generally not be accessible, because
> the HBA is generally at this ID. The processor device doesn't care that the
> HBA is at id 7. He says, "hmm, the adapter is talking to himself,
> that means, he's talking to me." It's just a way to put a processor
> device on the bus without really "using up" a scsi id, since there
> are only a few of them.
>
> This used to work, I'm pretty sure. Could do
> "echo scsi add-single-device 0 0 7 0 > /proc/scsi/scsi" and
> the processor device would show up. Now it doesn't.
Steve,
I suppose the lk 2.6 equivalent of:
# echo "0 7 0" > /sys/class/scsi_host/host<n>/scan
doesn't work either? [The reason I ask is that the
new technique works for finding "well known" lus.]
Doug Gilbert
next prev parent reply other threads:[~2006-04-13 17:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 14:58 HBA self selection Cameron, Steve
2006-04-13 15:24 ` Matthew Wilcox
2006-04-13 16:13 ` Cameron, Steve
2006-04-13 17:47 ` James Bottomley
2006-04-13 18:35 ` Cameron, Steve
2006-04-13 20:06 ` James Bottomley
2006-04-13 20:42 ` Mike Anderson
2006-04-13 21:01 ` Cameron, Steve
2006-04-13 17:58 ` Douglas Gilbert [this message]
2006-04-13 18:35 ` Cameron, Steve
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=443E9141.6030901@torque.net \
--to=dougg@torque.net \
--cc=Steve.Cameron@hp.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 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.