高于256 MB的BAR在“ PCIe Gen3子系统的AXI桥(3.0)”中不起作用

时间:2018-12-15 06:14:30

标签: fpga xilinx vivado

我目前在AXI桥接器中使用两个BAR用于PCIe。

以下组合有效

BAR0:128MB,BAR1:32MB

并且以下内容不起作用(意思是,它不会反映在 $ lspci -vv 中)

BAR0:256MB,BAR1:32MB

建议?

注释

  1. 我尝试了尺寸不大于的其他组合 128MB,并且可以正常工作(例如:(64MB,32MB)。因此,我认为设备的比特流生成和编程没有问题。
  2. 加载比特流后,我重新启动设备($ sudo重新启动)并使用 命令$ lspci -vv查看PCI中的内存区域。

已附加

  1. 我们完成的测试摘要

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

  1. PCIe条设置(可使用128MB,32MB进行设置) PCIe bar settings (working one with 128MB, 32MB)

0 个答案:

没有答案