diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-06-22 08:36:23 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2023-06-22 08:37:56 +0000 |
commit | 575941328d025997c20ee30e7f85835a9510415e (patch) | |
tree | 3cc4758577ecc441fcadc97f0d56bd25619c17cf /fdio.infra.ansible/roles/intel | |
parent | 7445da8209eded96134c6288ce5d83443a6c7d2b (diff) |
feat(infra): Add QAT install
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: Ifc461460b2f0f8c7ca17ab32fbf7df52cb356c29
Diffstat (limited to 'fdio.infra.ansible/roles/intel')
-rw-r--r-- | fdio.infra.ansible/roles/intel/defaults/main.yaml | 9 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/main.yaml | 15 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/qat.yaml | 44 |
3 files changed, 68 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/intel/defaults/main.yaml b/fdio.infra.ansible/roles/intel/defaults/main.yaml index 45b229db94..e3d4378e00 100644 --- a/fdio.infra.ansible/roles/intel/defaults/main.yaml +++ b/fdio.infra.ansible/roles/intel/defaults/main.yaml @@ -32,6 +32,9 @@ packages_by_distro: - "gnupg" - "patch" - "patchutils" + - "libboost-all-dev" + - "libudev-dev" + - "yasm" packages_by_arch: aarch64: @@ -83,6 +86,9 @@ intel_800_compatibility_matrix: intel_dsa_compatibility_matrix: dsa: "4.0" +intel_qat_compatibility_matrix: + qat: "1.0.20-00008" + intel_i40e_url: "2.17.15": "i40e%20stable/2.17.15/i40e-2.17.15.tar.gz/download" "2.19.3": "i40e%20stable/2.19.3/i40e-2.19.3.tar.gz/download" @@ -104,3 +110,6 @@ intel_ddp_url: intel_dsa_url: "4.0": "https://github.com/intel/idxd-config/archive/refs/tags/accel-config-v4.0.tar.gz" + +intel_qat_url: + "1.0.20-00008": "777529/QAT20.L.1.0.20-00008.tar.gz"
\ No newline at end of file diff --git a/fdio.infra.ansible/roles/intel/tasks/main.yaml b/fdio.infra.ansible/roles/intel/tasks/main.yaml index 7f0640a8d6..80c8d38998 100644 --- a/fdio.infra.ansible/roles/intel/tasks/main.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/main.yaml @@ -70,6 +70,14 @@ tags: - intel-inst-drivers +- name: Get Intel QAT driver versions + ansible.builtin.set_fact: + qat: "{{ intel_qat_compatibility_matrix['qat'] }}" + when: > + intel_qat_matrix is defined + tags: + - intel-inst-drivers + - name: Driver Intel Ethernet 700 Series import_tasks: i40e.yaml when: > @@ -103,3 +111,10 @@ intel_dsa_matrix is defined tags: - intel-inst-drivers + +- name: Driver Intel QAT + import_tasks: qat.yaml + when: > + intel_qat_matrix is defined + tags: + - intel-inst-drivers
\ No newline at end of file diff --git a/fdio.infra.ansible/roles/intel/tasks/qat.yaml b/fdio.infra.ansible/roles/intel/tasks/qat.yaml new file mode 100644 index 0000000000..6854755f4e --- /dev/null +++ b/fdio.infra.ansible/roles/intel/tasks/qat.yaml @@ -0,0 +1,44 @@ +--- +# file: tasks/qat.yaml + +- name: Get QAT Driver + ansible.builtin.uri: + url: "{{ intel_download_url }}/{{ intel_qat_url[qat] }}" + follow_redirects: "all" + force: true + dest: "{{ intel_extract_dir }}/QAT20.L.{{ qat }}.tar.gz" + mode: "0644" + failed_when: false + tags: + - intel-inst + +- name: Create a Directory For QAT Driver + ansible.builtin.file: + path: "{{ intel_extract_dir }}/QAT20.L.{{ qat }}/" + state: "directory" + mode: "0755" + tags: + - intel-inst + +- name: Extract QAT Driver + ansible.builtin.unarchive: + remote_src: true + src: "{{ intel_extract_dir }}/QAT20.L.{{ qat }}.tar.gz" + dest: "{{ intel_extract_dir }}/QAT20.L.{{ qat }}/" + register: intel_driver_extracted + tags: + - intel-inst + +- name: Install QAT Driver + ansible.builtin.command: "{{ item }}" + args: + chdir: "{{ intel_extract_dir }}/QAT20.L.{{ qat }}" + become: true + with_items: + - "./configure --enable-icp-sriov=host --enable-icp-sym-only" + - "make" + - "make install" + when: + - intel_driver_extracted + tags: + - intel-inst
\ No newline at end of file |