Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#9541 closed defect (wontfix)

Ar7161 not make PCI SPACE .

Reported by: dk89 <dk_giuse89@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:

Description

Hi all

I use openwrt on 3 different archittecture:
*ar7161 on router station pro.
*2315 on fonera 2g.
*brc6358 on HW553.

Only for architecture ar7161 PCI IO space is NULL. This can't to inizialize correctly mini-pci space, and some i/o periferic don't work.

Question is:

->Pci handling work on this architecutere ???
->In theory you don't need of ar7161 datasheet ( On several forums, some users wrote "has need of ar7161" this isn't true. )


If you click on Ar7161 on FreeBSD you can see box denominated LINUX IOMEM.

I have write here interesting box:

00000000-03ffffff : System RAM
  00060000-002060d7 : Kernel code
  002060d8-0025e0bf : Kernel data
10000000-17ffffff : PCI memory space
18020000-18020fff : serial8250.0
1b000000-1bffffff : ar7100-ehci.0
1c000000-1cffffff : ar7100-ohci.0
b9000000-b9002000 : eth0_membase
ba000000-ba002000 : eth1_membase

10000000-17ffffff : PCI memory space

In following text, i wrote three several example:

ON ROUTER STATION PRO: [ar7161]

root@rs-pro:~# cat /proc/iomem 
00000000-07ffffff : System RAM
  00060000-002d13ef : Kernel code
  002d13f0-00348f7f : Kernel data
10000000-17ffffff : PCI memory space
  10000000-1001ffff : 0000:00:11.0
  10020000-10023fff : 0000:00:13.0
  10024000-10027fff : 0000:00:13.0
  10028000-10029fff : 0000:00:11.0
18020000-1802ffff : serial8250.0
  18020000-1802001f : serial
18040000-1804ffff : AR71xx GPIO controller
18070000-18070003 : mii_ctrl
18070004-18070007 : mii_ctrl
19000000-190001ff : mac_base
  19000000-190001ff : mdio_base
1a000000-1a0001ff : mac_base
1b000000-1bffffff : ar71xx-ehci
  1b000000-1bffffff : ehci_hcd
1c000000-1cffffff : ar71xx-ohci
  1c000000-1cffffff : ohci_hcd
1f000000-1fffffff : ar71xx-spi
root@rs-pro:~#
root@rs-pro:~# cat /proc/ioports 
0000-0000 : PCI IO space
root@debwrt:~# lspci 
00:00.0 Non-VGA unclassified device: Device 0700:1107 (rev 01)
00:11.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface
00:13.0 Mass storage controller: Promise Technology, Inc. 20269 (rev 02)

ON FONERA 2g : [2315]

root@Fon2G:~# cat /proc/iomem 
00000000-01ffffff : System RAM
  00041000-002213b3 : Kernel code
  002213b4-0026f49f : Kernel data
10000000-1000ffff : wmac0_membase
11300000-11300012 : flash_regs
80800000-857f7fff : AR531x PCI MEM
  80800000-80bfffff : 0000:00:03.0
  80c00000-80c1ffff : 0000:00:03.0
  80c20000-80c20fff : 0000:00:00.0
  80c21000-80c210ff : 0000:00:00.1
    80c21000-80c210ff : ehci_hcd
a8000000-a87fffff : flash_base
b0500000-b0501fff : eth0_membase
b1100003-b1100022 : serial
root@Fon2G:~# cat /proc/ioports 
817f8000-817ffffe : AR531x PCI I/O
root@Fon2G:~# cat /proc/ioports 
817f8000-817ffffe : AR531x PCI I/O
root@Fon2G:~# lspci 
00:00.0 Class 0c03: 1033:0035
00:00.1 Class 0c03: 1033:00e0
00:00.2 Class 0000: 0040:0000
00:03.0 Class 0200: 168c:ff18

ON HW553 : [6358]

root@VodafoneStation:~# cat /proc/iomem 
00000000-03ffffff : System RAM
  00010000-00224d17 : Kernel code
  00224d18-0027d25f : Kernel data
08000000-0800ffff : bcm63xx PCI IO space
1e000000-1fffffff : bcm963xx-flash.0
30000000-37ffffff : bcm63xx PCI memory space
  30000000-30001fff : 0000:00:01.0
    30000000-30001fff : 0000:00:01.0
38000000-3fffffff : bcm63xx Cardbus memory space
  38000000-3fffffff : PCI CardBus 0000:02
fffe005c-fffe0067 : bcm63xx-wdt.0
fffe0100-fffe0117 : bcm63xx_uart.0
  fffe0100-fffe0117 : bcm63xx
fffe0800-fffe08ff : bcm63xx-spi.0
fffe1300-fffe13ff : bcm63xx_ehci.0
  fffe1300-fffe13ff : ehci_hcd
fffe1400-fffe14ff : bcm63xx_ohci.0
  fffe1400-fffe14ff : ohci_hcd
fffe4000-fffe47ff : bcm63xx_enet.0
  fffe4000-fffe47ff : bcm63xx_enet
fffe4800-fffe4fff : bcm63xx_enet.1
  fffe4800-fffe4fff : bcm63xx_enet
