Home
last modified time | relevance | path

Searched +full:psci +full:- +full:1 (Results 1 – 8 of 8) sorted by relevance

/kvm-unit-tests/lib/linux/
H A Dpsci.h2 * 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 */
33 #define PSCI_0_2_FN_CPU_SUSPEND PSCI_0_2_FN(1)
43 #define PSCI_0_2_FN64_CPU_SUSPEND PSCI_0_2_FN64(1)
54 /* PSCI v0.2 power state encoding for CPU_SUSPEND function */
[all …]
/kvm-unit-tests/lib/arm/
H A Dpsci.c2 * 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()
76 node = fdt_node_offset_by_compatible(fdt, -1, "arm,psci-0.2"); in psci_set_conduit_fdt()
77 assert_msg(node >= 0, "PSCI v0.2 compatibility required"); in psci_set_conduit_fdt()
82 if (strcmp(method->data, "hvc") == 0) in psci_set_conduit_fdt()
84 else if (strcmp(method->data, "smc") == 0) in psci_set_conduit_fdt()
87 assert_msg(false, "Unknown PSCI conduit: %s", method->data); in psci_set_conduit_fdt()
99 assert_msg(fadt->arm_boot_flags & ACPI_FADT_PSCI_COMPLIANT, in psci_set_conduit_acpi()
[all …]
H A Dio.c3 * 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()
45 assert(ret >= 0 || ret == -FDT_ERR_NOTFOUND); in uart0_init_fdt()
47 if (ret == -FDT_ERR_NOTFOUND) { in uart0_init_fdt()
51 assert(ret == 0 || ret == -FDT_ERR_NOTFOUND); in uart0_init_fdt()
83 uart0_base = ioremap(spcr->serial_port.address, spcr->serial_port.bit_width); in uart0_init_acpi()
120 int c = -1; in __getchar()
149 * up when chr-testdev is not present. in exit()
[all …]
H A Dsetup.c5 * (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 };
46 static struct mem_region arm_mem_regions[NR_MEM_REGIONS + 1];
47 phys_addr_t __phys_offset = (phys_addr_t)-1, __phys_end = 0;
59 return -1; in mpidr_to_cpu()
83 cpus[cpu] = gicc->arm_mpidr; in cpu_set_acpi()
125 code->flags |= MR_F_CODE; in arm_memregions_add_assumed()
128 * mach-virt I/O regions: in arm_memregions_add_assumed()
129 * - The first 1G (arm/arm64) in arm_memregions_add_assumed()
[all …]
/kvm-unit-tests/arm/
H A Dpsci.c2 * PSCI tests
16 #include <asm/psci.h>
30 regs->pc += 4; in invalid_function_handler()
71 return psci_affinity_info(cpus[1], 0) == PSCI_0_2_AFFINITY_LEVEL_OFF; in psci_affinity_info_off()
87 cpu_on_ret[cpu] = psci_cpu_on(cpus[1], __pa(secondary_entry)); in cpu_on_do_wake_target()
121 cpumask_set_cpu(1, &cpu_on_ready); in psci_cpu_on_test()
126 * Configure CPU 1 after all secondaries are online to avoid in psci_cpu_on_test()
129 psci_cpu_on_prepare_secondary(1, cpu_on_target); in psci_cpu_on_test()
131 cpu_on_start = 1; in psci_cpu_on_test()
134 cpu_on_ret[0] = psci_cpu_on(cpus[1], __pa(secondary_entry)); in psci_cpu_on_test()
[all …]
H A Dunittests.cfg12 # 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 Dselftest.c15 #include <asm/asm-offsets.h>
18 #include <asm/psci.h>
40 if (len == -1) in check_setup()
48 phys_addr_t memsize = PHYS_END - PHYS_OFFSET; in check_setup()
87 for (r = mem_regions; r->end; ++r) { in check_pabt_init()
88 if (r->flags & MR_F_IO) in check_pabt_init()
90 if (r->end > highest_end) in check_pabt_init()
91 highest_end = PAGE_ALIGN(r->end); in check_pabt_init()
98 mmu_clear_user(current_thread_info()->pgtable, vaddr); in check_pabt_init()
119 "stmia r0, { r0-lr }\n" \
[all …]
/kvm-unit-tests/lib/
H A Dacpi.h7 * All tables and structures must be byte-packed to match the ACPI
10 #pragma pack(1)
35 u32 rsdt_physical_address; /* 32-bit physical address of RSDT */
37 u64 xsdt_physical_address; /* 64-bit physical address of XSDT */
73 u64 address; /* 64-bit address of struct or register */
87 u8 reserved2; /* Reserved - must be zero */
88 u32 pm1a_evt_blk; /* Port address of Power Mgt 1a acpi_event Reg Blk */
89 u32 pm1b_evt_blk; /* Port address of Power Mgt 1b acpi_event Reg Blk */
90 u32 pm1a_cnt_blk; /* Port address of Power Mgt 1a Control Reg Blk */
91 u32 pm1b_cnt_blk; /* Port address of Power Mgt 1b Control Reg Blk */
[all …]