From: James Bottomley <James.Bottomley@SteelEye.com>
To: "Moore, Eric" <Eric.Moore@lsi.com>
Cc: "Prakash, Sathya" <Sathya.Prakash@lsi.com>, linux-scsi@vger.kernel.org
Subject: RE: [PATCH 0/5] mpt fusion: Add logging support
Date: Fri, 27 Jul 2007 18:30:03 -0400 [thread overview]
Message-ID: <1185575403.3434.24.camel@localhost.localdomain> (raw)
In-Reply-To: <664A4EBB07F29743873A87CF62C26D708B3D56@NAMAIL4.ad.lsil.com>
On Fri, 2007-07-27 at 16:16 -0600, Moore, Eric wrote:
> On Friday, July 27, 2007 10:21 AM, wrote:
> >
> > The way your module parameter works is slightly counter intuitive. On
> > all our other drivers, you can write a value into
> >
> > /sys/module/<module>/parameters/<debug parameter>
> >
> > And have it acted on immediately. In yours, it seems only to work
> > before the host is probed (because after that, the value in the ioc
> > structure is what's used).
>
> not true, the debug parameter can be configured prior to the host being
> probed.
That's what I just said ... if you mean can be configured *after* the
host being probed, then I think the parameter needs a
module_param_call() so you can intercept the set and update the ioc
structures accordingly.
> We have a command line option called mpt_debug_level, that
> can set the debug level from mptbase.ko. That way you can enable
> certain debug during probe time prior to the loading of
> mptsas/mptfc/mptspi. Once those upper drivers are loaded, you can toggle
> off and on the debug via the shost_attrib. This is explained in
> mptdebug.h.
Yes, but my point was that most other module parameters are settable
from /sys as well ... this one has some strange rules.
> >
> > The other question is are you really sure you actually want per host
> > debugging? is the added flexibility in being able to turn it
> > on and off
> > per host worth the problems of explaining to the users where
> > to find the
> > parameter? I've got to bet that 95% of the installations only have a
> > single fusion card anyway. would it not be simpler just to have a
> > global module parameter that can be set and acted on from
> > /sys/modules?
> >
>
> I like having the added flexibility, and potential customers may agree.
> Our driver stack support multiple bus protocols, unlike other vendors,
> and some customers may ship fibre, sas, and spi in a single systems..
> For my personal use, I like being able to have per host debugging, as I
> have multiple cards in my systems. There are several cases I've
> debugged two controller case, when boot OS is on one controller, and the
> debug efforts on another, in that case I only want to concern myself
> with the debug in question, not boot OS. The method of debug usesage is
> in mptdebug.h, so I would think people would look there, and figure it
> out. I also have a script below that sets all the host debug sas chips.
> Does this sound reasonable? If not, let me know.
OK fair enough ... I'm just pointing out it's non standard.
I really think the module parameter has to be hooked to act as a global
setting, but otherwise, this looks fine.
James
next prev parent reply other threads:[~2007-07-27 22:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 10:06 [PATCH 0/5] mpt fusion: Add logging support Prakash, Sathya
2007-07-26 16:37 ` Moore, Eric
2007-07-27 16:21 ` James Bottomley
2007-07-27 22:16 ` Moore, Eric
2007-07-27 22:30 ` James Bottomley [this message]
2007-07-28 17:40 ` James Bottomley
2007-07-30 18:33 ` Moore, Eric
2007-07-30 22:31 ` FUJITA Tomonori
2007-07-31 18:40 ` Moore, Eric
2007-08-01 21:57 ` FUJITA Tomonori
2007-07-28 4:14 ` Mr. James W. Laferriere
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=1185575403.3434.24.camel@localhost.localdomain \
--to=james.bottomley@steeleye.com \
--cc=Eric.Moore@lsi.com \
--cc=Sathya.Prakash@lsi.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;
as well as URLs for NNTP newsgroup(s).