blob: d5fa43e2d99e787df7fddc31139639f9df33e447 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Manish V Badarkhe43bb6312021-01-04 08:55:05 +00003# Copyright (c) 2019-2021, Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8# Use revc model
Madhukar Pappireddy21a5e672021-03-08 17:49:45 -06009if is_arm_jenkins_env || upon "$local_ci"; then
Zelalem Aweke52aad162021-10-25 17:28:03 -050010 set_model_path "$warehouse/SysGen/Models/$model_version/$model_build/external/models/$model_flavour/FVP_Base_RevC-2xAEMvA"
Zelalem Aweke773e19b2021-08-20 17:41:00 -050011
Zelalem Aweke52aad162021-10-25 17:28:03 -050012 default_var sve_plugin_path "$warehouse/SysGen/PVModelLib/$model_version/$model_build/external/plugins/$model_flavour/sve2-HEAD/ScalableVectorExtension.so"
Leonardo Sandovalc7317ea2021-02-23 17:55:07 -060013else
14 # OpenCI enviroment
15 source "$ci_root/fvp_utils.sh"
Fathi Boudra422bf772019-12-02 11:10:16 +020016
Leonardo Sandovalc7317ea2021-02-23 17:55:07 -060017 # fvp_models variable contains the information for FVP paths, where 2nd field
18 # points to the /opt/model/*/models/${model_flavour}
19 models_dir="$(echo ${fvp_models[$model]} | awk -F ';' '{print $2}')"
20 set_model_path "$models_dir"
21
22 # ScalableVectorExtension is located at /opt/model/*/plugins/${model_flavour}
23 default_var sve_plugin_path "${models_dir/models/plugins}/ScalableVectorExtension.so"
24fi
Fathi Boudra422bf772019-12-02 11:10:16 +020025
Zelalemeb9c1bb2020-08-04 12:40:46 -050026default_var is_dual_cluster 1
27
28source "$ci_root/model/base-aemva-common.sh"
29
30# Base address for each redistributor
31if [ "$gicd_virtual_lpi" = "1" ]; then
32 cat <<EOF >>"$model_param_file"
33-C gic_distributor.reg-base-per-redistributor=0.0.0.0=0x2f100000,0.0.1.0=0x2f140000,0.0.2.0=0x2f180000,0.0.3.0=0x2f1c0000,0.1.0.0=0x2f200000,0.1.1.0=0x2f240000,0.1.2.0=0x2f280000,0.1.3.0=0x2f2c0000
34-C gic_distributor.print-memory-map=1
35EOF
36fi
Manish V Badarkhe43bb6312021-01-04 08:55:05 +000037
38# GIC and pctl CPU affinity properties for aarch32.gicv2
39if [ "$aarch32" = "1" ] && [ "$gicv3_gicv2_only" = "1" ]; then
40 cat <<EOF >>"$model_param_file"
41-C gic_distributor.CPU-affinities=0.0.0.0,0.0.0.1,0.0.0.2,0.0.0.3,0.0.1.0,0.0.1.1,0.0.1.2,0.0.1.3
42-C pctl.CPU-affinities=0.0.0.0,0.0.0.1,0.0.0.2,0.0.0.3,0.0.1.0,0.0.1.1,0.0.1.2,0.0.1.3
43-C gic_distributor.reg-base-per-redistributor=0.0.0.0=0x2f100000,0.0.0.1=0x2f120000,0.0.0.2=0x2f140000,0.0.0.3=0x2f160000,0.0.1.0=0x2f180000,0.0.1.1=0x2f1a0000,0.0.1.2=0x2f1c0000,0.0.1.3=0x2f1e0000
44-C pctl.Affinity-shifted=0
45EOF
46fi