stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
@ 2013-12-13 21:19 Frederik Himpe
  2013-12-14  2:22 ` Mauro Carvalho Chehab
  2013-12-14 11:24 ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 9+ messages in thread
From: Frederik Himpe @ 2013-12-13 21:19 UTC (permalink / raw)
  To: linux-kernel, linux-media, stable; +Cc: m.chehab

[My excuses for multiposting, it seems gmane does not permit posting to all
the relevant lists]

Since upgrading my system from Linux 3.12 to 3.12.3, my PCTV Systems
nanoStick T2 290e does not work anymore.

This happens with 3.12.3:

[    3.778817] em28174 #0: i2c eeprom 0000: 26 00 01 00 02 09 d8 85 80 80 e5 80 f4 f5 94 90
[    3.779741] em28174 #0: i2c eeprom 0010: 78 0d e4 f0 f5 46 12 00 5a c2 eb c2 e8 30 e9 03
[    3.780643] em28174 #0: i2c eeprom 0020: 12 09 de 30 eb 03 12 09 10 30 ec f1 12 07 72 80
[    3.781562] em28174 #0: i2c eeprom 0030: ec 00 60 00 e5 f5 64 01 60 09 e5 f5 64 09 60 03
[    3.782473] em28174 #0: i2c eeprom 0040: c2 c6 22 e5 f7 b4 03 13 e5 f6 b4 87 03 02 09 92
[    3.783406] em28174 #0: i2c eeprom 0050: e5 f6 b4 93 03 02 07 e6 c2 c6 22 c2 c6 22 12 09
[    3.784314] em28174 #0: i2c eeprom 0060: cf 02 06 19 1a eb 67 95 13 20 4f 02 c0 13 6b 10
[    3.785213] em28174 #0: i2c eeprom 0070: a0 1a ba 14 ce 1a 39 57 00 5c 18 00 00 00 00 00
[    3.786140] em28174 #0: i2c eeprom 0080: 00 00 00 00 44 36 00 00 f0 10 02 00 00 00 00 00
[    3.787057] em28174 #0: i2c eeprom 0090: 5b 23 c0 00 00 00 20 40 20 80 02 20 01 01 00 00
[    3.787970] em28174 #0: i2c eeprom 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    3.788879] em28174 #0: i2c eeprom 00b0: c6 40 00 00 00 00 a7 00 00 00 00 00 00 00 00 00
[    3.789790] em28174 #0: i2c eeprom 00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 32
[    3.790709] em28174 #0: i2c eeprom 00d0: 34 31 30 31 31 36 36 30 31 37 31 32 32 31 46 4b
[    3.791625] em28174 #0: i2c eeprom 00e0: 4a 31 00 4f 53 49 30 30 33 30 38 44 30 31 31 30
[    3.792531] em28174 #0: i2c eeprom 00f0: 46 4b 4a 31 00 00 00 00 00 00 00 00 00 00 31 30
[    3.793444] em28174 #0: i2c eeprom 0100: ... (skipped)
[    3.793502] em28174 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0xfcf432bb
[    3.793559] em28174 #0: EEPROM info:
[    3.793616] em28174 #0: 	microcode start address = 0x0004, boot configuration = 0x01
[    3.804741] scsi 8:0:0:0: Direct-Access     Generic  Ultra HS-SD/MMC  1.82 PQ: 0 ANSI: 0
[    3.805345] sd 8:0:0:0: Attached scsi generic sg3 type 0
[    3.818139] em28174 #0: 	No audio on board.
[    3.818194] em28174 #0: 	500mA max power
[    3.818247] em28174 #0: 	Table at offset 0x39, strings=0x1aa0, 0x14ba, 0x1ace
[    3.818318] em28174 #0: Identified as PCTV nanoStick T2 290e (card=78)
[    3.818374] em28174 #0: v4l2 driver version 0.2.0
[    3.821522] sd 8:0:0:0: [sdc] Attached SCSI removable disk
[    3.823606] em28174 #0: V4L2 video device registered as video0
[    3.823662] em28174 #0: dvb set to isoc mode.
[    3.823972] usbcore: registered new interface driver em28xx
[    3.844020] tda18271 1-0060: creating new instance
[    3.868422] tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
[    3.868492] Error reading device ID @ 1-0060, bailing out.
[    3.868548] tda18271_attach: [1-0060|M] error -5 on line 1285
[    3.868603] tda18271 1-0060: destroying instance
[    3.868666] Em28xx: Initialized (Em28xx dvb Extension) extension
[    3.894687] Registered IR keymap rc-pinnacle-pctv-hd
[    3.894819] input: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0/input23
[    3.894979] rc0: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0
[    3.895570] Em28xx: Initialized (Em28xx Input Extension) extension

I see the same problem reported here:
https://github.com/Hexxeh/rpi-firmware/issues/38 where it is mentioned
that this regression also appeared in 3.10 stable series recently.

I noticed upstream commit 8393796dfa4cf5dffcceec464c7789bec3a2f471
(media: dvb-frontends: Don't use dynamic static allocation)
entered both 3.10.22 (which is the first version introducing the
regression in 3.10 stable according to the linked bug), and 3.12.3.
This file contains stuff related to tda18271. Could this be the 
culprit?

-- 
Frederik Himpe



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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-13 21:19 stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19 Frederik Himpe
@ 2013-12-14  2:22 ` Mauro Carvalho Chehab
  2013-12-14 11:24 ` Mauro Carvalho Chehab
  1 sibling, 0 replies; 9+ messages in thread
From: Mauro Carvalho Chehab @ 2013-12-14  2:22 UTC (permalink / raw)
  To: Frederik Himpe; +Cc: linux-kernel, linux-media, stable

Em Fri, 13 Dec 2013 22:19:39 +0100
Frederik Himpe <fhimpe@telenet.be> escreveu:

> [My excuses for multiposting, it seems gmane does not permit posting to all
> the relevant lists]
> 
> Since upgrading my system from Linux 3.12 to 3.12.3, my PCTV Systems
> nanoStick T2 290e does not work anymore.
> 
> This happens with 3.12.3:
> 
> [    3.778817] em28174 #0: i2c eeprom 0000: 26 00 01 00 02 09 d8 85 80 80 e5 80 f4 f5 94 90
> [    3.779741] em28174 #0: i2c eeprom 0010: 78 0d e4 f0 f5 46 12 00 5a c2 eb c2 e8 30 e9 03
> [    3.780643] em28174 #0: i2c eeprom 0020: 12 09 de 30 eb 03 12 09 10 30 ec f1 12 07 72 80
> [    3.781562] em28174 #0: i2c eeprom 0030: ec 00 60 00 e5 f5 64 01 60 09 e5 f5 64 09 60 03
> [    3.782473] em28174 #0: i2c eeprom 0040: c2 c6 22 e5 f7 b4 03 13 e5 f6 b4 87 03 02 09 92
> [    3.783406] em28174 #0: i2c eeprom 0050: e5 f6 b4 93 03 02 07 e6 c2 c6 22 c2 c6 22 12 09
> [    3.784314] em28174 #0: i2c eeprom 0060: cf 02 06 19 1a eb 67 95 13 20 4f 02 c0 13 6b 10
> [    3.785213] em28174 #0: i2c eeprom 0070: a0 1a ba 14 ce 1a 39 57 00 5c 18 00 00 00 00 00
> [    3.786140] em28174 #0: i2c eeprom 0080: 00 00 00 00 44 36 00 00 f0 10 02 00 00 00 00 00
> [    3.787057] em28174 #0: i2c eeprom 0090: 5b 23 c0 00 00 00 20 40 20 80 02 20 01 01 00 00
> [    3.787970] em28174 #0: i2c eeprom 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [    3.788879] em28174 #0: i2c eeprom 00b0: c6 40 00 00 00 00 a7 00 00 00 00 00 00 00 00 00
> [    3.789790] em28174 #0: i2c eeprom 00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 32
> [    3.790709] em28174 #0: i2c eeprom 00d0: 34 31 30 31 31 36 36 30 31 37 31 32 32 31 46 4b
> [    3.791625] em28174 #0: i2c eeprom 00e0: 4a 31 00 4f 53 49 30 30 33 30 38 44 30 31 31 30
> [    3.792531] em28174 #0: i2c eeprom 00f0: 46 4b 4a 31 00 00 00 00 00 00 00 00 00 00 31 30
> [    3.793444] em28174 #0: i2c eeprom 0100: ... (skipped)
> [    3.793502] em28174 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0xfcf432bb
> [    3.793559] em28174 #0: EEPROM info:
> [    3.793616] em28174 #0: 	microcode start address = 0x0004, boot configuration = 0x01
> [    3.804741] scsi 8:0:0:0: Direct-Access     Generic  Ultra HS-SD/MMC  1.82 PQ: 0 ANSI: 0
> [    3.805345] sd 8:0:0:0: Attached scsi generic sg3 type 0
> [    3.818139] em28174 #0: 	No audio on board.
> [    3.818194] em28174 #0: 	500mA max power
> [    3.818247] em28174 #0: 	Table at offset 0x39, strings=0x1aa0, 0x14ba, 0x1ace
> [    3.818318] em28174 #0: Identified as PCTV nanoStick T2 290e (card=78)
> [    3.818374] em28174 #0: v4l2 driver version 0.2.0
> [    3.821522] sd 8:0:0:0: [sdc] Attached SCSI removable disk
> [    3.823606] em28174 #0: V4L2 video device registered as video0
> [    3.823662] em28174 #0: dvb set to isoc mode.
> [    3.823972] usbcore: registered new interface driver em28xx
> [    3.844020] tda18271 1-0060: creating new instance
> [    3.868422] tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
> [    3.868492] Error reading device ID @ 1-0060, bailing out.
> [    3.868548] tda18271_attach: [1-0060|M] error -5 on line 1285
> [    3.868603] tda18271 1-0060: destroying instance
> [    3.868666] Em28xx: Initialized (Em28xx dvb Extension) extension
> [    3.894687] Registered IR keymap rc-pinnacle-pctv-hd
> [    3.894819] input: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0/input23
> [    3.894979] rc0: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0
> [    3.895570] Em28xx: Initialized (Em28xx Input Extension) extension
> 
> I see the same problem reported here:
> https://github.com/Hexxeh/rpi-firmware/issues/38 where it is mentioned
> that this regression also appeared in 3.10 stable series recently.
> 
> I noticed upstream commit 8393796dfa4cf5dffcceec464c7789bec3a2f471
> (media: dvb-frontends: Don't use dynamic static allocation)
> entered both 3.10.22 (which is the first version introducing the
> regression in 3.10 stable according to the linked bug), and 3.12.3.
> This file contains stuff related to tda18271. Could this be the 
> culprit?

I'll analyze it better tomorrow, but commit 8393796dfa4cf5 touches only
on tda18271c2dd driver. The only em28xx device that uses this driver 
variant is Terratec H5, which is not your case.

Besides that, with commit 8393796dfa4c it should be returning -EINVAL
and printing a msg that it would look like:

	tda18271: i2c wr reg=0000: len=65 is too big!

However, on your report:

> [    3.868422] tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19

it is returning ENODEV:
	#define	ENODEV		19	/* No such device */

So, it seems that the regression was caused by some other patch.

are you using vanilla Kernel 3.12.3?

-- 

Cheers,
Mauro

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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-13 21:19 stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19 Frederik Himpe
  2013-12-14  2:22 ` Mauro Carvalho Chehab
