public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Osterlund <petero2@telia.com>
To: Gerd Knorr <kraxel@bytesex.org>
Cc: Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.9-rc2
Date: 15 Sep 2004 00:30:44 +0200	[thread overview]
Message-ID: <m33c1kxz3f.fsf@telia.com> (raw)
In-Reply-To: <20040914094928.GF27258@bytesex>

Gerd Knorr <kraxel@bytesex.org> writes:

> On Mon, Sep 13, 2004 at 11:57:44PM +0200, Peter Osterlund wrote:
> > Linus Torvalds <torvalds@osdl.org> writes:
> > 
> > > Gerd Knorr:
> > >   o v4l: bttv driver update
> > 
> > This patch,
> > 
> > Output from dmesg with a working kernel: (-rc2 with the above patch reverted)
> 
> > [ ... ]
> 
> > When running the crashing kernel, the last line in /var/log/messages
> > after the crash is:
> > 
> >     bttv0: pinnacle/mt: id=2 info="PAL+SECAM / stereo" radio=yes
> > 
> > Maybe there is more data that doesn't make it to the disk. I can try
> > again with a serial console if you think that would help.
> 
> That certainly is incomplete, at least the insmod messages should be
> there if mencoder triggeres the crash.  A serial console log would be
> helpful.

I got this with a serial console:

    ...
    bttv0: ioctl 0xc02c5638 (v4l2, VIDIOC_G_FREQUENCY)
    bttv0: ioctl 0xc02c5638 (v4l2, VIDIOC_G_FREQUENCY)
    bttv0: ioctl 0xc0cc5604 (v4l2, VIDIOC_G_FMT)
    bttv0: ioctl 0xc0cc5604 (v4l2, VIDIOC_G_FMT)
    bttv0: ioctl 0xc0cc5604 (v4l2, VIDIOC_G_FMT)
    bttv0: ioctl 0xc0145608 (v4l2, VIDIOC_REQBUFS)
    bttv0: ioctl 0xc0445609 (v4l2, VIDIOC_QUERYBUF)
    bttv0: mmap type=video-cap 0xb791f000+663552
    bttv0: ioctl 0xc044560f (v4l2, VIDIOC_QBUF)
    Unable to handle kernel NULL pointer dereference at virtual a

The computer rebooted while printing the "Unable to handle..."
message. DMA engine gone wild?

> You can also try to reverse only parts of the patch, only the
> changes in bttv-driver.c and/or in bttv-risc.c and see what happens.

I found the change that crashes my computer. This patch is enough to
fix it for me:

diff -puN drivers/media/video/bttv-risc.c~v3_revert drivers/media/video/bttv-risc.c
--- linux/drivers/media/video/bttv-risc.c~v3_revert	2004-09-15 00:18:21.280831360 +0200
+++ linux-petero/drivers/media/video/bttv-risc.c	2004-09-15 00:18:21.283830904 +0200
@@ -153,16 +153,10 @@ bttv_risc_planar(struct bttv *btv, struc
 			chroma = 1;
 			break;
 		case 1:
-			if (!yoffset)
-				chroma = (line & 1) == 0;
-			else
-				chroma = (line & 1) == 1;
+			chroma = !(line & 1);
 			break;
 		case 2:
-			if (!yoffset)
-				chroma = (line & 3) == 0;
-			else
-				chroma = (line & 3) == 2;
+			chroma = !(line & 3);
 			break;
 		default:
 			chroma = 0;

> Which format+size you are capturing with mencoder?

mencoder tv:// -tv driver=v4l2:device=/dev/video0:width=768:height=576:chanlist=europe-west:norm=PAL:channel=$channel -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$vbitrate -oac mp3lame -lameopts cbr:br=$abitrate -vf pp=lb -endpos $time -o $outfile >$outfile.log 2>&1

-- 
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340

  reply	other threads:[~2004-09-14 22:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-13 16:40 Linux 2.6.9-rc2 Linus Torvalds
2004-09-13 20:03 ` Linux 2.6.9-rc2 : oops Christian Borntraeger
2004-09-13 20:39   ` Linus Torvalds
2004-09-13 21:00     ` Andrew Morton
2004-09-13 21:22       ` Christian Borntraeger
2004-09-13 21:15     ` Christian Borntraeger
2004-09-13 21:23       ` Linus Torvalds
2004-09-13 21:57 ` Linux 2.6.9-rc2 Peter Osterlund
2004-09-14  9:49   ` Gerd Knorr
2004-09-14 22:30     ` Peter Osterlund [this message]
2004-09-15  7:08       ` Gerd Knorr
2004-09-15 18:44         ` Peter Osterlund
2004-09-26  7:05   ` Peter Osterlund
2004-09-26 19:26     ` Gerd Knorr
2004-09-14 13:12 ` Geert Uytterhoeven
2004-09-15 10:22 ` Eric BEGOT
2004-09-20 17:07 ` Linux 2.6.9-rc2 (compile stats) John Cherry
2004-09-20 20:23   ` Giuseppe Bilotta
2004-09-20 20:46     ` Jesper Juhl
2004-09-20 22:23       ` Giuseppe Bilotta
2004-10-11 21:30 ` [PATCH] FrameMaster II build fix (was: Re: Linux 2.6.9-rc2) Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m33c1kxz3f.fsf@telia.com \
    --to=petero2@telia.com \
    --cc=kraxel@bytesex.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox