All times are UTC-06:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: pci bridge problem
PostPosted: Sat Jul 07, 2007 2:43 pm 
Offline

Joined: Thu Apr 27, 2006 3:45 pm
Posts: 7
Location: Peru
I am trying to install madwifi from source. I got no errors and I can modprobe ath_pci but the ath0 is not recognized.

efika1:/# lsmod | grep ath_pci
ath_pci 95168 0
wlan 217248 2 wlan_scan_sta,ath_pci
ath_hal 237472 1 ath_pci

This is dmesg output:

efika1:/# dmesg| egrep "ath|wifi"
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOP
S_FUNC)
ath_pci: 0.9.4.5 (0.9.3.1)
wifi%d: request_irq failed

but lspci show:

efika1:/# lspci
00:18.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode
) (rev 15)
00:1c.0 Bridge: Motorola MPC5200B
01:08.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (
rev 01)

I am using a pci-minipci adapter with an active pci-pci bridge.
I think the problem is the driver but I don't know how to fix it.
Any suggestion?


Top
   
 Post subject: Re: pci bridge problem
PostPosted: Sun Jul 08, 2007 3:11 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
I am trying to install madwifi from source. I got no errors and I can modprobe ath_pci but the ath0 is not recognized.
The basic problem is that the firmware does not currently set up interrupt mappings for PCI bridges. I am not sure too whether it sets up the memory map for them either, but the Linux PCI code should be handling this anyway (not sure).

However since you only have one PCI bridge and a predictable connection, you could fix this with a small Forth script in nvramrc or on boot (edit your "bootcreator" menu) pretty easily. Another route would be a PCI fixup in the Efika platform setup.

It would need some details of the PCI bridge from lspci or some other tool to work out (all the configuration details are easily worked out and accessible. The basic theory is here;

http://www.science.unitn.it/~fiorella/g ... ode80.html

Could you throw the output of lspci -Dvvvx, maybe additionally with the -M option, maybe additionally with the -b option for comparison (M will give you the "real PCI" behind the Linux PCI bus drivers, and -b will work in a bus-centric manner (what the PCI hostbridge sees, not what the Linux PCI bus drivers have mapped or remapped). They may be a bit long, but they should fit inside a post and code tags, do not be shy :)

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Sun Jul 08, 2007 5:53 pm 
Offline

Joined: Thu Apr 27, 2006 3:45 pm
Posts: 7
Location: Peru
Here is the output of lspci
Code:
efika1:/home/karlosr# lspci -Dvvvx
0000:00:18.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent
mode) (rev 15) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00fff000-00ffefff
Memory behind bridge: 80000000-800fffff
Prefetchable memory behind bridge: fffffffffff00000-ffffffffffefffff
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
Capabilities: [80] 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-
Bridge: PM- B3+
Capabilities: [90] #06 [0000]
Capabilities: [a0] Vital Product Data
00: 88 33 21 00 07 00 90 02 15 00 04 06 00 00 01 00
10: 00 00 00 00 00 00 00 00 00 01 01 00 f1 e1 80 22
20: 00 80 00 80 f1 ff e1 ff ff ff ff ff ff ff ff ff
30: ff 00 ff 00 80 00 00 00 00 00 00 00 ff 00 00 00

0000:00:1c.0 Bridge: Motorola MPC5200B
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort+ >SERR- <PERR-
Latency: 248, Cache Line Size: 32 bytes
00: 57 10 09 58 06 00 a0 22 00 00 80 06 08 f8 00 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

0000:01:08.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg
NIC (rev 01)
Subsystem: Wistron NeWeb Corp. Unknown device 1012
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 4
Region 0: Memory at 80000000 (32-bit, non-prefetchable)
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3h
ot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 8c 16 13 00 02 00 90 02 01 00 00 02 08 a8 00 00
10: 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 01 50 00 00 5f 18 12 10
30: 00 00 00 00 44 00 00 00 00 00 00 00 04 01 0a 1c



***************
efika1:/home/karlosr# lspci -Mvvvx
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:01.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:02.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:03.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:04.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:05.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:06.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:07.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:08.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:09.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:0a.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:0b.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:0c.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:0d.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:0e.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:0f.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:10.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:11.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:12.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:13.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:14.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:15.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:16.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:17.0/config
00:18.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode
) (rev 15) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00fff000-00ffefff
Memory behind bridge: 80000000-800fffff
Prefetchable memory behind bridge: fffffffffff00000-ffffffffffefffff
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
Capabilities: [80] 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-
Bridge: PM- B3+
Capabilities: [90] #06 [0000]
Capabilities: [a0] Vital Product Data
00: 88 33 21 00 07 00 90 02 15 00 04 06 00 00 01 00
10: 00 00 00 00 00 00 00 00 00 01 01 00 f1 e1 80 22
20: 00 80 00 80 f1 ff e1 ff ff ff ff ff ff ff ff ff
30: ff 00 ff 00 80 00 00 00 00 00 00 00 ff 00 00 00

## 00.18:0 is a bridge from 00 to 01-01
pcilib: Cannot open /sys/bus/pci/devices/0000:00:19.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:1a.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:1b.0/config
00:1c.0 Bridge: Motorola MPC5200B
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort+ >SERR- <PERR-
Latency: 248, Cache Line Size: 32 bytes
00: 57 10 09 58 06 00 a0 22 00 00 80 06 08 f8 00 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

pcilib: Cannot open /sys/bus/pci/devices/0000:00:1d.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:1e.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:1f.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:00.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:01.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:02.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:03.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:04.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:05.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:06.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:07.0/config
01:08.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (
rev 01)
Subsystem: Wistron NeWeb Corp. Unknown device 1012
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 4
Region 0: Memory at 80000000 (32-bit, non-prefetchable)
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3h
ot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 8c 16 13 00 02 00 90 02 01 00 00 02 08 a8 00 00
10: 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 01 50 00 00 5f 18 12 10
30: 00 00 00 00 44 00 00 00 00 00 00 00 04 01 0a 1c

pcilib: Cannot open /sys/bus/pci/devices/0000:01:09.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:01:0a.0/config

*********************
efika1:/home/karlosr# lspci -bvvvx
00:18.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode
) (rev 15) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00fff000-00ffefff
Memory behind bridge: 80000000-800fffff
Prefetchable memory behind bridge: fffffffffff00000-ffffffffffefffff
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
Capabilities: [80] 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-
Bridge: PM- B3+
Capabilities: [90] #06 [0000]
Capabilities: [a0] Vital Product Data
00: 88 33 21 00 07 00 90 02 15 00 04 06 00 00 01 00
10: 00 00 00 00 00 00 00 00 00 01 01 00 f1 e1 80 22
20: 00 80 00 80 f1 ff e1 ff ff ff ff ff ff ff ff ff
30: ff 00 ff 00 80 00 00 00 00 00 00 00 ff 00 00 00

00:1c.0 Bridge: Motorola MPC5200B
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort+ >SERR- <PERR-
Latency: 248, Cache Line Size: 32 bytes
00: 57 10 09 58 06 00 a0 22 00 00 80 06 08 f8 00 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

01:08.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (
rev 01)
Subsystem: Wistron NeWeb Corp. Unknown device 1012
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 4
Region 0: Memory at 80000000 (32-bit, non-prefetchable)
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3h
ot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 8c 16 13 00 02 00 90 02 01 00 00 02 08 a8 00 00
10: 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 01 50 00 00 5f 18 12 10
30: 00 00 00 00 44 00 00 00 00 00 00 00 04 01 0a 1c



Regards and thanks for the support.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group