Bug 7384

Summary: Error allocating mem resources [CardBus]
Product: Drivers Reporter: Alvaro Arranz Garcia (aarranz)
Component: PCMCIAAssignee: Markus Rechberger (Markus.Rechberger)
Status: CLOSED CODE_FIX    
Severity: normal    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.18 Subsystem:
Regression: --- Bisected commit-id:
Attachments: full dmesg output
full output of "lspci -vvxx"

Description Alvaro Arranz Garcia 2006-10-18 12:33:19 UTC
Distribution: Debian
Kernels tested: 2.6.17, 2.6.18, Debian 2.6.18-1-686
Hardware: Satellite Pro M70 + Pinnacle PCTV Hybrid Pro Card


dmesg (I will attach full output in next message):

BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000d2000 - 00000000000d4000 (reserved)
 BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000005fee0000 (usable)
 BIOS-e820: 000000005fee0000 - 000000005feea000 (ACPI data)
 BIOS-e820: 000000005feea000 - 000000005ff00000 (ACPI NVS)
 BIOS-e820: 000000005ff00000 - 0000000060000000 (reserved)
 BIOS-e820: 00000000e0000000 - 00000000f0006000 (reserved)
 BIOS-e820: 00000000f0008000 - 00000000f000c000 (reserved)
 BIOS-e820: 00000000fed20000 - 00000000fed90000 (reserved)
 BIOS-e820: 00000000ff000000 - 0000000100000000 (reserved)
638MB HIGHMEM available.
896MB LOWMEM available.
...
pnp: PnP ACPI init
pnp: PnP ACPI: found 9 devices
PnPBIOS: Disabled by ACPI PNP
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:01: ioport range 0xfe00-0xfe7f has been reserved
pnp: 00:01: ioport range 0xfe80-0xfeff has been reserved
pnp: 00:01: ioport range 0xff00-0xff7f has been reserved
PCI: Bridge: 0000:00:01.0
  IO window: 3000-3fff
  MEM window: b8100000-b81fffff
  PREFETCH window: c8000000-cfffffff
PCI: Bridge: 0000:00:1c.0
  IO window: 4000-4fff
  MEM window: bc000000-bfffffff
  PREFETCH window: d0000000-d3ffffff
PCI: Bridge: 0000:00:1c.1
  IO window: 5000-5fff
  MEM window: c0000000-c3ffffff
  PREFETCH window: d4000000-d7ffffff
PCI: Bus 7, cardbus bridge: 0000:06:04.0
  IO window: 00006400-000064ff
  IO window: 00006800-000068ff
  PREFETCH window: 68000000-69ffffff
  MEM window: 6a000000-6bffffff
PCI: Bridge: 0000:00:1e.0
  IO window: 6000-6fff
  MEM window: c4000000-c40fffff
  PREFETCH window: 68000000-69ffffff
...
pccard: CardBus card inserted into slot 0
PCI: Failed to allocate mem resource #0:1000000@6c000000 for 0000:07:00.2
Linux video capture interface: v2.00
...


cat /proc/iomem (after card insert):

00000000-0009f7ff : System RAM
  00000000-00000000 : Crash kernel
0009f800-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cffff : Video ROM
000d0000-000d0fff : Adapter ROM
000d2000-000d3fff : reserved
000f0000-000fffff : System ROM
00100000-5fedffff : System RAM
  00100000-0027f97d : Kernel code
  0027f97e-0030f7b3 : Kernel data
5fee0000-5fee9fff : ACPI Tables
5feea000-5fefffff : ACPI Non-volatile Storage
5ff00000-5fffffff : reserved
68000000-69ffffff : PCI Bus #06
  68000000-69ffffff : PCI CardBus #07
6a000000-6bffffff : PCI CardBus #07
b8000000-b80003ff : 0000:00:1d.7
  b8000000-b80003ff : ehci_hcd
b8000400-b80004ff : 0000:00:1e.2
  b8000400-b80004ff : Intel ICH6
b8000800-b80009ff : 0000:00:1e.2
  b8000800-b80009ff : Intel ICH6
b8000c00-b8000fff : 0000:00:1f.2
  b8000c00-b8000fff : ahci
b8100000-b81fffff : PCI Bus #01
  b8100000-b810ffff : 0000:01:00.0
  b8120000-b813ffff : 0000:01:00.0
bc000000-bfffffff : PCI Bus #02
c0000000-c3ffffff : PCI Bus #03
c4000000-c40fffff : PCI Bus #06
  c4000000-c4003fff : 0000:06:04.2
  c4004000-c4005fff : 0000:06:04.3
  c4006000-c40060ff : 0000:06:01.0
    c4006000-c40060ff : 8139too
  c4006400-c40064ff : 0000:06:04.4
    c4006400-c40064ff : sdhci:slot2
  c4006800-c4006fff : 0000:06:04.2
    c4006800-c4006fff : ohci1394
  c4007000-c4007fff : 0000:06:02.0
    c4007000-c4007fff : ipw2200
  c4008000-c4008fff : 0000:06:04.0
    c4008000-c4008fff : yenta_socket
  c4009000-c40090ff : 0000:06:04.4
    c4009000-c40090ff : sdhci:slot1
  c4009400-c40094ff : 0000:06:04.4
    c4009400-c40094ff : sdhci:slot0
c8000000-cfffffff : PCI Bus #01
  c8000000-cfffffff : 0000:01:00.0
d0000000-d3ffffff : PCI Bus #02
d4000000-d7ffffff : PCI Bus #03
e0000000-f0005fff : reserved
f0008000-f000bfff : reserved
fed20000-fed8ffff : reserved
ff000000-ffffffff : reserved


lspci -vvxx (I will attach full output in next message):

