Skip to contentSkip to conversation

KNC1 DVB-C (MK3) w/ CI causes i2c_timeouts

linux-dvb Matthias Dahl 2 participants 6 messages May 2, 2008 – May 9, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello everyone.

A few days ago I swapped my old KNC1 TV Station Plus for a newer revision TV Station (MK3; non plus) which was slightly modified by KNC1 to better handle my cable provider's QAM256 modulated signal. So far the BER value has dropped to zero and things seem to work fine except that I now get the following msgs from time to time:

"saa7146 (0) saa7146_i2c_writeout [irq]: timed out waiting for end of xfer"

and

"DVB: TDA10023: tda10023_readreg: readreg error (ret == -512)"

Also infrequently, it takes a few more extra seconds to tune to another channel after I have been switching around a lot. It's not related to any specific channel and happens (more or less) totally randomly.

All this worked fine with my old card which had a tda10021 and besides that was mostly the same. I haven't changed anything software-wise between the swap, so it's somehow related to the new card.

By the way, I am using a mercurial checkout from 20 Apr 08.

If anyone can help me out on this one, I'd greatly appreciate it.

Here some infos:

uname -a:
Linux dreamgate 2.6.25 #1 SMP PREEMPT Sun Apr 20 15:25:13 CEST 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ AuthenticAMD GNU/Linux

some log:

May  2 07:03:09 dreamgate Linux video capture interface: v2.00
May  2 07:03:09 dreamgate saa7146: register extension 'budget_av'.
May  2 07:03:09 dreamgate saa7146: found saa7146 @ mem ffffc2000002e000 
(revision 1, irq 16) (0x1894,0x0022).
May  2 07:03:09 dreamgate saa7146 (0): dma buffer size 192512
May  2 07:03:09 dreamgate DVB: registering new adapter (KNC1 DVB-C MK3)
May  2 07:03:09 dreamgate encoded MAC from EEPROM was 
ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff
May  2 07:03:09 dreamgate KNC1-0: MAC addr = 00:09:d6:01:ab:5b
May  2 07:03:09 dreamgate DVB: registering frontend 0 (Philips TDA10023 
DVB-C)...
May  2 07:03:09 dreamgate budget-av: ci interface initialised.
May  2 07:03:09 dreamgate budget-av: cam inserted A
May  2 07:03:09 dreamgate dvb_ca adapter 0: DVB CAM detected and initialised 

successfully

cat /proc/interrupts:
CPU0 CPU1

  0:         81         35   IO-APIC-edge      timer
  1:          0          2   IO-APIC-edge      i8042
  7:          1          0   IO-APIC-edge
  8:          0          1   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:          0          4   IO-APIC-edge      i8042
 14:         46      17884   IO-APIC-edge      pata_amd
 15:          0          0   IO-APIC-edge      pata_amd
 16:        562     480617   IO-APIC-fasteoi   sata_sil24, saa7146 (0), nvidia
 20:        149      45696   IO-APIC-fasteoi   ehci_hcd:usb1
 21:        190      91267   IO-APIC-fasteoi   sata_nv, HDA Intel
 22:          2        113   IO-APIC-fasteoi   sata_nv
 23:        109      35363   IO-APIC-fasteoi   sata_nv, ohci_hcd:usb2
315:       1073     606201   PCI-MSI-edge      eth2
NMI:          0          0   Non-maskable interrupts
LOC:    1150975    1301850   Local timer interrupts
RES:     214884      78607   Rescheduling interrupts
CAL:      20235       7779   function call interrupts
TLB:       1206       1240   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
SPU:          0          0   Spurious interrupts

lspci -vvv:
02:06.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
Subsystem: KNC One Device 0022
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32 (3750ns min, 9500ns max)
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fdfff000 (32-bit, non-prefetchable) [size=512] Kernel driver in use: budget_av
Kernel modules: budget-av

Thanks a lot in advance,
matthew.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw
Quoted 14 lines · Matthias Dahl

Hello everyone.

A few days ago I swapped my old KNC1 TV Station Plus for a newer revision TV Station (MK3; non plus) which was slightly modified by KNC1 to better handle my cable provider's QAM256 modulated signal. So far the BER value has dropped to zero and things seem to work fine except that I now get the following msgs from time to time:

"saa7146 (0) saa7146_i2c_writeout [irq]: timed out waiting for end of xfer"

and

"DVB: TDA10023: tda10023_readreg: readreg error (ret == -512)"