@ 2013-12-14 11:24 ` Mauro Carvalho Chehab
  2013-12-14 23:21   ` Connor Behan
  2013-12-16 19:57   ` Frederik Himpe
  1 sibling, 2 replies; 9+ messages in thread
From: Mauro Carvalho Chehab @ 2013-12-14 11:24 UTC (permalink / raw)
  To: Frederik Himpe; +Cc: linux-kernel, linux-media, stable

Em Fri, 13 Dec 2013 22:19:39 +0100
Frederik Himpe <fhimpe@telenet.be> escreveu:

> [My excuses for multiposting, it seems gmane does not permit posting to all
> the relevant lists]
> 
> Since upgrading my system from Linux 3.12 to 3.12.3, my PCTV Systems
> nanoStick T2 290e does not work anymore.
> 
> This happens with 3.12.3:
> 
> [    3.778817] em28174 #0: i2c eeprom 0000: 26 00 01 00 02 09 d8 85 80 80 e5 80 f4 f5 94 90
> [    3.779741] em28174 #0: i2c eeprom 0010: 78 0d e4 f0 f5 46 12 00 5a c2 eb c2 e8 30 e9 03
> [    3.780643] em28174 #0: i2c eeprom 0020: 12 09 de 30 eb 03 12 09 10 30 ec f1 12 07 72 80
> [    3.781562] em28174 #0: i2c eeprom 0030: ec 00 60 00 e5 f5 64 01 60 09 e5 f5 64 09 60 03
> [    3.782473] em28174 #0: i2c eeprom 0040: c2 c6 22 e5 f7 b4 03 13 e5 f6 b4 87 03 02 09 92
> [    3.783406] em28174 #0: i2c eeprom 0050: e5 f6 b4 93 03 02 07 e6 c2 c6 22 c2 c6 22 12 09
> [    3.784314] em28174 #0: i2c eeprom 0060: cf 02 06 19 1a eb 67 95 13 20 4f 02 c0 13 6b 10
> [    3.785213] em28174 #0: i2c eeprom 0070: a0 1a ba 14 ce 1a 39 57 00 5c 18 00 00 00 00 00
> [    3.786140] em28174 #0: i2c eeprom 0080: 00 00 00 00 44 36 00 00 f0 10 02 00 00 00 00 00
> [    3.787057] em28174 #0: i2c eeprom 0090: 5b 23 c0 00 00 00 20 40 20 80 02 20 01 01 00 00
> [    3.787970] em28174 #0: i2c eeprom 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [    3.788879] em28174 #0: i2c eeprom 00b0: c6 40 00 00 00 00 a7 00 00 00 00 00 00 00 00 00
> [    3.789790] em28174 #0: i2c eeprom 00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 32
> [    3.790709] em28174 #0: i2c eeprom 00d0: 34 31 30 31 31 36 36 30 31 37 31 32 32 31 46 4b
> [    3.791625] em28174 #0: i2c eeprom 00e0: 4a 31 00 4f 53 49 30 30 33 30 38 44 30 31 31 30
> [    3.792531] em28174 #0: i2c eeprom 00f0: 46 4b 4a 31 00 00 00 00 00 00 00 00 00 00 31 30
> [    3.793444] em28174 #0: i2c eeprom 0100: ... (skipped)
> [    3.793502] em28174 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0xfcf432bb
> [    3.793559] em28174 #0: EEPROM info:
> [    3.793616] em28174 #0: 	microcode start address = 0x0004, boot configuration = 0x01
> [    3.804741] scsi 8:0:0:0: Direct-Access     Generic  Ultra HS-SD/MMC  1.82 PQ: 0 ANSI: 0
> [    3.805345] sd 8:0:0:0: Attached scsi generic sg3 type 0
> [    3.818139] em28174 #0: 	No audio on board.
> [    3.818194] em28174 #0: 	500mA max power
> [    3.818247] em28174 #0: 	Table at offset 0x39, strings=0x1aa0, 0x14ba, 0x1ace
> [    3.818318] em28174 #0: Identified as PCTV nanoStick T2 290e (card=78)
> [    3.818374] em28174 #0: v4l2 driver version 0.2.0
> [    3.821522] sd 8:0:0:0: [sdc] Attached SCSI removable disk
> [    3.823606] em28174 #0: V4L2 video device registered as video0
> [    3.823662] em28174 #0: dvb set to isoc mode.
> [    3.823972] usbcore: registered new interface driver em28xx
> [    3.844020] tda18271 1-0060: creating new instance
> [    3.868422] tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
> [    3.868492] Error reading device ID @ 1-0060, bailing out.
> [    3.868548] tda18271_attach: [1-0060|M] error -5 on line 1285
> [    3.868603] tda18271 1-0060: destroying instance
> [    3.868666] Em28xx: Initialized (Em28xx dvb Extension) extension
> [    3.894687] Registered IR keymap rc-pinnacle-pctv-hd
> [    3.894819] input: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0/input23
> [    3.894979] rc0: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0
> [    3.895570] Em28xx: Initialized (Em28xx Input Extension) extension
> 
> I see the same problem reported here:
> https://github.com/Hexxeh/rpi-firmware/issues/38 where it is mentioned
> that this regression also appeared in 3.10 stable series recently.
> 
> I noticed upstream commit 8393796dfa4cf5dffcceec464c7789bec3a2f471
> (media: dvb-frontends: Don't use dynamic static allocation)
> entered both 3.10.22 (which is the first version introducing the
> regression in 3.10 stable according to the linked bug), and 3.12.3.
> This file contains stuff related to tda18271. Could this be the 
> culprit?
> 

Well, for board EM28174_BOARD_PCTV_290E, it first attaches cxd2820r
and then the tuner tda18271.

I suspect that the issue is at cxd2820r. Could you please apply this
patch:
	http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0db3fa2741ad8371c21b3a6785416a4afc0cc1d4 
and see if it solves the issue?

Thanks!
Mauro

-- 

Cheers,
Mauro

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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-14 11:24 ` Mauro Carvalho Chehab
@ 2013-12-14 23:21   ` Connor Behan
  2013-12-15  1:17     ` Devin Heitmueller
  2013-12-16 19:57   ` Frederik Himpe
  1 sibling, 1 reply; 9+ messages in thread
From: Connor Behan @ 2013-12-14 23:21 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: Frederik Himpe, linux-kernel, linux-media, stable

[-- Attachment #1: Type: text/plain, Size: 5024 bytes --]

On 14/12/13 03:24 AM, Mauro Carvalho Chehab wrote:
> Em Fri, 13 Dec 2013 22:19:39 +0100
> Frederik Himpe <fhimpe@telenet.be> escreveu:
>
>> [My excuses for multiposting, it seems gmane does not permit posting to all
>> the relevant lists]
>>
>> Since upgrading my system from Linux 3.12 to 3.12.3, my PCTV Systems
>> nanoStick T2 290e does not work anymore.
>>
>> This happens with 3.12.3:
>>
>> [    3.778817] em28174 #0: i2c eeprom 0000: 26 00 01 00 02 09 d8 85 80 80 e5 80 f4 f5 94 90
>> [    3.779741] em28174 #0: i2c eeprom 0010: 78 0d e4 f0 f5 46 12 00 5a c2 eb c2 e8 30 e9 03
>> [    3.780643] em28174 #0: i2c eeprom 0020: 12 09 de 30 eb 03 12 09 10 30 ec f1 12 07 72 80
>> [    3.781562] em28174 #0: i2c eeprom 0030: ec 00 60 00 e5 f5 64 01 60 09 e5 f5 64 09 60 03
>> [    3.782473] em28174 #0: i2c eeprom 0040: c2 c6 22 e5 f7 b4 03 13 e5 f6 b4 87 03 02 09 92
>> [    3.783406] em28174 #0: i2c eeprom 0050: e5 f6 b4 93 03 02 07 e6 c2 c6 22 c2 c6 22 12 09
>> [    3.784314] em28174 #0: i2c eeprom 0060: cf 02 06 19 1a eb 67 95 13 20 4f 02 c0 13 6b 10
>> [    3.785213] em28174 #0: i2c eeprom 0070: a0 1a ba 14 ce 1a 39 57 00 5c 18 00 00 00 00 00
>> [    3.786140] em28174 #0: i2c eeprom 0080: 00 00 00 00 44 36 00 00 f0 10 02 00 00 00 00 00
>> [    3.787057] em28174 #0: i2c eeprom 0090: 5b 23 c0 00 00 00 20 40 20 80 02 20 01 01 00 00
>> [    3.787970] em28174 #0: i2c eeprom 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>> [    3.788879] em28174 #0: i2c eeprom 00b0: c6 40 00 00 00 00 a7 00 00 00 00 00 00 00 00 00
>> [    3.789790] em28174 #0: i2c eeprom 00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 32
>> [    3.790709] em28174 #0: i2c eeprom 00d0: 34 31 30 31 31 36 36 30 31 37 31 32 32 31 46 4b
>> [    3.791625] em28174 #0: i2c eeprom 00e0: 4a 31 00 4f 53 49 30 30 33 30 38 44 30 31 31 30
>> [    3.792531] em28174 #0: i2c eeprom 00f0: 46 4b 4a 31 00 00 00 00 00 00 00 00 00 00 31 30
>> [    3.793444] em28174 #0: i2c eeprom 0100: ... (skipped)
>> [    3.793502] em28174 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0xfcf432bb
>> [    3.793559] em28174 #0: EEPROM info:
>> [    3.793616] em28174 #0: 	microcode start address = 0x0004, boot configuration = 0x01
>> [    3.804741] scsi 8:0:0:0: Direct-Access     Generic  Ultra HS-SD/MMC  1.82 PQ: 0 ANSI: 0
>> [    3.805345] sd 8:0:0:0: Attached scsi generic sg3 type 0
>> [    3.818139] em28174 #0: 	No audio on board.
>> [    3.818194] em28174 #0: 	500mA max power
>> [    3.818247] em28174 #0: 	Table at offset 0x39, strings=0x1aa0, 0x14ba, 0x1ace
>> [    3.818318] em28174 #0: Identified as PCTV nanoStick T2 290e (card=78)
>> [    3.818374] em28174 #0: v4l2 driver version 0.2.0
>> [    3.821522] sd 8:0:0:0: [sdc] Attached SCSI removable disk
>> [    3.823606] em28174 #0: V4L2 video device registered as video0
>> [    3.823662] em28174 #0: dvb set to isoc mode.
>> [    3.823972] usbcore: registered new interface driver em28xx
>> [    3.844020] tda18271 1-0060: creating new instance
>> [    3.868422] tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
>> [    3.868492] Error reading device ID @ 1-0060, bailing out.
>> [    3.868548] tda18271_attach: [1-0060|M] error -5 on line 1285
>> [    3.868603] tda18271 1-0060: destroying instance
>> [    3.868666] Em28xx: Initialized (Em28xx dvb Extension) extension
>> [    3.894687] Registered IR keymap rc-pinnacle-pctv-hd
>> [    3.894819] input: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0/input23
>> [    3.894979] rc0: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0
>> [    3.895570] Em28xx: Initialized (Em28xx Input Extension) extension
>>
>> I see the same problem reported here:
>> https://github.com/Hexxeh/rpi-firmware/issues/38 where it is mentioned
>> that this regression also appeared in 3.10 stable series recently.
>>
>> I noticed upstream commit 8393796dfa4cf5dffcceec464c7789bec3a2f471
>> (media: dvb-frontends: Don't use dynamic static allocation)
>> entered both 3.10.22 (which is the first version introducing the
>> regression in 3.10 stable according to the linked bug), and 3.12.3.
>> This file contains stuff related to tda18271. Could this be the 
>> culprit?
>>
> Well, for board EM28174_BOARD_PCTV_290E, it first attaches cxd2820r
> and then the tuner tda18271.
>
> I suspect that the issue is at cxd2820r. Could you please apply this
> patch:
> 	http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0db3fa2741ad8371c21b3a6785416a4afc0cc1d4 
> and see if it solves the issue?
>
I hope this isn't too off-topic, but this problem seems similar to what
I've been seeing with a HAUPPAGE_EXETER device:
http://www.mail-archive.com/linux-media@vger.kernel.org/msg69081.html

My basic problem is

__tda18271_write_regs: [1-0060|M] ERROR: idx = 0x0, len = 39, i2c_transfer returned: -32

where it attaches lgdt3305 before tda18271. Do you know a similar patch
that could help me?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-14 23:21   ` Connor Behan
@ 2013-12-15  1:17     ` Devin Heitmueller
  2013-12-17  5:28       ` Connor Behan
  0 siblings, 1 reply; 9+ messages in thread
