[Nouveau] [PATCH] drm/nouveau: add default debug level override

Marcin Slusarz marcin.slusarz at gmail.com
Thu Sep 13 04:31:53 PDT 2012


On Thu, Sep 13, 2012 at 06:33:58AM +0200, Maarten Lankhorst wrote:
> Hey,
> 
> Op 13-09-12 00:50, Marcin Slusarz schreef:
> > Useful when we don't know which subsystem is failing.
> >
> > Signed-off-by: Marcin Slusarz <marcin.slusarz at gmail.com>
> > ---
> >  drivers/gpu/drm/nouveau/core/core/option.c | 9 ++++++++-
> >  1 file changed, 8 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/nouveau/core/core/option.c b/drivers/gpu/drm/nouveau/core/core/option.c
> > index 62a432e..fde06b0 100644
> > --- a/drivers/gpu/drm/nouveau/core/core/option.c
> > +++ b/drivers/gpu/drm/nouveau/core/core/option.c
> > @@ -22,9 +22,16 @@
> >   * Authors: Ben Skeggs
> >   */
> >  
> > +#include <linux/module.h>
> >  #include <core/option.h>
> >  #include <core/debug.h>
> >  
> > +MODULE_PARM_DESC(debug_level, "nv_printk level (0-"
> > +		__stringify(CONFIG_NOUVEAU_DEBUG) ", default "
> > +		__stringify(CONFIG_NOUVEAU_DEBUG_DEFAULT) ")");
> > +static int nouveau_debug_level = CONFIG_NOUVEAU_DEBUG_DEFAULT;
> > +module_param_named(debug_level, nouveau_debug_level, int, 0400);
> Why make default 0400? 0600 or 0644 would make more sense..

No particular reason. I copied it from other module parameter (_all_ of
them use 0400). 0644 sounds ok.

Marcin


More information about the Nouveau mailing list