Scott wrote:

> I have the following pci devices,
> 
> nvidia vga card fx5500
> audio card
> tv tuner
> ethernet
> 
> the motherboard has no onboard video sound or ethernet, at the most i 
> could get rid of the sound and ethernet, but im afraid that card that 
> uses the most of the pci bus is the graphics card.
> 
> when i boot up into recovery mode which is hopefully runlevel 2, i 
> tried  to modprobe cx18 and checked for video0 in /dev/ and it was 
> nonexistant still.

While in a text only mode, did you 

# modporbe -r nvidia

first, before trying to 

# modprobe cx18

?


> i havent removed any of the pci cards because the computer is useless 
> without them.

Sorry for my miscommunication.  I didn't intend to ask you to remove
cards, just modules (i.e. modporbe -r foo).  I meant to say unload
*modules*.


> i hope this helps.

It does.  Thanks for the detailed output.  Discussion is in-line below.

> lspci -tv
> -----------------------
> -[0000:00]-+-00.0  Intel Corporation 82850 850 (Tehama) Chipset Host 
> Bridge (MCH)
>            +-01.0-[0000:01]--

I note no card on the AGP bridge.

>            +-1e.0-[0000:02]--+-09.0  nVidia Corporation NV34 [GeForce
> FX 
> 5500]
>            |                 +-0b.0  Conexant CX23418 Single-Chip
> MPEG-2 
> Encoder with Integrated Analog Video/Broadcast Audio Decoder
>            |                 +-0c.0  Aureal Semiconductor Vortex 2
>            |                 \-0d.0  Realtek Semiconductor Co., Ltd. 
> RTL-8169 Gigabit Ethernet

Most of the heavy hitters, expcept for the IDE controller, are on bus
segment [0000:02] behind the PCI-PCI bridge at 1e.0.  If you have no
heavy traffic USB devices bus segment [0000:02] will be the busiest in
the system unless disk activity is going on.

