Lines Matching +full:panic +full:- +full:indicator

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
9 #include <asm/rtas-types.h>
107 * function handles are build-time constants prefixed with RTAS_FN_.
199 #define RTAS_UNKNOWN_SERVICE (-1)
213 * set for function-specific error and success conditions,
217 #define RTAS_HARDWARE_ERROR -1 /* Hardware or other unspecified error. */
218 #define RTAS_BUSY -2 /* Retry immediately. */
219 #define RTAS_INVALID_PARAMETER -3 /* Invalid indicator/domain/sensor etc. */
220 #define RTAS_UNEXPECTED_STATE_CHANGE -7 /* Seems limited to EEH and slot reset. */
223 #define RTAS_ML_ISOLATION_ERROR -9000 /* Multi-level isolation error. */
225 /* statuses specific to ibm,suspend-me */
227 #define RTAS_NOT_SUSPENDABLE -9004 /* Partition not suspendable */
228 #define RTAS_THREADS_ACTIVE -9005 /* Multiple processor threads active */
229 #define RTAS_OUTSTANDING_COPROC -9006 /* Outstanding coprocessor operations */
307 /* RTAS check-exception vector offset */
312 return (elog->byte1 & 0xE0) >> 5; in rtas_error_severity()
317 return (elog->byte1 & 0x18) >> 3; in rtas_error_disposition()
323 elog->byte1 &= ~0x18; in rtas_set_disposition_recovered()
324 elog->byte1 |= (RTAS_DISP_FULLY_RECOVERED << 3); in rtas_set_disposition_recovered()
329 return (elog->byte1 & 0x04) >> 2; in rtas_error_extended()
334 return (elog->byte2 & 0xf0) >> 4; in rtas_error_initiator()
337 #define rtas_error_type(x) ((x)->byte3)
342 return be32_to_cpu(elog->extended_log_length); in rtas_error_extended_log_length()
352 return ext_log->byte2 & 0x0F; in rtas_ext_event_log_format()
358 return be32_to_cpu(ext_log->company_id); in rtas_ext_event_company_id()
386 return be16_to_cpu(sect->id); in pseries_errorlog_id()
392 return be16_to_cpu(sect->length); in pseries_errorlog_length()
440 int rtas_set_indicator(int indicator, int index, int new_value);
441 int rtas_set_indicator_fast(int indicator, int index, int new_value);
466 return -EINVAL; in rtas_syscall_dispatch_ibm_suspend_me()
479 #define ERR_TYPE_RTAS_LOG 0x2 /* from rtas event-scan */
480 #define ERR_TYPE_KERNEL_PANIC 0x4 /* from die()/panic() */
492 * Return the firmware-specified size of the error log buffer
494 * This includes 'check-exception' and 'rtas-last-error'.
502 #define LOG_NUMBER_MASK (LOG_NUMBER-1)
514 /* RMO buffer reserved for user-space RTAS use */
522 * rtas_config_addr - Format a busno, devfn and reg for RTAS.
529 * See PAPR requirement 7.3.4-1 for more info.
550 * move some of the rtas suspend-me stuff to pseries */