Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156575 - IVTV driver issue. Reading from video device hardlocks system
Summary: IVTV driver issue. Reading from video device hardlocks system
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-28 23:42 UTC by Hasse Hagen Johansen
Modified: 2007-03-09 00:44 UTC (History)
3 users (show)

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


Attachments
Log of emerging ebuild (ivtv-ebuild.log,12.62 KB, text/plain)
2006-11-30 13:41 UTC, Hasse Hagen Johansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hasse Hagen Johansen 2006-11-28 23:42:58 UTC
Hi

I've got this strange bug which I haven't figured out for about 1
Comment 1 Hasse Hagen Johansen 2006-11-28 23:42:58 UTC
Hi

I've got this strange bug which I haven't figured out for about 1½ week

I can load the ivtv modules fine, but when something reads from it(xine pvr://,mplayer /dev/video0, mythtv) I got artifacts in the picture and very shortly after I will get a hardlockup of my system

I am using an Via epia sp8000 board. I can playback videofiles fine, so it shouldn't be a videocard driver problem

It is not a hardware problem either, because I have an old backup of my disk to another disk, and when using that the problem does not occur.

I have tried several kernelsources and version(incliding different vanilla-sources). I have asked on the ivtv-users list(but no answer). I have tried a test version of the ivtv driver which should be more robust. With this test version I don't get any hardlockups, but many artifacts(actually unuseable)

I couldn't get the version of the kernel(2.6.17-suspend2-r2) used on my old(working) backup, so I tried with 2.6.17-suspend-r8, but it also lockups. So I thinkink that it could be some other software breaking this...compiler etc.?

I don't quite know what it could be :/

Portage 2.1.2_rc2-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.17-suspend2-r6 i686)
=================================================================
System uname: 2.6.17-suspend2-r6 i686 VIA Nehemiah
Gentoo Base System version 1.12.6
Last Sync: Sat, 25 Nov 2006 07:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -mfpmath=sse -mmmx -msse -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-Os -march=i686 -mfpmath=sse -mmmx -msse -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo http://ftp.ds.hj.se/pub/Linux/distributions/gentoo/ ftp://ftp.ds.hj.se/pub/Linux/distributions/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/musicbrainz"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib alsa aotuv apache2 apm asf bash-completion berkdb bitmap-fonts bzip2 cairo caps cddb cdparanoia cle266 cli cpudetection cracklib crypt cups dk dlloader dri dvb dvd dvdread eds elibc_glibc emboss encode exif fbsplash festival ffmpeg fftw flac foomaticdb gdbm gif gpm gstreamer iconv imagemagick imlib input_devices_keyboard input_devices_mouse isdnlog jack jack-tmpfs jpeg jpeg2k kde kernel_linux keyboard lcd libg++ libwww lirc lirc_devices_serial logrotate lzo mad matroska mbrola menutransitions mikmod mmx mmxext motif mouse mp3 mp4 mpeg mysql ncurses netjack network nls no-htdocs nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcre perl png pppd pwdb python qt3 qt4 quicktime readline real reflection rtc samba sdl session sndfile spell spl sse sse2 ssl statsmbfs tcpd testmenus theora tif tiff transcode truetype truetype-fonts type1-fonts udev usb userland_GNU v4l v4l2 vcd vdc vdr video_cards_via vidix vorbis win32codecs x264 xml xorg xprint xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2006-11-29 06:52:43 UTC
mplayer PVR support will only work with linux-headers-2.6.18.

Do you get any errors when you just try something like cat /dev/video0 > foo.mpg ?
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2006-11-29 06:55:15 UTC
Also, what version of IVTV are you using
Comment 4 Hasse Hagen Johansen 2006-11-30 13:41:29 UTC
Created attachment 103064 [details]
Log of emerging ebuild
Comment 5 Hasse Hagen Johansen 2006-11-30 13:45:35 UTC
Hi

Sorry. It seems that my latest comments wasn't registrated.

It was xine I used when using pvr://

the test with mplayer was just like "mplayer /dev/video0"

I have tried cat /dev/video > test.mpg it also locks up my system

For the ivtv version I have tried all version in portage corresponding to kernel versions from 2.6.16 and up

I have just tried using the new 2.6.19 kernel with a slightly modified ebuild. I also get lockups with that. I did see some warnings from gcc when compiling the ivtv drivers against 2.6.19 about some incompatible pointer types for some irq stuff I have attached a log when emerging the ivtv driver


I will try see if I also see this irq error with an 2.6.18 kernel with ivtv-0.8.1-r1 (because I haven't noticed it before, and maybe it doesn't even exist when using a proper ivtv supported kernel)
Comment 6 Hasse Hagen Johansen 2006-12-01 10:39:03 UTC
Hi again

I have just tried using the new 2.6.19 kernel from kernel.org and then compiled ivtv trunk against it.

I don't get lockups, but I still get serious artifacts in the picture
Comment 7 Sander Sweers 2006-12-06 16:33:14 UTC
(In reply to comment #5)
> Hi again
> 
> I have just tried using the new 2.6.19 kernel from kernel.org and then compiled
> ivtv trunk against it.
> 
> I don't get lockups, but I still get serious artifacts in the picture
> 

Scaling and closed caption is not working atm. So if you are using cc and not the default resolution of 720x576 (720x480 for NTSC) it will cause artifacts. Mythtv by default uses 480x480. See http://www.ivtvdriver.org/pipermail/ivtv-users/2006-November/004810.html for more info.
Comment 8 Hasse Hagen Johansen 2006-12-28 01:54:40 UTC
Hi

The issue I ad was not related to closed caption. I am not using closed caption and I am using 720x576 as the resolution.

I have 22th of december I checked ivtv trubk out again and that works. I think it is some DMA related problems between my pvr-500 and the via epia SP8000 board I am using

Regards
Hasse
Comment 9 Steve Dibb (RETIRED) gentoo-dev 2007-01-23 09:41:34 UTC
(In reply to comment #8)
> Hi
> 
> The issue I ad was not related to closed caption. I am not using closed caption
> and I am using 720x576 as the resolution.
> 
> I have 22th of december I checked ivtv trubk out again and that works. I think
> it is some DMA related problems between my pvr-500 and the via epia SP8000
> board I am using
> 
> Regards
> Hasse
> 

Hasse, your version should be in portage now, ok to close bug?