Quoted 7 lines

Also infrequently, it takes a few more extra seconds to tune to another channel after I have been switching around a lot. It's not related to any specific channel and happens (more or less) totally randomly.

All this worked fine with my old card which had a tda10021 and besides that was mostly the same. I haven't changed anything software-wise between the swap, so it's somehow related to the new card.

Given that your software hasn't changed, and assuming the driver code is correct (for a large majority of users), then the remaining problem areas I see are the card itself, the mainboard's PCI bus, and the possibility of a marginal power supply. (Can anyone else think of something else?)

Focusing on the PCI bus:

Can you check the output of

# lspci -nnxxx

for your Host and PCI bridges and the video card?

If you look at register offset 0x07, PCI bus errors of various types (and DEVSEL timing) are flagged there.

For example, on my machine:

# lspci -nnxxx
00:00.0 Host bridge [0600]: ATI Technologies Inc RS480 Host Bridge [1002:5950] (rev 10)
00: 02 10 50 59 06 00 20 22 10 00 00 06 00 40 00 00
                         ^
                         |
                         |
The host bridge detected a Master Abort on the PCI bus since the machine
was booted.

You may want to reset these error status flags so thay you can see if actions or logging related to the video card, correlate to any of these error flags getting set.

To reset the status of this device, so I could run experiments to watch for what actions caused error flags to be set, I used "setpci" to read the register and write it back. (Writing back a 1 to an error status bit clears the status bit).

# setpci -s 00:00.0 STATUS
2220
# setpci -s 00:00.0 STATUS=2220
# setpci -s 00:00.0 STATUS
0220

Also could you look at the latency timer of all the PCI devices on the bus? Values that are very high (e.g. nVidia likes to use 248) and values less than or equal to 32 (n.b. 0 is OK for some bridge devices) can cause problems.

The latency timer determines how long a device can grab the bus as a bus master. Approximately 4*latency_timer bytes can be transferred before the master is forced to give up the PCI bus. Values that are too small can deny a master the ability to transfer useful amounts of data and cause aborts. Values that are too large can hold other devices off of the bus for a while. Also, since modern devices are allowed 16 setup cycles if not ready as a target, latency values less than or equal to 16 could be a problem for masters trying to work with targets that take all 16 cycles occasionally.

Tweaking PCI bus latency timers with "setpci" may resolve your problems.

Quoted 1 line

By the way, I am using a mercurial checkout from 20 Apr 08.

In the version of saa7146_i2c.c that I am looking at, in the function saa7146_i2c_writeout(), the code should probably do a read back of the register it just wrote out before calling wait_event_interruptable_timeout(), to flush any PCI posted writes down to actual saa7146 device. But the timeout is so long, 10 ms, relative to the maximum PCI latency for any one device (248 bus cycles/33 MHz = 7.5 usecs), that it's probably not an issue.

Quoted 7 lines

If anyone can help me out on this one, I'd greatly appreciate it.

Here some infos:

uname -a:
Linux dreamgate 2.6.25 #1 SMP PREEMPT Sun Apr 20 15:25:13 CEST 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ AuthenticAMD GNU/Linux

# cat /proc/cpuinfo | grep 'model name' | uniq
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 4200+

:)

Quoted 9 lines

some log:

May  2 07:03:09 dreamgate Linux video capture interface: v2.00
May  2 07:03:09 dreamgate saa7146: register extension 'budget_av'.
May  2 07:03:09 dreamgate saa7146: found saa7146 @ mem ffffc2000002e000 
(revision 1, irq 16) (0x1894,0x0022).
May  2 07:03:09 dreamgate saa7146 (0): dma buffer size 192512
May  2 07:03:09 dreamgate DVB: registering new adapter (KNC1 DVB-C MK3)
May  2 07:03:09 dreamgate encoded MAC from EEPROM was 

ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff

I believe this is a log message from an error condition. The EEPROM on the i2c bus on the card was not able to be read properly. (See: linux/drivers/media/dvb/ttpci/ttpci-eeprom.c)

Although I don't know if your "budget_av" supported card would have an EEPROM or not.

Regards,
Andy

Quoted 46 lines
May  2 07:03:09 dreamgate KNC1-0: MAC addr = 00:09:d6:01:ab:5b
May  2 07:03:09 dreamgate DVB: registering frontend 0 (Philips TDA10023 
DVB-C)...
May  2 07:03:09 dreamgate budget-av: ci interface initialised.
May  2 07:03:09 dreamgate budget-av: cam inserted A
May  2 07:03:09 dreamgate dvb_ca adapter 0: DVB CAM detected and initialised 

