Zelalem Aweke | 773e19b | 2021-08-20 17:41:00 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
Harrison Mutai | a6d6e68 | 2023-03-27 13:20:33 +0100 | [diff] [blame] | 3 | # Copyright (c) 2021-2023, Arm Limited. All rights reserved. |
Zelalem Aweke | 773e19b | 2021-08-20 17:41:00 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 8 | generate_lava_job_template() { |
Harrison Mutai | a6d6e68 | 2023-03-27 13:20:33 +0100 | [diff] [blame] | 9 | payload_type="tftf" gen_yaml_template |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | generate_lava_job() { |
| 13 | local model="base-aemv8a" |
| 14 | |
Zelalem Aweke | 773e19b | 2021-08-20 17:41:00 -0500 | [diff] [blame] | 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 Deprez | 29c9961 | 2024-05-27 17:49:27 +0200 | [diff] [blame] | 27 | # 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 Aweke | 773e19b | 2021-08-20 17:41:00 -0500 | [diff] [blame] | 40 | model="$model" \ |
J-Alves | 9448a96 | 2023-09-19 12:26:22 +0100 | [diff] [blame] | 41 | secure_memory="0" \ |
Olivier Deprez | 29c9961 | 2024-05-27 17:49:27 +0200 | [diff] [blame] | 42 | has_rme="1" \ |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 43 | amu_present="1" \ |
Olivier Deprez | f1e9bed | 2024-05-27 18:07:06 +0200 | [diff] [blame] | 44 | arch_version="9.2" \ |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 45 | has_branch_target_exception="1" \ |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 46 | has_smmuv3_params="1" \ |
| 47 | memory_tagging_support_level="2" \ |
| 48 | restriction_on_speculative_execution="2" \ |
Madhukar Pappireddy | b642aa0 | 2023-08-23 16:49:20 -0500 | [diff] [blame] | 49 | gicd_are_fixed_one="1" \ |
| 50 | gicv3_ext_interrupt_range="1" \ |
| 51 | gicd_ext_ppi_count="64" \ |
| 52 | gicd_ext_spi_count="1024" \ |
Zelalem Aweke | 773e19b | 2021-08-20 17:41:00 -0500 | [diff] [blame] | 53 | gen_model_params |
| 54 | |
| 55 | model="$model" gen_fvp_yaml |
| 56 | } |