public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: driverfs is not for everything! (was: [PATCH] /proc/scsi/map )
@ 2002-06-25 19:50 Adam J. Richter
  0 siblings, 0 replies; 20+ messages in thread
From: Adam J. Richter @ 2002-06-25 19:50 UTC (permalink / raw)
  To: linux-kernel

>> = ???
>  = Patrick Mochel
>> I think the qualification for appearing in driverfs is actually possessing a 
>> driver.  Therefore, we accept FC and iSCSI.  Things which appear as 
>> FileSystems are debatable, but not anything which has a real device driver.
>
>The qualification for appearing in the device tree is the physical 
>presence of the device, regardless of the presence of a driver to control 
>it. (This typically depends on the presence of the bus driver so it can 
>discover the device.) Presence in the device tree implies presence in 
>driverfs.

	Lots of "soft" drivers, from /dev/lop to FC and iSCSI could
be simplified by using the struct device <--> struct device_driver
rendezvous code.  Under Patrick's propoposed, policy, we would not be
able to get the simplifications in scsi.c, usb.c, or anything else that
could possibly drive a device that was too "soft" for Patrick.

	It is also important for supporting hot plugging that user level
facilities understand that if ide disk #7 was removed that that
poisons /dev/loop/7.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: driverfs is not for everything! (was:  [PATCH] /proc/scsi/map )
@ 2002-06-24 18:47 Grover, Andrew
  2002-06-24 19:03 ` Oliver Xymoron
  0 siblings, 1 reply; 20+ messages in thread
From: Grover, Andrew @ 2002-06-24 18:47 UTC (permalink / raw)
  To: 'Roman Zippel'
  Cc: 'David Brownell', 'Nick Bellinger', linux-kernel,
	linux-scsi, Patrick Mochel

> From: Roman Zippel [mailto:zippel@linux-m68k.org] 
> On Mon, 24 Jun 2002, Grover, Andrew wrote:
> > If a device can be accessed by multiple machines 
> concurrently, it should not
> > be in driverfs.
> 
> I don't think it's that easy. If the computer wakes up again, 
> devices have
> to be reinitialised in the right order, e.g. iSCSI needs a 
> working network
> stack and devices.

Would the iSCSI device be a child of the network device? That would ensure
that the NIC was fully restarted before the iSCSI device.

> Another problem is how to properly shutdown the
> machine. Scripts now "know" that nfs requires the network, 
> but how does
> the script find out, that /dev/sdb2 is an iSCSI device, so that it can
> properly unmount the device, before the network is shutdown?

Would a bottom-up traversal of the device tree do things properly?

Regards -- Andy

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: driverfs is not for everything! (was: [PATCH] /proc/scsi/map  )
@ 2002-06-24 18:37 Grover, Andrew
  0 siblings, 0 replies; 20+ messages in thread
From: Grover, Andrew @ 2002-06-24 18:37 UTC (permalink / raw)
  To: 'James Bottomley', Grover, Andrew
  Cc: 'David Brownell', 'Nick Bellinger', linux-kernel,
	linux-scsi, Patrick Mochel

> From: James Bottomley [mailto:James.Bottomley@steeleye.com] 
> andrew.grover@intel.com said:
> > If a device can be accessed by multiple machines concurrently, it
> > should not be in driverfs. 
> 
> On that argument, we'll eliminate almost all Fibre Channel devices!
> 
> I think the qualification for appearing in driverfs is 
> actually possessing a 
> driver.  Therefore, we accept FC and iSCSI.  Things which appear as 
> FileSystems are debatable, but not anything which has a real 
> device driver.

OK that makes sense.

Regards -- Andy

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: driverfs is not for everything! (was: [PATCH] /proc/scsi/map)
@ 2002-06-24 13:54 Arnd Bergmann
  0 siblings, 0 replies; 20+ messages in thread
From: Arnd Bergmann @ 2002-06-24 13:54 UTC (permalink / raw)
  To: Andrew; +Cc: linux-kernel, Arnd Bergmann

Grover, Andrew <Andrew.grover@intel.com> wrote on Sun Jun 23 2002:

> I know this is one of those things that has more and more cool
> possibilities the more you think about it but... 
>
> Is the device PHYSICALLY hooked up to the computer? If not, it shouldn't
> be in devicefs. 

So what do you do when none of the devices you are using is physically
attached :-) ?
On s390, we have an abstraction layer that allows us to use virtual 
devices without knowing the true hardware behind it. All we see is
an 'i/o subchannel' that typically equals a device (disk, tape, console
etc.).

I decided not to care about virtualization and have a device node in 
driverfs for each subchannel. Unfortunately, there are some devices (e.g. 
ethernet controllers) that are made up by multiple (two or three) 
subchannels, because some hardware engineers decided that it was a good 
idea to do that (for a good reason).

Now I have an extra bus type for those devices. They often do exist
physically (and I don't care if they are only virtual), so they need
a place in the device tree. Currently, each such device is a child node of 
one of the subchannels. This is not how it is meant to be in driverfs (there 
is no network device connected to a subchannel device, the network device
_is_ two subchannels), but what else should I do there?

Other drivers are purely virtual. The Inter-User Communication Vehicle
(iucv) lets me set up a network interface between two virtual machines.
I don't need a driverfs interface for it, but why shouldn't I have it 
anyway? It even fits the driver model better that my physical network
devices!

	Arnd <><

^ permalink raw reply	[flat|nested] 20+ messages in thread
* driverfs is not for everything! (was:  [PATCH] /proc/scsi/map)
@ 2002-06-23 22:59 Grover, Andrew
  2002-06-24  1:34 ` David Brownell
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Grover, Andrew @ 2002-06-23 22:59 UTC (permalink / raw)
  To: 'Nick Bellinger', David Brownell
  Cc: linux-kernel, linux-scsi, Patrick Mochel

