Linux SCSI subsystem development
 help / color / mirror / Atom feed
* HBA self selection
@ 2006-04-13 14:58 Cameron, Steve
  2006-04-13 15:24 ` Matthew Wilcox
  2006-04-13 17:58 ` Douglas Gilbert
  0 siblings, 2 replies; 10+ messages in thread
From: Cameron, Steve @ 2006-04-13 14:58 UTC (permalink / raw)
  To: linux-scsi


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-04-13 21:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-04-13 18:35   ` Cameron, Steve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox