From: Greg KH <gregkh@suse.de>
To: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
Cc: Brian King <brking@linux.vnet.ibm.com>,
linux-scsi@vger.kernel.org,
James.Bottomley@HansenPartnership.com
Subject: Re: PATCH: PMC-Sierra MaxRAID driver to support 6Gb/s SAS RAID controller
Date: Tue, 16 Jun 2009 10:08:12 -0700 [thread overview]
Message-ID: <20090616170812.GA27570@suse.de> (raw)
In-Reply-To: <alpine.LNX.1.10.0906160546520.6270@rslab159.pmc-sierra.bc.ca>
On Tue, Jun 16, 2009 at 07:10:43AM -0700, Anil Ravindranath wrote:
>
> Please see my responses below...
>
> On Thu, 11 Jun 2009, Brian King wrote:
>
> > Anil Ravindranath wrote:
> > > +/*
> > > + * Supporting user-level control interface through IOCTL commands.
> > > + * pmcraid_major - major number to use
> > > + * pmcraid_minor - minor number(s) to use
> > > + */
> > > +static unsigned int pmcraid_major;
> > > +static struct class *pmcraid_class;
> > > +DECLARE_BITMAP(pmcraid_minor, PMCRAID_MAX_ADAPTERS);
> >
> > New IOCTL interfaces are generally not acceptable in a new driver. Some alternative
> > interfaces include sysfs, netlink, and debugfs. Refer to the ipr driver for
> > an example of avoiding using IOCTLs. Additional comments below on how to
> > remove the dependency.
> >
>
>
> 1.We want to have a single RAID management Appliction interface to support
> multiple wide range of OS platforms.
However, Linux already has RAID management applications, so you need to
use that, and interact properly with them. Do not create new interfaces
that duplicate existing ones, that harms all existing users of Linux and
would force them to use your "special" tool, when that should not be
necessary at all.
So please remove the custom ioctls, as they should not be needed for
proper operation with the "normal" Linux tools, right?
> IOCTL is the best approach as this interface is available in all OS
> platforms.
Just because other operating systems allow you to create new ioctls,
doesn't mean it's a good idea :)
> 2.Also we have commands which requires additional command parameters
> which need to be passed down to FW and we think IOCTL is best approach
> to send these parameters down field by field. We didn't find any other
> cleaner way to pass these additional command parameters seperately
> from the usual data buffer.
What type of commands do you need to do this for? And what makes it
unique from other controllers of this type?
> 3. we chose IOCTL as we want our Application interface to have full
> control of filling in the fields(like FW specific headers) as passthru
> to driver.
Again, what is different here from other controllers that implement this
same type of functionality?
Creating custom ioctls for every individual controller, leads to an
explosion of different tools needed to manage the same type of devices,
which is madness as I am sure you can imagine.
So please, stick with the standard interfaces if at all possible.
thanks,
greg k-h
next prev parent reply other threads:[~2009-06-16 17:12 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-10 20:07 PATCH: PMC-Sierra MaxRAID driver to support 6Gb/s SAS RAID controller Anil Ravindranath
2009-06-11 1:23 ` Greg KH
2009-06-11 5:54 ` Anil Ravindranath
2009-06-13 7:04 ` Anil Ravindranath
2009-06-11 3:14 ` Grant Grundler
2009-06-11 13:11 ` Anil Ravindranath
2009-06-13 7:18 ` Anil Ravindranath
2009-06-11 11:47 ` Rolf Eike Beer
2009-06-11 13:25 ` Anil Ravindranath
2009-06-11 14:08 ` James Bottomley
2009-06-13 8:50 ` Anil Ravindranath
2009-06-11 16:32 ` Brian King
2009-06-12 6:06 ` Anil Ravindranath
2009-06-12 15:08 ` Grant Grundler
2009-06-12 15:23 ` Brian King
2009-06-12 16:17 ` Brian King
2009-06-12 16:20 ` Grant Grundler
2009-06-12 16:43 ` James Bottomley
2009-06-12 15:24 ` James Bottomley
2009-06-16 14:10 ` Anil Ravindranath
2009-06-16 17:08 ` Greg KH [this message]
2009-06-17 15:09 ` Brian King
2009-06-18 18:08 ` Anil Ravindranath
-- strict thread matches above, loose matches on Subject: below --
2009-06-16 17:37 Anil Ravindranath
2009-06-16 18:48 ` Randy Dunlap
2009-06-17 11:04 ` Anil Ravindranath
2009-08-07 0:16 Anil Ravindranath
2009-08-18 21:44 ` Anil Ravindranath
2009-08-19 2:02 ` James Bottomley
2009-08-24 17:24 ` Anil Ravindranath
2009-08-26 0:35 Anil Ravindranath
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=20090616170812.GA27570@suse.de \
--to=gregkh@suse.de \
--cc=James.Bottomley@HansenPartnership.com \
--cc=anil_ravindranath@pmc-sierra.com \
--cc=brking@linux.vnet.ibm.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