public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Current saa7134 driver breaks KNC One Tv-Station DVR (card=24)
@ 2004-12-28 17:21 Bernhard Rosenkraenzer
  2004-12-28 18:28 ` Bernhard Rosenkraenzer
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Rosenkraenzer @ 2004-12-28 17:21 UTC (permalink / raw)
  To: kraxel, linux-kernel

Trying to modprobe saa7134 with this card results in a hanging modprobe 
process.

dmesg gets:
saa7130/34: v4l2 driver version 0.2.12 loaded
ACPI: PCI interrupt 0000:00:06.0[A] -> GSI 17 (level, low) -> IRQ 177
saa7134[0]: found at 0000:00:06.0, rev: 1, irq: 177, latency: 64, mmio: 
0xdfff9c00
saa7134[0]: subsystem: 1894:a006, board: KNC One TV-Station DVR 
[card=24,autodetected]
saa7134[0]: board init: gpio is 830000
saa7134[0]: i2c eeprom 00: 94 18 06 a0 06 80 00 01 00 00 00 00 00 00 01 00
saa7134[0]: i2c eeprom 10: 00 ff 86 0e ff 20 ff ff ff ff ff ff ff ff ff ff
saa7134[0]: i2c eeprom 20: 01 40 01 02 02 03 01 03 06 ff 01 df ff ff ff ff
saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
tuner: chip found at addr 0xc0 i2c-bus saa7134[0]
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by saa7134[0]
tda9885/6/7: chip found @ 0x86
saa7134[0]/irq[10,-133081]: r=0x20 s=0x00 PE
saa7134[0]/irq: looping -- clearing PE (parity error!) enable bit

At that point, modprobe hangs; I can still use the box in other ttys, but [of 
course] the saa7134 card doesn't work.

This is reproducable at least with with 2.6.10-rc3-mm1, 2.6.10 and 2.6.10-ac1; 
the card used to work with earlier releases (I can't remember the last 
version that worked though, haven't used it for a while).


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Current saa7134 driver breaks KNC One Tv-Station DVR (card=24)
  2004-12-28 17:21 Current saa7134 driver breaks KNC One Tv-Station DVR (card=24) Bernhard Rosenkraenzer
@ 2004-12-28 18:28 ` Bernhard Rosenkraenzer
  2004-12-31  2:08   ` Johannes Stezenbach
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Rosenkraenzer @ 2004-12-28 18:28 UTC (permalink / raw)
  To: kraxel; +Cc: linux-kernel

On Tuesday 28 December 2004 18:21, Bernhard Rosenkraenzer wrote:
> Trying to modprobe saa7134 with this card results in a hanging modprobe
> process.

Some more debug info (with 2.6.10-ac1):

saa7130/34: v4l2 driver version 0.2.12 loaded
ACPI: PCI interrupt 0000:00:06.0[A] -> GSI 17 (level, low) -> IRQ 177
saa7134[0]: found at 0000:00:06.0, rev: 1, irq: 177, 
latency: 64, mmio: 0xdfff9c00
saa7134[0]: subsystem: 1894:a006, board: KNC One TV-Station DVR 
[card=24,autodetected]
saa7134[0]: board init: gpio is 830000
saa7134[0]/oss: mixer input = TV
saa7134[0]: i2c xfer: < a0 00 >
saa7134[0]: i2c xfer: < a1 =94 =18 =06 =a0 =06 =80 =00 =01 =00 =00 =00 =00 =00 
=00 =01 =00 =00 =ff =86 =0e =ff =20 =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
=01 =40 =01 =02 =02 =03 =01 =03 =06 =ff =01 =df =ff =ff =ff =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff >
saa7134[0]: i2c eeprom 00: 94 18 06 a0 06 80 00 01 00 00 00 00 00 00 01 00
saa7134[0]: i2c eeprom 10: 00 ff 86 0e ff 20 ff ff ff ff ff ff ff ff ff ff
saa7134[0]: i2c eeprom 20: 01 40 01 02 02 03 01 03 06 ff 01 df ff ff ff ff
saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7134[0]/core: hwinit2
saa7134[0]/video: set tv norm = PAL
saa7134[0]/video: video input = 0 [Television]
saa7134[0]/video: set tv norm = PAL
saa7134: Loading i2c helpers<7>saa7134[0]: i2c xfer: < c0 >
tuner: chip found at addr 0xc0 i2c-bus saa7134[0]
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by saa7134[0]
saa7134[0]: i2c xfer: < c2 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < c4 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < c6 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < c8 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < ca ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < cc ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < ce ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < d0 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < d2 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < d4 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < d6 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < d8 ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < da ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < dc ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < de ERROR: NO_DEVICE
saa7134[0]: i2c xfer: < 86 >
tda9885/6/7: chip found @ 0x86
saa7134[0]: i2c xfer: < 86 00 c2 10 00 >
saa7134[0]: i2c xfer: < 96 ERROR: NO_DEVICE
saa7134[0]/irq[0,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[1,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[2,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[3,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[4,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[5,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[6,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[7,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[8,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[9,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq[10,-227141]: r=0x20 s=0x00 PE
saa7134[0]/irq: looping -- clearing PE (parity error!) enable bit
saa7134[0]/irq[0,-227141]: r=0x20 s=0x00 PE
[modprobe hangs]

Looks like it's hanging at request_module("saa7134-empress");

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Current saa7134 driver breaks KNC One Tv-Station DVR (card=24)
  2004-12-28 18:28 ` Bernhard Rosenkraenzer