> From: Nick Bellinger [mailto:nickb@attheoffice.org] 
> Giving the IP stack its own directory (leaf?) under driverfs 
> root sounds
> interesting enough and could have some potential uses, but in the case
> of iSCSI there are a few problems:

I know this is one of those things that has more and more cool possibilities
the more you think about it but...

Is the device PHYSICALLY hooked up to the computer? If not, it shouldn't be
in devicefs.

The device tree (for which devicefs is the fs representation) was originally
meant to enable good device power management and configuration. driverfs
wasn't meant to handle iscsi or tcpip (that is, network) connections, nor
should it have to.

Regards -- Andy

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

end of thread, other threads:[~2002-07-01 19:12 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <andrew.grover@intel.com>
2002-06-24 17:35 ` driverfs is not for everything! (was: [PATCH] /proc/scsi/map ) Grover, Andrew
2002-06-24 17:48   ` driverfs is not for everything! (was: [PATCH] /proc/scsi/map kernel
2002-06-24 18:04   ` driverfs is not for everything! (was: [PATCH] /proc/scsi/map ) David Brownell
2002-06-24 18:09   ` James Bottomley
2002-06-24 19:23     ` Oliver Xymoron
2002-06-25 18:38     ` Patrick Mochel
2002-06-24 18:32   ` Roman Zippel
2002-06-24 22:47   ` John Summerfield
2002-06-25 18:35   ` Patrick Mochel
2002-07-01  2:41   ` Pavel Machek
2002-06-25 19:50 Adam J. Richter
  -- strict thread matches above, loose matches on Subject: below --
2002-06-24 18:47 Grover, Andrew
2002-06-24 19:03 ` Oliver Xymoron
2002-06-24 18:37 Grover, Andrew
2002-06-24 13:54 driverfs is not for everything! (was: [PATCH] /proc/scsi/map) Arnd Bergmann
2002-06-23 22:59 Grover, Andrew
2002-06-24  1:34 ` David Brownell
2002-06-24  5:18 ` Nick Bellinger
2002-06-24  6:41   ` Brad Hards
2002-06-25 18:18 ` Patrick Mochel

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