blob: 93194181d601b412470949d200c74c323ad34442 [file] [log] [blame]
Zelalem Aweke773e19b2021-08-20 17:41:00 -05001#!/usr/bin/env bash
2#
Harrison Mutaia6d6e682023-03-27 13:20:33 +01003# Copyright (c) 2021-2023, Arm Limited. All rights reserved.
Zelalem Aweke773e19b2021-08-20 17:41:00 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
Chris Kay4e8aaf12022-09-01 15:21:55 +01008generate_lava_job_template() {
Harrison Mutaia6d6e682023-03-27 13:20:33 +01009 payload_type="tftf" gen_yaml_template
Chris Kay4e8aaf12022-09-01 15:21:55 +010010}
11
12generate_lava_job() {
13 local model="base-aemv8a"
14
Zelalem Aweke773e19b2021-08-20 17:41:00 -050015 # 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
Zelalem Aweke773e19b2021-08-20 17:41:00 -050040 model="$model" \
J-Alves9448a962023-09-19 12:26:22 +010041 secure_memory="0" \
Olivier Deprez29c99612024-05-27 17:49:27 +020042 has_rme="1" \
Chris Kay4e8aaf12022-09-01 15:21:55 +010043 amu_present="1" \
Olivier Deprezf1e9bed2024-05-27 18:07:06 +020044 arch_version="9.2" \
Chris Kay4e8aaf12022-09-01 15:21:55 +010045 has_branch_target_exception="1" \
Chris Kay4e8aaf12022-09-01 15:21:55 +010046 has_smmuv3_params="1" \
47 memory_tagging_support_level="2" \
48 restriction_on_speculative_execution="2" \
Madhukar Pappireddyb642aa02023-08-23 16:49:20 -050049 gicd_are_fixed_one="1" \
50 gicv3_ext_interrupt_range="1" \
51 gicd_ext_ppi_count="64" \
52 gicd_ext_spi_count="1024" \
Zelalem Aweke773e19b2021-08-20 17:41:00 -050053 gen_model_params
54
55 model="$model" gen_fvp_yaml
56}