2003-08-09 19:05:00

by Michael Buesch

[permalink] [raw]
Subject: [2.6-test3] bttv driver doesn't run

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I'm running 2.6.0-test3 and the bttv-driver doesn't work
for my Hauppauge WinTV PCI with bt878 chip.

On booting, it throws the following messages:

Aug 9 20:47:06 lfs kernel: bttv: driver version 0.9.11 loaded
Aug 9 20:47:06 lfs kernel: bttv: using 8 buffers with 2080k (520 pages) each for capture
Aug 9 20:47:06 lfs kernel: bttv: Host bridge is 0000:00:00.0
Aug 9 20:47:06 lfs kernel: bttv: Bt8xx card found (0).
Aug 9 20:47:06 lfs kernel: bttv0: Bt878 (rev 17) at 0000:03:02.0, irq: 18, latency: 32, mmio: 0xddafe000
Aug 9 20:47:06 lfs kernel: bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb
Aug 9 20:47:06 lfs kernel: bttv0: using: BT878(Hauppauge (bt878)) [card=10,autodetected]
Aug 9 20:47:06 lfs kernel: bttv0: Hauppauge/Voodoo msp34xx: reset line init [5]
Aug 9 20:47:06 lfs kernel: bttv0: Hauppauge eeprom: model=44354, tuner=Philips FM1216 (5), radio=yes
Aug 9 20:47:06 lfs kernel: bttv0: using tuner=5
Aug 9 20:47:06 lfs kernel: bttv0: i2c: checking for MSP34xx @ 0x80... found
Aug 9 20:47:06 lfs kernel: bttv0: i2c: checking for TDA9875 @ 0xb0... not found
Aug 9 20:47:06 lfs kernel: bttv0: i2c: checking for TDA7432 @ 0x8a... not found
Aug 9 20:47:06 lfs kernel: videodev: "BT878(Hauppauge (bt878))" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
Aug 9 20:47:06 lfs kernel: bttv0: registered device video0
Aug 9 20:47:06 lfs kernel: videodev: "bt848/878 vbi" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
Aug 9 20:47:06 lfs kernel: bttv0: registered device vbi0
Aug 9 20:47:06 lfs kernel: videodev: "bt848/878 radio" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
Aug 9 20:47:06 lfs kernel: bttv0: registered device radio0
Aug 9 20:47:06 lfs kernel: bttv0: PLL: 28636363 => 35468950 .. ok


When trying to run the tv-application "tvtime", the kernel
throws some more messages. tvtime worked fine for a few
seconds (video and audio worked), but then it froze and
was non-workable from then on.

Aug 9 20:49:08 lfs kernel: bttv0: skipped frame. no signal? high irq latency?
Aug 9 20:49:08 lfs last message repeated 20 times
Aug 9 20:49:08 lfs kernel: bttv0: IRQ lockup, cleared int mask
Aug 9 20:49:08 lfs kernel: rtc: lost some interrupts at 1024Hz.
Aug 9 20:49:08 lfs kernel: bttv0: timeout: risc=0f7ae874, bits: VSYNC HSYNC OFLOW RISCI
Aug 9 20:49:08 lfs kernel: bttv0: reset, reinitialize
Aug 9 20:49:08 lfs kernel: bttv0: PLL: 28636363 => 35468950 .. ok


Complete syslog after booting this kernel is attached,
because it contains some more error-messages.
I bzip2'ed it because of the size.

I should additionaly say, that the driver worked for
2.6.0-test2, but threw error-messages (I posted this
to lkml before).

