Bug 17191 - Some pci device can't allocate I/O resource on ar71xx (mips big endian)
Summary: Some pci device can't allocate I/O resource on ar71xx (mips big endian)
Status: RESOLVED INSUFFICIENT_DATA
Alias: None
Product: Drivers
Classification: Unclassified
Component: PCI (show other bugs)
Hardware: Mips32 Linux
: P1 normal
Assignee: drivers_pci@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 14:26 UTC by tournet
Modified: 2012-11-05 14:21 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.32
Subsystem:
Regression: No
Bisected commit-id:


Attachments
PB44(mips_bigedian)_aic7901x_boot_log, and lspci information under kernel2.6.32.20/2.6.35.4, and ioport_information (18.94 KB, text/plain)
2010-08-27 14:26 UTC, tournet
Details

Description tournet 2010-08-27 14:26:54 UTC
Created attachment 28141 [details]
PB44(mips_bigedian)_aic7901x_boot_log, and lspci information under kernel2.6.32.20/2.6.35.4, and ioport_information

I add a Adaptec aic-7901x scsi minipci card on atheros PB44(with atheros AR7161), under newest openwrt thunk version r22614, the aic-7901x can't allocate I/O resource. some informations bellow:

root@OpenWrt:/# dmesg|grep pci
pci 0000:00:00.0: reg 10 32bit mmio pref: [0x000000-0xfffffff]
pci 0000:00:00.0: reg 14 io port: [0x00-0xff]
pci 0000:00:00.0: supports D1 D2
pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:00.0: PME# disabled
pci 0000:00:11.0: reg 10 io port: [0x00-0xff]
pci 0000:00:11.0: reg 14 64bit mmio: [0x000000-0x001fff]
pci 0000:00:11.0: reg 1c io port: [0x00-0xff]
pci 0000:00:11.0: reg 30 32bit mmio pref: [0x000000-0x07ffff]
pci 0000:00:12.0: reg 10 32bit mmio: [0x000000-0x00ffff]
pci 0000:00:12.0: PME# supported from D0 D3hot
pci 0000:00:12.0: PME# disabled
pci 0000:00:11.0: BAR 0: can't allocate I/O resource [0x00-0x00]
pci 0000:00:11.0: BAR 3: can't allocate I/O resource [0x00-0x00]

/* pci 0000:00:11.0 is a Adaptec AIC7901 scsi minipci card */
/* pci 0000:00:12.0 is a Atheros abgn wireless minipci card */


root@OpenWrt:~# cat /proc/ioports 
0000-0000 : PCI IO space


root@OpenWrt:/# cat /sys/bus/pci/devices/0000\:00\:11.0/resource
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000010090000 0x0000000010091fff 0x0000000000120204
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000010000000 0x000000001007ffff 0x0000000000027200
root@OpenWrt:/# 
root@OpenWrt:/# cat /sys/bus/pci/devices/0000\:00\:12.0/resource
0x0000000010080000 0x000000001008ffff 0x0000000000020200
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000



root@OpenWrt:~# lspci -vvxxx
00:00.0 Non-VGA unclassified device: Device 0700:1107 (rev 01)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+ Stepping- SERR+ FastB2B+ DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
        Latency: 0
        Region 0: Memory at <unassigned> (32-bit, prefetchable)
        Region 1: I/O ports at <unassigned> [disabled]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
                Bridge: PM- B3+
00: 00 07 07 11 56 03 b0 22 01 00 00 00 00 00 00 00
10: 08 00 00 00 01 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 dc 00 00 00 00 00 00 00 00 00 00 00
40: 80 80 00 00 00 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
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 7e
e0: 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:11.0 SCSI storage controller: Adaptec AIC-7901 U320 (rev 10)
        Subsystem: Micro-Star International Co., Ltd. Device 1560
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 48
        Region 0: I/O ports at <unassigned> [disabled]
        Region 1: Memory at 10090000 (64-bit, non-prefetchable) [disabled] [size=8K]
        Region 3: I/O ports at <unassigned> [disabled]
        [virtual] Expansion ROM at 10000000 [disabled] [size=512K]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a0] MSI: Enable- Count=1/2 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [94] PCI-X non-bridge device
                Command: DPERE- ERO+ RBC=512 OST=8
                Status: Dev=00:00.0 64bit+ 133MHz+ SCD- USC- DC=simple DMMRBC=512 DMOST=8 DMCRS=16 RSCEM- 266MHz- 533MHz-