>            +-1f.0  Intel Corporation 82801BA ISA Bridge (LPC)
>            +-1f.1  Intel Corporation 82801BA IDE U100 Controller
>            +-1f.2  Intel Corporation 82801BA/BAM USB Controller #1
>            +-1f.3  Intel Corporation 82801BA/BAM SMBus Controller
>            \-1f.4  Intel Corporation 82801BA/BAM USB Controller #1
> 
> 
> lspci -vvvxxx
> -----------------------------
> 00:00.0 Host bridge: Intel Corporation 82850 850 (Tehama) Chipset
> Host 
> Bridge (MCH) (rev 02)
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast
> >TAbort- 
> <TAbort- <MAbort+ >SERR- <PERR-
>         Latency: 0
>         Region 0: Memory at f0000000 (32-bit, prefetchable) [size=64M]
>         Capabilities: [a0] AGP version 2.0
>                 Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- 
> HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
>                 Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit-
> FW- 
> Rate=<none>
> 00: 86 80 30 25 06 01 90 20 02 00 00 06 00 00 00 00
> 10: 08 00 00 f0 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 a0 00 00 00 00 00 00 00 00 00 00 00
> 40: d4 92 80 80 80 80 80 80 80 80 80 80 80 80 80 80
> 50: 05 0a 02 00 00 00 00 00 00 10 11 11 00 00 11 31
> 60: 10 00 18 08 18 08 18 08 18 08 18 08 18 08 18 08
> 70: 18 08 18 08 18 08 18 08 18 08 18 08 18 08 18 08
> 80: 00 00 00 00 00 00 00 00 0f 00 00 00 00 00 00 00
> 90: 07 00 07 00 61 00 01 08 55 19 00 00 80 0a 38 00
> a0: 02 00 20 00 17 02 00 1f 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 30 00 00 00 00 00 3a 13 00 00 8a 00
> c0: 44 40 50 11 00 18 00 00 00 c0 00 00 00 00 00 00
> d0: 02 28 00 0e 03 00 00 33 af 09 31 b5 01 00 00 00
> e0: 00 00 00 00 00 00 00 00 2e 23 31 23 07 00 00 00
> f0: 00 00 01 00 74 f8 30 80 38 0f 00 00 00 00 00 00
> 
> 00:01.0 PCI bridge: Intel Corporation 82850 850 (Tehama) Chipset AGP 
> Bridge (rev 02) (prog-if 00 [Normal decode])
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 32
>         Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
>         I/O behind bridge: 0000f000-00000fff
>         Memory behind bridge: f4800000-f48fffff
>         Prefetchable memory behind bridge: dc500000-dc5fffff
>         Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort+ <SERR- <PERR-
>         BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
> 00: 86 80 32 25 06 01 a0 00 02 00 04 06 00 20 01 00
> 10: 00 00 00 00 00 00 00 00 00 01 01 20 f0 00 a0 22
> 20: 80 f4 80 f4 50 dc 50 dc 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00
> 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 
> 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 04)
> (prog-if 
> 00 [Normal decode])
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 0
>         Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
>         I/O behind bridge: 0000d000-0000dfff
>         Memory behind bridge: f4900000-feafffff
>         Prefetchable memory behind bridge: dc600000-ec6fffff
>         Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- <SERR- <PERR-
>         BridgeCtl: Parity- SERR+ NoISA- VGA+ MAbort- >Reset- FastB2B-
> 00: 86 80 4e 24 07 01 80 00 04 00 04 06 00 00 01 00
> 10: 00 00 00 00 00 00 00 00 00 02 02 20 d0 d0 80 02
> 20: 90 f4 a0 fe 60 dc 60 ec 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0a 00
> 40: 00 28 20 20 00 00 00 00 00 00 00 00 00 00 00 00
> 50: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 10 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 01 00 02 00 03 00 c0 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 47 0f 00 00 00 00 00 00
> 
> 00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev
> 04)
>         Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- 
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 0
> 00: 86 80 40 24 0f 00 80 02 04 00 01 06 00 00 80 00
> 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 40: 01 04 00 00 10 00 00 00 00 00 00 00 00 00 02 00
> 50: 00 00 00 00 00 00 00 00 01 05 00 00 10 00 00 00
> 60: 80 0a 80 05 d0 00 00 00 80 0b 80 09 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: ff fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 10 02 00 00 01 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00
> c0: 00 00 00 00 00 00 84 08 00 00 00 00 10 00 00 00
> d0: 04 20 00 00 02 0f 00 00 04 00 00 00 00 00 00 00
> e0: 10 00 00 c0 01 08 0f 34 33 22 11 00 00 00 67 45
> f0: 00 00 60 00 00 00 00 00 47 0f 00 00 00 00 00 02
> 
> 00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller 
> (rev 04) (prog-if 80 [Master])
>         Subsystem: Gateway 2000 Unknown device 0063
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 0
>         Region 0: [virtual] Memory at 000001f0 (32-bit, 
> non-prefetchable) [disabled] [size=8]
>         Region 1: [virtual] Memory at 000003f0 (type 3, 
> non-prefetchable) [disabled] [size=1]
>         Region 2: [virtual] Memory at 00000170 (32-bit, 
> non-prefetchable) [disabled] [size=8]
>         Region 3: [virtual] Memory at 00000370 (type 3, 
> non-prefetchable) [disabled] [size=1]
>         Region 4: I/O ports at ffa0 [size=16]
> 00: 86 80 4b 24 05 00 80 02 04 80 01 01 00 00 00 00
> 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 20: a1 ff 00 00 00 00 00 00 00 00 00 00 7b 10 63 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 40: 07 a3 03 a3 00 00 00 00 05 00 01 02 00 00 00 00
> 50: 00 00 00 00 50 14 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 47 0f 00 00 00 00 00 00
> 
> 00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB Controller
> #1 
> (rev 04) (prog-if 00 [UHCI])
>         Subsystem: Gateway 2000 Unknown device 0063
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 0
>         Interrupt: pin D routed to IRQ 5
>         Region 4: I/O ports at ef40 [size=32]
> 00: 86 80 42 24 05 00 80 02 04 00 03 0c 00 00 00 00
> 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 41 ef 00 00 00 00 00 00 00 00 00 00 7b 10 63 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 05 04 00 00
> 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 2f 00 00 03 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 47 0f 00 00 00 00 00 00
> 
> 00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus Controller (rev 04)
>         Subsystem: Gateway 2000 Unknown device 0063
>         Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Interrupt: pin B routed to IRQ 10
>         Region 4: I/O ports at efa0 [size=16]
> 00: 86 80 43 24 01 00 80 02 04 00 05 0c 00 00 00 00
> 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 20: a1 ef 00 00 00 00 00 00 00 00 00 00 7b 10 63 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 0a 02 00 00
> 40: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 47 0f 00 00 00 00 00 00
> 
> 00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB Controller
> #1 
> (rev 04) (prog-if 00 [UHCI])
>         Subsystem: Gateway 2000 Unknown device 0063
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 0
>         Interrupt: pin C routed to IRQ 9
>         Region 4: I/O ports at ef80 [size=32]
> 00: 86 80 44 24 05 00 80 02 04 00 03 0c 00 00 00 00
> 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 81 ef 00 00 00 00 00 00 00 00 00 00 7b 10 63 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 09 03 00 00
> 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 2f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 47 0f 00 00 00 00 00 00
> 
> 02:09.0 VGA compatible controller: nVidia Corporation NV34 [GeForce
> FX 
> 5500] (rev a1) (prog-if 00 [VGA])
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 248 (1250ns min, 250ns max)

