From: Juraj Linkeš Date: Thu, 26 Aug 2021 08:43:45 +0000 (+0200) Subject: ansible: match vpp device config to perf config X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=b94c2873efb1126cc103c65ee3ec2ebff8bc7528 ansible: match vpp device config to perf config We're not using unsafe noiommu on perf testbeds and we should mirror that config in vpp device. As a side note, on arm vpp device, enabling unsafe noiommu leads to corrupted packets, so it must be disabled at least on arm vpp device. Also update arm vpp device kernel parameters to match perf testbeds. Change-Id: Id3d3e8fcf71583cc04887b4180cd20561856d902 Signed-off-by: Juraj Linkeš --- diff --git a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml index 5c65ef0a20..cb82c28608 100644 --- a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml +++ b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml @@ -7,7 +7,7 @@ vfs_data_file: "csit-initialize-vfs-tx2.sh" grub: hugepagesz: "2M" hugepages: 32768 - iommu: "on" + iommu.passthrough: "1" cpu_microarchitecture: "thunderx2" # User management. diff --git a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml index 9ac021170b..35b647785b 100644 --- a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml +++ b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml @@ -7,7 +7,7 @@ vfs_data_file: "csit-initialize-vfs-tx2.sh" grub: hugepagesz: "2M" hugepages: 32768 - iommu: "on" + iommu.passthrough: "1" cpu_microarchitecture: "thunderx2" # User management. diff --git a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml index 0114b05a40..280b8bf550 100644 --- a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml +++ b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml @@ -129,12 +129,3 @@ - "Update GRUB" tags: - set-grub - -- name: Configure unsafe noiommu - lineinfile: - path: "/etc/modprobe.d/vfio-noiommu.conf" - state: "present" - line: "options vfio enable_unsafe_noiommu_mode=1" - create: "yes" - tags: - - configure-unsafe-noiommu