| /kernel/linux/linux-6.6/arch/powerpc/kernel/ |
| D | rtas.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Procedures for interfacing to the RTAS on CHRP machines. 10 #define pr_fmt(fmt) "rtas: " fmt 41 #include <asm/rtas-work-area.h> 42 #include <asm/rtas.h> 48 /* Indexes into the args buffer, -1 if not used */ 61 * struct rtas_function - Descriptor for RTAS functions. 63 * @token: Value of @name if it exists under the /rtas node. 65 * @filter: If non-NULL, invoking this function via the rtas syscall is 84 .name = "check-exception", [all …]
|
| D | udbg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 /* RTAS panel debug */ in udbg_early_init() 40 /* RTAS console debug */ in udbg_early_init() 81 /* udbg library, used by xmon et al */ 111 while (((c = *s++) != '\0') && (remain-- > 0)) { in udbg_write() 119 return n - remain; in udbg_write() 159 * Called by setup_system after ppc_md->probe and ppc_md->early_init. 160 * Call it again after setting udbg_putc in ppc_md->setup_arch. 170 if (strstr(boot_command_line, "udbg-immortal")) { in register_early_udbg_console()
|
| /kernel/linux/linux-5.10/arch/powerpc/kernel/ |
| D | rtas.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Procedures for interfacing to the RTAS on CHRP machines. 29 #include <asm/rtas.h> 46 /* This is here deliberately so it's only used in this file */ 49 struct rtas_t rtas = { variable 52 EXPORT_SYMBOL(rtas); 63 * If non-NULL, this gets called when the kernel terminates. 69 /* RTAS use home made raw locking instead of spin_lock_irqsave 80 arch_spin_lock(&rtas.lock); in lock_rtas() 86 arch_spin_unlock(&rtas.lock); in unlock_rtas() [all …]
|
| D | entry_64.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 5 * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP 7 * Adapted for Power Macintosh by Paul Mackerras. 8 * Low-level exception handlers and MMU support 9 * rewritten by Paul Mackerras. 25 #include <asm/code-patching-asm.h> 27 #include <asm/asm-offsets.h> 36 #include <asm/ppc-opcode.h> 39 #include <asm/asm-compat.h> [all …]
|
| D | udbg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 /* RTAS panel debug */ in udbg_early_init() 40 /* RTAS console debug */ in udbg_early_init() 79 /* udbg library, used by xmon et al */ 109 while (((c = *s++) != '\0') && (remain-- > 0)) { in udbg_write() 117 return n - remain; in udbg_write() 157 * Called by setup_system after ppc_md->probe and ppc_md->early_init. 158 * Call it again after setting udbg_putc in ppc_md->setup_arch. 168 if (strstr(boot_command_line, "udbg-immortal")) { in register_early_udbg_console()
|
| /kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
| D | rtas.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 #include <asm/rtas-types.h> 13 * Definitions for talking to the RTAS on CHRP machines. 19 #define RTAS_UNKNOWN_SERVICE (-1) 20 #define RTAS_INSTANTIATE_MAX (1ULL<<30) /* Don't instantiate rtas at/above this value */ 25 /* RTAS return status codes */ 26 #define RTAS_NOT_SUSPENDABLE -9004 27 #define RTAS_BUSY -2 /* RTAS Busy */ 32 * In general to call RTAS use rtas_token("string") to lookup 33 * an RTAS token for the given string (e.g. "event-scan"). [all …]
|
| /kernel/linux/linux-5.10/drivers/watchdog/ |
| D | wdrtas.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * RTAS calls are available 8 * RTAS watchdog driver 11 * device driver to exploit watchdog RTAS functions 29 #include <asm/rtas.h> 36 MODULE_DESCRIPTION("RTAS watchdog driver"); 62 * wdrtas_set_interval - sets the watchdog interval 67 * wdrtas_set_interval sets the watchdog keepalive interval by calling the 68 * RTAS function set-indicator (surveillance). The unit of interval is 77 /* rtas uses minutes */ in wdrtas_set_interval() [all …]
|
| /kernel/linux/linux-6.6/drivers/watchdog/ |
| D | wdrtas.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * RTAS calls are available 8 * RTAS watchdog driver 11 * device driver to exploit watchdog RTAS functions 29 #include <asm/rtas.h> 36 MODULE_DESCRIPTION("RTAS watchdog driver"); 62 * wdrtas_set_interval - sets the watchdog interval 67 * wdrtas_set_interval sets the watchdog keepalive interval by calling the 68 * RTAS function set-indicator (surveillance). The unit of interval is 77 /* rtas uses minutes */ in wdrtas_set_interval() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
| D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 #include <asm/rtas.h> 42 #include <asm/code-patching.h> 49 * The Primary thread of each non-boot processor was started from the OF client 50 * interface by prom_hold_cpus and is spinning on secondary_hold_spinloop. 62 "Firmware doesn't support query-cpu-stopped-state\n"); in smp_query_cpu_stopped() 69 "RTAS query-cpu-stopped-state failed: %i\n", status); in smp_query_cpu_stopped() 77 * smp_startup_cpu() - start the given cpu 80 * started from Open Firmware. For anything else, call RTAS with the 84 * 0 - failure [all …]
|
| D | io_event_irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2010 2011 Mark Nelson and Tseng-Hui (Frank) Lin, IBM Corporation 16 #include <asm/rtas.h> 23 * IO event interrupt is a mechanism provided by RTAS to return 24 * information about hardware error and non-error events. Device 30 * by one until the IO event is claimed by one of the handlers. 32 * event is handled by the event handler or NOTIFY_DONE if the 41 * if (! is_my_event(p->scope, p->event_type)) return NOTIFY_DONE; 66 * @elog: RTAS error/event log. 75 /* We should only ever get called for io-event interrupts, but if in ioei_find_event() [all …]
|
| D | eeh_pseries.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Actually, the pseries platform is built based on RTAS heavily. That means the 5 * pseries platform dependent EEH operations will be built on RTAS calls. The functions 33 #include <asm/ppc-pci.h> 34 #include <asm/rtas.h> 36 /* RTAS tokens */ 55 dev_dbg(&pdev->dev, "EEH: Setting up device\n"); in pseries_pcibios_bus_add_device() 57 if (pdev->is_virtfn) { in pseries_pcibios_bus_add_device() 58 pdn->device_id = pdev->device; in pseries_pcibios_bus_add_device() 59 pdn->vendor_id = pdev->vendor; in pseries_pcibios_bus_add_device() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 bool "IBM pSeries & new (POWER5-based) iSeries" 39 bool "Support for shared-processor logical partitions" 46 on logically-partitioned pSeries systems which use shared 78 interrupts. IO event interrupt is a mechanism provided by RTAS 79 to return information about hardware error and non-error events 80 which may need OS attention. RTAS returns events for multiple 109 bool "Support for shared-memory logical partitions" 126 by allocating pages of memory and put them "on hold". This only 161 # used to store asymmetric public keys or secrets as required [all …]
|
| D | msi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2006-2007 Michael Ellerman, IBM Corp. 13 #include <asm/rtas.h> 15 #include <asm/ppc-pci.h> 30 /* RTAS Helpers */ 38 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 39 buid = pdn->phb->buid; in rtas_change_msi() 57 * If the RTAS call succeeded, return the number of irqs allocated. in rtas_change_msi() 63 rc = -rc; in rtas_change_msi() 80 * disabling MSI with the explicit interface also disables MSI-X in rtas_disable_msi() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
| D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 #include <asm/rtas.h> 43 #include <asm/code-patching.h> 50 * The Primary thread of each non-boot processor was started from the OF client 51 * interface by prom_hold_cpus and is spinning on secondary_hold_spinloop. 59 int qcss_tok = rtas_token("query-cpu-stopped-state"); in smp_query_cpu_stopped() 63 "Firmware doesn't support query-cpu-stopped-state\n"); in smp_query_cpu_stopped() 70 "RTAS query-cpu-stopped-state failed: %i\n", status); in smp_query_cpu_stopped() 78 * smp_startup_cpu() - start the given cpu 81 * started from Open Firmware. For anything else, call RTAS with the [all …]
|
| D | io_event_irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2010 2011 Mark Nelson and Tseng-Hui (Frank) Lin, IBM Corporation 16 #include <asm/rtas.h> 23 * IO event interrupt is a mechanism provided by RTAS to return 24 * information about hardware error and non-error events. Device 30 * by one until the IO event is claimed by one of the handlers. 32 * event is handled by the event handler or NOTIFY_DONE if the 41 * if (! is_my_event(p->scope, p->event_type)) return NOTIFY_DONE; 66 * @elog: RTAS error/event log. 75 /* We should only ever get called for io-event interrupts, but if in ioei_find_event() [all …]
|
| D | eeh_pseries.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Actually, the pseries platform is built based on RTAS heavily. That means the 5 * pseries platform dependent EEH operations will be built on RTAS calls. The functions 33 #include <asm/ppc-pci.h> 34 #include <asm/rtas.h> 36 /* RTAS tokens */ 53 dev_dbg(&pdev->dev, "EEH: Setting up device\n"); in pseries_pcibios_bus_add_device() 55 if (pdev->is_virtfn) { in pseries_pcibios_bus_add_device() 56 pdn->device_id = pdev->device; in pseries_pcibios_bus_add_device() 57 pdn->vendor_id = pdev->vendor; in pseries_pcibios_bus_add_device() [all …]
|
| D | msi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2006-2007 Michael Ellerman, IBM Corp. 12 #include <asm/rtas.h> 14 #include <asm/ppc-pci.h> 28 /* RTAS Helpers */ 36 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 37 buid = pdn->phb->buid; in rtas_change_msi() 55 * If the RTAS call succeeded, return the number of irqs allocated. in rtas_change_msi() 61 rc = -rc; in rtas_change_msi() 78 * disabling MSI with the explicit interface also disables MSI-X in rtas_disable_msi() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/oprofile/ |
| D | op_model_cell.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 #include <asm/cell-pmu.h> 31 #include <asm/rtas.h> 32 #include <asm/cell-regs.h> 66 * 2^32 - 1 - N. 68 #define NUM_INTERVAL_CYC 0xFFFFFFFF - 10 72 * This variable is used for SPU profiling and should ONLY be set 73 * at the beginning of cell_reg_setup; otherwise, it's read-only. 87 * ibm,cbe-perftools rtas parameters 100 * rtas call arguments [all …]
|
| D | op_model_power4.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2006-2007 Will Schmidt <willschm@us.ibm.com>, IBM 14 #include <asm/rtas.h> 32 /* mmcr values are set in power4_reg_setup, used in power4_cpu_setup */ 45 * power7_marked_instr_event() in file arch/powerpc/perf/power7-pmu.c. in power7_marked_instr_event() 49 << (OPROFILE_MAX_PMC_NUM - pmc) in power7_marked_instr_event() 51 psel = (psel >> ((OPROFILE_MAX_PMC_NUM - pmc) in power7_marked_instr_event() 55 - (pmc * OPROFILE_PMSEL_FIELD_WIDTH ))); in power7_marked_instr_event() 57 - (pmc * OPROFILE_PMSEL_FIELD_WIDTH)); in power7_marked_instr_event() 103 mmcr0_val = sys->mmcr0; in power4_reg_setup() [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/hvc/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 8 It will automatically be selected if one of the back-end console drivers 38 bool "IBM RTAS Console support" 42 IBM Console device driver which makes use of RTAS 51 This driver provides a Hypervisor console (HVC) back-end to access 76 This is meant to be used during HW bring up or debugging when 87 driver. This console is used through a JTAG only on ARM. If you don't have 91 bool "RISC-V SBI console support" 95 This enables support for console output via RISC-V SBI calls, which 96 is normally used only during boot to output printk. [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/ |
| D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0 4 bool "Don't build arch/powerpc code with -Werror" 7 arch/powerpc with the -Werror flag (which means warnings 11 arch/powerpc code caused by a warning, and you don't feel 47 emulated by the in-kernel emulator. Counters for the various classes 50 system. Optionally (controlled by 51 powerpc/emulated_instructions/do_warn in debugfs), rate-limited 56 bool "Run self-tests of the code-patching code" 78 bool "Run self-tests of the feature-fixup code" 82 bool "Run self-tests of the MSI bitmap code" [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/ |
| D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0 4 bool "Don't build arch/powerpc code with -Werror" 7 arch/powerpc with the -Werror flag (which means warnings 11 arch/powerpc code caused by a warning, and you don't feel 47 emulated by the in-kernel emulator. Counters for the various classes 50 system. Optionally (controlled by 51 powerpc/emulated_instructions/do_warn in debugfs), rate-limited 56 bool "Run self-tests of the code-patching code" 78 bool "Run self-tests of the feature-fixup code" 82 bool "Run self-tests of the MSI bitmap code" [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/hvc/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 8 It will automatically be selected if one of the back-end console drivers 38 bool "IBM RTAS Console support" 42 IBM Console device driver which makes use of RTAS 51 This driver provides a Hypervisor console (HVC) back-end to access 76 This is meant to be used during HW bring up or debugging when 87 driver. This console is used through a JTAG only on ARM. If you don't have 110 bool "RISC-V SBI console support" 114 This enables support for console output via RISC-V SBI calls, which 115 is normally used only during boot to output printk. [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/mm/ |
| D | numa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 65 [0 ... MAX_NUMNODES - 1] = { [0 ... MAX_NUMNODES - 1] = -1 } 67 static int numa_id_index_table[MAX_NUMNODES] = { [0 ... MAX_NUMNODES - 1] = NUMA_NO_NODE }; 143 numa_cpu_lookup_table[cpu] = -1; in reset_numa_cpu_lookup_table() 177 int index = primary_domain_index - 1; in __associativity_to_nid() 190 * Returns nid in the range [0..nr_node_ids], or -1 if no useful NUMA 272 * or -1 if not found. 293 if (nid != -1) in of_node_to_nid() 316 int index = be32_to_cpu(distance_ref_points[i]) - 1; in __initialize_form1_numa_distance() 340 * Used to update distance information w.r.t newly added node. [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 35 bool "ePAPR para-virtualization support" 37 Enables ePAPR para-virtualization support for guests. 46 a hypervisor. This option is not user-selectable but should 47 be selected by all platforms that need it. 62 bool "Device-tree based CPU feature discovery & setup" 73 bool "RTAS based debug console" 105 The driver provides a way to wake up the system by MPIC 121 registers are used for inter-processor communication. 142 bool "Proc interface to RTAS" [all …]
|