Here we go.  Latency of 248 clock cycles at 33 MHz.  This card can stay
on the bus for a maximum of 7.5 usecs at a time.  And if nothing is
waiting for the bus when it finishes, it can grab it again immediately
for another 7.5 usec.

I2C bus transactions on the HVR-1600, with the cx18 driver from a few
days ago, are running with a clock period of 20 usec.  Transitions of
SCL and SDA lines are commanded on 1/4 period intervals (roughly 5 usec
intervals).

You should try the latest cx18 driver at:

http://linuxtv.org/hg/~hverkuil/cx18/archive/tip.tar.bz2

Hans has started to incorporate changes to properly time I2C SCL and SDA
line transitions on the cx23418.  Please try it and see if the "Huh, no
EEPROM" and the "(ret=-121)" messages go away.


>         Interrupt: pin A routed to IRQ 11
>         Region 0: Memory at fd000000 (32-bit, non-prefetchable)
> [size=16M]
>         Region 1: Memory at e0000000 (32-bit, prefetchable)
> [size=128M]
>         [virtual] Expansion ROM at dc600000 [disabled] [size=128K]
>         Capabilities: [60] Power Management version 2
>                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
> 00: de 10 26 03 07 00 b0 02 a1 00 00 03 00 f8 00 00
> 10: 00 00 00 fd 08 00 00 e0 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 60 00 00 00 00 00 00 00 0b 01 05 01
> 40: 00 00 00 00 02 00 30 00 17 02 00 1f 00 00 00 00
> 50: 01 00 00 00 01 00 00 00 ce d6 23 00 0f 00 00 00
> 60: 01 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 
> 02:0b.0 Multimedia video controller: Conexant CX23418 Single-Chip
> MPEG-2 
> Encoder with Integrated Analog Video/Broadcast Audio Decoder
>         Subsystem: Hauppauge computer works Inc. Unknown device 7444
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- 
> ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 (500ns min, 50000ns max), Cache Line Size: 16
> bytes
>         Interrupt: pin A routed to IRQ 9
>         Region 0: Memory at f8000000 (32-bit, non-prefetchable)
> [size=64M]
>         Capabilities: [44] Vital Product Data
>         Capabilities: [4c] Power Management version 2
>                 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA 
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
> 00: f1 14 7a 5b 16 01 90 02 00 00 00 04 04 40 00 00
> 10: 00 00 00 f8 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 70 00 44 74
> 30: 00 00 00 00 44 00 00 00 00 00 00 00 09 01 02 c8
> 40: 7b 1f 00 01 03 4c 00 00 00 00 00 00 01 00 22 00
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 
> 02:0c.0 Multimedia audio controller: Aureal Semiconductor Vortex 2
> (rev fa)
>         Subsystem: Voyetra Technologies Montego II
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 32 (1000ns min, 3000ns max), Cache Line Size: 16
> bytes
>         Interrupt: pin A routed to IRQ 10
>         Region 0: Memory at fea80000 (32-bit, non-prefetchable)
> [size=256K]
>         Region 1: I/O ports at dff0 [size=8]
>         Region 2: I/O ports at dfe0 [size=8]
>         Capabilities: [dc] Power Management version 1
>                 Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA 
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
> 00: eb 12 02 00 07 01 90 02 fa 00 01 04 04 20 00 00
> 10: 00 00 a8 fe f1 df 00 00 e1 df 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 53 50 56 33
> 30: 00 00 00 00 dc 00 00 00 00 00 00 00 0a 01 04 0c
> 40: 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 21 04
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 
> 02:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 
> Gigabit Ethernet (rev 10)
>         Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit
> Ethernet
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- 
> ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium
> >TAbort- 
> <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 (8000ns min, 16000ns max), Cache Line Size: 32
> bytes
>         Interrupt: pin A routed to IRQ 11
>         Region 0: I/O ports at d800 [size=256]
>         Region 1: Memory at feadfc00 (32-bit, non-prefetchable)
> [size=256]
>         Expansion ROM at dc620000 [disabled] [size=128K]
>         Capabilities: [dc] Power Management version 2
>                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> PME(D0-,D1+,D2+,D3hot+,D3cold+)
>                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
> 00: ec 10 69 81 17 01 b0 02 10 00 00 02 08 40 00 00
> 10: 01 d8 00 00 00 fc ad fe 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 ec 10 69 81
> 30: 00 00 a6 fe dc 00 00 00 00 00 00 00 0b 01 20 40
> 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 c2 f7
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

