Hello all,
Starting from 0.3.6o (happens even with 0.3.7a), my machine
spontaneously reboots when loading ivtv. After the reboot however, the
problem does not occur until I cold boot again.
I have a PVR-500 MCE, running on debian stable (sarge). I'm running
sid kernel 2.6.12-1-k7. I've also tried 2.6.11 with no luck. I've
managed to track this back to Bryan's patch: "Convert wm8775 and
saa7115 to smbus", specifically the wm8775 part of it.
This seems to be related to my motherboard, a via KT400 based system
(MSI KT4 Ultra). I tested this with a friends PVR-150 card in a
similar motherboard, and it also gives the same results. My nForce
board does not have any problems.
If I revert to the older version of the wm8775, the machine does not
reboot and ivtv works correctly.
It seems to be this part of the patch that breaks:
- if (2 != i2c_master_send(client, buffer, 2)) {
+ if (0 != i2c_smbus_write_byte_data(client,
regaddr, regval)) {
Even with the older version of wm8775, I have always gotten errors
(earliest version I tried was 0.3.4a), although everything works
correctly. This are the errors generated on a working version:
i2c_adapter i2c-0: I2C level transfers not supported
wm8775: Failed to update register 0 (R23) with 2e00.
i2c_adapter i2c-0: I2C level transfers not supported
wm8775: Failed to update register 2 (R11) with 1621.
i2c_adapter i2c-0: I2C level transfers not supported
wm8775: Failed to update register 3 (R12) with 1902.
i2c_adapter i2c-0: I2C level transfers not supported
wm8775: Failed to update register 9 (R18) with 2482.
i2c_adapter i2c-0: I2C level transfers not supported
wm8775: Failed to update register 10 (R19) with 2601.
i2c_adapter i2c-0: I2C level transfers not supported
wm8775: Failed to update register 12 (R21) with 2b0f.
ivtv: i2c attach [client=wm8775[50],ok]
I don't have any special module options:
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-81-1 ivtv
options ivtv tda9887=0
I don't claim to understand what's really going on, but I'm guessing a
i2c or smbus probe to an address my motherboard doesn't like is
crashing the system. Can I use the ignore or ignore_range parameters
of wm8775 to fix this, or is it a deeper problem?
Attached is full dmesg of the last working version. I'm happy to help
with any further information.
Thanks,
Ross
Jul 23 17:34:19 mythbe kernel: ivtv: ==================== START INIT IVTV
====================
Jul 23 17:34:19 mythbe kernel: ivtv: version 0.3.6 (n) loading
Jul 23 17:34:19 mythbe kernel: ivtv: Linux version: 2.6.12-1-k7 K7 gcc-4.0
Jul 23 17:34:19 mythbe kernel: ivtv: In case of problems please include the
debug info
Jul 23 17:34:19 mythbe kernel: ivtv: between the START INIT IVTV and END INIT
IVTV lines when
Jul 23 17:34:19 mythbe kernel: ivtv: mailing the ivtv-devel mailinglist.
Jul 23 17:34:19 mythbe kernel: ivtv: Autodetected WinTV PVR 150 card
Jul 23 17:34:19 mythbe kernel: ivtv: Found an iTVC16 based chip
Jul 23 17:34:19 mythbe kernel: ACPI: PCI Interrupt 0000:02:08.0[A] -> GSI 19
(level, low) -> IRQ 193
Jul 23 17:34:19 mythbe kernel: ivtv: Unreasonably low latency timer, setting to
64 (was 32)
Jul 23 17:34:19 mythbe kernel: ivtv: VIA PCI device: 0x3189 vendor: 0x1106
Jul 23 17:34:19 mythbe kernel: tveeprom: Hauppauge: model = 23559, rev = D391,
serial# = 7787272
Jul 23 17:34:19 mythbe kernel: tveeprom: tuner = Philips FQ1216AME MK4 (idx =
91, type = 56)
Jul 23 17:34:19 mythbe kernel: tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L)
PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17)
Jul 23 17:34:19 mythbe kernel: tveeprom: audio_processor = MSP3410D (type = 5)
Jul 23 17:34:19 mythbe kernel: ivtv: i2c attach [client=tveeprom[50],ok]
Jul 23 17:34:19 mythbe kernel: ivtv: Tuner Type 56, Tuner formats 0x00400e17,
Radio: yes, Model 0x00913651, Revision 0x00000000
Jul 23 17:34:19 mythbe kernel: ivtv: PAL tuner detected
Jul 23 17:34:19 mythbe kernel: ivtv: Radio detected
Jul 23 17:34:19 mythbe kernel: tuner: Ignoring new-style parameters in presence
of obsolete ones
Jul 23 17:34:19 mythbe kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c
driver #0
Jul 23 17:34:19 mythbe kernel: ivtv: i2c attach [client=(tuner unset),ok]
Jul 23 17:34:19 mythbe kernel: cx25840: starting probe for adapter SMBus Via
Pro adapter at 0400 (0x0)
Jul 23 17:34:19 mythbe kernel: cx25840: starting probe for adapter ivtv i2c
driver #0 (0x10005)
Jul 23 17:34:19 mythbe kernel: cx25840: detecting cx25840 client on address 0x88
Jul 23 17:34:19 mythbe kernel: cx25840: cx25843-23 found
Jul 23 17:34:19 mythbe kernel: cx25840: writing init values
Jul 23 17:34:19 mythbe kernel: cx25840: requesting /lib/modules/HcwMakoA.ROM
Jul 23 17:34:21 mythbe kernel: cx25840: firmware loaded
Jul 23 17:34:21 mythbe kernel: ivtv: i2c attach [client=cx25840[50],ok]
Jul 23 17:34:21 mythbe kernel: i2c_adapter i2c-0: I2C level transfers not
supported
Jul 23 17:34:21 mythbe kernel: wm8775: Failed to update register 0 (R23) with
2e00.
Jul 23 17:34:21 mythbe kernel: i2c_adapter i2c-0: I2C level transfers not
supported
Jul 23 17:34:21 mythbe kernel: wm8775: Failed to update register 2 (R11) with
1621.
Jul 23 17:34:21 mythbe kernel: i2c_adapter i2c-0: I2C level transfers not
supported
Jul 23 17:34:21 mythbe kernel: wm8775: Failed to update register 3 (R12) with
1902.
Jul 23 17:34:21 mythbe kernel: i2c_adapter i2c-0: I2C level transfers not
supported
Jul 23 17:34:21 mythbe kernel: wm8775: Failed to update register 9 (R18) with
2482.
Jul 23 17:34:21 mythbe kernel: i2c_adapter i2c-0: I2C level transfers not
supported
Jul 23 17:34:21 mythbe kernel: wm8775: Failed to update register 10 (R19) with
2601.
Jul 23 17:34:21 mythbe kernel: i2c_adapter i2c-0: I2C level transfers not
supported
Jul 23 17:34:21 mythbe kernel: wm8775: Failed to update register 12 (R21) with
2b0f.
Jul 23 17:34:21 mythbe kernel: ivtv: i2c attach [client=wm8775[50],ok]
Jul 23 17:34:21 mythbe kernel: tda9885/6/7: chip found @ 0x86
Jul 23 17:34:21 mythbe kernel: ivtv: i2c attach [client=tda9887,ok]
Jul 23 17:34:21 mythbe kernel: ivtv: Encoder revision: 0x02040011
Jul 23 17:34:21 mythbe kernel: ivtv: Configuring WinTV PVR 150 card with 5
streams
Jul 23 17:34:22 mythbe kernel: ivtv: Registered v4l2 device, streamtype 0 minor 0
Jul 23 17:34:22 mythbe kernel: ivtv: Create DMA stream 0 using 64 32768 byte
buffers 0 kbytes total
Jul 23 17:34:22 mythbe kernel: ivtv: Registered v4l2 device, streamtype 1 minor
32
Jul 23 17:34:22 mythbe kernel: ivtv: Create DMA stream 1 using 161 12960 byte
buffers 0 kbytes total
Jul 23 17:34:22 mythbe kernel: ivtv: Registered v4l2 device, streamtype 2 minor
224
Jul 23 17:34:22 mythbe kernel: ivtv: Create DMA stream 2 using 165 12635 byte
buffers 0 kbytes total
Jul 23 17:34:22 mythbe kernel: ivtv: Registered v4l2 device, streamtype 3 minor
24
Jul 23 17:34:22 mythbe kernel: ivtv: Create DMA stream 3 using 455 4608 byte
buffers 0 kbytes total
Jul 23 17:34:22 mythbe kernel: ivtv: Registered v4l2 device, streamtype 4 minor
64
Jul 23 17:34:22 mythbe kernel: ivtv: Create stream 4
Jul 23 17:34:22 mythbe kernel: ivtv: Setting Tuner 56
Jul 23 17:34:22 mythbe kernel: tuner: type set to 56 (Philips PAL/SECAM multi
(FQ1216AME MK4)) by ivtv i2c driver #0
Jul 23 17:34:22 mythbe kernel: cx25840: decoder set norm PAL
Jul 23 17:34:22 mythbe kernel: cx25840: decoder set input (6)
Jul 23 17:34:22 mythbe kernel: cx25840: now setting Tuner input
Jul 23 17:34:22 mythbe kernel: cx25840: set audio input (0)
Jul 23 17:34:22 mythbe kernel: ivtv: Switching standard to PAL.
Jul 23 17:34:22 mythbe kernel: cx25840: decoder set norm PAL
Jul 23 17:34:22 mythbe kernel: ivtv: Initialized WinTV PVR 150, card #0
Jul 23 17:34:22 mythbe kernel: ivtv: Autodetected WinTV PVR 150 card
Jul 23 17:34:22 mythbe kernel: ivtv: Found an iTVC16 based chip
Jul 23 17:34:22 mythbe kernel: ivtv: ivtv_enc_thread: pid = 4213, itv =
0xe0b885a0
Jul 23 17:34:22 mythbe kernel: ivtv: ivtv_enc_vbi_thread: pid = 4214, itv =
0xe0b885a0
Jul 23 17:34:22 mythbe kernel: ACPI: PCI Interrupt 0000:02:09.0[A] -> GSI 16
(level, low) -> IRQ 177
Jul 23 17:34:22 mythbe kernel: ivtv: Unreasonably low latency timer, setting to
64 (was 32)
Jul 23 17:34:22 mythbe kernel: ivtv: VIA PCI device: 0x3189 vendor: 0x1106
Jul 23 17:34:22 mythbe kernel: tveeprom: Hauppauge: model = 23559, rev = D391,
serial# = 7787272
Jul 23 17:34:22 mythbe kernel: tveeprom: tuner = Philips FQ1216AME MK4 (idx =
91, type = 56)
Jul 23 17:34:22 mythbe kernel: tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L)
PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17)
Jul 23 17:34:22 mythbe kernel: tveeprom: audio_processor = MSP3410D (type = 5)
Jul 23 17:34:22 mythbe kernel: ivtv: i2c attach [client=tveeprom[50],ok]
Jul 23 17:34:22 mythbe kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c
driver #1
Jul 23 17:34:22 mythbe kernel: ivtv: i2c attach [client=(tuner unset),ok]
Jul 23 17:34:22 mythbe kernel: cx25840: starting probe for adapter ivtv i2c
driver #1 (0x10005)
Jul 23 17:34:22 mythbe kernel: cx25840: detecting cx25840 client on address 0x88
Jul 23 17:34:22 mythbe kernel: cx25840: cx25843-23 found
Jul 23 17:34:22 mythbe kernel: cx25840: writing init values
Jul 23 17:34:22 mythbe kernel: cx25840: requesting /lib/modules/HcwMakoA.ROM
Jul 23 17:34:23 mythbe kernel: cx25840: firmware loaded
Jul 23 17:34:23 mythbe kernel: ivtv: i2c attach [client=cx25840[50],ok]
Jul 23 17:34:23 mythbe kernel: ivtv: i2c attach [client=wm8775[50],ok]
Jul 23 17:34:23 mythbe kernel: tda9885/6/7: chip found @ 0x86
Jul 23 17:34:23 mythbe kernel: ivtv: i2c attach [client=tda9887,ok]
Jul 23 17:34:23 mythbe kernel: ivtv: Tuner Type 56, Tuner formats 0x00400e17,
Radio: yes, Model 0x00913651, Revision 0x00000000
Jul 23 17:34:23 mythbe kernel: ivtv: Radio detected
Jul 23 17:34:24 mythbe kernel: ivtv: Encoder revision: 0x02040011
Jul 23 17:34:24 mythbe kernel: ivtv: Configuring WinTV PVR 150 card with 5
streams
Jul 23 17:34:24 mythbe kernel: ivtv: Registered v4l2 device, streamtype 0 minor
1
Jul 23 17:34:24 mythbe kernel: ivtv: Create DMA stream 0 using 64 32768 byte
buffers 0 kbytes total
Jul 23 17:34:24 mythbe kernel: ivtv: Registered v4l2 device, streamtype 1 minor
33
Jul 23 17:34:24 mythbe kernel: ivtv: Create DMA stream 1 using 161 12960 byte
buffers 0 kbytes total
Jul 23 17:34:24 mythbe kernel: ivtv: Registered v4l2 device, streamtype 2 minor
225
Jul 23 17:34:24 mythbe kernel: ivtv: Create DMA stream 2 using 165 12635 byte
buffers 0 kbytes total
Jul 23 17:34:24 mythbe kernel: ivtv: Registered v4l2 device, streamtype 3 minor
25
Jul 23 17:34:24 mythbe kernel: ivtv: Create DMA stream 3 using 455 4608 byte
buffers 0 kbytes total
Jul 23 17:34:24 mythbe kernel: ivtv: Registered v4l2 device, streamtype 4 minor
65
Jul 23 17:34:24 mythbe kernel: ivtv: Create stream 4
Jul 23 17:34:24 mythbe kernel: ivtv: Setting Tuner 56
Jul 23 17:34:24 mythbe kernel: tuner: type set to 56 (Philips PAL/SECAM multi
(FQ1216AME MK4)) by ivtv i2c driver #1
Jul 23 17:34:24 mythbe kernel: cx25840: decoder set norm PAL
Jul 23 17:34:24 mythbe kernel: cx25840: decoder set input (6)
Jul 23 17:34:24 mythbe kernel: cx25840: now setting Tuner input
Jul 23 17:34:24 mythbe kernel: cx25840: set audio input (0)
Jul 23 17:34:24 mythbe kernel: ivtv: Switching standard to PAL.
Jul 23 17:34:24 mythbe kernel: cx25840: decoder set norm PAL
Jul 23 17:34:24 mythbe kernel: ivtv: Initialized WinTV PVR 150, card #1
Jul 23 17:34:24 mythbe kernel: ivtv: ==================== END INIT IVTV
====================