Igor Podgainõi | dca1f2c | 2024-09-27 16:12:53 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Copyright (c) 2024, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | pre_tftf_build() { |
| 9 | targets="tftf cactus ivy" set_tftf_build_targets |
| 10 | } |
| 11 | |
| 12 | post_tf_build() { |
| 13 | build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin" |
| 14 | } |
| 15 | |
| 16 | generate_lava_job_template() { |
| 17 | payload_type="tftf" gen_yaml_template |
| 18 | } |
| 19 | |
| 20 | generate_lava_job() { |
| 21 | local model="base-aemv8a" |
| 22 | |
| 23 | uart="0" file="tftf.exp" track_expect |
| 24 | uart="1" file="hold_uart.exp" track_expect |
| 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 | |
| 31 | # FEAT_FGT, FEAT_VHE, FEAT_RAS, FEAT_RASv1p1, FEAT_NV2, FEAT_TRF and |
| 32 | # FEAT_HCX are enabled implicitly due to the architecture version |
| 33 | # being set to ARMv9.3. |
| 34 | |
| 35 | model="$model" \ |
| 36 | arch_version="9.3" \ |
| 37 | has_branch_target_exception="1" \ |
| 38 | has_smmuv3_params="1" \ |
| 39 | memory_tagging_support_level="2" \ |
| 40 | amu_present="1" \ |
| 41 | has_fgt2="1" \ |
| 42 | has_ecv="1" \ |
| 43 | has_csv2_2="1" \ |
| 44 | has_s1pie="1" \ |
| 45 | has_s2pie="1" \ |
| 46 | has_s1poe="1" \ |
| 47 | has_gcs="1" \ |
| 48 | has_mpam="1" \ |
| 49 | gicd_are_fixed_one="1" \ |
| 50 | gicv3_ext_interrupt_range="1" \ |
| 51 | gicd_ext_ppi_count="64" \ |
| 52 | gicd_ext_spi_count="1024" \ |
| 53 | gen_model_params |
| 54 | |
| 55 | model="$model" gen_fvp_yaml |
| 56 | } |