Home
last modified time | relevance | path

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

123

/linux/arch/powerpc/kernel/
H A Drtas_entry.S9 * RTAS is called with MSR IR, DR, EE disabled, and LR in the return address.
11 * Note: r3 is an input parameter to rtas, so don't trash it...
19 LOAD_REG_ADDR(r4, rtas)
20 lis r6,1f@ha /* physical return address for rtas */
55 * 32-bit rtas on 64-bit machines has the additional problem that RTAS may
63 /* Because RTAS is running in 32b mode, it clobbers the high order half
65 * RTAS might touch to the stack. (r0, r3-r12 are caller saved)
81 /* Temporary workaround to clear CR until RTAS can be modified to
91 * our original state after RTAS returns.
102 LOAD_REG_ADDR(r4, rtas)
[all …]
H A Drtas.c4 * Procedures for interfacing to the RTAS on CHRP machines.
10 #define pr_fmt(fmt) "rtas: " fmt
42 #include <asm/rtas-work-area.h>
43 #include <asm/rtas.h>
62 * struct rtas_function - Descriptor for RTAS functions.
64 * @token: Value of @name if it exists under the /rtas node.
66 * @filter: If non-NULL, invoking this function via the rtas syscall is
92 * Per-function locks for sequence-based RTAS functions.
395 * "ibm,reset-pe-dma-windows" (plural), but RTAS
511 .name = "rtas-last-error",
[all …]
H A 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 …]
H A Drtas_pci.c6 * RTAS specific routines for PCI.
25 #include <asm/rtas.h>
30 /* RTAS tokens */
/linux/arch/powerpc/platforms/pseries/
H A Dpapr-hvpipe.c16 #include <asm/rtas.h>
17 #include <asm/rtas-work-area.h>
40 * FW introduces send HVPIPE and recv HVPIPE RTAS calls for
43 * These RTAS functions have the following certain requirements
54 * Follow the similar interfaces that the OS has for other RTAS calls.
59 * - write(fd, buf, size) --> Issue send HVPIPE RTAS call and
60 * returns size for success or the corresponding error for RTAS
65 * - read(fd, buf, size) --> Issue recv HVPIPE RTAS call and
66 * returns size for success or the corresponding error for RTAS
71 * ibm,receive-hvpipe-msg RTAS call.
[all …]
H A Dpapr-rtas-common.c13 #include "papr-rtas-common.h"
16 * Sequence based RTAS HCALL has to issue multiple times to retrieve
17 * complete data from the hypervisor. For some of these RTAS calls,
22 * RTAS calls Ex: ibm,get-vpd and ibm,get-indices.
68 * data with the caller RTAS call.
125 * Context: May sleep. Holds a mutex and an RTAS work area for its
158 * @seq: RTAS call specific functions to be invoked until the
175 * changed and need to start the sequence) status from RTAS calls in papr_rtas_retrieve()
197 * @seq: RTAS call specific functions to get the data.
198 * @fops: RTAS call specific file operations such as read().
[all …]
H A Drtas-work-area.c3 #define pr_fmt(fmt) "rtas-work-area: " fmt
17 #include <asm/rtas-work-area.h>
18 #include <asm/rtas.h>
34 * PAPR+ 7.3.20 ibm,get-vpd RTAS Call
128 * reliably reserve an arena that satisfies RTAS addressing
130 * immmediately after RTAS instantiation. Then we have to wait until
151 * All RTAS functions that consume work areas are OK with in rtas_work_area_allocator_init()
186 * rtas_work_area_reserve_arena() - Reserve memory suitable for RTAS work areas.
H A Dpapr-phy-attest.c18 #include <asm/rtas-work-area.h>
19 #include <asm/rtas.h>
21 #include "papr-rtas-common.h"
28 * RTAS-addressable.
37 * @status: Out: RTAS call status.
54 * deposits data into the supplied work area. Handles RTAS retry
55 * statuses. Maps RTAS error statuses to reasonable errno values.
133 * @seq: user specified parameters for RTAS call from seq struct.
212 * retrieved by this call and all necessary RTAS interactions are
H A Dpapr-platform-dump.c12 #include <asm/rtas-work-area.h>
13 #include <asm/rtas.h>
18 * PAPR+ v2.13 7.3.3.4.1 "ibm,platform-dump RTAS Call".
41 * @status: Out: RTAS call status.
77 * into the supplied work area. Handles RTAS retry statuses. Maps RTAS
135 * Platform dump is used with multiple RTAS calls to retrieve the
138 * last RTAS call and expects the caller issues one more call with
231 * Issue the last RTAS call with NULL buffer to invalidate the dump
287 * Allocates RTAS parameter struct and work area and attached to the
288 * file descriptor for reading by user space with the multiple RTAS
H A 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()
H A Dsmp.c35 #include <asm/rtas.h>
69 "RTAS query-cpu-stopped-state failed: %i\n", status); in smp_query_cpu_stopped()
80 * started from Open Firmware. For anything else, call RTAS with the
108 * If the RTAS start-cpu token does not exist then presume the in smp_startup_cpu()
273 * We know prom_init will not have started them if RTAS supports in smp_init_pseries()
H A Dnvram.c18 #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
H A Dmsi.c15 #include <asm/rtas.h>
37 /* RTAS Helpers */
64 * If the RTAS call succeeded, return the number of irqs allocated. in rtas_change_msi()
338 * fact that we using RTAS for MSIs, we don't have the 32 bit MSI RTAS in rtas_hack_32bit_msi_gen2()
466 * RTAS can not disable one MSI at a time. It's all or nothing. Do it
612 /* TODO: handle RTAS cleanup in ->msi_finish() ? */ in pseries_irq_domain_alloc()
701 pr_debug("rtas_msi: no RTAS tokens, no MSI support.\n"); in rtas_msi_init()
705 pr_debug("rtas_msi: Registering RTAS MSI callbacks.\n"); in rtas_msi_init()
H A Dfirmware.c35 * The names in this table match names in rtas/ibm,hypertas-functions. If the
165 if (!strcmp(uname, "rtas") || !strcmp(uname, "rtas@0")) { in probe_fw_features()
H A Dpapr-sysparm.c17 #include <asm/rtas-work-area.h>
18 #include <asm/rtas.h>
57 * submitting it to RTAS.
/linux/arch/powerpc/include/asm/
H A Drtas.h9 #include <asm/rtas-types.h>
14 * Definitions for talking to the RTAS on CHRP machines.
108 * Opaque handle for client code to refer to RTAS functions. All valid
204 #define RTAS_INSTANTIATE_MAX (1ULL<<30) /* Don't instantiate rtas at/above this value */
210 * Common RTAS function return values, derived from the table "RTAS
216 * RTAS functions may use negative and positive numbers not in this
236 /* RTAS event classes */
244 /* RTAS event severity */
252 /* RTAS event disposition */
257 /* RTAS event initiator */
[all …]
H A Drtas-work-area.h12 * struct rtas_work_area - RTAS work area descriptor.
15 * RTAS addressing requirements.
33 * Allocate a buffer suitable for passing to RTAS functions that have
/linux/drivers/watchdog/
H A 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/drivers/pci/hotplug/
H A Drpaphp_pci.c16 #include <asm/rtas.h>
23 * RTAS call get-sensor-state(DR_ENTITY_SENSE) return values as per PAPR:
27 * -3: Invalid sensor. RTAS Parameter Error.
29 * -9000: Need DR entity to be powered up and unisolated before RTAS call
30 * -9001: Need DR entity to be powered up, but not unisolated, before RTAS call
59 * On certain PHB failures, the RTAS call rtas_call(get-sensor-state) returns
60 * extended busy error (9902) until PHB is recovered by pHyp. The RTAS call
61 * interface rtas_get_sensor() loops over the RTAS call on extended delay
67 * recovery state and return -EBUSY error based on RTAS return status. This
/linux/arch/powerpc/platforms/chrp/
H A 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()
H A 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/arch/powerpc/sysdev/xics/
H A Dics-rtas.c18 #include <asm/rtas.h>
20 /* RTAS service tokens */
160 /* Check if RTAS knows about this interrupt */ in ics_rtas_check()
208 /* We enable the RTAS "ICS" if RTAS is present with the in ics_rtas_init()
/linux/arch/powerpc/kvm/
H A 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/drivers/tty/hvc/
H A Dhvc_rtas.c3 * IBM RTAS driver interface to hvc_console.c
25 #include <asm/rtas.h>
H A DKconfig38 bool "IBM RTAS Console support"
42 IBM Console device driver which makes use of RTAS

123