successfully

cat /proc/interrupts:
CPU0 CPU1

  0:         81         35   IO-APIC-edge      timer
  1:          0          2   IO-APIC-edge      i8042
  7:          1          0   IO-APIC-edge
  8:          0          1   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:          0          4   IO-APIC-edge      i8042
 14:         46      17884   IO-APIC-edge      pata_amd
 15:          0          0   IO-APIC-edge      pata_amd
 16:        562     480617   IO-APIC-fasteoi   sata_sil24, saa7146 (0), nvidia
 20:        149      45696   IO-APIC-fasteoi   ehci_hcd:usb1
 21:        190      91267   IO-APIC-fasteoi   sata_nv, HDA Intel
 22:          2        113   IO-APIC-fasteoi   sata_nv
 23:        109      35363   IO-APIC-fasteoi   sata_nv, ohci_hcd:usb2
315:       1073     606201   PCI-MSI-edge      eth2
NMI:          0          0   Non-maskable interrupts
LOC:    1150975    1301850   Local timer interrupts
RES:     214884      78607   Rescheduling interrupts
CAL:      20235       7779   function call interrupts
TLB:       1206       1240   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
SPU:          0          0   Spurious interrupts

lspci -vvv:
02:06.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
Subsystem: KNC One Device 0022
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32 (3750ns min, 9500ns max)
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fdfff000 (32-bit, non-prefetchable) [size=512] Kernel driver in use: budget_av
Kernel modules: budget-av

Quoted 8 lines

Thanks a lot in advance,
matthew.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw

Hello Andy.

Quoted 5 lines · On Friday 02 May 2008 15:15:50 you wrote:

Given that your software hasn't changed, and assuming the driver code is correct (for a large majority of users), then the remaining problem areas I see are the card itself, the mainboard's PCI bus, and the possibility of a marginal power supply. (Can anyone else think of something else?)

Perhaps. But maybe it's a combination of a few factors: is the MK3 model w/ CI as widely used and tested as the older model w/ CI? Maybe a combination of my hardware is triggering some hw/sw flaw.

The card is brand-new and was slightly modified by KNC1 for better QAM256 receiption with my cable provider. The mainboard is a Asus Crosshair which is pretty much top-notch. Irionically I am no gamer and still own a highend gamer board but it's hard to get a decent piece of quality hardware nowadays. :-( The power supply should be more than enough with its 500W. ;-)

Quoted 3 lines

Can you check the output of

# lspci -nnxxx
for your Host and PCI bridges and the video card?

Thanks for the tipp. That brings me to another problem that I think might be related. Since I put in the new card, I am experiencing the following:

- power on computer -> wait for kdm -> switching to console fails

the monitor even turns off because it gets no signal. usually blindly switching back to Xorg works and the screen is back.

- rebooting the system -> everything works fine from there on

I did some more investigating and figured that the problem only occurs when the system has just been powered on _and_ something is accessing the dvb-c card. So powering on the machine without starting the vdr works just fine. But as soon as vdr has been started, no more vt switching is possible. The problem doesn't show up after a reboot- at all. This is never ever happened with the old card. I checked the cabling and all but I wasn't able to figure out what's the cause of this. No error msgs. Nothing.

For the record, unfortunately I am using a nvidia card with the 173.08 driver release. But I already did that with the old card.

I have attached the lspci output for both cases by the way.

Quoted 4 lines

Also could you look at the latency timer of all the PCI devices on the bus? Values that are very high (e.g. nVidia likes to use 248) and values less than or equal to 32 (n.b. 0 is OK for some bridge devices) can cause problems.

Due the fact that I only have the knc one card in the machine and everything else is either on board or on PCI-E, the latency is 0 everywhere except for the knc one card, there it's 32.

Quoted 1 line

Tweaking PCI bus latency timers with "setpci" may resolve your problems.

I'll give that a shot too. I really would like to set the latency when the module is being loaded. Unfortunately there is no module parameter for that so I'll have a look through the sources and hard wire to 64 which should be plenty.

Quoted 3 lines

I believe this is a log message from an error condition. The EEPROM on the i2c bus on the card was not able to be read properly. (See: linux/drivers/media/dvb/ttpci/ttpci-eeprom.c)