...
06:04.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
Subsystem: Toshiba America Info Systems Unknown device ff00
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: 168, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 169
Region 0: Memory at c4008000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=06, secondary=07, subordinate=0a, sec-latency=176
Memory window 0: 68000000-69fff000 (prefetchable)
Memory window 1: 6a000000-6bfff000
I/O window 0: 00006400-000064ff
I/O window 1: 00006800-000068ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
16-bit legacy interface ports at 0001
00: 4c 10 31 80 07 00 10 02 00 00 07 06 08 a8 82 00
10: 00 80 00 c4 a0 00 00 22 06 07 0a b0 00 00 00 68
20: 00 f0 ff 69 00 00 00 6a 00 f0 ff 6b 00 64 00 00
30: fc 64 00 00 00 68 00 00 fc 68 00 00 0a 01 00 05
40: 79 11 00 ff 01 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
...

07: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 169
Region 0: Memory at 6a000000 (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-
00: f1 14 00 88 06 00 90 02 05 00 00 04 00 40 80 00
10: 00 00 00 6a 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 ab 12 88 17
30: 00 00 00 00 44 00 00 00 00 00 00 00 a9 01 14 37

07: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 169
Region 0: Memory at 6b000000 (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-
00: f1 14 01 88 06 00 90 02 05 00 80 04 00 40 80 00
10: 00 00 00 6b 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 ab 12 88 17
30: 00 00 00 00 4c 00 00 00 00 00 00 00 a9 01 04 ff

07: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 169
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 02 88 00 00 90 02 05 00 80 04 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 ab 12 88 17
30: 00 00 00 00 4c 00 00 00 00 00 00 00 a9 01 06 58
Comment 1 Alvaro Arranz Garcia 2006-10-18 12:36:02 UTC
Created attachment 9299 [details]
full dmesg output
Comment 2 Alvaro Arranz Garcia 2006-10-18 12:37:26 UTC
Created attachment 9300 [details]
full output of "lspci -vvxx"
Comment 3 Alvaro Arranz Garcia 2006-10-18 12:42:52 UTC
oops, correct cat /proc/iomem output (with card inserted):
00000000-0009f7ff : System RAM
  00000000-00000000 : Crash kernel
0009f800-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cffff : Video ROM
000d0000-000d0fff : Adapter ROM
000d2000-000d3fff : reserved
000f0000-000fffff : System ROM
00100000-5fedffff : System RAM
  00100000-0027f97d : Kernel code
  0027f97e-0030f7b3 : Kernel data
5fee0000-5fee9fff : ACPI Tables
5feea000-5fefffff : ACPI Non-volatile Storage
5ff00000-5fffffff : reserved
68000000-69ffffff : PCI Bus #06
  68000000-69ffffff : PCI CardBus #07
6a000000-6bffffff : PCI CardBus #07
  6a000000-6affffff : 0000:07:00.0
    6a000000-6affffff : cx88[0]
  6b000000-6bffffff : 0000:07:00.1
    6b000000-6bffffff : cx88[0]
b8000000-b80003ff : 0000:00:1d.7
  b8000000-b80003ff : ehci_hcd
b8000400-b80004ff : 0000:00:1e.2
  b8000400-b80004ff : Intel ICH6
b8000800-b80009ff : 0000:00:1e.2
  b8000800-b80009ff : Intel ICH6
b8000c00-b8000fff : 0000:00:1f.2
  b8000c00-b8000fff : ahci
b8100000-b81fffff : PCI Bus #01
  b8100000-b810ffff : 0000:01:00.0
  b8120000-b813ffff : 0000:01:00.0
bc000000-bfffffff : PCI Bus #02
c0000000-c3ffffff : PCI Bus #03
c4000000-c40fffff : PCI Bus #06
  c4000000-c4003fff : 0000:06:04.2
  c4004000-c4005fff : 0000:06:04.3
  c4006000-c40060ff : 0000:06:01.0
    c4006000-c40060ff : 8139too
  c4006400-c40064ff : 0000:06:04.4
    c4006400-c40064ff : sdhci:slot2
  c4006800-c4006fff : 0000:06:04.2
    c4006800-c4006fff : ohci1394
  c4007000-c4007fff : 0000:06:02.0
    c4007000-c4007fff : ipw2200
  c4008000-c4008fff : 0000:06:04.0
    c4008000-c4008fff : yenta_socket
  c4009000-c40090ff : 0000:06:04.4
    c4009000-c40090ff : sdhci:slot1
  c4009400-c40094ff : 0000:06:04.4
    c4009400-c40094ff : sdhci:slot0
c8000000-cfffffff : PCI Bus #01
  c8000000-cfffffff : 0000:01:00.0
d0000000-d3ffffff : PCI Bus #02
d4000000-d7ffffff : PCI Bus #03
e0000000-f0005fff : reserved
f0008000-f000bfff : reserved
fed20000-fed8ffff : reserved
ff000000-ffffffff : reserved
Comment 4 Markus Rechberger 2007-02-19 03:06:20 UTC
Can you retry with the latest kernel? 
http://lkml.org/lkml/2006/12/18/266 that issue has been solved a while ago.
Comment 5 Markus Rechberger 2007-02-21 06:46:55 UTC
Some more information about getting your device work:
http://linuxtv.org/v4lwiki/index.php/Pinnacle/310c

I played around with it a while ago and got radio and analogue TV work, due the 
lack of a DVB-T signal I didn't work on DVB-T

The actual issue is resolved already.
Comment 6 Alvaro Arranz Garcia 2007-02-21 15:42:45 UTC
Thank you :).

I don't have to much time, but I will try to test the driver from your git
repository :).

Thank you again :)