blob: 26338ff665764ee32b1643d5325ed7ee3917cee9 [file] [log] [blame]
Saul Romero8ebc81f2023-09-01 12:20:14 +01001#!/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
8generate_lava_job_template() {
9 payload_type="tftf" gen_yaml_template
10}
11
12generate_lava_job() {
13 local model="base-aemv8a"
14
15 # RME systems go BL1->BL2->BL31 so we must set this variable for expect
16 # scripts to work properly and not hang up waiting for BL1->BL31.
17 uart="0" set_expect_variable "skip_early_boot_msgs" "1"
18
19 # Use standard TFTF expect script on primary UART.
20 uart="0" file="tftf.exp" track_expect
21
22 # Track the rest of the UARTs to aid in debugging.
23 uart="1" file="hold_uart.exp" track_expect
24 uart="2" file="hold_uart.exp" track_expect
25 uart="3" file="hold_uart.exp" track_expect
26
Olivier Deprez29c99612024-05-27 17:49:27 +020027 # For RME test configs, bp.secure_memory=0 and bp.has_rme=1 imply:
28 # TZ access controls disabled.
29 # RME access controls enabled.
30 # Only Root access to Trusted ROM and SRAM.
31 # SECURE/ROOT access only for below peripherals:
32 # -Trusted DRAM
33 # -REFCLK CNTControl (Generic Timer)
34 # -Trusted Watchdog SP805, Trustzone address space controller
35 # -AP_REFCLK CNTBase0 (Generic Timer)
36 # -Trusted RNG, Non-Volatile Counter and Root-Key Storage
37 # -Flash0, Flash1
38 # -uart0, uart1, uart2, uart3
39
Saul Romero8ebc81f2023-09-01 12:20:14 +010040 if ! is_arm_jenkins_env && not_upon "$local_ci"; then
41 bmcov_plugin_path="${coverage_trace_plugin}"
42 bmcov_plugin="1"
43 fi
44
45 model="$model" \
J-Alves9448a962023-09-19 12:26:22 +010046 secure_memory="0" \
Olivier Deprez29c99612024-05-27 17:49:27 +020047 has_rme="1" \
Saul Romero8ebc81f2023-09-01 12:20:14 +010048 amu_present="1" \
Olivier Deprezf1e9bed2024-05-27 18:07:06 +020049 arch_version="9.2" \
Saul Romero8ebc81f2023-09-01 12:20:14 +010050 has_branch_target_exception="1" \
Saul Romero8ebc81f2023-09-01 12:20:14 +010051 has_smmuv3_params="1" \
Olivier Deprez29c99612024-05-27 17:49:27 +020052 memory_tagging_support_level="2" \
53 restriction_on_speculative_execution="2" \
J-Alvese87b0a02023-12-07 14:34:48 +000054 gicd_are_fixed_one="1" \
55 gicv3_ext_interrupt_range="1" \
56 gicd_ext_ppi_count="64" \
57 gicd_ext_spi_count="1024" \
Saul Romero8ebc81f2023-09-01 12:20:14 +010058 gen_model_params
59
60 model="$model" gen_fvp_yaml
61}