00: 05 90 0f 80 00 00 30 04 10 00 00 01 00 00 00 00
10: 01 00 00 00 04 00 09 10 00 00 00 00 01 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 62 14 60 15
30: 00 00 00 00 dc 00 00 00 00 00 00 00 30 01 28 19
40: 44 e3 00 00 00 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
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 07 00 42 00 00 00 03 06 00 00 00 00
a0: 05 94 82 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 a0 02 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00

00:12.0 Network controller: Atheros Communications Inc. AR9160 802.11abgn Wireless PCI Adapter (rev 01)
        Subsystem: Atheros Communications Inc. Device 2082
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 168, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 49
        Region 0: Memory at 10080000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=100mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: ath9k
00: 8c 16 27 00 06 00 b0 02 01 00 80 02 08 a8 00 00
10: 00 00 08 10 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 8c 16 82 20
30: 00 00 00 00 44 00 00 00 00 00 00 00 31 01 00 00
40: 80 00 00 00 01 00 82 48 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
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00





some more same problem reports and usefull links: 
https://dev.openwrt.org/ticket/7759
https://forum.openwrt.org/viewtopic.php?pid=115146
http://www.ubnt.com/forum/showthread.php?t=21118
Comment 1 Andrew Morton 2010-09-27 19:18:47 UTC
(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Fri, 27 Aug 2010 14:27:12 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=17191
> 
>            Summary: Some pci device can't allocate  I/O resource on ar71xx
>                     (mips big endian)
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 2.6.32
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: PCI
>         AssignedTo: drivers_pci@kernel-bugs.osdl.org
>         ReportedBy: yjdofc@gmail.com
>         Regression: No
> 
> 
> Created an attachment (id=28141)
>  --> (https://bugzilla.kernel.org/attachment.cgi?id=28141)
> PB44(mips_bigedian)_aic7901x_boot_log, and lspci information under
> kernel2.6.32.20/2.6.35.4, and ioport_information
> 
> I add a Adaptec aic-7901x scsi minipci card on atheros PB44(with atheros
> AR7161), under newest openwrt thunk version r22614, the aic-7901x can't
> allocate I/O resource. some informations bellow:
> 
> root@OpenWrt:/# dmesg|grep pci
> pci 0000:00:00.0: reg 10 32bit mmio pref: [0x000000-0xfffffff]
> pci 0000:00:00.0: reg 14 io port: [0x00-0xff]
> pci 0000:00:00.0: supports D1 D2
> pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
> pci 0000:00:00.0: PME# disabled
> pci 0000:00:11.0: reg 10 io port: [0x00-0xff]
> pci 0000:00:11.0: reg 14 64bit mmio: [0x000000-0x001fff]
> pci 0000:00:11.0: reg 1c io port: [0x00-0xff]
> pci 0000:00:11.0: reg 30 32bit mmio pref: [0x000000-0x07ffff]
> pci 0000:00:12.0: reg 10 32bit mmio: [0x000000-0x00ffff]
> pci 0000:00:12.0: PME# supported from D0 D3hot
> pci 0000:00:12.0: PME# disabled
> pci 0000:00:11.0: BAR 0: can't allocate I/O resource [0x00-0x00]
> pci 0000:00:11.0: BAR 3: can't allocate I/O resource [0x00-0x00]
> 
> /* pci 0000:00:11.0 is a Adaptec AIC7901 scsi minipci card */
> /* pci 0000:00:12.0 is a Atheros abgn wireless minipci card */
> 
> 
> root@OpenWrt:~# cat /proc/ioports 
> 0000-0000 : PCI IO space
> 
> 
> root@OpenWrt:/# cat /sys/bus/pci/devices/0000\:00\:11.0/resource
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000010090000 0x0000000010091fff 0x0000000000120204
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000010000000 0x000000001007ffff 0x0000000000027200
> root@OpenWrt:/# 
> root@OpenWrt:/# cat /sys/bus/pci/devices/0000\:00\:12.0/resource
> 0x0000000010080000 0x000000001008ffff 0x0000000000020200
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000 0x0000000000000000
> 
> 
> 
> root@OpenWrt:~# lspci -vvxxx
> 00:00.0 Non-VGA unclassified device: Device 0700:1107 (rev 01)
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+
> Stepping- SERR+ FastB2B+ DisINTx-
>         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort+ >SERR- <PERR- INTx-
>         Latency: 0
>         Region 0: Memory at <unassigned> (32-bit, prefetchable)
>         Region 1: I/O ports at <unassigned> [disabled]
>         Capabilities: [dc] Power Management version 2
>                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
> PME(D0+,D1+,D2+,D3hot+,D3cold-)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>                 Bridge: PM- B3+
> 00: 00 07 07 11 56 03 b0 22 01 00 00 00 00 00 00 00
> 10: 08 00 00 00 01 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 dc 00 00 00 00 00 00 00 00 00 00 00
> 40: 80 80 00 00 00 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
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 7e
> e0: 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 
> 00:11.0 SCSI storage controller: Adaptec AIC-7901 U320 (rev 10)
>         Subsystem: Micro-Star International Co., Ltd. Device 1560
>         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-
>         <TAbort-
> <MAbort- >SERR- <PERR- INTx-
>         Interrupt: pin A routed to IRQ 48
>         Region 0: I/O ports at <unassigned> [disabled]
>         Region 1: Memory at 10090000 (64-bit, non-prefetchable) [disabled]
> [size=8K]
>         Region 3: I/O ports at <unassigned> [disabled]
>         [virtual] Expansion ROM at 10000000 [disabled] [size=512K]
>         Capabilities: [dc] Power Management version 2
>                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>         Capabilities: [a0] MSI: Enable- Count=1/2 Maskable- 64bit+
>                 Address: 0000000000000000  Data: 0000
>         Capabilities: [94] PCI-X non-bridge device
>                 Command: DPERE- ERO+ RBC=512 OST=8
>                 Status: Dev=00:00.0 64bit+ 133MHz+ SCD- USC- DC=simple
> DMMRBC=512 DMOST=8 DMCRS=16 RSCEM- 266MHz- 533MHz-
> 00: 05 90 0f 80 00 00 30 04 10 00 00 01 00 00 00 00
> 10: 01 00 00 00 04 00 09 10 00 00 00 00 01 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 62 14 60 15
> 30: 00 00 00 00 dc 00 00 00 00 00 00 00 30 01 28 19
> 40: 44 e3 00 00 00 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
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 07 00 42 00 00 00 03 06 00 00 00 00
> a0: 05 94 82 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 a0 02 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00
> 
> 00:12.0 Network controller: Atheros Communications Inc. AR9160 802.11abgn
> Wireless PCI Adapter (rev 01)
>         Subsystem: Atheros Communications Inc. Device 2082
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 168, Cache Line Size: 32 bytes
>         Interrupt: pin A routed to IRQ 49
>         Region 0: Memory at 10080000 (32-bit, non-prefetchable) [size=64K]
>         Capabilities: [44] Power Management version 2
>                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=100mA
> PME(D0+,D1-,D2-,D3hot+,D3cold-)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>         Kernel driver in use: ath9k
> 00: 8c 16 27 00 06 00 b0 02 01 00 80 02 08 a8 00 00
> 10: 00 00 08 10 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 8c 16 82 20
> 30: 00 00 00 00 44 00 00 00 00 00 00 00 31 01 00 00
> 40: 80 00 00 00 01 00 82 48 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
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 
> 
> 
> 
> 
> some more same problem reports and usefull links: 
> https://dev.openwrt.org/ticket/7759
> https://forum.openwrt.org/viewtopic.php?pid=115146
> http://www.ubnt.com/forum/showthread.php?t=21118
> 

Ralf told me:

I think this affects out of tree hardware support and chances are the
bug is in that platform specific code.  I'd like to ask via bugzilla
but I get an error when I try to log on - maybe you could do so and
add me to cc?
Comment 2 tournet 2010-09-28 12:41:11 UTC
the platform specific PCI driver code:
https://dev.openwrt.org/browser/trunk/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c

bellow is part of the original code:
278	static struct resource ar71xx_pci_io_resource = {
279	        .name           = "PCI IO space",
280	        .start          = 0,
281	        .end            = 0,
282	        .flags          = IORESOURCE_IO,
283	};

I modified as bellow:
278	static struct resource ar71xx_pci_io_resource = {
279	        .name           = "PCI IO space",
280	        .start          = 0x100,
281	        .end            = 0xffff,
282	        .flags          = IORESOURCE_IO,
283	};

it seems there's no error of allocate I/O resource now, but the aic7901 scsi card still can't work.

root@OpenWrt:/proc# dmesg |grep pci
pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0fffffff pref]
pci 0000:00:00.0: reg 14: [io  0x0000-0x00ff]
pci 0000:00:00.0: supports D1 D2
pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:00.0: PME# disabled
pci 0000:00:11.0: reg 10: [io  0x0000-0x00ff]
pci 0000:00:11.0: reg 14: [mem 0x00000000-0x00001fff 64bit]
pci 0000:00:11.0: reg 1c: [io  0x0000-0x00ff]
pci 0000:00:11.0: reg 30: [mem 0x00000000-0x0007ffff pref]
pci 0000:00:12.0: reg 10: [mem 0x00000000-0x0000ffff]
pci 0000:00:12.0: PME# supported from D0 D3hot
pci 0000:00:12.0: PME# disabled
pci 0000:00:11.0: BAR 6: assigned [mem 0x10000000-0x1007ffff pref]
pci 0000:00:12.0: BAR 0: assigned [mem 0x10080000-0x1008ffff]
pci 0000:00:12.0: BAR 0: set to [mem 0x10080000-0x1008ffff] (PCI address [0x10080000-0x1008ffff]
pci 0000:00:11.0: BAR 1: assigned [mem 0x10090000-0x10091fff 64bit]
pci 0000:00:11.0: BAR 1: set to [mem 0x10090000-0x10091fff 64bit] (PCI address [0x10090000-0x10091fff]
pci 0000:00:11.0: BAR 0: assigned [io  0x0000-0x00ff]
pci 0000:00:11.0: BAR 0: set to [io  0x0000-0x00ff] (PCI address [0x0-0xff]
pci 0000:00:11.0: BAR 3: assigned [io  0x0400-0x04ff]
pci 0000:00:11.0: BAR 3: set to [io  0x0400-0x04ff] (PCI address [0x400-0x4ff]
Comment 3 tournet 2010-09-28 12:58:05 UTC
another information:
even there's no allocate I/O resource error, with lspci command,still see:
...
00:11.0 SCSI storage controller: Adaptec AIC-7901 U320 (rev 10)
        Subsystem: Micro-Star International Co., Ltd. Device 1560
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
...
        Region 0: I/O ports at <unassigned> [disabled]
        Region 1: Memory at 10090000 (64-bit, non-prefetchable) [disabled]
[size=8K]
        Region 3: I/O ports at <unassigned> [disabled]
......



when I insmod scsi_transport_spi.ko and aic79xx.ko, it displays:
...
qinpos = 1, SCB index=65280
Kernel Panic - not syncing: Loop 1
...
and then system reboot.
Comment 4 Bjorn Helgaas 2012-10-01 20:27:51 UTC
If this is still a problem, could you attach a complete dmesg log from a recent kernel, e.g., 3.5 or 3.6?

Note You need to log in before you can comment on or make changes to this bug.