Lines Matching +full:dbg +full:- +full:halt

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Common boot and setup code for both 32-bit and 64-bit.
74 #define DBG(fmt...) udbg_printf(fmt) macro
76 #define DBG(fmt...) macro
79 /* The main machine-dep calls structure
86 int boot_cpuid = -1;
88 int __initdata boot_core_hwid = -1;
91 int boot_cpu_hwid = -1;
115 int crashing_cpu = -1;
177 if (ppc_md.halt) in machine_halt()
178 ppc_md.halt(); in machine_halt()
222 unsigned long cpu_id = (unsigned long)v - 1; in show_cpuinfo()
238 if (cur_cpu_spec->pvr_mask && cur_cpu_spec->cpu_name) in show_cpuinfo()
239 seq_puts(m, cur_cpu_spec->cpu_name); in show_cpuinfo()
258 seq_printf(m, "temperature \t: %u-%u C (uncalibrated)\n", in show_cpuinfo()
292 default: /* e500/book-e */ in show_cpuinfo()
300 maj = ((pvr >> 8) & 0xFF) - 1; in show_cpuinfo()
303 case 0x004e: /* POWER9 bits 12-15 give chip type */ in show_cpuinfo()
336 *pos = cpumask_next(*pos - 1, cpu_online_mask); in c_start()
362 DBG(" -> check_for_initrd() initrd_start=0x%lx initrd_end=0x%lx\n", in check_for_initrd()
377 DBG(" <- check_for_initrd()\n"); in check_for_initrd()
423 DBG(" thread %d -> cpu %d (hard id %d)\n", i, cpu, hwid); in assign_threads()
435 * setup_cpu_maps - initialize the following cpu maps:
458 DBG("smp_setup_cpu_maps()\n"); in smp_setup_cpu_maps()
471 DBG(" * %pOF...\n", dn); in smp_setup_cpu_maps()
473 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", in smp_setup_cpu_maps()
476 DBG(" ibm,ppc-interrupt-server#s -> %lu threads\n", in smp_setup_cpu_maps()
479 DBG(" no ibm,ppc-interrupt-server#s -> 1 thread\n"); in smp_setup_cpu_maps()
494 "enable-method", "spin-table"); in smp_setup_cpu_maps()
520 DBG(" SMT disabled ! nthreads forced to 1\n"); in smp_setup_cpu_maps()
537 ireg = of_get_property(dn, "ibm,lrdr-capacity", NULL); in smp_setup_cpu_maps()
563 vdso_data->processorCount = num_present_cpus(); in smp_setup_cpu_maps()
591 return -ENODEV; in add_pcspkr()
593 pd = platform_device_alloc("pcspkr", -1); in add_pcspkr()
595 return -ENOMEM; in add_pcspkr()
624 DBG("Probing machine type ...\n"); in probe_machine()
640 DBG(" %s ...\n", machine_id->name); in probe_machine()
641 if (machine_id->compatible && !of_machine_is_compatible(machine_id->compatible)) in probe_machine()
643 if (machine_id->compatibles && !of_machine_compatible_match(machine_id->compatibles)) in probe_machine()
648 DBG(" %s match !\n", machine_id->name); in probe_machine()
670 int ret = -ENODEV; in check_legacy_ioport()
726 * - ppc_panic_fadump_handler() is a hypervisor notifier, which hard-disables
727 * IRQs and deal with the Firmware-Assisted dump, when it is configured;
730 * - dump_kernel_offset() is an informative notifier, just showing the KASLR
733 * - ppc_panic_platform_handler() is a low-level handler that's registered
748 * If firmware-assisted dump has been registered then trigger in ppc_panic_fadump_handler()
794 /* Hard-disables IRQs + deal with FW-assisted dump (fadump) */ in setup_panic()
802 /* Low-level platform-specific routines that should run on panic */ in setup_panic()
810 * For platforms that have configurable cache-coherency. This function
826 prop = of_get_property(np, "coherency-off", NULL); in check_cache_coherency()
852 pr_info("-----------------------------------------------------\n"); in print_system_info()
859 pr_info("cpu_features = 0x%016lx\n", cur_cpu_spec->cpu_features); in print_system_info()
865 cur_cpu_spec->cpu_user_features, in print_system_info()
866 cur_cpu_spec->cpu_user_features2); in print_system_info()
867 pr_info("mmu_features = 0x%08x\n", cur_cpu_spec->mmu_features); in print_system_info()
883 pr_info("-----------------------------------------------------\n"); in print_system_info()
913 /* Set a half-reasonable default so udelay does something sensible */ in setup_arch()
916 /* Unflatten the device-tree passed by prom_init or kexec */ in setup_arch()
920 * Initialize cache line/block info from device-tree (on ppc64) or in setup_arch()
928 /* Check if we have an initrd provided via the device-tree. */ in setup_arch()
938 * Configure ppc_md.power_save (ppc32 only, 64-bit machines do in setup_arch()
949 /* Setup the various CPU maps based on the device-tree. */ in setup_arch()
966 * we can map physical -> logical CPU ids. in setup_arch()
974 /* On BookE, setup per-core TLB data structures. */ in setup_arch()
1019 /* Interrupt code needs to be 64K-aligned. */ in setup_arch()
1021 panic("Kernelbase not 64K-aligned (0x%lx)!\n", in setup_arch()