Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Copyright (c) 2021-2023, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
| 9 | fvp_romlib_runtime |
| 10 | build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin" |
| 11 | } |
| 12 | |
| 13 | post_tf_archive() { |
| 14 | fvp_romlib_cleanup |
| 15 | } |
| 16 | |
| 17 | generate_lava_job_template() { |
| 18 | payload_type="tftf" gen_yaml_template |
| 19 | } |
| 20 | |
| 21 | generate_lava_job() { |
| 22 | local model="base-aemv8a" |
| 23 | |
| 24 | uart="0" file="tftf.exp" track_expect |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 25 | |
| 26 | # SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver |
| 27 | # enabled to help with stage-2 translation and virtualization of |
| 28 | # upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP |
| 29 | # by configuring the appropriate parameters of the SMMUv3 AEM. |
| 30 | if ! is_arm_jenkins_env && not_upon "$local_ci"; then |
| 31 | bmcov_plugin_path="${coverage_trace_plugin}" |
| 32 | bmcov_plugin="1" |
| 33 | fi |
| 34 | |
| 35 | model="$model" \ |
| 36 | arch_version="8.5" \ |
| 37 | has_branch_target_exception="1" \ |
| 38 | has_smmuv3_params="1" \ |
| 39 | memory_tagging_support_level="2" \ |
J-Alves | e87b0a0 | 2023-12-07 14:34:48 +0000 | [diff] [blame] | 40 | gicd_are_fixed_one="1" \ |
| 41 | gicv3_ext_interrupt_range="1" \ |
| 42 | gicd_ext_ppi_count="64" \ |
| 43 | gicd_ext_spi_count="1024" \ |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 44 | gen_model_params |
| 45 | |
| 46 | model="$model" gen_fvp_yaml |
| 47 | } |