From: Devin Heitmueller @ 2013-12-15  1:17 UTC (permalink / raw)
  To: Connor Behan
  Cc: Mauro Carvalho Chehab, Frederik Himpe, Linux Kernel,
	Linux Media Mailing List, stable

> My basic problem is
>
> __tda18271_write_regs: [1-0060|M] ERROR: idx = 0x0, len = 39, i2c_transfer returned: -32
>
> where it attaches lgdt3305 before tda18271. Do you know a similar patch
> that could help me?

It's a totally different issue.  The problem with the US Exeter has to
do with the lgdt3305 wedging the I2C bus after initialization because
there's a timing window where you have to strobe the reset after chip
powerup.

I had a patch kicking around which fixed part of the issue, but it
didn't completely work because of the lgdt3305 having AGC enabled at
chip powerup (which interferes with analog tuning on the shared
tuner), and the internal v4l-dvb APIs don't provide any easy way to
reset the AGC from the analog side of the device.

In short, it's been a known issue for almost three years and nobody's
gotten around to fixing it, and it sees unlikely anyone with the
appropriate level of knowledge of the device will anytime soon.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-14 11:24 ` Mauro Carvalho Chehab
  2013-12-14 23:21   ` Connor Behan
@ 2013-12-16 19:57   ` Frederik Himpe
  2013-12-19 14:22     ` Luis Henriques
  1 sibling, 1 reply; 9+ messages in thread