@ 2004-12-31  2:08   ` Johannes Stezenbach
  2004-12-31  8:29     ` Rusty Russell
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Stezenbach @ 2004-12-31  2:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: Bernhard Rosenkraenzer, Gerd Knorr, Rusty Russell

Bernhard Rosenkraenzer wrote:
> On Tuesday 28 December 2004 18:21, Bernhard Rosenkraenzer wrote:
> > Trying to modprobe saa7134 with this card results in a hanging modprobe
> > process.
> 
> Some more debug info (with 2.6.10-ac1):
> 
> saa7130/34: v4l2 driver version 0.2.12 loaded
> ACPI: PCI interrupt 0000:00:06.0[A] -> GSI 17 (level, low) -> IRQ 177
> saa7134[0]: found at 0000:00:06.0, rev: 1, irq: 177, latency: 64, mmio: 0xdfff9c00
> saa7134[0]: subsystem: 1894:a006, board: KNC One TV-Station DVR [card=24,autodetected]
...
> saa7134: Loading i2c helpers<7>saa7134[0]: i2c xfer: < c0 >
> tuner: chip found at addr 0xc0 i2c-bus saa7134[0]
> tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by saa7134[0]
...
> tda9885/6/7: chip found @ 0x86
...
> saa7134[0]/irq: looping -- clearing PE (parity error!) enable bit
> saa7134[0]/irq[0,-227141]: r=0x20 s=0x00 PE
> [modprobe hangs]
> 
> Looks like it's hanging at request_module("saa7134-empress");

I've reported this before:
http://lkml.org/lkml/2004/11/17/275

The patch that Rusty posted doesn't seem to have it made into
module-init-tools-3.1. Bummer :-(

The Bug in saa7134-core.c doesn't seem to have been addressed yet, so
I suggest the following patch as a temporary measure:

--- linux-2.6.10/drivers/media/video/saa7134/saa7134-core.c.orig	2004-12-25 19:22:55.000000000 +0100
+++ linux-2.6.10/drivers/media/video/saa7134/saa7134-core.c	2004-12-25 19:23:31.000000000 +0100
@@ -940,12 +940,12 @@ static int __devinit saa7134_initdev(str
 		request_module("tuner");
 	if (dev->tda9887_conf)
 		request_module("tda9887");
-  	if (card_is_empress(dev)) {
-		request_module("saa7134-empress");
+	if (card_is_empress(dev)) {
+//		request_module("saa7134-empress");
 		request_module("saa6752hs");
 	}
-  	if (card_is_dvb(dev))
-		request_module("saa7134-dvb");
+//	if (card_is_dvb(dev))
+//		request_module("saa7134-dvb");
 
 	v4l2_prio_init(&dev->prio);
 

Johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Current saa7134 driver breaks KNC One Tv-Station DVR (card=24)
  2004-12-31  2:08   ` Johannes Stezenbach
@ 2004-12-31  8:29     ` Rusty Russell
  2004-12-31 14:16       ` Johannes Stezenbach
  0 siblings, 1 reply; 5+ messages in thread
From: Rusty Russell @ 2004-12-31  8:29 UTC (permalink / raw)
  To: Johannes Stezenbach
  Cc: lkml - Kernel Mailing List, Bernhard Rosenkraenzer, Gerd Knorr

On Fri, 2004-12-31 at 03:08 +0100, Johannes Stezenbach wrote:
> I've reported this before:
> http://lkml.org/lkml/2004/11/17/275
> 
> The patch that Rusty posted doesn't seem to have it made into
> module-init-tools-3.1. Bummer :-(

Because it was a dumb idea, as your reply showed.  You can't load any
dependent modules because this module is not initialized yet (what if
you loaded a module that depended on you, then failed your
initialization?).  Gerd has the real fix, IIRC.

Rusty.

A bad analogy is like a leaky screwdriver -- Richard Braakman


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Current saa7134 driver breaks KNC One Tv-Station DVR (card=24)
  2004-12-31  8:29     ` Rusty Russell
@ 2004-12-31 14:16       ` Johannes Stezenbach
  0 siblings, 0 replies; 5+ messages in thread
From: Johannes Stezenbach @ 2004-12-31 14:16 UTC (permalink / raw)
  To: Rusty Russell
  Cc: lkml - Kernel Mailing List, Bernhard Rosenkraenzer, Gerd Knorr

On Fri, Dec 31, 2004 at 07:29:47PM +1100, Rusty Russell wrote:
> On Fri, 2004-12-31 at 03:08 +0100, Johannes Stezenbach wrote:
> > I've reported this before:
> > http://lkml.org/lkml/2004/11/17/275
> > 
> > The patch that Rusty posted doesn't seem to have it made into
> > module-init-tools-3.1. Bummer :-(
> 
> Because it was a dumb idea, as your reply showed.  You can't load any
> dependent modules because this module is not initialized yet (what if
> you loaded a module that depended on you, then failed your
> initialization?).  Gerd has the real fix, IIRC.

Yeah, but IMHO it would be better if modprobe would bail out
with an error instead of just hanging. For me hotplug
loads the drivers at boot time and it's a bad good thing if
the whole boot process hangs.

Johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-31 14:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-28 17:21 Current saa7134 driver breaks KNC One Tv-Station DVR (card=24) Bernhard Rosenkraenzer
2004-12-28 18:28 ` Bernhard Rosenkraenzer
2004-12-31  2:08   ` Johannes Stezenbach
2004-12-31  8:29     ` Rusty Russell
2004-12-31 14:16       ` Johannes Stezenbach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox