Difference between revisions of "Talk:Pinnacle PCTV Hybrid Pro Card (310c)"

From LinuxTVWiki
Jump to: navigation, search
(/proc/iomem)
(PCI allocation failed)
Line 5: Line 5:
 
PCI: Failed to allocate mem resource #0:1000000@38000000 for 0000:03:00.2
 
PCI: Failed to allocate mem resource #0:1000000@38000000 for 0000:03:00.2
  
http://bugzilla.kernel.org/show_bug.cgi?id=1840
+
----
 +
 
 +
to solve that problem change following entry in setup-bus.c in the kernel sources:
 +
 
 +
old entry:
 +
#define CARDBUS_MEM_SIZE        (32*1024*1024)
 +
new entry:
 +
#define CARDBUS_MEM_SIZE        (48*1024*1024)
 +
 
 +
and recompile the kernel.
 +
 
 +
<pre>
 +
$ cat /proc/iomem
 +
...
 +
30000000-35ffffff : PCI Bus #02
 +
  30000000-32ffffff : PCI CardBus #03
 +
36000000-360003ff : 0000:00:1f.1
 +
39000000-3bffffff : PCI CardBus #03
 +
  39000000-39ffffff : 0000:03:00.0
 +
  3a000000-3affffff : 0000:03:00.1
 +
  3b000000-3bffffff : 0000:03:00.2 <- this one failed to allocate previously
 +
3c000000-3effffff : PCI CardBus #07
 +
41000000-43ffffff : PCI CardBus #07
 +
...
 +
</pre>
 +
 
 +
<pre>
 +
$ lspci -vvv
 +
03:00.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
 +
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
 +
        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 A routed to IRQ 10
 +
        Region 0: Memory at 39000000 (32-bit, non-prefetchable) [disabled] [size=16M]
 +
        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-
 +
 
 +
03:00.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
 +
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
 +
        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 A routed to IRQ 10
 +
        Region 0: Memory at 3a000000 (32-bit, non-prefetchable) [disabled] [size=16M]
 +
        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-
 +
 
 +
03:00.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
 +
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
 +
        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 A routed to IRQ 10
 +
NEW --> Region 0: Memory at 3b000000 (32-bit, non-prefetchable) [disabled] [size=16M]
 +
        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-
 +
</pre>
  
 
==== Windows Allocation ====
 
==== Windows Allocation ====

Revision as of 00:56, 19 December 2006

Faq

PCI allocation failed

PCI: Failed to allocate mem resource #0:1000000@38000000 for 0000:03:00.2


to solve that problem change following entry in setup-bus.c in the kernel sources:

old entry:

#define CARDBUS_MEM_SIZE        (32*1024*1024)

new entry:

#define CARDBUS_MEM_SIZE        (48*1024*1024)

and recompile the kernel.

$ cat /proc/iomem
...
30000000-35ffffff : PCI Bus #02
  30000000-32ffffff : PCI CardBus #03
36000000-360003ff : 0000:00:1f.1
39000000-3bffffff : PCI CardBus #03
  39000000-39ffffff : 0000:03:00.0
  3a000000-3affffff : 0000:03:00.1
  3b000000-3bffffff : 0000:03:00.2 <- this one failed to allocate previously
3c000000-3effffff : PCI CardBus #07
41000000-43ffffff : PCI CardBus #07
...
$ lspci -vvv
03:00.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
        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 A routed to IRQ 10
        Region 0: Memory at 39000000 (32-bit, non-prefetchable) [disabled] [size=16M]
        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-

03:00.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
        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 A routed to IRQ 10
        Region 0: Memory at 3a000000 (32-bit, non-prefetchable) [disabled] [size=16M]
        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-

03:00.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
        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 A routed to IRQ 10
NEW --> Region 0: Memory at 3b000000 (32-bit, non-prefetchable) [disabled] [size=16M]
        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-

Windows Allocation

allocation in windows:

Cardbus #1:
E0207000 - E0207FFF
FEBFE000 - FEBFEFFF
FABFE000 - FEBFDFFF
E/A FF00 - FFFF
E/A FD00 - FDFF
IRQ 10
000DF000 - 000DFFFF

Cardbus #2:
E0208000 - E0208FFF
FABFD000 - FABFDFFF
E4000000 - E7FFFFFF
E/A FC00 - FCFF
E/A FB00 - FBFF
IRQ 10
000DE000 - 000DEFFF

PCMCIA:
Function 0: IRQ 10, FB000000 - FBFFFFFF - dvb-t/analog TV tuner card
Function 1: IRQ 10, FC000000 - FCFFFFFF - Pinnacle PCTV 310c Audio AVStream Device
Function 2: IRQ 10, FD000000 - FDFFFFFF - TS capture device

/proc/iomem

30000000-33ffffff : PCI Bus #01
  30000000-31ffffff : PCI CardBus #02
  32000000-33ffffff : PCI CardBus #06
34000000-340003ff : 0000:00:1f.1
36000000-37ffffff : PCI CardBus #02
38000000-39ffffff : PCI CardBus #06
PCI: Bus 2, cardbus bridge: 0000:01:06.0
  IO window: 00003000-000030ff
  IO window: 00003400-000034ff
  PREFETCH window: 30000000-31ffffff
  MEM window: 36000000-37ffffff
PCI: Bus 6, cardbus bridge: 0000:01:06.1
  IO window: 00003800-000038ff
  IO window: 00003c00-00003cff
  PREFETCH window: 32000000-33ffffff
  MEM window: 38000000-39ffffff
PCI: Bridge: 0000:00:1e.0
  IO window: 3000-3fff
  MEM window: e0200000-e07fffff
  PREFETCH window: 30000000-33ffffff

lspci -vvv

03:00.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
        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 (5000ns min, 13750ns max)
        Interrupt: pin A routed to IRQ 10
        Region 0: Memory at 36000000 (32-bit, non-prefetchable) [size=16M]
        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-

03:00.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
        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 (1000ns min, 63750ns max)
        Interrupt: pin A routed to IRQ 10
        Region 0: Memory at 37000000 (32-bit, non-prefetchable) [size=16M]
        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-

03:00.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
        Subsystem: Yuan Yuan Enterprise Co., Ltd. Unknown device 1788
        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 A routed to IRQ 10
        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-