Lines Matching full:hart
27 * Returns the hart ID of the given device tree node, or -ENODEV if the node
28 * isn't an enabled and valid RISC-V hart node.
30 int riscv_of_processor_hartid(struct device_node *node, unsigned long *hart) in riscv_of_processor_hartid() argument
34 *hart = (unsigned long)of_get_cpu_hwid(node, 0); in riscv_of_processor_hartid()
35 if (*hart == ~0UL) { in riscv_of_processor_hartid()
36 pr_warn("Found CPU without hart ID\n"); in riscv_of_processor_hartid()
40 cpu = riscv_hartid_to_cpuid(*hart); in riscv_of_processor_hartid()
50 int __init riscv_early_of_processor_hartid(struct device_node *node, unsigned long *hart) in riscv_early_of_processor_hartid() argument
59 *hart = (unsigned long)of_get_cpu_hwid(node, 0); in riscv_early_of_processor_hartid()
60 if (*hart == ~0UL) { in riscv_early_of_processor_hartid()
61 pr_warn("Found CPU without hart ID\n"); in riscv_early_of_processor_hartid()
66 pr_info("CPU with hartid=%lu is not available\n", *hart); in riscv_early_of_processor_hartid()
74 pr_warn("CPU with hartid=%lu does not support rv32i", *hart); in riscv_early_of_processor_hartid()
79 pr_warn("CPU with hartid=%lu does not support rv64i", *hart); in riscv_early_of_processor_hartid()
89 pr_warn("CPU with hartid=%lu does not support ima", *hart); in riscv_early_of_processor_hartid()
98 *hart); in riscv_early_of_processor_hartid()
104 *hart); in riscv_early_of_processor_hartid()
109 pr_warn("CPU with hartid=%lu does not support rv32ima", *hart); in riscv_early_of_processor_hartid()
114 pr_warn("CPU with hartid=%lu does not support rv64ima", *hart); in riscv_early_of_processor_hartid()
122 * Find hart ID of the CPU DT node under which given DT node falls.
125 * RISC-V core (HART) node and extract the cpuid from it.
133 pr_warn("Found CPU without hart ID\n"); in riscv_of_parent_hartid()
339 seq_printf(m, "hart\t\t: %lu\n", cpuid_to_hartid_map(cpu_id)); in c_show()
344 * extensions supported on this hart is printed later in the hart isa: in c_show()
366 * Print the ISA extensions specific to this hart, which may show in c_show()
369 seq_puts(m, "hart isa\t: "); in c_show()