So the latencies on PCI bus segment 0000:02, excluding the cx23418 are:

PCI-PCI bridge = 32
Nvidia = 248
Sound card = 32
Ethernet = 64

That's a worst case wait for the cx23418 of 11.4 usecs, but
realistically, only the nvidia card's 7.5 usecs probably matters.

The older versions of the cx18 driver probably weren't accounting for
this time properly for I2C bus transactions.



> lsmod
> --------------------------
> Module                  Size  Used by
> nfs                   246124  1
> lockd                  67592  2 nfs
> sunrpc                172412  3 nfs,lockd
> af_packet              24840  2
> ipv6                  273892  16
> container               5504  0
> sbs                    19592  0
> ac                      6148  0
> dock                   10656  0
> video                  18060  0
> button                  8976  0
> battery                11012  0
> lp                     12580  0
> snd_au8830             53556  1
> gameport               16776  2 snd_au8830
> snd_ac97_codec        100644  1 snd_au8830
> snd_pcm_oss            44672  0
> snd_mixer_oss          17664  1 snd_pcm_oss
> snd_pcm                80388  3 snd_au8830,snd_ac97_codec,snd_pcm_oss
> snd_page_alloc         11400  1 snd_pcm
> ac97_bus                3200  1 snd_ac97_codec
> snd_mpu401_uart         9600  1 snd_au8830
> snd_seq_dummy           4740  0
> snd_seq_oss            33152  0
> s5h1409                10244  0
> snd_seq_midi            9600  0
> snd_rawmidi            25728  2 snd_mpu401_uart,snd_seq_midi
> snd_seq_midi_event      8448  2 snd_seq_oss,snd_seq_midi
> snd_seq                53232  6 
> snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
> snd_timer              24324  2 snd_pcm,snd_seq
> snd_seq_device          9228  5 
> snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
> lirc_atiusb            19360  0
> nvidia               3932108  8

