public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Should isci create its own device class?
@ 2011-03-02  3:22 Dan Williams
  2011-03-02 12:49 ` James Bottomley
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2011-03-02  3:22 UTC (permalink / raw)
  To: Greg KH, James Bottomley, Kay Sievers
  Cc: linux-scsi@vger.kernel.org, Nadolski, Edmund, Jiang, Dave,
	Skirvin, Jeffrey D, Danecki, Jacek

For compatibility with other software raid environments an isci [1] 
device may contain up to two controller instances per pci device.

Currently the sysfs path for its scsi_host objects is:
> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:08.0/0000:03:00.0/host10/scsi_host/host10
> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:08.0/0000:03:00.0/host11/scsi_host/host11

But to reflect reality the pci device is actually the parent of two 
independent controller instances.  With a mockup like:
> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:08.0/0000:03:00.0/controller0/host10/scsi_host/host10
> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:08.0/0000:03:00.0/controller1/host11/scsi_host/host11

I can see this being beneficial in a few ways:

1/ fix dev_printk() messages which right now give an ambiguous "isci 
0000:03:00.0" prefix
2/ controller boundaries are visible via the sysfs path without need to 
to look at sas_addresses to determine the controller.
2/ if we ever wanted to support some per controller attributes between 
the global pci attributes and the scsi_host attributes.

...but would this confuse /dev/disk/by-path/ or any other unintended 
side effects?

--
Dan

[1]: http://marc.info/?l=linux-scsi&m=129703780424729&w=2

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

end of thread, other threads:[~2011-03-02 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02  3:22 Should isci create its own device class? Dan Williams
2011-03-02 12:49 ` James Bottomley
2011-03-02 18:38   ` Dan Williams

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