Lines Matching +full:panic +full:- +full:indicator
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
8 #include <asm/rtas-types.h>
106 * function handles are build-time constants prefixed with RTAS_FN_.
198 #define RTAS_UNKNOWN_SERVICE (-1)
205 #define RTAS_HARDWARE_ERROR -1 /* Hardware Error */
206 #define RTAS_BUSY -2 /* RTAS Busy */
207 #define RTAS_INVALID_PARAMETER -3 /* Invalid indicator/domain/sensor etc. */
211 /* statuses specific to ibm,suspend-me */
213 #define RTAS_NOT_SUSPENDABLE -9004 /* Partition not suspendable */
214 #define RTAS_THREADS_ACTIVE -9005 /* Multiple processor threads active */
215 #define RTAS_OUTSTANDING_COPROC -9006 /* Outstanding coprocessor operations */
293 /* RTAS check-exception vector offset */
298 return (elog->byte1 & 0xE0) >> 5; in rtas_error_severity()
303 return (elog->byte1 & 0x18) >> 3; in rtas_error_disposition()
309 elog->byte1 &= ~0x18; in rtas_set_disposition_recovered()
310 elog->byte1 |= (RTAS_DISP_FULLY_RECOVERED << 3); in rtas_set_disposition_recovered()
315 return (elog->byte1 & 0x04) >> 2; in rtas_error_extended()
320 return (elog->byte2 & 0xf0) >> 4; in rtas_error_initiator()
323 #define rtas_error_type(x) ((x)->byte3)
328 return be32_to_cpu(elog->extended_log_length); in rtas_error_extended_log_length()
338 return ext_log->byte2 & 0x0F; in rtas_ext_event_log_format()
344 return be32_to_cpu(ext_log->company_id); in rtas_ext_event_company_id()
372 return be16_to_cpu(sect->id); in pseries_errorlog_id()
378 return be16_to_cpu(sect->length); in pseries_errorlog_length()
426 extern int rtas_set_indicator(int indicator, int index, int new_value);
427 extern int rtas_set_indicator_fast(int indicator, int index, int new_value);
454 return -EINVAL; in rtas_syscall_dispatch_ibm_suspend_me()
467 #define ERR_TYPE_RTAS_LOG 0x2 /* from rtas event-scan */
468 #define ERR_TYPE_KERNEL_PANIC 0x4 /* from die()/panic() */
480 * Return the firmware-specified size of the error log buffer
482 * This includes 'check-exception' and 'rtas-last-error'.
490 #define LOG_NUMBER_MASK (LOG_NUMBER-1)
502 /* RMO buffer reserved for user-space RTAS use */
508 * rtas_config_addr - Format a busno, devfn and reg for RTAS.
515 * See PAPR requirement 7.3.4-1 for more info.
536 * move some of the rtas suspend-me stuff to pseries */