Edimax EP-4103 (very long)

Michal Krause michal na krause.cz
Neděle Únor 4 22:45:05 CET 2001


Zdravim,

uz dva dny se snazim rozbehat CardBus kartu Edimax EP-4103, bohuzel
uspechu jsem zatim nedoznal. Problem asi vznika uz nekde v PCI
subsystemu pri pridelovani resourcu, soude podle vypisu z logu.
Docela me to stve, protoze z podle informaci od vyrobce by mela ta karta
chodit se standardnim ovladacem pro rtl8139, ale ten se nerozebehne
proste proto, ze karta nedostane pridelene pozadovane zdroje.

Tohle jsou hlasky tykajici se PCI pri bootovani a zastrceni karty do
slotu:


kernel: PCI: BIOS32 Service Directory structure at 0xc00f0280
kernel: PCI: BIOS32 Service Directory entry at 0xf0210
kernel: PCI: BIOS probe returned s=00 hw=01 ver=02.10 l=01
kernel: PCI: PCI BIOS revision 2.10 entry at 0xf0200, last bus=1
kernel: PCI: Using configuration type 1
kernel: PCI: Probing PCI hardware
kernel: PCI: IDE base address fixup for 00:10.0
kernel: PCI: Scanning for ghost devices on bus 0
kernel: PCI: Scanning for ghost devices on bus 1
kernel: PCI: IRQ init
kernel: PCI: Interrupt Routing Table found at 0xc00fb9d0
kernel: PCI: Interrupt router not found at ff:ff
kernel: PCI: IRQ fixup
kernel: PCI: Allocating resources
kernel: PCI: Resource e0000000-e3ffffff (f=1208, d=0, p=0)
kernel: PCI: Resource 00008000-000080ff (f=101, d=0, p=0)
kernel: PCI: Resource 82200000-82200fff (f=200, d=0, p=0)
kernel: PCI: Resource 00006050-0000605f (f=101, d=0, p=0)
kernel: PCI: Resource 82400000-82400fff (f=200, d=0, p=0)
kernel: PCI: Resource 81000000-81ffffff (f=200, d=0, p=0)
kernel: PCI: Resource 00007000-000070ff (f=101, d=0, p=0)
kernel: PCI: Resource 80100000-80100fff (f=200, d=0, p=0)
kernel: PCI: Sorting device list...
kernel: ALI15X3: IDE controller on PCI bus 00 dev 80
kernel: IRQ for 00:10.0:0 -> not found in routing table
kernel: Linux I2O PCI support (c) 1999 Red Hat Software.
kernel: i2o: Checking for PCI I2O controllers...
kernel: Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
kernel: Trident 4DWave/SiS 7018/ALi 5451 PCI Audio, version 0.14.6, 21:47:55 Feb  4 2001
kernel: IRQ for 00:06.0:0 -> PIRQ 08, mask 0400, excl 0000 -> newirq=10 ... failed
kernel: PCI: Guessed IRQ 10 for device 00:06.0
kernel: IRQ for 00:13.0:0 -> PIRQ 02, mask 0800, excl 0000 -> newirq=11 ... failed
kernel: PCI: Guessed IRQ 11 for device 00:13.0
kernel: PCI: The same IRQ used for device 00:13.1
kernel: IRQ for 00:13.1:0 -> PIRQ 02, mask 0800, excl 0000 -> newirq=11 ... failed
kernel: PCI: Guessed IRQ 11 for device 00:13.1
kernel: PCI: The same IRQ used for device 00:13.0
kernel: Intel PCIC probe: not found.
kernel: Yenta IRQ list 0238, PCI irq11
kernel: Socket status: 30000006
kernel: Yenta IRQ list 0238, PCI irq11
kernel: Socket status: 30000820
[...]
kernel: PCI: Failed to allocate resource 0 for PCI device 10ec:8139
kernel:   got res[11000000:110001ff] for resource 1 of PCI device 10ec:8139
kernel: PCI: Enabling device 06:00.0 (0000 -> 0003)
kernel: IRQ for 06:00.0:0 -> not found in routing table


a tohle vystup lspci -vv:


00:00.0 Host bridge: Acer Laboratories Inc. [ALi] M1621 (rev 05)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
	Latency: 0
	Region 0: Memory at e0000000 (32-bit, prefetchable) [size=64M]
	Capabilities: [b0] AGP version 1.0
		Status: RQ=32 SBA+ 64bit- FW- Rate=x1,x2
		Command: RQ=32 SBA- AGP- 64bit- FW- Rate=x1

00:01.0 PCI bridge: Acer Laboratories Inc. [ALi] M5247 (rev 01) (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=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00007000-00007fff
	Memory behind bridge: 80100000-820fffff
	BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-

00:06.0 Multimedia audio controller: Acer Laboratories Inc. [ALi]: Unknown device 5451 (rev 01)
	Subsystem: Acer Incorporated [ALI]: Unknown device 1010
	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 (500ns min, 6000ns max)
	Interrupt: pin A routed to IRQ 10
	Region 0: I/O ports at 8000 [size=256]
	Region 1: Memory at 82200000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [dc] 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:07.0 ISA bridge: Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV]
	Subsystem: Acer Incorporated [ALI]: Unknown device 1010
	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
	Capabilities: [a0] 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:10.0 IDE interface: Acer Laboratories Inc. [ALi] M5229 IDE (rev c3) (prog-if fa)
	Subsystem: Acer Incorporated [ALI]: Unknown device 1010
	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 (500ns min, 1000ns max)
	Interrupt: pin A routed to IRQ 15
	Region 4: I/O ports at 6050 [size=16]
	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:11.0 Bridge: Acer Laboratories Inc. [ALi] M7101 PMU
	Subsystem: Acer Incorporated [ALI]: Unknown device 1010
	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-