Hmmm. nvidia's 3932108 is an order of magnitude more memory than any
other module in the list.  ipv6 and nfs are the others that come close,
for comparison.

> lirc_dev               15860  1 lirc_atiusb
> parport_pc             37412  1
> snd                    54660  13 
> snd_au8830,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_mpu401_uart,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
> cs5345                  4948  0
> tuner                  27724  0
> tea5767                 8324  1 tuner
> tda8290                14340  1 tuner
> tda18271               33416  1 tda8290
> tda827x                11396  1 tda8290
> tuner_xc2028           22704  1 tuner
> xc5000                 11396  1 tuner
> tda9887                11908  1 tuner
> tuner_simple           16400  1 tuner
> tuner_types            14976  1 tuner_simple
> mt20xx                 13704  1 tuner
> tea5761                 6276  1 tuner
> parport                37448  2 lp,parport_pc
> pcspkr                  4224  0
> serio_raw               8068  0
> psmouse                39952  0
> soundcore               8800  1 snd
> cx18                   91200  0
> dvb_core               80796  1 cx18
> i2c_algo_bit            7428  1 cx18
> cx2341x                13572  1 cx18
> v4l2_common            12672  4 cs5345,tuner,cx18,cx2341x
> videodev               34560  2 tuner,cx18
> v4l1_compat            16004  2 cx18,videodev
> tveeprom               13572  1 cx18
> i2c_core               26112  17 
> s5h1409,cs5345,tuner,tea5767,tda8290,tda18271,tda827x,tuner_xc2028,xc5000,tda9887,tuner_simple,mt20xx,tea5761,cx18,i2c_algo_bit,v4l2_common,tveeprom
> iTCO_wdt               11940  0
> iTCO_vendor_support     4868  1 iTCO_wdt
> shpchp                 34580  0
> pci_hotplug            32704  1 shpchp
> intel_agp              25620  1
> agpgart                35016  2 nvidia,intel_agp
> evdev                  11136  3
> ext3                  133896  1
> jbd                    60456  1 ext3
> mbcache                 9732  1 ext3
> sg                     36764  0
> sr_mod                 17828  0
> cdrom                  37536  1 sr_mod
> sd_mod                 30336  3
> floppy                 60004  0
> uhci_hcd               26640  0
> usbcore               138632  3 lirc_atiusb,uhci_hcd
> ata_piix               17540  2
> ata_generic             8452  0
> libata                125168  2 ata_piix,ata_generic
> scsi_mod              147084  4 sg,sr_mod,sd_mod,libata
> r8169                  32260  0
> thermal                14344  0
> processor              32072  1 thermal
> fan                     5764  0
> fuse                   47124  1
> apparmor               40728  0
> commoncap               8320  1 apparmor
> 
> 
> 
> 
> Andy Walls wrote:
> > On Fri, 2008-04-11 at 17:03 -0400, Andy Walls wrote:
> >   
> >> Scott wrote:
> >>
> >>     
> >>> I have followed the instructions at 
> >>> http://marc.info/?l=linux-video&m=119834005505084&w=2
> >>>
> >>> and i get invalid EEPROM errors in the dmesg
> >>>       
> >> This is probably a problem with driving the I2C bus on the board,
> which
> >> a number of users are experiencing.  The problem manifestation
> appears
> >> to be dependent on the system the card is installed in.
> >>
> >> There has been some discussion on the ivtv-devel list.  To make the
> cx18
> >> driver work for all systems reliably, it would help if we can start
> to
> >> understand why it fails for some people.  (I can't reproduce the
> problem
> >> on my system).
> >>
> >> I think the problem is PCI bus related (my opinion), so a work
> around
> >> for the problem outside of the cx18 driver could involve PCI bus
> latency
> >> timer configuration or removing devices or drivers that make heavy
> use
> >> of the PCI bus.
> >>
> >> In addition to the dmesg output you provided, can you provide the
> output
> >> of the following as root:
> >>
> >> # lspci -tv
> >> # lspci -vvvxxx
> >> # lsmod
> >>
> >>
> >> Also, if you can experiment with running your system (text mode if
> >> necessary) without the modules for the NVidia card and/or the
> Gigabit
> >> Ethernet card loaded, and see if you can modprobe cx18 with
> different
> >> results.
> >>
> >>     

