Lines Matching +full:psci +full:- +full:0

2  * PSCI tests
16 #include <asm/psci.h>
30 regs->pc += 4;
49 pass = psci_invoke(1337, 0, 0, 0) == PSCI_RET_NOT_SUPPORTED || invalid_function_exception;
58 return psci_invoke(PSCI_0_2_FN_AFFINITY_INFO, target_affinity, lowest_affinity_level, 0);
60 return psci_invoke(PSCI_0_2_FN64_AFFINITY_INFO, target_affinity, lowest_affinity_level, 0);
66 return psci_affinity_info(cpus[0], 0) == PSCI_0_2_AFFINITY_LEVEL_ON;
71 return psci_affinity_info(cpus[1], 0) == PSCI_0_2_AFFINITY_LEVEL_OFF;
111 int ret_success = 0;
120 cpumask_set_cpu(0, &cpu_on_ready);
134 cpu_on_ret[0] = psci_cpu_on(cpus[1], __pa(secondary_entry));
135 cpumask_set_cpu(0, &cpu_on_done);
138 for (i = 0; i < 100; i++) {
191 if (cpu == 0)
196 cpumask_set_cpu(0, &cpu_off_done);
204 for (i = 0; i < 100; i++) {
207 count = 0;
209 if (cpu == 0)
211 if (psci_affinity_info(cpus[cpu], 0) != PSCI_0_2_AFFINITY_LEVEL_OFF)
214 if (count == 0)
219 if (count == 0)
223 if (cpu == 0)
227 if (psci_affinity_info(cpus[cpu], 0) == PSCI_0_2_AFFINITY_LEVEL_OFF)
238 int ver = psci_invoke(PSCI_0_2_FN_PSCI_VERSION, 0, 0, 0);
240 report_prefix_push("psci");
247 report_info("PSCI version %d.%d", PSCI_VERSION_MAJOR(ver),
249 report(psci_invalid_function(), "invalid-function");
250 report(psci_affinity_info_on(), "affinity-info-on");
251 report(psci_affinity_info_off(), "affinity-info-off");
254 report(psci_cpu_on_test(), "cpu-on");
256 report_skip("Skipping unsafe cpu-on test. Set ERRATA_6c7a5dce22b3=y to enable.");
258 assert(!cpu_idle(0));
260 if (!ERRATA(6c7a5dce22b3) || cpumask_weight(&cpu_idle_mask) == nr_cpus - 1)
261 report(psci_cpu_off_test(), "cpu-off");
263 report_skip("Skipping cpu-off test because the cpu-on test failed");
266 #if 0
268 psci_invoke(PSCI_0_2_FN_SYSTEM_OFF, 0, 0, 0);
269 report_fail("system-off");
270 return 1; /* only reaches here if system-off fails */