Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 1 | #!/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 | |
| 8 | generate_lava_job_template() { |
| 9 | payload_type="tftf" gen_yaml_template |
| 10 | } |
| 11 | |
| 12 | generate_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 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 | |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 40 | 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-Alves | 9448a96 | 2023-09-19 12:26:22 +0100 | [diff] [blame] | 46 | secure_memory="0" \ |
Olivier Deprez | 29c9961 | 2024-05-27 17:49:27 +0200 | [diff] [blame] | 47 | has_rme="1" \ |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 48 | amu_present="1" \ |
Olivier Deprez | f1e9bed | 2024-05-27 18:07:06 +0200 | [diff] [blame] | 49 | arch_version="9.2" \ |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 50 | has_branch_target_exception="1" \ |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 51 | has_smmuv3_params="1" \ |
Olivier Deprez | 29c9961 | 2024-05-27 17:49:27 +0200 | [diff] [blame] | 52 | memory_tagging_support_level="2" \ |
| 53 | restriction_on_speculative_execution="2" \ |
J-Alves | e87b0a0 | 2023-12-07 14:34:48 +0000 | [diff] [blame] | 54 | gicd_are_fixed_one="1" \ |
| 55 | gicv3_ext_interrupt_range="1" \ |
| 56 | gicd_ext_ppi_count="64" \ |
| 57 | gicd_ext_spi_count="1024" \ |
Saul Romero | 8ebc81f | 2023-09-01 12:20:14 +0100 | [diff] [blame] | 58 | gen_model_params |
| 59 | |
| 60 | model="$model" gen_fvp_yaml |
| 61 | } |