00:13.0 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
	Subsystem: Acer Incorporated [ALI]: Unknown device 1010
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 168
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=176
	Memory window 0: 10400000-107ff000 (prefetchable)
	Memory window 1: 10800000-10bff000
	I/O window 0: 00000000-00000003
	I/O window 1: 00000000-00000003
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
	16-bit legacy interface ports at 0001

00:13.1 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
	Subsystem: Acer Incorporated [ALI]: Unknown device 1010
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 168
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 10001000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=06, subordinate=06, sec-latency=176
	Memory window 0: 10c00000-10fff000 (prefetchable)
	Memory window 1: 11000000-113ff000
	I/O window 0: 00000000-00000003
	I/O window 1: 00000000-00000003
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
	16-bit legacy interface ports at 0001

00:14.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
	Subsystem: Acer Incorporated [ALI]: Unknown device 1010
	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 (20000ns max), cache line size 08
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 82400000 (32-bit, non-prefetchable) [size=4K]
	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-

01:00.0 VGA compatible controller: ATI Technologies Inc Rage Mobility P/M AGP 2x (rev 64) (prog-if 00 [VGA])
	Subsystem: Acer Incorporated [ALI]: Unknown device 1011
	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 (2000ns min), cache line size 08
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 81000000 (32-bit, non-prefetchable) [size=16M]
	Region 1: I/O ports at 7000 [size=256]
	Region 2: Memory at 80100000 (32-bit, non-prefetchable) [size=4K]
	Expansion ROM at 80120000 [disabled] [size=128K]
	Capabilities: [50] AGP version 1.0
		Status: RQ=255 SBA+ 64bit- FW- Rate=x1,x2
		Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
	Capabilities: [5c] 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-

06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
	Subsystem: Realtek Semiconductor Co., Ltd. RT8139
	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 11
	Region 0: I/O ports at 1000
	Region 1: Memory at 11000000 (32-bit, non-prefetchable) [size=512]
	Capabilities: [50] 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-


Kdyz si srovnam tyhle oba vystupy, mam pocit, ze pridelovani zdroju
jednotlivym zarizenim nejak neodpovida tomu, co tvrdi lspci. Nicmene asi
nejpodstatnejsi je ta hlaska, ktera rika, ze nepridelil karte resource
0, coz je podle lspci "I/O ports at 1000".

Pro jistotu jeste pripojuji vystup z cat /proc/interrupts:

          CPU0
  0:    271785      XT-PIC  timer
  1:      3294      XT-PIC  keyboard
  2:         0      XT-PIC  cascade
 10:         0      XT-PIC  ALi Audio Accelerator
 11:        15      XT-PIC  O2 Micro, Inc. OZ6933 Cardbus Controller, O2 Micro, Inc. OZ6933 Cardbus Controller (#2)
 12:       303      XT-PIC  PS/2 Mouse
 14:      4293      XT-PIC  ide0
 15:         2      XT-PIC  ide1
NMI:         0
ERR:         0


Vyse uvedenych vysledku jsem se dobral s kernelem 2.4.1 pri pouziti
integrovanych PCMCIA ovladacu zakompilovanych do jadra. Kdyz jsem je dal
jako moduly, tuhnul pocitac pri zavadeni modulu i82365.
Ovladace z baliku pcmcia-cs (verze 3.1.24, jinak cardmgr pouzivam take
teto verze) sly zavest bez problemu, ale pokus o natazeni modulu 8139too
koncil temito hlaskami:

PCI: No IRQ known for interrupt pin A of device . Please try using pci=biosirq
8139too: region #0 not a PIO resource, aborting

Pridani pci=biosirq zpusobilo, ze z hlasky zbyla jenom prvni polovina,
ale jinak se nic nezmenilo.

Jinak jsem to testoval s jadrem 2.2.16 z RH 7.0 a tam jsem nedopadl o
nic lepe.

Cele se to odehrava na notebooku Acer TravelMate 201T. Jinou
PCMCIA/CardBus kartu bohuzel nemam, takze nemuzu ani zkusit, jestli neni
problem uz v radici.

Mozna, ze z toho bude nekdo moudrejsi nez ja, v kazdem pripade budu ale
vdecny za jakoukoliv radu, jak tuhle kartu rozbehnout.

Diky
-- 
Michal Krause                                                       /\
ICQ: 7665279            Informace (nejenom) ze sveta Linuxu      /\/  \
email: michal na krause.cz _______ http://www.root.cz/ _______ NAVRCHOLU.cz

Vseci by chceli byt van Goghmi, ale odrezat si ucho ani jeden.
                                                  J. Raz ve filmu Rabaka


Další informace o konferenci Linux