ras.c (b460cbc581a53cc088ceba80608021dd49c63c43) ras.c (36f8a2c4c61e3559a95190e457b431c6900859b4)
1/*
2 * Copyright (C) 2001 Dave Engebretsen IBM Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 53 unchanged lines hidden (view full) ---

62
63#define EPOW_SENSOR_TOKEN 9
64#define EPOW_SENSOR_INDEX 0
65#define RAS_VECTOR_OFFSET 0x500
66
67static irqreturn_t ras_epow_interrupt(int irq, void *dev_id);
68static irqreturn_t ras_error_interrupt(int irq, void *dev_id);
69
1/*
2 * Copyright (C) 2001 Dave Engebretsen IBM Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 53 unchanged lines hidden (view full) ---

62
63#define EPOW_SENSOR_TOKEN 9
64#define EPOW_SENSOR_INDEX 0
65#define RAS_VECTOR_OFFSET 0x500
66
67static irqreturn_t ras_epow_interrupt(int irq, void *dev_id);
68static irqreturn_t ras_error_interrupt(int irq, void *dev_id);
69
70/* #define DEBUG */
71
70
72
73static void request_ras_irqs(struct device_node *np,
74 irq_handler_t handler,
75 const char *name)
76{
77 int i, index, count = 0;
78 struct of_irq oirq;
79 const u32 *opicprop;
80 unsigned int opicplen;

--- 151 unchanged lines hidden (view full) ---

232 log_error(ras_log_buf, ERR_TYPE_RTAS_LOG, fatal);
233
234 if (fatal) {
235 udbg_printf("Fatal HW Error <0x%lx 0x%x>\n",
236 *((unsigned long *)&ras_log_buf), status);
237 printk(KERN_EMERG "Error: Fatal hardware error <0x%lx 0x%x>\n",
238 *((unsigned long *)&ras_log_buf), status);
239
71static void request_ras_irqs(struct device_node *np,
72 irq_handler_t handler,
73 const char *name)
74{
75 int i, index, count = 0;
76 struct of_irq oirq;
77 const u32 *opicprop;
78 unsigned int opicplen;

--- 151 unchanged lines hidden (view full) ---

230 log_error(ras_log_buf, ERR_TYPE_RTAS_LOG, fatal);
231
232 if (fatal) {
233 udbg_printf("Fatal HW Error <0x%lx 0x%x>\n",
234 *((unsigned long *)&ras_log_buf), status);
235 printk(KERN_EMERG "Error: Fatal hardware error <0x%lx 0x%x>\n",
236 *((unsigned long *)&ras_log_buf), status);
237
240#ifndef DEBUG
238#ifndef DEBUG_RTAS_POWER_OFF
241 /* Don't actually power off when debugging so we can test
242 * without actually failing while injecting errors.
243 * Error data will not be logged to syslog.
244 */
245 ppc_md.power_off();
246#endif
247 } else {
248 udbg_printf("Recoverable HW Error <0x%lx 0x%x>\n",

--- 123 unchanged lines hidden ---
239 /* Don't actually power off when debugging so we can test
240 * without actually failing while injecting errors.
241 * Error data will not be logged to syslog.
242 */
243 ppc_md.power_off();
244#endif
245 } else {
246 udbg_printf("Recoverable HW Error <0x%lx 0x%x>\n",

--- 123 unchanged lines hidden ---