fffe5000-fffe57ff : bcm63xx_enet_shared.0
  fffe5000-fffe57ff : bcm63xx_enet_dma
root@VodafoneStation:~# cat /proc/ioports 
08000000-08007fff : bcm63xx PCI IO space
08008000-0800ffff : bcm63xx Cardbus IO space
  08008000-080080ff : PCI CardBus 0000:02
  08008400-080084ff : PCI CardBus 0000:02
root@VodafoneStation:~# lspci 
00:01.0 Class 0280: 14e4:4318
01:1e.0 Class 0607: 14e4:6358

Attachments (0)

Change History (15)

comment:1 Changed 7 years ago by jow

  • Resolution set to wontfix
  • Status changed from new to closed

See #9264

comment:2 Changed 6 years ago by flamemaniii@…

  • Resolution wontfix deleted
  • Status changed from closed to reopened

well, the pci is not working at all on 2.6.39 openwrt, i see bad things happening if i try to modprobe ipw2200 (intel wireless card)

why resolution has been set to wontfix ?

does it mean that routerstationpro can't have miniPCI wifi card ?

comment:3 Changed 6 years ago by nbd

  • Resolution set to wontfix
  • Status changed from reopened to closed

It is incompatible with many non-Atheros miniPCI cards, especially cards like ipw2x00

comment:4 Changed 6 years ago by flamemaniii@…

  • Resolution wontfix deleted
  • Status changed from closed to reopened

what exactly is the problem with non atheros miniPCI card ?

could be fixed in the kernel support ? is it a firmware problem ? is it an hardware problem ?

i also need to have a muti uart miniPCI card: it is pretty working on rb532, i need to port this board to routerstation/pro

comment:5 Changed 6 years ago by nbd

  • Resolution set to wontfix
  • Status changed from reopened to closed

As far as I know it's a hardware issue with no known workarounds

comment:6 follow-up: Changed 6 years ago by flamemaniii@…

hardware issue ?

could you explain better ? any doc about ? is it an endian issue ?

the ipw2200 has been tested on little endian arch (rb532)
the routerstation is bigendian

comment:7 Changed 6 years ago by anonymous

  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:8 in reply to: ↑ 6 Changed 6 years ago by jogo

  • Resolution set to wontfix
  • Status changed from reopened to closed

Replying to flamemaniii@…:

hardware issue ?

could you explain better ? any doc about ? is it an endian issue ?

the ipw2200 has been tested on little endian arch (rb532)
the routerstation is bigendian

Did you read the ticket linked in the first reply?

ipw2200 needs PCI IO space. ar71xx does not have/provide access to PCI IO space. Therefore ipw2200 cannot work on ar71xx (or generally any mini pci card that needs PCI IO space).

The PCI controller in ar71xx SoCs only provides access to PCI memory space and PCI configuration space, but not to PCI IO space.

This is a "cantfix", a hardware limitation.

comment:9 follow-up: Changed 6 years ago by flamemaniii@…

  • Resolution wontfix deleted
  • Status changed from closed to reopened

it is not an hardware limitation, it is simply missing a piece of code
i am posting here, all about the problem

http://elinux.org/Flameman/routerstation-pro#reason_why

comment:10 Changed 6 years ago by florian

Have you actually verified this is working with real hardware?

comment:11 in reply to: ↑ 9 ; follow-up: Changed 6 years ago by anonymous

Replying to flamemaniii@…:

it is not an hardware limitation, it is simply missing a piece of code
i am posting here, all about the problem

http://elinux.org/Flameman/routerstation-pro#reason_why

Why don't you try to fix the problem yourself, rather than wasting the developers' time insisting that it can be done without any evidence.

comment:12 in reply to: ↑ 11 Changed 6 years ago by anonymous

Replying to anonymous:

Replying to flamemaniii@…:

it is not an hardware limitation, it is simply missing a piece of code
i am posting here, all about the problem

http://elinux.org/Flameman/routerstation-pro#reason_why

Why don't you try to fix the problem yourself, rather than wasting the developers' time insisting that it can be done without any evidence.

(Or, consider that perhaps it cannot be done, and move on.)

comment:13 follow-up: Changed 6 years ago by flamemaniii@…

cause you have not explained NOTHING in details, just "it can't be fixed", well why ?

anyway, you are wasting my time, i will fix myself, you are not good to do it, for the simple reason you are not able to explain the problem

comment:14 in reply to: ↑ 13 Changed 6 years ago by jogo

  • Resolution set to wontfix
  • Status changed from reopened to closed

Replying to flamemaniii@…:

cause you have not explained NOTHING in details, just "it can't be fixed", well why ?

anyway, you are wasting my time, i will fix myself, you are not good to do it, for the simple reason you are not able to explain the problem

As I already said, see the linked ticket in the first reply:

Replying to nbd:

kaloz and juhosg probably don't have time to look into this. I have access to all the documentation related to this, as well as reference source code and there is no indication that there is a memory range that supports PCI IO ports.

=> The hardware does not provide PCI IO space, so it can't be fixed.

comment:15 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.