Re: small regression in mediatree/for_v3.7-3 - media_build

2012-11-04 Thread Hin-Tak Leung
--- On Sat, 3/11/12, VDR User user@gmail.com wrote:

 On Tue, Aug 14, 2012 at 4:51 PM,
 Antti Palosaari cr...@iki.fi
 wrote:
  There seems to be a small regression on
 mediatree/for_v3.7-3
  - dmesg/klog get flooded with these:
 
  [201145.140260] dvb_frontend_poll: 15 callbacks
 suppressed
  [201145.586405] usb_urb_complete: 88 callbacks
 suppressed
  [201150.587308] usb_urb_complete: 3456 callbacks
 suppressed
 
  [201468.630197] usb_urb_complete: 3315 callbacks
 suppressed
  [201473.632978] usb_urb_complete: 3529 callbacks
 suppressed
  [201478.635400] usb_urb_complete: 3574 callbacks
 suppressed
 
  It seems to be every 5 seconds, but I think that's
 just klog skipping
  repeats and collapsing duplicate entries. This does
 not happen the last time
  I tried playing with the TV stick :-).
 
  That's because you has dynamic debugs enabled!
  modprobe dvb_core; echo -n 'module dvb_core +p' 
  /sys/kernel/debug/dynamic_debug/control
  modprobe dvb_usbv2; echo -n 'module dvb_usbv2 +p' 
  /sys/kernel/debug/dynamic_debug/control
 
  If you don't add dvb_core and dvb_usbv2 modules to
  /sys/kernel/debug/dynamic_debug/control you will not
 see those.
 
 I'm getting massive amounts of dvb_frontend_poll: 20
 callbacks
 suppressed messages in dmesg also and I definitely did not
 put
 dvb_core or anything else in
 /sys/kernel/debug/dynamic_debug/control.
 For that matter I don't even have a
 /sys/kernel/debug/dynamic_debug/control file.
 
  I have added ratelimited version for those few debugs
 that are flooded
  normally. This suppressed is coming from ratelimit - it
 does not print all
  those similar debugs.
 
 I'm using kernel 3.6.3 with media_build from Oct. 21, 2012.
 How I can
 disable those messages? I'd rather not see hundreds,
 possibly
 thousands or millions of those messages. :)

okay, if you had followed the threads further down, you would probably see that 
I patched the host side copy of device.h, i.e:

/lib/modules/`uname -r `/build/include/linux/device.h

to get around this, since media_build does not use a full dev kernel tree, but 
uses the host-side copy of the kernel headers.

So you need to apply the patch (attached) to that. i.e.
  cd /lib/modules/`uname -r `/build/include/linux/
  patch -p3  /tmp/patch

Mind you this messes up your kernel-dev headers. In my case, because that file 
is part of the fedora distro kernel-devel package, and as soon as I get a new 
kernel the whole thing is thrown away, so I don't care. But if you compile your 
own kernel (and hence have your own kernel-devel headers which you want to keep 
in clean state), you might want to take note about this.

Hope this helps.

patch
Description: Binary data


Re: small regression in mediatree/for_v3.7-3 - media_build

2012-11-02 Thread VDR User
On Tue, Aug 14, 2012 at 4:51 PM, Antti Palosaari cr...@iki.fi wrote:
 There seems to be a small regression on mediatree/for_v3.7-3
 - dmesg/klog get flooded with these:

 [201145.140260] dvb_frontend_poll: 15 callbacks suppressed
 [201145.586405] usb_urb_complete: 88 callbacks suppressed
 [201150.587308] usb_urb_complete: 3456 callbacks suppressed

 [201468.630197] usb_urb_complete: 3315 callbacks suppressed
 [201473.632978] usb_urb_complete: 3529 callbacks suppressed
 [201478.635400] usb_urb_complete: 3574 callbacks suppressed

 It seems to be every 5 seconds, but I think that's just klog skipping
 repeats and collapsing duplicate entries. This does not happen the last time
 I tried playing with the TV stick :-).

 That's because you has dynamic debugs enabled!
 modprobe dvb_core; echo -n 'module dvb_core +p' 
 /sys/kernel/debug/dynamic_debug/control
 modprobe dvb_usbv2; echo -n 'module dvb_usbv2 +p' 
 /sys/kernel/debug/dynamic_debug/control

 If you don't add dvb_core and dvb_usbv2 modules to
 /sys/kernel/debug/dynamic_debug/control you will not see those.

I'm getting massive amounts of dvb_frontend_poll: 20 callbacks
suppressed messages in dmesg also and I definitely did not put
dvb_core or anything else in /sys/kernel/debug/dynamic_debug/control.
For that matter I don't even have a
/sys/kernel/debug/dynamic_debug/control file.

 I have added ratelimited version for those few debugs that are flooded
 normally. This suppressed is coming from ratelimit - it does not print all
 those similar debugs.

