Multi Channel DMA Intel® FPGA IP for PCI Express Design Example User Guide

ID 683517
Date 4/17/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.5.2.4.1.1. Set the Boot Parameters

Follow the step below to modify the default hugepages setting in grub files:

Edit /etc/default/grub file.

Append the highlighted parameters to the GRUB_CMDLINE_LINUX line in the /etc/default/grub file:

GRUB_CMDLINE_LINUX=" rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb default_hugepagesz=1G hugepagesz=1G hugepages=40 iommu=pt panic=1”

CentOS: GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb default_hugepagesz=1G hugepagesz=1G hugepages=40 iommu=pt panic=1”

Ubuntu: GRUB_CMDLINE_LINUX="boot/vmlinuz-5.15.0-52-generic root=UUID=44f6cb6f-86e9-4d9c-90f0-17269a6eeaf0 ro default_hugepagesz=1G hugepagesz=1G hugepages=20 intel_iommu=on iommu=pt panic=1 quiet splash vt.handoff=7

The file will look as below after the edit for CentOS:

GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb default_hugepagesz=1G hugepagesz=1G hugepages=40 iommu=pt panic=1”

GRUB_DISABLE_RECOVERY="true"

In the case of memory allocation failure at the time of Virtual Function creation, add the following boot parameters:
"pci=hpbussize=10,hpmemsize=2M,nocrs,realloc=on"

To bind the device to vfio-pci and use IOMMU, enable the following parameter: intel_iommu=on

To use UIO and not enable the IOMMU lookup, add the following parameter: iommu=pt

To use the AMD platform and the UIO driver, add the following parameter at boot

time: iommu=soft