I have a Xilinx FPGA for which I compiled and loaded a driver. But when I look into the enumeration of the device, it looks like there is a failure in assigning a BAR. This failure does not allow the driver to load correctly
The output of lspci and dmesg | grep BAR is as shown below. It can be seen that the PCIe device number for the Xilinx device fails to assign a BAR.
nvidia@jetson-0423018054808:~$ lspci
0001:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad2 (rev a1)
0001:01:00.0 SATA controller: Marvell Technology Group Ltd. Device 9171 (rev 13)
0003:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad0 (rev a1)
0003:01:00.0 Serial controller: Xilinx Corporation Device 6a90
0003:01:00.1 Serial controller: Xilinx Corporation Device 6a8f
nvidia@jetson-0423018054808:~$ dmesg | grep BAR
[ 7.466510] pci 0001:00:00.0: BAR 14: assigned [mem 0x30200000-0x302fffff]
[ 7.466532] pci 0001:00:00.0: BAR 13: assigned [io 0x100000-0x100fff]
[ 7.466537] pci 0001:01:00.0: BAR 6: assigned [mem 0x30200000-0x3020ffff pref]
[ 7.466540] pci 0001:01:00.0: BAR 5: assigned [mem 0x30210000-0x302101ff]
[ 7.466616] pci 0001:01:00.0: BAR 4: assigned [io 0x100000-0x10000f]
[ 7.466675] pci 0001:01:00.0: BAR 0: assigned [io 0x100010-0x100017]
[ 7.466696] pci 0001:01:00.0: BAR 2: assigned [io 0x100018-0x10001f]
[ 7.466721] pci 0001:01:00.0: BAR 1: assigned [io 0x100020-0x100023]
[ 7.466746] pci 0001:01:00.0: BAR 3: assigned [io 0x100024-0x100027]
[ 8.231142] pci 0003:00:00.0: BAR 14: no space for [mem size 0x05000000]
[ 8.232455] pci 0003:00:00.0: BAR 14: failed to assign [mem size 0x05000000]
[ 8.233771] pci 0003:01:00.0: BAR 0: no space for [mem size 0x02000000]
[ 8.235079] pci 0003:01:00.0: BAR 0: failed to assign [mem size 0x02000000]
[ 8.236376] pci 0003:01:00.1: BAR 0: no space for [mem size 0x02000000]
[ 8.238696] pci 0003:01:00.1: BAR 0: failed to assign [mem size 0x02000000]
[ 8.245700] pci 0003:01:00.1: BAR 1: no space for [mem size 0x00020000]
[ 8.252086] pci 0003:01:00.1: BAR 1: failed to assign [mem size 0x00020000]
[ 8.259275] pci 0003:01:00.0: BAR 1: no space for [mem size 0x00010000]
[ 8.265921] pci 0003:01:00.0: BAR 1: failed to assign [mem size 0x00010000]
[ 10.293606] xclmgmt 0003:01:00.1: map_bars: Could not map BAR #0
[ 10.400940] xocl:map_bars: Failed to detect XDMA config BAR