I'm using kernel 3.6.3 with media_build from Oct. 21, 2012. How I can
disable those messages? I'd rather not see hundreds, possibly
thousands or millions of those messages. :)
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


noisy dev_dbg_ratelimited() [Re: small regression in mediatree/for_v3.7-3 - media_build]

2012-08-15 Thread Antti Palosaari

Hello Hiroshi,

I see you have added dev_dbg_ratelimited() recently, commit 
6ca045930338485a8cdef117e74372aa1678009d .


However it seems to be noisy as expected similar behavior than normal 
dev_dbg() without a ratelimit.


I looked ratelimit.c and there is:
printk(KERN_WARNING %s: %d callbacks suppressed\n, func, rs-missed);

What it looks my eyes it will print those callbacks suppressed always 
because KERN_WARNING.


On 08/15/2012 04:05 AM, Antti Palosaari wrote:

On 08/15/2012 03:44 AM, Hin-Tak Leung wrote:

--- On Wed, 15/8/12, Antti Palosaari cr...@iki.fi wrote:


On 08/15/2012 02:39 AM, Hin-Tak Leung
wrote:

There seems to be a small regression on

mediatree/for_v3.7-3

- dmesg/klog get flooded with these:

[201145.140260] dvb_frontend_poll: 15 callbacks

suppressed

[201145.586405] usb_urb_complete: 88 callbacks

suppressed

[201150.587308] usb_urb_complete: 3456 callbacks

suppressed


[201468.630197] usb_urb_complete: 3315 callbacks

suppressed

[201473.632978] usb_urb_complete: 3529 callbacks

suppressed

[201478.635400] usb_urb_complete: 3574 callbacks

suppressed


It seems to be every 5 seconds, but I think that's just

klog skipping repeats and collapsing duplicate entries. This
does not happen the last time I tried playing with the TV
stick :-).

That's because you has dynamic debugs enabled!
modprobe dvb_core; echo -n 'module dvb_core +p' 
/sys/kernel/debug/dynamic_debug/control
modprobe dvb_usbv2; echo -n 'module dvb_usbv2 +p' 
/sys/kernel/debug/dynamic_debug/control

If you don't add dvb_core and dvb_usbv2 modules to
/sys/kernel/debug/dynamic_debug/control you will not see
those.

I have added ratelimited version for those few debugs that
are flooded normally. This suppressed is coming from
ratelimit - it does not print all those similar debugs.


I did not enable it - it is as shipped :-).

# grep 'CONFIG_DYNAMIC' /boot/config*
/boot/config-3.4.6-2.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.4.6-2.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y
/boot/config-3.5.0-2.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.5.0-2.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y
/boot/config-3.5.1-1.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.5.1-1.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y

Now I wonder why I didn't have those usb_urb_complete messages before?
The last time I played with mediatree was with 3.4.4-5.fc17.x86_64,
and with the mediatree2/dvb_core branch - and I did not have these then.


Yeah, you are correct. There is something wrong now. I see also those
ratelimited debugs even didn't ordered...

I think dev_dbg_ratelimited() is very new, there is no other users... I
have to find out whats wrong.


regards
Antti

--
http://palosaari.fi/
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: small regression in mediatree/for_v3.7-3 - media_build

2012-08-14 Thread Antti Palosaari

On 08/15/2012 02:39 AM, Hin-Tak Leung wrote:

There seems to be a small regression on mediatree/for_v3.7-3
- dmesg/klog get flooded with these:

[201145.140260] dvb_frontend_poll: 15 callbacks suppressed
[201145.586405] usb_urb_complete: 88 callbacks suppressed
[201150.587308] usb_urb_complete: 3456 callbacks suppressed

[201468.630197] usb_urb_complete: 3315 callbacks suppressed
[201473.632978] usb_urb_complete: 3529 callbacks suppressed
[201478.635400] usb_urb_complete: 3574 callbacks suppressed

It seems to be every 5 seconds, but I think that's just klog skipping repeats 
and collapsing duplicate entries. This does not happen the last time I tried 
playing with the TV stick :-).


That's because you has dynamic debugs enabled!
modprobe dvb_core; echo -n 'module dvb_core +p'  
/sys/kernel/debug/dynamic_debug/control
modprobe dvb_usbv2; echo -n 'module dvb_usbv2 +p'  
/sys/kernel/debug/dynamic_debug/control


If you don't add dvb_core and dvb_usbv2 modules to 
/sys/kernel/debug/dynamic_debug/control you will not see those.


I have added ratelimited version for those few debugs that are flooded 
normally. This suppressed is coming from ratelimit - it does not print 
all those similar debugs.


regards
Antti

--
http://palosaari.fi/
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: small regression in mediatree/for_v3.7-3 - media_build