That also happened with the old card so I guess that's okay.

BTW. I switched to kernel 2.6.25.1 and in-tree dvb but no change at least on the "boot up" problem. For the original problem, I'll have an eye on it.

Sometimes I really wonder why I chose to study computer science. Life could be so much easier. ;-)

If anyone has some more ideas or things I could try... :-)

Thanks a lot,
matthew.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#3 lore raw
Quoted 10 lines · Matthias Dahl

Hello Andy.

Quoted 5 lines · On Friday 02 May 2008 15:15:50 you wrote:

Given that your software hasn't changed, and assuming the driver code is correct (for a large majority of users), then the remaining problem areas I see are the card itself, the mainboard's PCI bus, and the possibility of a marginal power supply. (Can anyone else think of something else?)

Quoted 3 lines

Perhaps. But maybe it's a combination of a few factors: is the MK3 model w/ CI as widely used and tested as the older model w/ CI? Maybe a combination of my hardware is triggering some hw/sw flaw.

Maybe. Given the lspci output, you may have two separate problem, that are now making things noticable.

Quoted 8 lines

The card is brand-new and was slightly modified by KNC1 for better QAM256 receiption with my cable provider. The mainboard is a Asus Crosshair which is pretty much top-notch. Irionically I am no gamer and still own a highend gamer board but it's hard to get a decent piece of quality hardware nowadays. :-(

The power supply should be more than enough with its 500W. ;-)

:)

Quoted 14 lines
Quoted 3 lines

Can you check the output of

# lspci -nnxxx
for your Host and PCI bridges and the video card?

Thanks for the tipp. That brings me to another problem that I think might be related. Since I put in the new card, I am experiencing the following:

- power on computer -> wait for kdm -> switching to console fails

the monitor even turns off because it gets no signal. usually blindly switching back to Xorg works and the screen is back.

- rebooting the system -> everything works fine from there on

Quoted 7 lines

I did some more investigating and figured that the problem only occurs when the system has just been powered on _and_ something is accessing the dvb-c card. So powering on the machine without starting the vdr works just fine. But as soon as vdr has been started, no more vt switching is possible. The problem doesn't show up after a reboot- at all. This is never ever happened with the old card. I checked the cabling and all but I wasn't able to figure out what's the cause of this. No error msgs. Nothing.

Your DVB card is on PCI bus segment 2 and your graphics card is on bus segment 5. I see the DVB card is on the segment behind the PCI bridge at 00:0e.0 since that bridge has segment 2 as its secondary bus.

Quoted 6 lines

For the record, unfortunately I am using a nvidia card with the 173.08 driver release. But I already did that with the old card.

I have attached the lspci output for both cases by the way.

From lspci_powerup_with_problem:

00:00.1 RAM memory [0500]: nVidia Corporation C51 Memory Controller 0 [10de:02fa] (rev a2) 00: de 10 fa 02 00 01 20 40 a2 00 00 05 00 00 80 00

                         ^
                         |
00:0e.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI bridge [10de:0370] (rev a2)
00: de 10 70 03 07 01 b0 40 a2 01 04 06 00 00 81 00
                         ^
                         |

Signaled System Errors (SERR), that's bad.

Note that this is the bridge (00:0e.0) that the DVB card is behind, and that this bridge signaled a SERR on it's primary bus segment (the side closer to the CPU/Host bridge), and not that it received a SERR on it's secondary bus segment. That means the bridge is unhappy, and it could very well be something behind it, like the DVB card.

According to the PCI spec:

"System Error is for reporting address parity errors, data parity errors
on the Special Cycle command, or any other system error where the result will be catastrophic. If an agent does not want a non-maskable interrupt (NMI) to be generated, a different reporting mechanism is required."

and a bunch of other specific conditions are mentioned as well.

In the file lspci_after_reboot-working, only the 00:00.1 RAM Controller device still shows a SERR. Since this memory controller is reporting SERRs, you might have a genuine memory problem somewhere or a device trying to access the memory might have a problem.

I also notice these differences in the lspci before and after data:

