blob: a7ab872ec160e6a0c1b833c987c32a6f65d52573 [file] [log] [blame]
Boyan Karatotevaa7c8242025-02-27 13:21:32 +00001#!/usr/bin/env bash
2#
3# Copyright (c) 2024, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
10}
11
12generate_lava_job_template() {
13 payload_type="tftf" gen_yaml_template
14}
15
16generate_lava_job() {
17 local model="base-aemv8a"
18
19 uart="0" file="tftf.exp" track_expect
20 uart="1" file="hold_uart.exp" track_expect
21
22 # SPM(reference implementation of S-EL2 firmware) has SMMUv3 driver
23 # enabled to help with stage-2 translation and virtualization of
24 # upstream peripheral devices. Hence, enable the SMMUv3 IP in FVP
25 # by configuring the appropriate parameters of the SMMUv3 AEM.
26
27 model="$model" \
28 etm_plugin="1" \
29 has_ete="1" \
30 has_sve="1" \
31 etm_present="1" \
Boyan Karatotevb60abde2025-03-11 15:50:37 +000032 amu_present="1" amu_version=2 \
Boyan Karatotevaa7c8242025-02-27 13:21:32 +000033 has_sme="1" has_sme2="1" \
34 has_sme_fa64="1" \
35 has_mpam="1" \
36 has_ecv="1" \
37 has_fpmr="1" \
38 has_translation_hardening="1" \
39 has_d128="1" \
40 has_brbe="1" \
41 has_trbe="1" \
42 has_fgt2="1" \
43 has_csv2_2="1" \
44 has_s1pie="1" \
45 has_s1poe="1" \
46 has_s2poe="1" \
47 has_gcs="1" \
48 has_pmuv3p7="1" \
Boyan Karatotev5a53a2d2025-05-16 12:30:32 +010049 has_twed="1" \
Boyan Karatotevaa7c8242025-02-27 13:21:32 +000050 has_v8_9_debug_extension="1" \
51 memory_tagging_support_level="3" \
52 supports_branch_record_buffer_control_regs="1" \
53 has_branch_target_exception="1" \
54 supports_trace_buffer_control_regs="1" \
55 supports_trace_filter_regs="2" \
56 supports_system_trace_filter_regs="1" \
57 accelerator_support_level="3" \
58 has_mops="1" \
59 arch_version="9.4" \
60 has_smmuv3_params="1" \
61 gicd_are_fixed_one="1" \
62 gicv3_ext_interrupt_range="1" \
63 gicd_ext_ppi_count="64" \
64 gicd_ext_spi_count="1024" \
65 gen_model_params
66
67 model="$model" gen_fvp_yaml
68}