Home
last modified time | relevance | path

Searched refs:hartid (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/arch/riscv/kernel/
Dcpu_ops_sbi.c26 static int sbi_hsm_hart_start(unsigned long hartid, unsigned long saddr, in sbi_hsm_hart_start() argument
32 hartid, saddr, priv, 0, 0, 0); in sbi_hsm_hart_start()
52 static int sbi_hsm_hart_get_status(unsigned long hartid) in sbi_hsm_hart_get_status() argument
57 hartid, 0, 0, 0, 0, 0); in sbi_hsm_hart_get_status()
68 unsigned long hartid = cpuid_to_hartid_map(cpuid); in sbi_cpu_start() local
79 return sbi_hsm_hart_start(hartid, boot_addr, hsm_data); in sbi_cpu_start()
110 unsigned long hartid = cpuid_to_hartid_map(cpuid); in sbi_cpu_is_stopped() local
112 rc = sbi_hsm_hart_get_status(hartid); in sbi_cpu_is_stopped()
Dcpu_ops_spinwait.c23 unsigned long hartid = cpuid_to_hartid_map(cpuid); in cpu_update_secondary_bootdata() local
32 if (hartid == INVALID_HARTID || hartid >= (unsigned long) NR_CPUS) in cpu_update_secondary_bootdata()
37 WRITE_ONCE(__cpu_spinwait_stack_pointer[hartid], in cpu_update_secondary_bootdata()
39 WRITE_ONCE(__cpu_spinwait_task_pointer[hartid], tidle); in cpu_update_secondary_bootdata()
Dsbi.c74 unsigned long cpuid, hartid; in __sbi_v01_cpumask_to_hartmask() local
85 hartid = cpuid_to_hartid_map(cpuid); in __sbi_v01_cpumask_to_hartmask()
86 if (hartid >= BITS_PER_LONG) { in __sbi_v01_cpumask_to_hartmask()
90 hmask |= BIT(hartid); in __sbi_v01_cpumask_to_hartmask()
305 unsigned long hartid, cpuid, hmask = 0, hbase = 0, htop = 0; in __sbi_rfence_v02() local
312 hartid = cpuid_to_hartid_map(cpuid); in __sbi_rfence_v02()
314 if (hartid + BITS_PER_LONG <= htop || in __sbi_rfence_v02()
315 hbase + BITS_PER_LONG <= hartid) { in __sbi_rfence_v02()
321 } else if (hartid < hbase) { in __sbi_rfence_v02()
323 hmask <<= hbase - hartid; in __sbi_rfence_v02()
[all …]
Dcpu.c126 int riscv_of_parent_hartid(struct device_node *node, unsigned long *hartid) in riscv_of_parent_hartid() argument
130 *hartid = (unsigned long)of_get_cpu_hwid(node, 0); in riscv_of_parent_hartid()
131 if (*hartid == ~0UL) { in riscv_of_parent_hartid()
Dhibernate.c59 unsigned long hartid; member
101 hdr->hartid = cpuid_to_hartid_map(sleep_cpu); in arch_hibernation_header_save()
125 sleep_cpu = riscv_hartid_to_cpuid(hdr->hartid); in arch_hibernation_header_restore()
Dsmp.c53 int riscv_hartid_to_cpuid(unsigned long hartid) in riscv_hartid_to_cpuid() argument
58 if (cpuid_to_hartid_map(i) == hartid) in riscv_hartid_to_cpuid()
/linux-6.6.21/drivers/firmware/efi/libstub/
Driscv.c16 static unsigned long hartid; variable
37 hartid = (unsigned long) fdt32_to_cpu(*(fdt32_t *)prop); in get_boot_hartid_from_fdt()
39 hartid = (unsigned long) fdt64_to_cpu(__get_unaligned_t(fdt64_t, prop)); in get_boot_hartid_from_fdt()
56 return efi_call_proto(boot_protocol, get_boot_hartid, &hartid); in get_boot_hartid_from_efi()
97 jump_kernel(hartid, fdt); in efi_enter_kernel()
/linux-6.6.21/arch/riscv/mm/
Dcacheflush.c104 unsigned long hartid; in cbo_get_block_size() local
107 if (riscv_of_processor_hartid(node, &hartid)) in cbo_get_block_size()
115 *first_hartid = hartid; in cbo_get_block_size()
118 name, *first_hartid, hartid); in cbo_get_block_size()
/linux-6.6.21/drivers/clocksource/
Dtimer-riscv.c181 unsigned long hartid; in riscv_timer_init_dt() local
184 error = riscv_of_processor_hartid(n, &hartid); in riscv_timer_init_dt()
187 n, hartid); in riscv_timer_init_dt()
191 cpuid = riscv_hartid_to_cpuid(hartid); in riscv_timer_init_dt()
193 pr_warn("Invalid cpuid for hartid [%lu]\n", hartid); in riscv_timer_init_dt()
/linux-6.6.21/arch/riscv/include/asm/
Dsmp.h40 int riscv_hartid_to_cpuid(unsigned long hartid);
82 static inline int riscv_hartid_to_cpuid(unsigned long hartid) in riscv_hartid_to_cpuid() argument
84 if (hartid == boot_cpu_hartid) in riscv_hartid_to_cpuid()
Dprocessor.h120 int riscv_of_processor_hartid(struct device_node *node, unsigned long *hartid);
121 int riscv_early_of_processor_hartid(struct device_node *node, unsigned long *hartid);
122 int riscv_of_parent_hartid(struct device_node *node, unsigned long *hartid);
Dsuspend.h39 int __cpu_resume_enter(unsigned long hartid, unsigned long context);
Dkexec.h52 unsigned long hartid,
/linux-6.6.21/drivers/irqchip/
Dirq-riscv-intc.c144 unsigned long hartid; in riscv_intc_init() local
146 rc = riscv_of_parent_hartid(node, &hartid); in riscv_intc_init()
158 if (riscv_hartid_to_cpuid(hartid) != smp_processor_id()) { in riscv_intc_init()
Dirq-sifive-plic.c462 unsigned long hartid; in __plic_init() local
486 error = riscv_of_parent_hartid(parent.np, &hartid); in __plic_init()
492 cpu = riscv_hartid_to_cpuid(hartid); in __plic_init()
/linux-6.6.21/Documentation/riscv/
Dboot.rst26 * ``$a0`` to contain the hartid of the current core.
95 When booting with UEFI, the EFI stub requires the boot hartid in order to pass
96 it to the RISC-V kernel in ``$a1``. The EFI stub retrieves the boot hartid using
100 - ``boot-hartid`` devicetree subnode (**deprecated**).
/linux-6.6.21/drivers/acpi/
Dprocessor_core.c114 phys_cpuid_t *hartid) in map_rintc_hartid() argument
128 *hartid = rintc->hart_id; in map_rintc_hartid()
/linux-6.6.21/arch/riscv/
DKconfig658 variable. This method cannot support CPU hotplug and sparse hartid