我目前在AXI桥接器中使用两个BAR用于PCIe。
以下组合有效
BAR0:128MB,BAR1:32MB
并且以下内容不起作用(意思是,它不会反映在 $ lspci -vv 中)
BAR0:256MB,BAR1:32MB
建议?
注释
已附加
7-Dec-2018
vineeshvs
----------
Test1 :)
--------
Project: full_system
BAR0: 2MB
BAR1: 2MB
0a:00.0 Memory controller: Xilinx Corporation Device 7038
Subsystem: Xilinx Corporation Device 0007
Physical Slot: 3
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fbe00000 (32-bit, non-prefetchable) [size=2M]
Region 1: Memory at fbc00000 (32-bit, non-prefetchable) [size=2M]
Capabilities: <access denied>
Kernel modules: riffa
Test2 :|
--------
Project: full_system
BAR0: 256MB
BAR1: 32MB
0a:00.0 Memory controller: Xilinx Corporation Device 7038
Subsystem: Xilinx Corporation Device 0007
Physical Slot: 3
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
Region 1: Memory at fa000000 (32-bit, non-prefetchable) [size=32M]
Capabilities: <access denied>
Kernel modules: riffa
Test3 :D
--------
Project: full_system
BAR0: 32MB
BAR1: 32MB
0a:00.0 Memory controller: Xilinx Corporation Device 7038
Subsystem: Xilinx Corporation Device 0007
Physical Slot: 3
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fa000000 (32-bit, non-prefetchable) [size=32M]
Region 1: Memory at f8000000 (32-bit, non-prefetchable) [size=32M]
Capabilities: <access denied>
Kernel modules: riffa
Test4 :D
--------
Project: full_system
BAR0: 128MB
BAR1: 32MB
0a:00.0 Memory controller: Xilinx Corporation Device 7038
Subsystem: Xilinx Corporation Device 0007
Physical Slot: 3
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
Region 0: Memory at f0000000 (32-bit, non-prefetchable) [size=128M]
Region 1: Memory at ee000000 (32-bit, non-prefetchable) [size=32M]
Capabilities: <access denied>
Kernel modules: riffa
Test5
--------
Test 2 with BARs swapped.
Project: full_system
BAR0: 32MB
BAR1: 256MB
0a:00.0 Memory controller: Xilinx Corporation Device 7038
Subsystem: Xilinx Corporation Device 0007
Physical Slot: 3
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fa000000 (32-bit, non-prefetchable) [size=32M]
Capabilities: <access denied>
Kernel modules: riffa