ras.c (f94f3cb37a1c4d44dd2070cc4a6165689bda9c92) ras.c (476eb4912601a8c01e6702b9a029f476b4b131d2)
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 *

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

117 critical = 1; /* Time Critical */
118 else
119 critical = 0;
120
121 spin_lock(&ras_log_buf_lock);
122
123 status = rtas_call(ras_check_exception_token, 6, 1, NULL,
124 RTAS_VECTOR_EXTERNAL_INTERRUPT,
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 *

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

117 critical = 1; /* Time Critical */
118 else
119 critical = 0;
120
121 spin_lock(&ras_log_buf_lock);
122
123 status = rtas_call(ras_check_exception_token, 6, 1, NULL,
124 RTAS_VECTOR_EXTERNAL_INTERRUPT,
125 irq_map[irq].hwirq,
125 virq_to_hw(irq),
126 RTAS_EPOW_WARNING | RTAS_POWERMGM_EVENTS,
127 critical, __pa(&ras_log_buf),
128 rtas_get_error_log_max());
129
130 udbg_printf("EPOW <0x%lx 0x%x 0x%x>\n",
131 *((unsigned long *)&ras_log_buf), status, state);
132 printk(KERN_WARNING "EPOW <0x%lx 0x%x 0x%x>\n",
133 *((unsigned long *)&ras_log_buf), status, state);

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

152 struct rtas_error_log *rtas_elog;
153 int status = 0xdeadbeef;
154 int fatal;
155
156 spin_lock(&ras_log_buf_lock);
157
158 status = rtas_call(ras_check_exception_token, 6, 1, NULL,
159 RTAS_VECTOR_EXTERNAL_INTERRUPT,
126 RTAS_EPOW_WARNING | RTAS_POWERMGM_EVENTS,
127 critical, __pa(&ras_log_buf),
128 rtas_get_error_log_max());
129
130 udbg_printf("EPOW <0x%lx 0x%x 0x%x>\n",
131 *((unsigned long *)&ras_log_buf), status, state);
132 printk(KERN_WARNING "EPOW <0x%lx 0x%x 0x%x>\n",
133 *((unsigned long *)&ras_log_buf), status, state);

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

152 struct rtas_error_log *rtas_elog;
153 int status = 0xdeadbeef;
154 int fatal;
155
156 spin_lock(&ras_log_buf_lock);
157
158 status = rtas_call(ras_check_exception_token, 6, 1, NULL,
159 RTAS_VECTOR_EXTERNAL_INTERRUPT,
160 irq_map[irq].hwirq,
160 virq_to_hw(irq),
161 RTAS_INTERNAL_ERROR, 1 /*Time Critical */,
162 __pa(&ras_log_buf),
163 rtas_get_error_log_max());
164
165 rtas_elog = (struct rtas_error_log *)ras_log_buf;
166
167 if ((status == 0) && (rtas_elog->severity >= RTAS_SEVERITY_ERROR_SYNC))
168 fatal = 1;

--- 179 unchanged lines hidden ---
161 RTAS_INTERNAL_ERROR, 1 /*Time Critical */,
162 __pa(&ras_log_buf),
163 rtas_get_error_log_max());
164
165 rtas_elog = (struct rtas_error_log *)ras_log_buf;
166
167 if ((status == 0) && (rtas_elog->severity >= RTAS_SEVERITY_ERROR_SYNC))
168 fatal = 1;

--- 179 unchanged lines hidden ---