- --
Regards Michael Buesch [ http://www.8ung.at/tuxsoft ]
Animals on this machine: some GNUs and Penguin 2.6.0-test3

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/NUXNoxoigfggmSgRAjdjAJ0Q/B5QNRuIJo26ZZDTvJ5Pp4YGZwCghDeU
6yj05dEUei5k/9HYI1mgqOA=
=gUfK
-----END PGP SIGNATURE-----


Attachments:
(No filename) (3.16 kB)
clearsigned data
syslog.bz2 (7.67 kB)
Download all attachments

2003-08-11 12:05:11

by Gerd Knorr

[permalink] [raw]
Subject: Re: [2.6-test3] bttv driver doesn't run

> When trying to run the tv-application "tvtime", the kernel
> throws some more messages. tvtime worked fine for a few
> seconds (video and audio worked), but then it froze and
> was non-workable from then on.

Does reloading the driver help?

> Aug 9 20:49:08 lfs kernel: bttv0: timeout: risc=0f7ae874, bits: VSYNC HSYNC OFLOW RISCI
> Aug 9 20:49:08 lfs kernel: bttv0: reset, reinitialize

Yea, the reinitialize function doesn't re-enable the interrupts.
Try latest patches from bytesex.org/patches/ which have this fixed, that
should improve error recovery ...

Gerd

2003-08-11 12:55:20

by Michael Buesch

[permalink] [raw]
Subject: Re: [2.6-test3] bttv driver doesn't run

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 11 August 2003 14:15, Gerd Knorr wrote:
> > When trying to run the tv-application "tvtime", the kernel
> > throws some more messages. tvtime worked fine for a few
> > seconds (video and audio worked), but then it froze and
> > was non-workable from then on.
>
> Does reloading the driver help?

I don't know. I compiled bttv completely into the
kernel, because when I tried to configure
them as modules, I got thousands over thousands
of unresolved symbols. I tried to resolve them,
but I had no time to do this, so I decided
to compile them monolithically.

> > Aug 9 20:49:08 lfs kernel: bttv0: timeout: risc=0f7ae874, bits: VSYNC
> > HSYNC OFLOW RISCI Aug 9 20:49:08 lfs kernel: bttv0: reset, reinitialize
>
> Yea, the reinitialize function doesn't re-enable the interrupts.
> Try latest patches from bytesex.org/patches/ which have this fixed, that
> should improve error recovery ...

I'll take a look at them. Thank you for the hint.

> Gerd

- --
Regards Michael Buesch [ http://www.8ung.at/tuxsoft ]
Animals on this machine: some GNUs and Penguin 2.6.0-test2

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/N4nKoxoigfggmSgRAhveAJ4m5eMJ3D7qq+vTtrosXos4r6RQdQCfU5g6
SmA2Np9rDBGrr7JdY8cc9Bc=
=1cC+
-----END PGP SIGNATURE-----

2003-08-11 13:30:10

by Gerd Knorr

[permalink] [raw]
Subject: Re: [2.6-test3] bttv driver doesn't run

> kernel, because when I tried to configure
> them as modules, I got thousands over thousands
> of unresolved symbols. I tried to resolve them,

modprobe should resolve the dependencies for you ...

Gerd

2003-08-11 16:16:58

by Michael Buesch

[permalink] [raw]
Subject: Re: [2.6-test3] bttv driver doesn't run

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 11 August 2003 14:15, Gerd Knorr wrote:
> Yea, the reinitialize function doesn't re-enable the interrupts.
> Try latest patches from bytesex.org/patches/ which have this fixed, that
> should improve error recovery ...

I applied this patch:
http://bytesex.org/patches/2.6.0-test3/patch-2.6.0-test3-kraxel.gz

bttv run's fine, now.
I only got some small error-messages recently:

Aug 11 18:08:58 lfs kernel: bttv0: skipped frame. no signal? high irq latency?
Aug 11 18:10:57 lfs last message repeated 2 times

Most error messages I got before have gone and my tv-application
runs fine.

Thank you, for support, Gerd.

> Gerd

- --
Regards Michael Buesch [ http://www.8ung.at/tuxsoft ]
Animals on this machine: some GNUs and Penguin 2.6.0-test3

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/N8DAoxoigfggmSgRAowNAJ9kh1kB08tEqh2b3ew1uGToS93PwACeK8sg
h2KeiMi4k+k8JEEHMK3ZYRI=
=j5bm
-----END PGP SIGNATURE-----

2003-08-13 09:05:34

by Michael Buesch

[permalink] [raw]
Subject: Re: [2.6-test3] bttv driver confuses PS2 mouse

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I'm running linux-2.6.0-test3 with this patch:
(without the patch, bttv doesn't run)
http://bytesex.org/patches/2.6.0-test3/patch-2.6.0-test3-kraxel.gz

My tv application runs fine, but every few minutes, the
bttv driver re-initializes itself:

Aug 12 23:36:29 lfs kernel: bttv0: IRQ lockup, cleared int mask
Aug 12 23:36:29 lfs kernel: rtc: lost some interrupts at 1024Hz.
Aug 12 23:36:29 lfs kernel: bttv0: timeout: risc=185357c4, bits: VSYNC HSYNC RISCI
Aug 12 23:36:29 lfs kernel: bttv0: reset, reinitialize
Aug 12 23:36:29 lfs kernel: bttv0: PLL: 28636363 => 35468950 .. ok
Aug 12 23:37:33 lfs kernel: bttv0: skipped frame. no signal? high irq latency?

Sometimes during this re-initialization, my
ps/2 mouse looses synchronization:

Aug 12 23:37:33 lfs kernel: bttv0: IRQ lockup, cleared int mask
Aug 12 23:37:33 lfs kernel: psmouse.c: Lost synchronization, throwing 2 bytes away.
Aug 12 23:37:33 lfs kernel: bttv0: timeout: risc=08e8f9e4, bits: VSYNC HSYNC RISCI
Aug 12 23:37:33 lfs kernel: bttv0: reset, reinitialize
Aug 12 23:37:33 lfs kernel: bttv0: PLL: 28636363 => 35468950 .. ok
Aug 12 23:37:33 lfs kernel: psmouse.c: Lost synchronization, throwing 2 bytes away.
Aug 12 23:38:01 lfs kernel: bttv0: skipped frame. no signal? high irq latency?

Then the mouse jumps randomly over the screen and I have to
restart X.

I'm running a bt878 card with tvtime as tv-app.

I hope this helps.

- --
Regards Michael Buesch [ http://www.8ung.at/tuxsoft ]
Animals on this machine: some GNUs and Penguin 2.6.0-test3

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/Of9NoxoigfggmSgRAk/SAJ9QoyyjU9sM3m7vj2S6n5PnE7UeMACfRxk1
Wid502ZTxWmhE6LxPGYMH7A=
=uShv
-----END PGP SIGNATURE-----