public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* CONFIG_VIDEO_ADV_DEBUG question
@ 2008-07-29 10:25 Hans de Goede
  0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2008-07-29 10:25 UTC (permalink / raw)
  To: video4linux-list

Hi All,

CONFIG_VIDEO_ADV_DEBUG enables additional debugging output in the gscpa 
driver, which then becomes "active" when a module option gets passed. So 
in the gspca case it normally only results in a larger driver without 
causing additional debug unless module option is passed.

I've been asking the Fedora kernel maintainers to enable this option by 
default for the Fedora development version atleast, and thus I wonder 
how this option affects other drivers, are there other drivers which 
become very chatty with this option, or do they all need a module option 
to truely enable all the debug spew like gspca?

Regards,

Hans

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

* Re: CONFIG_VIDEO_ADV_DEBUG question
@ 2008-07-29 12:10 Hans Verkuil
  2008-07-29 17:37 ` Jean-Francois Moine
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Verkuil @ 2008-07-29 12:10 UTC (permalink / raw)
  To: video4linux-list

> Hi All,
>
> CONFIG_VIDEO_ADV_DEBUG enables additional debugging output in the gscpa
> driver, which then becomes "active" when a module option gets passed. So
> in the gspca case it normally only results in a larger driver without
> causing additional debug unless module option is passed.
>
> I've been asking the Fedora kernel maintainers to enable this option by
> default for the Fedora development version atleast, and thus I wonder
> how this option affects other drivers, are there other drivers which
> become very chatty with this option, or do they all need a module option
> to truely enable all the debug spew like gspca?

The verbosity level is done through some sort of debug module option. This
CONFIG is only used AFAIK to enable the VIDIOC_DBG_G/S_REGISTER ioctls
which allows you to program the video device(s) directly by
setting/getting registers.

I see that a few drivers use it to expose extra information through sysfs.

But the way gspca uses it is not correct. I would remove the test on
CONFIG_VIDEO_ADV_DEBUG there altogether, or replace it with a test of a
new gspca-specific config option. The ADV_DEBUG option is really about
allowing the root user access to low-level driver registers through the
v4l2-dbg utility. It's not about enabling additional debugging output.

This is also the reason by it is disabled by most (?) distros: it's a bit
dangerous to allow the user to mess with that. But it is ideal to test
different register values on the fly.

Regards,

         Hans

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

* Re: CONFIG_VIDEO_ADV_DEBUG question
  2008-07-29 12:10 CONFIG_VIDEO_ADV_DEBUG question Hans Verkuil
@ 2008-07-29 17:37 ` Jean-Francois Moine
  2008-07-29 18:22   ` Hans de Goede
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Francois Moine @ 2008-07-29 17:37 UTC (permalink / raw)
  To: video4linux-list

On Tue, 2008-07-29 at 14:10 +0200, Hans Verkuil wrote:
> Hans de Goede wrote:
> > CONFIG_VIDEO_ADV_DEBUG enables additional debugging output in the gscpa
> > driver, which then becomes "active" when a module option gets passed. So
> 	[snip]
> But the way gspca uses it is not correct. I would remove the test on
> CONFIG_VIDEO_ADV_DEBUG there altogether, or replace it with a test of a

Hello Hans and Hans,

OK. So I see 3 options:
1) add a new kernel config option, say CONFIG_GSPCA_DEBUG,
2) always set an internal compile option GSPCA_DEBUG,
3) have the option GSPCA_DEBUG, but unset by default.

Which is the best for you, Hans (de Goede)?

Cheers.

-- 
Ken ar c'hentañ |             ** Breizh ha Linux atav! **
Jef             |               http://moinejf.free.fr/


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

* Re: CONFIG_VIDEO_ADV_DEBUG question
  2008-07-29 17:37 ` Jean-Francois Moine
@ 2008-07-29 18:22   ` Hans de Goede
  0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2008-07-29 18:22 UTC (permalink / raw)
  To: Jean-Francois Moine; +Cc: video4linux-list

Jean-Francois Moine wrote:
> On Tue, 2008-07-29 at 14:10 +0200, Hans Verkuil wrote:
>> Hans de Goede wrote:
>>> CONFIG_VIDEO_ADV_DEBUG enables additional debugging output in the gscpa
>>> driver, which then becomes "active" when a module option gets passed. So
>> 	[snip]
>> But the way gspca uses it is not correct. I would remove the test on
>> CONFIG_VIDEO_ADV_DEBUG there altogether, or replace it with a test of a
> 
> Hello Hans and Hans,
> 
> OK. So I see 3 options:
> 1) add a new kernel config option, say CONFIG_GSPCA_DEBUG,
> 2) always set an internal compile option GSPCA_DEBUG,
> 3) have the option GSPCA_DEBUG, but unset by default.
> 
> Which is the best for you, Hans (de Goede)?
> 

My vote goes to 2, so that when users using distro kernels (which will soon 
have gspca v2, Fedora's development kernel already has it) we can tell them to 
add the necessary module option and get debug output from them without them 
having to rebuild a kernel (module).

Regards,

Hans

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

end of thread, other threads:[~2008-07-29 18:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 12:10 CONFIG_VIDEO_ADV_DEBUG question Hans Verkuil
2008-07-29 17:37 ` Jean-Francois Moine
2008-07-29 18:22   ` Hans de Goede
  -- strict thread matches above, loose matches on Subject: below --
2008-07-29 10:25 Hans de Goede

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