> >>> [   31.476180] cx18:  Start initialization, version 0.1.0
> >>> [   31.476281] cx18-0: Initializing card #0
> >>> [   31.476287] cx18-0: Autodetected Hauppauge card
> >>> [   31.476319] ACPI: PCI Interrupt 0000:02:0b.0[A] -> Link [LNKH]
> -> GSI 
> >>> 9 (level, low) -> IRQ 9
> >>> [   31.476337] cx18-0: Unreasonably low latency timer, setting to
> 64 
> >>> (was 32)
> >>> [   31.476602] cx18-0: cx23418 revision 01010000 (B)
> >>> [   31.605258] tveeprom 0-0050: Huh, no eeprom present (err=-121)?
> >>> [   31.605267] tveeprom 0-0050: Encountered bad packet header
> [07]. 
> >>> Corrupt or not a Hauppauge eeprom.
> >>> [   31.605272] cx18-0: Invalid EEPROM
> >>> [   31.941505] tuner 1-0043: chip found @ 0x86 (cx18 i2c driver
> #0-1)
> >>> [   31.941547] tda9887 1-0043: creating new instancels 
> >>> [   31.941551] tda9887 1-0043: tda988[5/6/7] found
> >>> [   32.009093] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver
> #0-1)
> >>> [   32.009161] cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver
> #0-0)
> >>> [   32.138843] nvidia: module license 'NVIDIA' taints kernel.
> >>> [   32.245940] cx18-0: Disabled encoder IDX device
> >>> [   32.246076] cx18-0: Registered device video0 for encoder MPEG
> (2 MB)
> >>> [   32.246081] cx18_dvb_register()
> >>> [   32.246085] DVB: registering new adapter (cx18)
> >>> [   32.536068] s5h1409_readreg: readreg error (ret == -121)
> >>> [   32.536155] cx18: frontend initialization failed
> >>> [   32.536480] cx18-0: DVB failed to register
> >>> [   32.536572] cx18-0: Registered device video32 for encoder YUV
> (2 MB)
> >>> [   32.536635] cx18-0: Registered device vbi0 for encoder VBI (1
> MB)
> >>> [   32.536707] cx18-0: Registered device video24 for encoder PCM
> audio 
> >>> (1 MB)
> >>> [   32.536768] cx18-0: Registered device radio0 for encoder radio
> >>> [   32.537246] cx18-0: Error -12 registering devices
> >>> [   32.537719] tda9887 1-0043: destroying instance
> >>> [   32.539445] cx18-0: Error -12 on initialization
> >>> [   32.539458] cx18: probe of 0000:02:0b.0 failed with error -12
> >>>       
> >
> > Ack I missed this.  -12 is -ENOMEM.  You may need to add a line
> similar
> > to the following to /etc/sysctl.conf:
> >
> >       vm.min_free_kbytes = 16384
> >
> > To get rid of the ENOMEM problem.

Hmmm.  You have a system level memory shortage problem, which I'm
probably not the best person to have help solve.  I can tell your system
is 256 kB shy of 384 MB physical memory.  I don't know how to tell what
modules are consuming what size dynamic memory allocations.

However, specifically for the cx18 driver, you may want to try

# modprobe -r cx18
# echo 65535 > /proc/sys/vm/min_free_kbytes
# modprobe cx18 enc_mpg_buffers=1 enc_ts_buffers=0 enc_yuv_buffers=0 
enc_vbi_buffers=0 enc_pcm_buffers=0

just to see if you can get the driver to load.

Regards,
Andy


> >
> > That still won't fix the I2C problem that gives you the EEPROM
> messages
> > (-121 is -EREMOTEIO, refering to the remote I2C on the HVR-1600). 
> >
> > -Andy 
> >
> >   



_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to