Home
last modified time | relevance | path

Searched full:rtas (Results 1 – 25 of 116) sorted by relevance

12345

/Linux-v5.15/arch/powerpc/kernel/
Drtas.c4 * Procedures for interfacing to the RTAS on CHRP machines.
30 #include <asm/rtas.h>
54 srr_regs_clobbered(); /* rtas uses SRRs, invalidate */ in do_enter_rtas()
57 struct rtas_t rtas = { variable
60 EXPORT_SYMBOL(rtas);
77 /* RTAS use home made raw locking instead of spin_lock_irqsave
88 arch_spin_lock(&rtas.lock); in lock_rtas()
94 arch_spin_unlock(&rtas.lock); in unlock_rtas()
108 if (!rtas.base) in call_rtas_display_status()
112 rtas_call_unlocked(&rtas.args, 10, 1, 1, NULL, c); in call_rtas_display_status()
[all …]
Dproc_powerpc.c13 #include <asm/rtas.h>
66 * Create the ppc64 and ppc64/rtas directories early. This allows us to
82 if (!of_find_node_by_path("/rtas")) in proc_ppc64_create()
85 if (!proc_mkdir("rtas", root)) in proc_ppc64_create()
88 if (!proc_symlink("rtas", NULL, "powerpc/rtas")) in proc_ppc64_create()
Drtasd.c24 #include <asm/rtas.h>
45 /* RTAS service tokens */
58 * Since we use 32 bit RTAS, the physical address of this must be below
97 /* To see this info, grep RTAS /var/log/messages and each entry
102 * format of error logs returned from RTAS:
116 char * str = "RTAS event"; in printk_log_rtas()
124 * with RTAS and a changing number, so syslogd will in printk_log_rtas()
132 n = sprintf(buffer, "RTAS %d:", i/perline); in printk_log_rtas()
165 /* rtas fixed header */ in log_rtas_len()
188 * method for the type of error. Currently, only RTAS
[all …]
Dcrash_dump.c20 #include <asm/rtas.h>
122 * The crashkernel region will almost always overlap the RTAS region, so
131 basep = of_get_property(rtas.dev, "linux,rtas-base", NULL); in crash_free_reserved_phys_range()
132 sizep = of_get_property(rtas.dev, "rtas-size", NULL); in crash_free_reserved_phys_range()
140 /* Does this page overlap with the RTAS region? */ in crash_free_reserved_phys_range()
Drtas_flash.c5 * /proc/powerpc/rtas/firmware_flash interface
9 * firmware image and flash it as it reboots (see rtas.c).
19 #include <asm/rtas.h>
29 /* General RTAS Status Codes */
35 #define FLASH_AUTH -9002 /* RTAS Not Service Authority Partition */
43 #define MANAGE_AUTH -9002 /* RTAS Not Service Authority Partition */
44 #define MANAGE_ACTIVE_ERR -9001 /* RTAS Cannot Overwrite Active Img */
46 #define MANAGE_PARAM_ERR -3 /* RTAS Parameter Error */
47 #define MANAGE_HW_ERR -1 /* RTAS Hardware Error */
50 #define VALIDATE_AUTH -9002 /* RTAS Not Service Authority Partition */
[all …]
Drtas-proc.c6 * RTAS (Runtime Abstraction Services) stuff
8 * to use the RTAS.
12 * location. Write Documentation on what the /proc/rtas/ entries
32 #include <asm/rtas.h>
236 rtas_node = of_find_node_by_name(NULL, "rtas"); in proc_rtas_init()
240 proc_create("powerpc/rtas/progress", 0644, NULL, in proc_rtas_init()
242 proc_create("powerpc/rtas/clock", 0644, NULL, in proc_rtas_init()
244 proc_create("powerpc/rtas/poweron", 0644, NULL, in proc_rtas_init()
246 proc_create_single("powerpc/rtas/sensors", 0444, NULL, in proc_rtas_init()
248 proc_create("powerpc/rtas/frequency", 0644, NULL, in proc_rtas_init()
[all …]
Dentry_64.S269 * On CHRP, the Run-Time Abstraction Services (RTAS) have to be
274 * Note: r3 is an input parameter to rtas, so don't trash it...
281 /* Because RTAS is running in 32b mode, it clobbers the high order half
283 * RTAS might touch to the stack. (r0, r3-r13 are caller saved)
300 /* Temporary workaround to clear CR until RTAS can be modified to
323 * our original state after RTAS returns.
346 LOAD_REG_ADDR(r4, rtas)
347 ld r5,RTASENTRY(r4) /* get the rtas->entry value */
348 ld r4,RTASBASE(r4) /* get the rtas->base value */
/Linux-v5.15/arch/powerpc/include/asm/
Drtas.h8 #include <asm/rtas-types.h>
13 * Definitions for talking to the RTAS on CHRP machines.
20 #define RTAS_INSTANTIATE_MAX (1ULL<<30) /* Don't instantiate rtas at/above this value */
25 /* RTAS return status codes */
26 #define RTAS_BUSY -2 /* RTAS Busy */
37 * In general to call RTAS use rtas_token("string") to lookup
38 * an RTAS token for the given string (e.g. "event-scan").
47 * may be safely used for one-shot calls to RTAS.
51 /* RTAS event classes */
58 /* RTAS event severity */
[all …]
Drtas-types.h51 /* RTAS general extended event log, Version 6. The extended log starts
63 * X 1: "New" log (always 1 for data returned from RTAS)
102 /* RTAS pseries hotplug errorlog section */
/Linux-v5.15/drivers/watchdog/
Dwdrtas.c4 * 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");
68 * RTAS function set-indicator (surveillance). The unit of interval is
77 /* rtas uses minutes */ in wdrtas_set_interval()
95 * @fallback_value: value (in seconds) to use, if the RTAS call fails
100 * as reported by the RTAS function ibm,get-system-parameter. The unit
123 /* rtas uses minutes */ in wdrtas_get_interval()
[all …]
/Linux-v5.15/arch/powerpc/platforms/pseries/
Dras.c15 #include <asm/rtas.h>
41 /* RTAS pseries MCE errorlog section. */
75 /* RTAS pseries MCE error types */
84 /* RTAS pseries MCE error sub types */
186 " UPS/battery. Check RTAS error log for details\n"); in handle_system_shutdown()
191 " RTAS error log for details\n"); in handle_system_shutdown()
196 pr_emerg("High ambient temperature detected. Check RTAS" in handle_system_shutdown()
247 pr_info("Non-critical cooling issue detected. Check RTAS error" in rtas_parse_epow_errlog()
252 pr_info("Non-critical power issue detected. Check RTAS error" in rtas_parse_epow_errlog()
261 pr_emerg("Critical power/cooling issue detected. Check RTAS" in rtas_parse_epow_errlog()
[all …]
Dscanlog.c27 #include <asm/rtas.h>
39 static unsigned int ibm_scan_log_dump; /* RTAS token */
54 /* This is the min supported by this RTAS call. Rather in scanlog_read()
99 "from rtas: %d\n", status); in scanlog_read()
125 pr_debug("scanlog: rtas returns %d\n", status); in scanlog_write()
177 ent = proc_create("powerpc/rtas/scan-log-dump", 0400, NULL, in scanlog_init()
189 remove_proc_entry("powerpc/rtas/scan-log-dump", NULL); in scanlog_cleanup()
Deeh_pseries.c4 * 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
34 #include <asm/rtas.h>
36 /* RTAS tokens */
90 * The EEH RTAS calls use a tuple consisting of: (buid_hi, buid_lo,
145 * I haven't found *any* systems that don't have that RTAS call in pseries_eeh_get_pe_config_addr()
164 /* Reset PE through RTAS call */ in pseries_eeh_phb_reset()
212 * If RTAS returns a delay value that's above 100ms, cut it in pseries_eeh_phb_configure_bridge()
238 * Buffer for reporting slot-error-detail rtas calls. Its here
240 * RMO where RTAS can access it.
[all …]
Dio_event_irq.c16 #include <asm/rtas.h>
23 * IO event interrupt is a mechanism provided by RTAS to return
66 * @elog: RTAS error/event log.
89 printk_once(KERN_WARNING "io_event_irq: RTAS extended event " in ioei_find_event()
Dsmp.c36 #include <asm/rtas.h>
70 "RTAS query-cpu-stopped-state failed: %i\n", status); in smp_query_cpu_stopped()
81 * started from Open Firmware. For anything else, call RTAS with the
109 * If the RTAS start-cpu token does not exist then presume the in smp_startup_cpu()
267 * We know prom_init will not have started them if RTAS supports in smp_init_pseries()
Dnvram.c17 #include <asm/rtas.h>
184 * Are we using the ibm,rtas-log for oops/panic reports? And if so,
185 * would logging this oops/panic overwrite an RTAS event that rtas_errd
188 * We assume that if rtas_errd hasn't read the RTAS event in
Dmsi.c12 #include <asm/rtas.h>
29 /* RTAS Helpers */
56 * If the RTAS call succeeded, return the number of irqs allocated. in rtas_change_msi()
351 * fact that we using RTAS for MSIs, we don't have the 32 bit MSI RTAS in rtas_hack_32bit_msi_gen2()
471 * RTAS can not disable one MSI at a time. It's all or nothing. Do it
604 /* TODO: handle RTAS cleanup in ->msi_finish() ? */ in pseries_irq_domain_alloc()
707 pr_debug("rtas_msi: no RTAS tokens, no MSI support.\n"); in rtas_msi_init()
711 pr_debug("rtas_msi: Registering RTAS MSI callbacks.\n"); in rtas_msi_init()
Dfirmware.c35 * The names in this table match names in rtas/ibm,hypertas-functions. If the
162 if (!strcmp(uname, "rtas") || !strcmp(uname, "rtas@0")) { in probe_fw_features()
/Linux-v5.15/arch/powerpc/platforms/chrp/
Dpci.c21 #include <asm/rtas.h>
95 * Access functions for PCI config space using RTAS calls.
192 struct device_node *rtas; in setup_peg2() local
194 rtas = of_find_node_by_name (root, "rtas"); in setup_peg2()
195 if (rtas) { in setup_peg2()
197 of_node_put(rtas); in setup_peg2()
199 printk ("RTAS supporting Pegasos OF not found, please upgrade" in setup_peg2()
300 printk("No methods for %pOF (model %s), using RTAS\n", in chrp_find_bridges()
Dnvram.c15 #include <asm/rtas.h>
58 printk(KERN_DEBUG "rtas IO error storing 0x%02x at %d", val, addr); in chrp_nvram_write_val()
/Linux-v5.15/arch/powerpc/sysdev/xics/
Dics-rtas.c19 #include <asm/rtas.h>
21 /* RTAS service tokens */
161 /* Check if RTAS knows about this interrupt */ in ics_rtas_check()
209 /* We enable the RTAS "ICS" if RTAS is present with the in ics_rtas_init()
/Linux-v5.15/arch/powerpc/kvm/
Dbook3s_rtas.c15 #include <asm/rtas.h>
227 * r4 contains the guest physical address of the RTAS args in kvmppc_rtas_hcall()
282 * We only get here if the guest has called RTAS with a bogus in kvmppc_rtas_hcall()
285 * fail the RTAS call. So fail right out to userspace, which in kvmppc_rtas_hcall()
289 * rtas handler call in r3, so enter_rtas could be modified to in kvmppc_rtas_hcall()
/Linux-v5.15/arch/powerpc/platforms/cell/
Dsmp.c37 #include <asm/rtas.h>
60 * started from Open Firmware. For anything else, call RTAS with the
82 * If the RTAS start-cpu token does not exist then presume the in smp_startup_cpu()
/Linux-v5.15/arch/powerpc/
DKconfig.debug200 bool "RTAS Panel"
203 Select this to enable early debugging via the RTAS panel.
206 bool "RTAS Console"
210 Select this to enable early debugging via the RTAS console.
/Linux-v5.15/drivers/tty/hvc/
DKconfig38 bool "IBM RTAS Console support"
42 IBM Console device driver which makes use of RTAS

12345