The following Error can occur when inserting an xpcie.ko driver module for a design that has a PF/VF BAR size larger than 64KB:
Further debug messages can be seen by executing "dmesg" command in the terminal:
This issue occurs because the system is unable to find a large contiguous Kernel space for the PCIe BARs.
PCI memory allocation is typically done by the BIOS.
However the Linux Kernel allows the PCI memory to be reallocated to allow for a larger BAR size to be mapped. This is done by providing a "pci=realloc=on" option in the Kernel boot parameter.
The following instruction was tested in Linux Kernel version 2.6.32-431.el6.x86_64 with Grub2 installed:
1) Make sure you have Root permission. Edit the /etc/default/grub file in a text editor. In this file, add pci=realloc=on option to GRUB_CMDLINE_LINUX.
An example of a grub file after editing is shown below:
2) Save the file and then in the terminal window, compile the configuration by executing the following command:
grub2-mkconfig -o /boot/grub2/grub.cfg
3) Verify that the new option has been added; you should now see the pci=realloc=on option when executing the following command:
cat /boot/grub2/grub.cfg |grep -i pci
4) Reboot the system and then install the driver:
1/27/2016 - Initial Release