Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482398 - kernel 3.10 - inserting Hauppauge WinTV MiniStick causes hang
Summary: kernel 3.10 - inserting Hauppauge WinTV MiniStick causes hang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-08-25 09:16 UTC by Ulenrich
Modified: 2013-09-27 14:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
reverse-drivers-media-310-to-309.patch.gz (reverse-drivers-media-310-to-309.patch.gz,611.62 KB, application/gzip)
2013-08-25 09:16 UTC, Ulenrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulenrich 2013-08-25 09:16:21 UTC
Created attachment 356960 [details]
reverse-drivers-media-310-to-309.patch.gz

My Hauppage usb-dvbt mini stick totally froze my system. Not only my home-brew kernel but also Debian-siduction and openSUSE-tumbleweed.
Also othe media hardware is broken, I found for example:
---
+++ b/drivers/media/platform/sh_vou.c
@@ -776,9 +776,10 @@  static int sh_vou_try_fmt_vid_out(struct file *file, void *priv,
 	v4l_bound_align_image(&pix->width, 0, VOU_MAX_IMAGE_WIDTH, 1,
 			      &pix->height, 0, VOU_MAX_IMAGE_HEIGHT, 1, 0);
 
-	for (i = 0; ARRAY_SIZE(vou_fmt); i++)
+	for (i = 0; i < ARRAY_SIZE(vou_fmt); i++) {
...

Because my system totally knocks out I am not able to give you any error message. I decided to roll back to linux-3.9/drivers/media subsystem. This is easily possible. My system now runs stable. I attach my patch which beside drivers/media also includes some header files.
Comment 1 Ulenrich 2013-08-25 09:32:17 UTC
Also freezing is linux-3.11-rc6
when using dvb-t

Perhaps someone with writing capabilities to the upstream kernel.org dev-mailing list should mention this issue there before release!

(The drivers/media subsystem seems to be totally untestet, otherwise such as the above shown endless loop would have been detected)
Comment 2 Ulenrich 2013-08-26 11:12:01 UTC
diff --recursive /usr/src/linux-3.11-rc6/drivers/media \
                 /usr/src/linux-3.11-rc7/drivers/media
shows no better - no differences. 

Even the heavy bug of the never ending loop
in drivers/media/platform/sh_vou.c                                            
>    for (i = 0; ARRAY_SIZE(vou_fmt); i++)
which has a patch at
https://patchwork.linuxtv.org/patch/19893/
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-09-03 19:49:37 UTC
Which exact kernel version was this introduced with? The branch release (3.10.0) or a newer release; if so, which one? Also, what was the last working kernel?
Comment 4 Ulenrich 2013-09-04 19:07:47 UTC
linux-3.9.y is the last working. 

That is why I use linux-3.9/drivers/media for 
Linux-3.10
Linux-3.11
which works! (My patch resembles this)

Also there is an additional report with kernel panic
https://bugzilla.kernel.org/show_bug.cgi?id=60645#c2
of today.
Comment 5 Ulenrich 2013-09-09 09:02:08 UTC
Trying the whole new linux-3.11 with new 
drivers/media I got dvb-t run a short while:
After upgrade to sys-kernel/linux-headers-3.11
I recompiled vlc and libdvbpsi-0.2.2
It runs a television for about 4 minutes and 
then freezes.
Using vlc-9999 and libdvbpsi-1.1 has the
same effect. Kaffeine with xine-lib 
freezes imediately.

Should I recompile
sys-libs/glibc-2.17
with the new linux-headers-3.11
also (I didnt)?


... Perhaps it is not a kernel issue
but change abi of the kernel that 
has to be reimplemented in clients?
Comment 6 Ulenrich 2013-09-18 14:34:29 UTC
There is a patch visible in the kernel stable-queue 
mailing list from chehab which solves the issue
(media - division zero fix)
Comment 7 Ulenrich 2013-09-18 14:36:58 UTC
Comment on attachment 356960 [details]
reverse-drivers-media-310-to-309.patch.gz

FIXFORME - there is coming a fix which makes
linux-3.10/drivers/media usable again ...
Comment 9 Ulenrich 2013-09-27 14:32:21 UTC
solved upstream by:
linux-3.10.13
linux-3.11.2