aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml')
-rw-r--r--fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml b/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
new file mode 100644
index 0000000000..438095fc00
--- /dev/null
+++ b/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
@@ -0,0 +1,23 @@
+---
+# file: roles/vpp_device/tasks/thunderx2.yaml
+
+- name: Load Kernel Modules On Startup (vfio-pci)
+ ansible.builtin.lineinfile:
+ path: "/etc/modules"
+ state: "present"
+ line: "{{ item }}"
+ with_items:
+ - "vfio-pci"
+ tags:
+ - load-kernel-modules
+
+- name: Disable Kernel Modules On Startup (cppc_cpufreq)
+ ansible.builtin.lineinfile:
+ path: "/etc/modprobe.d/blacklist-cppc_cpufreq.conf"
+ state: "present"
+ line: "{{ item }}"
+ create: "yes"
+ with_items:
+ - "blacklist cppc_cpufreq"
+ tags:
+ - disable-kernel-modules