Searched +full:psci +full:- +full:0 (Results 1 – 10 of 10) sorted by relevance
/kvm-unit-tests/lib/linux/ |
H A D | psci.h | 2 * ARM Power State and Coordination Interface (PSCI) header 4 * This header holds common PSCI defines and macros shared 15 * PSCI v0.1 interface 17 * The PSCI v0.1 function numbers are implementation defined. 19 * Only PSCI return values such as: SUCCESS, NOT_SUPPORTED, 21 * to PSCI v0.1. 24 /* PSCI v0.2 interface */ 25 #define PSCI_0_2_FN_BASE 0x84000000 27 #define PSCI_0_2_64BIT 0x40000000 32 #define PSCI_0_2_FN_PSCI_VERSION PSCI_0_2_FN(0) [all …]
|
/kvm-unit-tests/lib/arm/ |
H A D | psci.c | 2 * PSCI API 3 * From arch/arm[64]/kernel/psci.c 10 #include <asm/psci.h> 23 printf("No PSCI method configured! Can't invoke...\n"); in psci_invoke_none() 32 return psci_invoke_fn(function_id, arg0, arg1, arg2, 0, 0, 0, 0, 0, 0, 0, 0, NULL); in psci_invoke() 38 return psci_invoke(PSCI_0_2_FN_CPU_ON, cpuid, entry_point, 0); in psci_cpu_on() 40 return psci_invoke(PSCI_0_2_FN64_CPU_ON, cpuid, entry_point, 0); in psci_cpu_on() 55 int err = psci_invoke(PSCI_0_2_FN_CPU_OFF, 0, 0, 0); in cpu_psci_cpu_die() 61 psci_invoke(PSCI_0_2_FN_SYSTEM_RESET, 0, 0, 0); in psci_system_reset() 66 int err = psci_invoke(PSCI_0_2_FN_SYSTEM_OFF, 0, 0, 0); in psci_system_off() [all …]
|
H A D | smp.c | 14 #include <asm/psci.h> 24 /* Needed to compile with -Wmissing-prototypes */ 32 thread_info_init(ti, 0); in secondary_cinit() 35 ti->pgtable = mmu_idmap; in secondary_cinit() 36 mmu_mark_enabled(ti->cpu); in secondary_cinit() 44 set_cpu_online(ti->cpu, true); in secondary_cinit() 62 assert(ret == 0); in __smp_boot_secondary()
|
H A D | io.c | 3 * devices exposed from QEMU, e.g. pl011 and chr-testdev. That's 13 #include <chr-testdev.h> 15 #include <asm/psci.h> 36 * kvm-unit-tests uses the uart only for output. Both uart models have in uart0_init_fdt() 37 * the TX register at offset 0 from the base address, so there is no in uart0_init_fdt() 45 assert(ret >= 0 || ret == -FDT_ERR_NOTFOUND); in uart0_init_fdt() 47 if (ret == -FDT_ERR_NOTFOUND) { in uart0_init_fdt() 49 for (i = 0; i < ARRAY_SIZE(compatible); i++) { in uart0_init_fdt() 51 assert(ret == 0 || ret == -FDT_ERR_NOTFOUND); in uart0_init_fdt() 53 if (ret == 0) in uart0_init_fdt() [all …]
|
H A D | setup.c | 5 * (nr_cpus), how much memory they have (PHYS_END - PHYS_OFFSET), may 29 #include <asm/psci.h> 43 u64 cpus[NR_CPUS] = { [0 ... NR_CPUS-1] = (u64)~0 }; 47 phys_addr_t __phys_offset = (phys_addr_t)-1, __phys_end = 0; 56 for (i = 0; i < nr_cpus; ++i) in mpidr_to_cpu() 59 return -1; in mpidr_to_cpu() 83 cpus[cpu] = gicc->arm_mpidr; in cpu_set_acpi() 86 return 0; in cpu_set_acpi() 107 nr_cpus = 0; in cpu_init() 110 assert(ret == 0); in cpu_init() [all …]
|
/kvm-unit-tests/arm/ |
H A D | psci.c | 2 * PSCI tests 16 #include <asm/psci.h> 30 regs->pc += 4; in invalid_function_handler() 49 pass = psci_invoke(1337, 0, 0, 0) == PSCI_RET_NOT_SUPPORTED || invalid_function_exception; in psci_invalid_function() 58 return psci_invoke(PSCI_0_2_FN_AFFINITY_INFO, target_affinity, lowest_affinity_level, 0); in psci_affinity_info() 60 return psci_invoke(PSCI_0_2_FN64_AFFINITY_INFO, target_affinity, lowest_affinity_level, 0); in psci_affinity_info() 66 return psci_affinity_info(cpus[0], 0) == PSCI_0_2_AFFINITY_LEVEL_ON; in psci_affinity_info_on() 71 return psci_affinity_info(cpus[1], 0) == PSCI_0_2_AFFINITY_LEVEL_OFF; in psci_affinity_info_off() 111 int ret_success = 0; in psci_cpu_on_test() 120 cpumask_set_cpu(0, &cpu_on_ready); in psci_cpu_on_test() [all …]
|
H A D | unittests.cfg | 12 # that the configured amount of memory (-m <MB>) are correctly setup 15 [selftest-setup] 18 extra_params = -m 256 -append 'setup smp=2 mem=256' 22 [selftest-vectors-kernel] 24 extra_params = -append 'vectors-kernel' 28 [selftest-vectors-user] 30 extra_params = -append 'vectors-user' 34 [selftest-smp] 37 extra_params = -append 'smp' 41 [pci-test] [all …]
|
H A D | Makefile.common | 7 tests-common = $(TEST_DIR)/selftest.$(exe) 8 tests-common += $(TEST_DIR)/spinlock-test.$(exe) 9 tests-common += $(TEST_DIR)/pci-test.$(exe) 10 tests-common += $(TEST_DIR)/pmu.$(exe) 11 tests-common += $(TEST_DIR)/gic.$(exe) 12 tests-common += $(TEST_DIR)/psci.$(exe) 13 tests-common += $(TEST_DIR)/sieve.$(exe) 14 tests-common += $(TEST_DIR)/pl031.$(exe) 15 tests-common += $(TEST_DIR)/dummy.$(exe) 17 tests-all = $(tests-common) $(tests) [all …]
|
H A D | selftest.c | 15 #include <asm/asm-offsets.h> 18 #include <asm/psci.h> 34 int nr_tests = 0, len, i; in check_setup() 37 for (i = 0; i < argc; ++i) { in check_setup() 40 if (len == -1) in check_setup() 43 argv[i][len] = '\0'; in check_setup() 46 if (strcmp(argv[i], "mem") == 0) { in check_setup() 48 phys_addr_t memsize = PHYS_END - PHYS_OFFSET; in check_setup() 56 } else if (strcmp(argv[i], "smp") == 0) { in check_setup() 74 phys_addr_t highest_end = 0; in check_pabt_init() [all …]
|
/kvm-unit-tests/lib/ |
H A D | acpi.h | 7 * All tables and structures must be byte-packed to match the ACPI 32 u8 checksum; /* To make sum of struct == 0 */ 34 u8 revision; /* Must be 0 for 1.0, 2 for 2.0 */ 35 u32 rsdt_physical_address; /* 32-bit physical address of RSDT */ 37 u64 xsdt_physical_address; /* 64-bit physical address of XSDT */ 39 u8 reserved[3]; /* Reserved field must be 0 */ 46 u8 checksum; /* To make sum of entire table == 0 */ \ 73 u64 address; /* 64-bit address of struct or register */ 87 u8 reserved2; /* Reserved - must be zero */ 94 u32 gpe0_blk; /* Port addr of General Purpose acpi_event 0 Reg Blk */ [all …]
|