Home
last modified time | relevance | path

Searched refs:loongson_sysconf (Results 1 – 24 of 24) sorted by relevance

/linux-6.12.1/arch/mips/loongson64/
Denv.c31 struct loongson_system_configuration loongson_sysconf; variable
89 loongson_sysconf.cputype = ecpu->cputype; in prom_lefi_init_env()
94 loongson_sysconf.cores_per_node = 2; in prom_lefi_init_env()
95 loongson_sysconf.cores_per_package = 2; in prom_lefi_init_env()
99 loongson_sysconf.cores_per_node = 4; in prom_lefi_init_env()
100 loongson_sysconf.cores_per_package = 4; in prom_lefi_init_env()
117 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_lefi_init_env()
121 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_lefi_init_env()
122 loongson_sysconf.cores_per_package = 8; in prom_lefi_init_env()
139 loongson_sysconf.workarounds = WORKAROUND_CPUHOTPLUG; in prom_lefi_init_env()
[all …]
Dnuma.c42 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe()
48 loongson_sysconf.nr_cpus, num_online_nodes()); in cpu_node_probe()
53 int package_row = row * loongson_sysconf.cores_per_node / in compute_node_distance()
54 loongson_sysconf.cores_per_package; in compute_node_distance()
55 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()
56 loongson_sysconf.cores_per_package; in compute_node_distance()
133 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit()
142 for (cpu = 0; cpu < loongson_sysconf.nr_cpus; cpu++) { in prom_meminit()
143 node = cpu / loongson_sysconf.cores_per_node; in prom_meminit()
147 if (loongson_sysconf.reserved_cpus_mask & (1<<cpu)) in prom_meminit()
Dinit.c55 if (loongson_sysconf.fw_interface != LOONGSON_LEFI) in szmem()
103 if (loongson_sysconf.vgabios_addr) in szmem()
104 memblock_reserve(virt_to_phys((void *)loongson_sysconf.vgabios_addr), in szmem()
123 loongson_sysconf.fw_interface = LOONGSON_DTB; in prom_init()
126 loongson_sysconf.fw_interface = LOONGSON_LEFI; in prom_init()
133 if (loongson_sysconf.early_config) in prom_init()
134 loongson_sysconf.early_config(); in prom_init()
Dpm.c22 loongson_lefi_sleep(loongson_sysconf.suspend_addr); in lefi_pm_enter()
34 return !!loongson_sysconf.suspend_addr; in lefi_pm_valid_state()
47 if (loongson_sysconf.fw_interface == LOONGSON_LEFI) in loongson_pm_init()
Dsmp.c418 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package); in loongson3_init_secondary()
420 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary()
445 max_cpus += loongson_sysconf.cores_per_node; in loongson3_smp_setup()
448 if (max_cpus < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()
450 loongson_sysconf.nr_cpus = max_cpus ? max_cpus : 1; in loongson3_smp_setup()
457 while (i < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()
458 if (loongson_sysconf.reserved_cpus_mask & (1<<i)) { in loongson3_smp_setup()
473 while (num < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()
487 cpu_logical_map(0) % loongson_sysconf.cores_per_package); in loongson3_smp_setup()
488 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson3_smp_setup()
[all …]
Dreset.c28 void (*fw_restart)(void) = (void *)loongson_sysconf.restart_addr; in firmware_restart()
36 void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr; in firmware_poweroff()
143 if (loongson_sysconf.restart_addr) { in mips_reboot_setup()
149 if (loongson_sysconf.poweroff_addr) { in mips_reboot_setup()
Dvbios_quirk.c13 if (!loongson_sysconf.vgabios_addr) in pci_fixup_video()
20 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr); in pci_fixup_video()
Dtime.c22 if (loongson_sysconf.fw_interface == LOONGSON_DTB) { in plat_time_init()
Dhpet.c12 #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000)
/linux-6.12.1/arch/loongarch/kernel/
Denv.c20 struct loongson_system_configuration loongson_sysconf; variable
21 EXPORT_SYMBOL(loongson_sysconf);
51 loongson_sysconf.cpuname = strsep(&model, " "); in init_cpu_fullname()
53 if (loongson_sysconf.cpuname && !strncmp(loongson_sysconf.cpuname, "Loongson", 8)) { in init_cpu_fullname()
55 __cpu_full_name[cpu] = loongson_sysconf.cpuname; in init_cpu_fullname()
Dsmp.c294 if (cpuid == loongson_sysconf.boot_cpu_id) in fdt_smp_setup()
309 loongson_sysconf.nr_cpus = num_processors; in fdt_smp_setup()
310 set_bit(0, loongson_sysconf.cores_io_master); in fdt_smp_setup()
318 if (loongson_sysconf.cores_per_package == 0) in loongson_smp_setup()
319 loongson_sysconf.cores_per_package = num_processors; in loongson_smp_setup()
321 cpu_data[0].core = cpu_logical_map(0) % loongson_sysconf.cores_per_package; in loongson_smp_setup()
322 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson_smp_setup()
326 pr_info("Detected %i available CPU(s)\n", loongson_sysconf.nr_cpus); in loongson_smp_setup()
336 for (i = 0; i < loongson_sysconf.nr_cpus; i++) { in loongson_prepare_cpus()
380 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson_init_secondary()
[all …]
Dacpi.c74 if (cpuid == loongson_sysconf.boot_cpu_id) in set_processor_mask()
147 set_bit(core, loongson_sysconf.cores_io_master); in acpi_parse_eio_master()
171 loongson_sysconf.nr_cpus = num_processors; in acpi_process_madt()
225 loongson_sysconf.boot_cpu_id = read_csr_cpuid(); in acpi_boot_table_init()
Dnuma.c362 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()
363 loongson_sysconf.cores_per_node = cpumask_weight(&phys_cpus_on_node[0]); in init_numa_memory()
Dirq.c92 int nr_io_pics = bitmap_weight(loongson_sysconf.cores_io_master, NR_CPUS); in arch_probe_nr_irqs()
Dsetup.c128 loongson_sysconf.cpuname = (void *)dmi_string_parse(dm, dmi_data[16]); in parse_cpu_table()
129 loongson_sysconf.cores_per_package = *(dmi_data + SMBIOS_THREAD_PACKAGE_OFFSET); in parse_cpu_table()
/linux-6.12.1/arch/loongarch/include/asm/
Dbootinfo.h47 extern struct loongson_system_configuration loongson_sysconf;
51 return test_bit(cpu, loongson_sysconf.cores_io_master); in io_master()
/linux-6.12.1/arch/loongarch/power/
Dplatform.c75 loongson_sysconf.suspend_addr = (u64)default_suspend_addr; in loongson3_acpi_suspend_init()
78 loongson_sysconf.suspend_addr = (u64)phys_to_virt(PHYSADDR(suspend_addr)); in loongson3_acpi_suspend_init()
Dsuspend.c42 loongarch_suspend_addr = loongson_sysconf.suspend_addr; in loongarch_common_suspend()
/linux-6.12.1/drivers/platform/mips/
Dcpu_hwmon.c145 nr_packages = loongson_sysconf.nr_cpus / in loongson_hwmon_init()
146 loongson_sysconf.cores_per_package; in loongson_hwmon_init()
/linux-6.12.1/drivers/soc/loongson/
Dloongson2_pm.c178 loongson_sysconf.suspend_addr = (u64)phys_to_virt(suspend_addr); in loongson2_pm_probe()
193 if (loongson_sysconf.suspend_addr) in loongson2_pm_probe()
/linux-6.12.1/arch/mips/include/asm/mach-loongson64/
Dboot_param.h209 extern struct loongson_system_configuration loongson_sysconf;
Dloongson.h109 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base
/linux-6.12.1/arch/loongarch/mm/
Dcache.c50 nr_nodes = cache_private(cdesc) ? 1 : loongson_sysconf.nr_nodes; in flush_cache_leaf()
/linux-6.12.1/drivers/irqchip/
Dirq-loongson-liointc.c282 priv->map_cache[i] |= BIT(loongson_sysconf.boot_cpu_id); in liointc_init()