diff options
author | Wing Li <wingers@google.com> | 2022-10-29 02:32:06 +0100 |
---|---|---|
committer | Wing Li <wingers@google.com> | 2023-03-23 19:37:52 -0700 |
commit | cb88add07daff59486f850be6b4cd4750f94d97c (patch) | |
tree | 3737ad2a8a2aa4c4d9e8d4eea54720009ca4e94a /plat | |
parent | e0400c6d2b0372d742cd2cda9aaa7c5cf4741c4a (diff) |
test(psci): add tests for OS-initiated mode
Change-Id: I33e135f659aea600f71e053ac3db57eb0172e22b
Signed-off-by: Wing Li <wingers@google.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/arm/corstone1000/tests_to_skip.txt | 1 | ||||
-rw-r--r-- | plat/arm/juno/juno32_tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/arm/juno/juno64_tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/arm/n1sdp/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/arm/rdinfra/rdn1edge/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/arm/rdinfra/rdn2/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/arm/rdinfra/rdv1/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/arm/sgi/sgi575/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/arm/tc0/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/common/plat_topology.c | 5 | ||||
-rw-r--r-- | plat/nvidia/tegra186/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/nvidia/tegra194/tests_to_skip.txt | 3 | ||||
-rw-r--r-- | plat/nvidia/tegra210/tests_to_skip.txt | 3 |
13 files changed, 38 insertions, 1 deletions
diff --git a/plat/arm/corstone1000/tests_to_skip.txt b/plat/arm/corstone1000/tests_to_skip.txt index fdab230..a928249 100644 --- a/plat/arm/corstone1000/tests_to_skip.txt +++ b/plat/arm/corstone1000/tests_to_skip.txt @@ -12,4 +12,5 @@ PSCI SYSTEM SUSPEND stress tests Timer framework Validation/Verify the timer interrupt generation CPU Hotplug/CPU hotplug PSCI CPU Suspend +PSCI CPU Suspend in OSI mode PSCI STAT/for valid composite state CPU suspend diff --git a/plat/arm/juno/juno32_tests_to_skip.txt b/plat/arm/juno/juno32_tests_to_skip.txt index 078e363..83d342e 100644 --- a/plat/arm/juno/juno32_tests_to_skip.txt +++ b/plat/arm/juno/juno32_tests_to_skip.txt @@ -4,6 +4,9 @@ # SPDX-License-Identifier: BSD-3-Clause # +# OS-initiated mode is not supported on AArch32 Juno. +PSCI CPU Suspend in OSI mode + # System suspend is not supported on AArch32 Juno. PSCI System Suspend Validation PSCI STAT/Stats test cases after system suspend diff --git a/plat/arm/juno/juno64_tests_to_skip.txt b/plat/arm/juno/juno64_tests_to_skip.txt index 53c7e7f..636b0df 100644 --- a/plat/arm/juno/juno64_tests_to_skip.txt +++ b/plat/arm/juno/juno64_tests_to_skip.txt @@ -6,3 +6,6 @@ # The multicore spurious interrupt test is known to cause problems on Juno IRQ support in TSP/Multicore spurious interrupt test + +# OS-initiated mode is not supported on Juno +PSCI CPU Suspend in OSI mode diff --git a/plat/arm/n1sdp/tests_to_skip.txt b/plat/arm/n1sdp/tests_to_skip.txt index 21417e0..b6e87bf 100644 --- a/plat/arm/n1sdp/tests_to_skip.txt +++ b/plat/arm/n1sdp/tests_to_skip.txt @@ -7,6 +7,9 @@ # Disable SMMUv3 tests SMMUv3 tests +# OS-initiated mode is not supported on N1SDP +PSCI CPU Suspend in OSI mode + # PSCI is enabled but not tested PSCI STAT/Stats test cases after system suspend PSCI System Suspend Validation diff --git a/plat/arm/rdinfra/rdn1edge/tests_to_skip.txt b/plat/arm/rdinfra/rdn1edge/tests_to_skip.txt index 7fda40b..95360bc 100644 --- a/plat/arm/rdinfra/rdn1edge/tests_to_skip.txt +++ b/plat/arm/rdinfra/rdn1edge/tests_to_skip.txt @@ -4,6 +4,9 @@ # SPDX-License-Identifier: BSD-3-Clause # +# OS-initiated mode is not supported on RD-N1Edge +PSCI CPU Suspend in OSI mode + # System suspend is not supported as there are no wakeup sources in RD-N1Edge FVP PSCI STAT/Stats test cases after system suspend PSCI System Suspend Validation diff --git a/plat/arm/rdinfra/rdn2/tests_to_skip.txt b/plat/arm/rdinfra/rdn2/tests_to_skip.txt index 370f2b7..b8a433d 100644 --- a/plat/arm/rdinfra/rdn2/tests_to_skip.txt +++ b/plat/arm/rdinfra/rdn2/tests_to_skip.txt @@ -4,6 +4,9 @@ # SPDX-License-Identifier: BSD-3-Clause # +# OS-initiated mode is not supported on RD-N2 +PSCI CPU Suspend in OSI mode + # System suspend is not supported as there are no wakeup sources in RD-N2 FVP PSCI STAT/Stats test cases after system suspend PSCI System Suspend Validation diff --git a/plat/arm/rdinfra/rdv1/tests_to_skip.txt b/plat/arm/rdinfra/rdv1/tests_to_skip.txt index 25e3414..9b3ff5f 100644 --- a/plat/arm/rdinfra/rdv1/tests_to_skip.txt +++ b/plat/arm/rdinfra/rdv1/tests_to_skip.txt @@ -4,6 +4,9 @@ # SPDX-License-Identifier: BSD-3-Clause # +# OS-initiated mode is not supported on RD-V1 +PSCI CPU Suspend in OSI mode + # System suspend is not supported as there are no wakeup sources in RD-V1 FVP PSCI STAT/Stats test cases after system suspend PSCI System Suspend Validation diff --git a/plat/arm/sgi/sgi575/tests_to_skip.txt b/plat/arm/sgi/sgi575/tests_to_skip.txt index 5f132f5..1af24d8 100644 --- a/plat/arm/sgi/sgi575/tests_to_skip.txt +++ b/plat/arm/sgi/sgi575/tests_to_skip.txt @@ -4,6 +4,9 @@ # SPDX-License-Identifier: BSD-3-Clause # +# OS-initiated mode is not supported on SGI-575 +PSCI CPU Suspend in OSI mode + # System suspend is not supported as there are no wakeup sources in SGI-575 FVP PSCI STAT/Stats test cases after system suspend PSCI System Suspend Validation diff --git a/plat/arm/tc0/tests_to_skip.txt b/plat/arm/tc0/tests_to_skip.txt index 5830c14..762bfa0 100644 --- a/plat/arm/tc0/tests_to_skip.txt +++ b/plat/arm/tc0/tests_to_skip.txt @@ -7,6 +7,9 @@ # Disable SMMUv3 tests SMMUv3 tests +# OS-initiated mode is not supported +PSCI CPU Suspend in OSI mode + # PSCI is enabled but not tested PSCI STAT/Stats test cases after system suspend PSCI System Suspend Validation diff --git a/plat/common/plat_topology.c b/plat/common/plat_topology.c index 5ff7a31..a9b9828 100644 --- a/plat/common/plat_topology.c +++ b/plat/common/plat_topology.c @@ -184,11 +184,14 @@ static void get_parent_pwr_domain_nodes(unsigned int cpu_node, static void update_pwrlvl_limits(void) { int cpu_id, j, is_present; - unsigned int nodes_idx[PLATFORM_MAX_AFFLVL] = {-1}; + unsigned int nodes_idx[PLATFORM_MAX_AFFLVL]; unsigned int temp_index[PLATFORM_MAX_AFFLVL]; unsigned int cpu_node_offset = tftf_pwr_domain_start_idx[0]; + for (j = 0; j < PLATFORM_MAX_AFFLVL; j++) + nodes_idx[j] = -1; + for (cpu_id = 0; cpu_id < PLATFORM_CORE_COUNT; cpu_id++) { get_parent_pwr_domain_nodes(cpu_id + cpu_node_offset, PLATFORM_MAX_AFFLVL, diff --git a/plat/nvidia/tegra186/tests_to_skip.txt b/plat/nvidia/tegra186/tests_to_skip.txt index 1a18495..7086208 100644 --- a/plat/nvidia/tegra186/tests_to_skip.txt +++ b/plat/nvidia/tegra186/tests_to_skip.txt @@ -15,6 +15,9 @@ PSCI CPU Suspend/CPU suspend to standby at level 1 PSCI CPU Suspend/CPU suspend to standby at level 2 PSCI System Suspend Validation/Suspend system with cores in suspend +# Tegra186 platforms do not support OS-initiated mode +PSCI CPU Suspend in OSI mode + # Tegra186 platforms are facing problems with system suspend PSCI System Suspend Validation diff --git a/plat/nvidia/tegra194/tests_to_skip.txt b/plat/nvidia/tegra194/tests_to_skip.txt index f1be76e..14eb0dd 100644 --- a/plat/nvidia/tegra194/tests_to_skip.txt +++ b/plat/nvidia/tegra194/tests_to_skip.txt @@ -15,6 +15,9 @@ PSCI CPU Suspend/CPU suspend to standby at level 1 PSCI CPU Suspend/CPU suspend to standby at level 2 PSCI System Suspend Validation/Suspend system with cores in suspend +# Tegra194 platforms do not support OS-initiated mode +PSCI CPU Suspend in OSI mode + # Tegra194 platforms enter system suspend only from the boot core PSCI System Suspend Validation/system suspend from all cores diff --git a/plat/nvidia/tegra210/tests_to_skip.txt b/plat/nvidia/tegra210/tests_to_skip.txt index 62fb958..6c68967 100644 --- a/plat/nvidia/tegra210/tests_to_skip.txt +++ b/plat/nvidia/tegra210/tests_to_skip.txt @@ -15,6 +15,9 @@ PSCI CPU Suspend/CPU suspend to standby at level 2 PSCI CPU Suspend/CPU suspend to powerdown at level 1 PSCI CPU Suspend/CPU suspend to powerdown at level 2 +# Tegra186 platforms do not support OS-initiated mode +PSCI CPU Suspend in OSI mode + # Tegra210 platforms enter system suspend only from the boot core PSCI System Suspend Validation |