00:0e.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI bridge [10de:0370] (|  00:0e.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI bridge [10de:0370] (
00: de 10 70 03 07 01 b0 40 a2 01 04 06 00 00 81 00                         |  00: de 10 70 03 07 01 b0 00 a2 01 04 06 00 00 81 00                         
10: 00 00 00 00 00 00 00 00 00 02 02 20 f0 00 80 02                         |  10: 00 00 00 00 00 00 00 00 00 02 02 20 f0 00 80 02
20: f0 fd f0 fd f0 ff 00 00 00 00 00 00 00 00 00 00                         |  20: f0 fd f0 fd f0 ff 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 b8 00 00 00 00 00 00 00 ff 00 04 0e                         |  30: 00 00 00 00 b8 00 00 00 00 00 00 00 ff 00 04 0a                         

^ ^
| |
The prefetchable addr limit upper 32 bits differ -+------------------------------------------------------------------------------+ on the PCI Bridge that the DVB card is behind.
Also no SERR is reported by this bridge any longer.

05:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:04|  05:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:04
00: de 10 00 04 07 00 10 00 a1 00 00 03 00 00 00 00                         |  00: de 10 00 04 07 00 10 00 a1 00 00 03 00 00 00 00
10: 00 00 00 fa 0c 00 00 e0 00 00 00 00 04 00 00 f8                         |  10: 00 00 00 fa 0c 00 00 e0 00 00 00 00 04 00 00 f8
20: 00 00 00 00 01 9c 00 00 00 00 00 00 62 14 50 09                         |  20: 00 00 00 00 01 9c 00 00 00 00 00 00 62 14 50 09
30: 00 00 00 00 60 00 00 00 00 00 00 00 0b 01 00 00                         |  30: 00 00 fe fb 60 00 00 00 00 00 00 00 0b 01 00 00
          ^^^^^                                                                          ^^^^^
            |                                                                              |
            +------------------------------------------------------------------------------+

The Expansion ROM base address is actually set for the video card after reboot. That must make a difference for using VTs.

So, on power up, accessing the DVB card causes the bridge it's behind to gripe. Sounds like you might have a bad card or bridge or card connector. You may want to see if that bridge is happy with the old DVB card installed instead.

You also have a memory controller that is consistently not happy. You may want to check your memory. You may also want to see if that memory controller is happy with the old DVB card installed instead.

Regards,
Andy

Quoted 27 lines
Quoted 5 lines

Also could you look at the latency timer of all the PCI devices on the bus? Values that are very high (e.g. nVidia likes to use 248) and values less than or equal to 32 (n.b. 0 is OK for some bridge devices) can cause problems.

Due the fact that I only have the knc one card in the machine and everything else is either on board or on PCI-E, the latency is 0 everywhere except for the knc one card, there it's 32.

Quoted 1 line

Tweaking PCI bus latency timers with "setpci" may resolve your problems.

I'll give that a shot too. I really would like to set the latency when the module is being loaded. Unfortunately there is no module parameter for that so I'll have a look through the sources and hard wire to 64 which should be plenty.

Quoted 3 lines

I believe this is a log message from an error condition. The EEPROM on the i2c bus on the card was not able to be read properly. (See: linux/drivers/media/dvb/ttpci/ttpci-eeprom.c)

That also happened with the old card so I guess that's okay.

BTW. I switched to kernel 2.6.25.1 and in-tree dvb but no change at least on the "boot up" problem. For the original problem, I'll have an eye on it.

Quoted 7 lines

Sometimes I really wonder why I chose to study computer science. Life could be so much easier. ;-)

If anyone has some more ideas or things I could try... :-)

Thanks a lot,
matthew.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#4 lore raw

Hi Andy.

Sorry for the delay but I was having some hw trouble and other things kept me quite busy as well (studies).

Quoted 2 lines · On Sunday 04 May 2008 02:43:58 you wrote:

Maybe. Given the lspci output, you may have two separate problem, that are now making things noticable.

Well I fixed the issue with the vt switch not working right after a cold start. I updated the motherboard's bios to its latest revision (after which it was basically brain-dead but that's a different story and fixed now -g-) and the issue is gone for good. Strange as it may seem...

Quoted 3 lines
Quoted 2 lines

The power supply should be more than enough with its 500W. ;-)

:)

Somehow I feel the need to explain myself. -g- My old power supply gave up on me on a saturday some time last year and I really needed to get the computer up and running again as soon as possible, so I ended up with this 500W giant which was all I could get (besides the usual no-name stuff) in my city.

Quoted 2 lines

That means the bridge is unhappy, and it could very well be something behind it, like the DVB card.

I tested it with the old card- it's the same there: the PCI bridge reports the error condition after a cold start and those are gone after a simple reboot.