2012-08-14 Thread Hin-Tak Leung
--- On Wed, 15/8/12, Antti Palosaari cr...@iki.fi wrote:

 On 08/15/2012 02:39 AM, Hin-Tak Leung
 wrote:
  There seems to be a small regression on
 mediatree/for_v3.7-3
  - dmesg/klog get flooded with these:
  
  [201145.140260] dvb_frontend_poll: 15 callbacks
 suppressed
  [201145.586405] usb_urb_complete: 88 callbacks
 suppressed
  [201150.587308] usb_urb_complete: 3456 callbacks
 suppressed
  
  [201468.630197] usb_urb_complete: 3315 callbacks
 suppressed
  [201473.632978] usb_urb_complete: 3529 callbacks
 suppressed
  [201478.635400] usb_urb_complete: 3574 callbacks
 suppressed
  
  It seems to be every 5 seconds, but I think that's just
 klog skipping repeats and collapsing duplicate entries. This
 does not happen the last time I tried playing with the TV
 stick :-).
 
 That's because you has dynamic debugs enabled!
 modprobe dvb_core; echo -n 'module dvb_core +p' 
 /sys/kernel/debug/dynamic_debug/control
 modprobe dvb_usbv2; echo -n 'module dvb_usbv2 +p' 
 /sys/kernel/debug/dynamic_debug/control
 
 If you don't add dvb_core and dvb_usbv2 modules to
 /sys/kernel/debug/dynamic_debug/control you will not see
 those.
 
 I have added ratelimited version for those few debugs that
 are flooded normally. This suppressed is coming from
 ratelimit - it does not print all those similar debugs.

I did not enable it - it is as shipped :-).

# grep 'CONFIG_DYNAMIC' /boot/config*
/boot/config-3.4.6-2.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.4.6-2.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y
/boot/config-3.5.0-2.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.5.0-2.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y
/boot/config-3.5.1-1.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.5.1-1.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y

Now I wonder why I didn't have those usb_urb_complete messages before? The last 
time I played with mediatree was with 3.4.4-5.fc17.x86_64, and with the 
mediatree2/dvb_core branch - and I did not have these then.

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: small regression in mediatree/for_v3.7-3 - media_build

2012-08-14 Thread Antti Palosaari

On 08/15/2012 03:44 AM, Hin-Tak Leung wrote:

--- On Wed, 15/8/12, Antti Palosaari cr...@iki.fi wrote:


On 08/15/2012 02:39 AM, Hin-Tak Leung
wrote:

There seems to be a small regression on

mediatree/for_v3.7-3

- dmesg/klog get flooded with these:

[201145.140260] dvb_frontend_poll: 15 callbacks

suppressed

[201145.586405] usb_urb_complete: 88 callbacks

suppressed

[201150.587308] usb_urb_complete: 3456 callbacks

suppressed


[201468.630197] usb_urb_complete: 3315 callbacks

suppressed

[201473.632978] usb_urb_complete: 3529 callbacks

suppressed

[201478.635400] usb_urb_complete: 3574 callbacks

suppressed


It seems to be every 5 seconds, but I think that's just

klog skipping repeats and collapsing duplicate entries. This
does not happen the last time I tried playing with the TV
stick :-).

That's because you has dynamic debugs enabled!
modprobe dvb_core; echo -n 'module dvb_core +p' 
/sys/kernel/debug/dynamic_debug/control
modprobe dvb_usbv2; echo -n 'module dvb_usbv2 +p' 
/sys/kernel/debug/dynamic_debug/control

If you don't add dvb_core and dvb_usbv2 modules to
/sys/kernel/debug/dynamic_debug/control you will not see
those.

I have added ratelimited version for those few debugs that
are flooded normally. This suppressed is coming from
ratelimit - it does not print all those similar debugs.


I did not enable it - it is as shipped :-).

# grep 'CONFIG_DYNAMIC' /boot/config*
/boot/config-3.4.6-2.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.4.6-2.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y
/boot/config-3.5.0-2.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.5.0-2.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y
/boot/config-3.5.1-1.fc17.x86_64:CONFIG_DYNAMIC_FTRACE=y
/boot/config-3.5.1-1.fc17.x86_64:CONFIG_DYNAMIC_DEBUG=y

Now I wonder why I didn't have those usb_urb_complete messages before? The last 
time I played with mediatree was with 3.4.4-5.fc17.x86_64, and with the 
mediatree2/dvb_core branch - and I did not have these then.


Yeah, you are correct. There is something wrong now. I see also those 
ratelimited debugs even didn't ordered...


I think dev_dbg_ratelimited() is very new, there is no other users... I 
have to find out whats wrong.


Now I am finalizing DVB USB reset_resume(). Very cool. Looks like I can 
now continue watching television even USB controller gets reseted during 
suspend (reset resume). Every DVB USB device I have here seems to 
survive both normal resume and reset resume =)


regards
Antti


--
http://palosaari.fi/
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html