From: Frederik Himpe @ 2013-12-16 19:57 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-kernel, linux-media, stable

On za, 2013-12-14 at 09:24 -0200, Mauro Carvalho Chehab wrote:
> Em Fri, 13 Dec 2013 22:19:39 +0100
> Frederik Himpe <fhimpe@telenet.be> escreveu:
> 
> > [My excuses for multiposting, it seems gmane does not permit posting to all
> > the relevant lists]
> > 
> > Since upgrading my system from Linux 3.12 to 3.12.3, my PCTV Systems
> > nanoStick T2 290e does not work anymore.
> > 
> > This happens with 3.12.3:
> > 

> > [    3.844020] tda18271 1-0060: creating new instance
> > [    3.868422] tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
> > [    3.868492] Error reading device ID @ 1-0060, bailing out.
> > [    3.868548] tda18271_attach: [1-0060|M] error -5 on line 1285
> > [    3.868603] tda18271 1-0060: destroying instance
> > [    3.868666] Em28xx: Initialized (Em28xx dvb Extension) extension
> > [    3.894687] Registered IR keymap rc-pinnacle-pctv-hd
> > [    3.894819] input: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0/input23
> > [    3.894979] rc0: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0
> > [    3.895570] Em28xx: Initialized (Em28xx Input Extension) extension
> > 
> > I see the same problem reported here:
> > https://github.com/Hexxeh/rpi-firmware/issues/38 where it is mentioned
> > that this regression also appeared in 3.10 stable series recently.
> > 
> > I noticed upstream commit 8393796dfa4cf5dffcceec464c7789bec3a2f471
> > (media: dvb-frontends: Don't use dynamic static allocation)
> > entered both 3.10.22 (which is the first version introducing the
> > regression in 3.10 stable according to the linked bug), and 3.12.3.
> > This file contains stuff related to tda18271. Could this be the 
> > culprit?
> > 
> 
> Well, for board EM28174_BOARD_PCTV_290E, it first attaches cxd2820r
> and then the tuner tda18271.
> 
> I suspect that the issue is at cxd2820r. Could you please apply this
> patch:
> 	http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0db3fa2741ad8371c21b3a6785416a4afc0cc1d4 
> and see if it solves the issue?

I have applied this patch to 3.12.5 and I can confirm it works fine now.
Can this patch be applied to the stable series in order to fix this
regression in stable?


-- 
Frederik Himpe <fhimpe@telenet.be>


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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-15  1:17     ` Devin Heitmueller
@ 2013-12-17  5:28       ` Connor Behan
  2013-12-17  5:39         ` Devin Heitmueller
  0 siblings, 1 reply; 9+ messages in thread
From: Connor Behan @ 2013-12-17  5:28 UTC (permalink / raw)
  To: Devin Heitmueller
  Cc: Mauro Carvalho Chehab, Frederik Himpe, Linux Kernel,
	Linux Media Mailing List, stable

[-- Attachment #1: Type: text/plain, Size: 713 bytes --]

Thanks for the detailed answer. I have tried your patch and updated the
wiki page. Would a 950 or 950Q be safer to buy next time?

On 14/12/13 05:17 PM, Devin Heitmueller wrote:
> I had a patch kicking around which fixed part of the issue, but it
> didn't completely work because of the lgdt3305 having AGC enabled at
> chip powerup (which interferes with analog tuning on the shared
> tuner), and the internal v4l-dvb APIs don't provide any easy way to
> reset the AGC from the analog side of the device. 

By this do you mean that the functions exist but they aren't part of the
public API? Maybe this problem can be addressed if there is ever "v4l3"
or some other reason to break compatibility.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-17  5:28       ` Connor Behan
@ 2013-12-17  5:39         ` Devin Heitmueller
  0 siblings, 0 replies; 9+ messages in thread
From: Devin Heitmueller @ 2013-12-17  5:39 UTC (permalink / raw)
  To: Connor Behan
  Cc: Mauro Carvalho Chehab, Frederik Himpe, Linux Kernel,
	Linux Media Mailing List, stable

Hi Connor,

On Tue, Dec 17, 2013 at 12:28 AM, Connor Behan <connor.behan@gmail.com> wrote:
> Thanks for the detailed answer. I have tried your patch and updated the
> wiki page. Would a 950 or 950Q be safer to buy next time?

The 950 has long since been obsoleted.  You cannot buy them anymore.
The 950q though is well supported and doesn't have this issue as it
uses a different chip.

> On 14/12/13 05:17 PM, Devin Heitmueller wrote:
>> I had a patch kicking around which fixed part of the issue, but it
>> didn't completely work because of the lgdt3305 having AGC enabled at
>> chip powerup (which interferes with analog tuning on the shared
>> tuner), and the internal v4l-dvb APIs don't provide any easy way to
>> reset the AGC from the analog side of the device.
>
> By this do you mean that the functions exist but they aren't part of the
> public API? Maybe this problem can be addressed if there is ever "v4l3"
> or some other reason to break compatibility.

No, these are internal APIs that dictate how the various driver
components talk to each other.  Because the V4L and DVB subsystems
were developed independently of each other, they do a really crappy
job of communicating between them (a problem which manifests itself in
particular when sharing hardware resources such as tuners).

The problem *can* be fixed, but it would likely require
extensions/changes to the basic frameworks used to communicate between
the different drivers.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

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

* Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
  2013-12-16 19:57   ` Frederik Himpe
@ 2013-12-19 14:22     ` Luis Henriques
  0 siblings, 0 replies; 9+ messages in thread
From: Luis Henriques @ 2013-12-19 14:22 UTC (permalink / raw)
  To: Frederik Himpe; +Cc: Mauro Carvalho Chehab, linux-kernel, linux-media, stable

On Mon, Dec 16, 2013 at 08:57:48PM +0100, Frederik Himpe wrote:
> On za, 2013-12-14 at 09:24 -0200, Mauro Carvalho Chehab wrote:
> > Em Fri, 13 Dec 2013 22:19:39 +0100
> > Frederik Himpe <fhimpe@telenet.be> escreveu:
> > 
> > > [My excuses for multiposting, it seems gmane does not permit posting to all
> > > the relevant lists]
> > > 
> > > Since upgrading my system from Linux 3.12 to 3.12.3, my PCTV Systems
> > > nanoStick T2 290e does not work anymore.
> > > 
> > > This happens with 3.12.3:
> > > 
> 
> > > [    3.844020] tda18271 1-0060: creating new instance
> > > [    3.868422] tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19
> > > [    3.868492] Error reading device ID @ 1-0060, bailing out.
> > > [    3.868548] tda18271_attach: [1-0060|M] error -5 on line 1285
> > > [    3.868603] tda18271 1-0060: destroying instance
> > > [    3.868666] Em28xx: Initialized (Em28xx dvb Extension) extension
> > > [    3.894687] Registered IR keymap rc-pinnacle-pctv-hd
> > > [    3.894819] input: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0/input23
> > > [    3.894979] rc0: em28xx IR (em28174 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/rc/rc0
> > > [    3.895570] Em28xx: Initialized (Em28xx Input Extension) extension
> > > 
> > > I see the same problem reported here:
> > > https://github.com/Hexxeh/rpi-firmware/issues/38 where it is mentioned
> > > that this regression also appeared in 3.10 stable series recently.
> > > 
> > > I noticed upstream commit 8393796dfa4cf5dffcceec464c7789bec3a2f471
> > > (media: dvb-frontends: Don't use dynamic static allocation)
> > > entered both 3.10.22 (which is the first version introducing the
> > > regression in 3.10 stable according to the linked bug), and 3.12.3.
> > > This file contains stuff related to tda18271. Could this be the 
> > > culprit?
> > > 
> > 
> > Well, for board EM28174_BOARD_PCTV_290E, it first attaches cxd2820r
> > and then the tuner tda18271.
> > 
> > I suspect that the issue is at cxd2820r. Could you please apply this
> > patch:
> > 	http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0db3fa2741ad8371c21b3a6785416a4afc0cc1d4 
> > and see if it solves the issue?
> 
> I have applied this patch to 3.12.5 and I can confirm it works fine now.
> Can this patch be applied to the stable series in order to fix this
> regression in stable?

I'm also queuing this patch for the 3.11 kernel.

Cheers,
--
Luis

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

end of thread, other threads:[~2013-12-19 14:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 21:19 stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19 Frederik Himpe
2013-12-14  2:22 ` Mauro Carvalho Chehab
2013-12-14 11:24 ` Mauro Carvalho Chehab
2013-12-14 23:21   ` Connor Behan
2013-12-15  1:17     ` Devin Heitmueller
2013-12-17  5:28       ` Connor Behan
2013-12-17  5:39         ` Devin Heitmueller
2013-12-16 19:57   ` Frederik Himpe
2013-12-19 14:22     ` Luis Henriques

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).