The error from the memory controller seems strange but I doubt its really an issue. The memory works just fine and I also tested both dimms seperately. It also happens without the dvb card. Besides I find it strange that I get 6 memory controllers and one unnumbered one reported. Something can't be right with that data, can it?

Quoted 3 lines

The prefetchable addr limit upper 32 bits differ on the PCI Bridge that the DVB card is behind. Also no SERR is reported by this bridge any longer.

What's responsible for setting the appropriate value? Maybe that's a clue.

One other thing. Is the tda10023 module reporting the real BER and UNC values? The reason I ask is with the new card I get a constant BER and UNC of 0 with QAM256 modulated channels even though there are still artefacts due to transmission errors. On the other hand, if those values are correct maybe the stream gets corrupted due to some other issues.

BTW I have increased the card's latency to 64. So far I haven't had any of those timeouts but I will have to do some more testing this weekend to see if it's really fixed. I actually hoped those timeouts were causing the stream corruptions... well... can't be because I had those issues today and no timeouts.

If you have any other ideas what I could try to get to the bottom of this, please let me know. Thanks a lot in advance...!

Have a nice weekend,
matthew.

PS. I have attached some more lspci output.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#5 lore raw
Quoted 7 lines · Matthias Dahl

Hi Andy.

Sorry for the delay but I was having some hw trouble and other things kept me quite busy as well (studies).

On Sunday 04 May 2008 02:43:58 you wrote:

Quoted 7 lines
Quoted 2 lines

Maybe. Given the lspci output, you may have two separate problem, that are now making things noticable.

Well I fixed the issue with the vt switch not working right after a cold start. I updated the motherboard's bios to its latest revision (after which it was basically brain-dead but that's a different story and fixed now -g-) and the issue is gone for good. Strange as it may seem...

A buggy BIOS or bad ESCD data doesn't seem strange now that you mention it.

Quoted 11 lines
Quoted 2 lines

That means the bridge is unhappy, and it could very well be something behind it, like the DVB card.

I tested it with the old card- it's the same there: the PCI bridge reports the error condition after a cold start and those are gone after a simple reboot.

The error from the memory controller seems strange but I doubt its really an issue. The memory works just fine and I also tested both dimms seperately. It also happens without the dvb card. Besides I find it strange that I get 6 memory controllers and one unnumbered one reported. Something can't be right with that data, can it?

Most likely the ascii label given to the devices by lspci is wrong. The lspci command reports things from a static database which may not be perfect as nVidia may have reused id's on functions within a highly integrated device. Those controllers appear to all be functions of one highly integrated chip. A block diagram from nVidia literature on the chipset would probably make things clear.

Quoted 5 lines
Quoted 3 lines

The prefetchable addr limit upper 32 bits differ on the PCI Bridge that the DVB card is behind. Also no SERR is reported by this bridge any longer.

What's responsible for setting the appropriate value? Maybe that's a clue.

The BIOS is probably responsible for basic setup of the motherboard to get disks and usb controllers working. Additional setup is done by the pci drivers in the linux kernel, if I'm reading the source correctly. Although it looks like linux may leave bridge configurations alone under some conditions.

Quoted 5 lines

One other thing. Is the tda10023 module reporting the real BER and UNC values? The reason I ask is with the new card I get a constant BER and UNC of 0 with QAM256 modulated channels even though there are still artefacts due to transmission errors. On the other hand, if those values are correct maybe the stream gets corrupted due to some other issues.

You may have complete MPEG TS packet erasures being introduced somewhere before or after your digital tuner. I'd think the tuner hardware wouldn't count those as bit errors, unless it made the packet erasure itself.

If your cable provider gets a channel via some other digital feed subject to errors before passing it to you, then his transmission to you may be "cleaned up" and sent without error, but his original reception of the program may have experienced errors.

Quoted 3 lines

BTW I have increased the card's latency to 64. So far I haven't had any of those timeouts but I will have to do some more testing this weekend to see if it's really fixed.

Cool.

Quoted 6 lines

I actually hoped those timeouts were causing the stream
corruptions... well... can't be because I had those issues today and no timeouts.

If you have any other ideas what I could try to get to the bottom of this, please let me know. Thanks a lot in advance...!

Watch the same digital channel on a dedicated television set at the same time you watch it on your computer. That way you can test the hypothesis that the artifacts are introduced by your cable provider and not in transmission to your home or playback on your computer hardware.

-Andy

Quoted 4 lines

Have a nice weekend,
matthew.

PS. I have attached some more lspci output.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb