Nothing special this time, just an error messages improvement from Andy
and a cleanup from me. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJUtQlAAAoJEBLB8Bhh3lVKB5wQAIgnT9hZazgGtlvns8UIA1SY ZTM/4yEBGo/a5iIaD37ahfUm1Eb8Y/u3ITlKu8/DFyS7bEq9uEf+IGV9ZqeH8F9t QWe079ObsURsxUFz3jg9iW7Er4uWlvHoyaeWoGS8MCKpTB8oYLr70vZafNLLQ0Qy QYCV6SSFO51WZ2J3x7PBRXNANvvVPe8AhNx8rb3VOaP7aDlBXk8rzu3MVJwUJjOb /tgRz7uChp3HAW6PADehM+ELNDINMAW8wJB1XwbfHnwGJYTVrBdWpBnF2h/qULoN p/KU+zpuTZpopfkaHiNb7cgwR1B+Ig5DVvXHMTMkJCHe0y978ch4kwSy6nLGXvZ6 ig5h8yi83K1cXGdl6/HwRidge83Y97nceOi8hyqiVsOfGuOQMYbGw3lbzyLGPlVT RzRyaWToS7UlRtlr2qDvqzmLGujDt1bpSLhoLxNaQ3BKJ2tPZJ/TyH9BfvmE+Ed8 1zITTL88B7bXxJLIdyS8pgQxHeuoRuDutd0uRh0Uolm6Z6PHxOIt5euly99zhA9u s5Xl/7dv66VA8PmY7VoZlmCuxlU8uY/RUct/v7bwIspYO8NvUe7A7cSoFycge286 MON6rVXkvWqeJIxqXEs8K6tbtF+D6LhBUxUKGqXHbJvmslse0FwrwHoq0e4jmfth BgYBxhd/nH+CQO4OYBBF =r9gb -----END PGP SIGNATURE----- Merge tag 'ras_for_3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp into x86/ras Pull RAS updates from Borislav Petkov: "Nothing special this time, just an error messages improvement from Andy and a cleanup from me." Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
commit
37e4d3b951
|
@ -115,7 +115,7 @@ static void (*quirk_no_way_out)(int bank, struct mce *m, struct pt_regs *regs);
|
|||
* CPU/chipset specific EDAC code can register a notifier call here to print
|
||||
* MCE errors in a human-readable form.
|
||||
*/
|
||||
ATOMIC_NOTIFIER_HEAD(x86_mce_decoder_chain);
|
||||
static ATOMIC_NOTIFIER_HEAD(x86_mce_decoder_chain);
|
||||
|
||||
/* Do initial initialization of a struct mce */
|
||||
void mce_setup(struct mce *m)
|
||||
|
@ -311,7 +311,7 @@ static void wait_for_panic(void)
|
|||
panic("Panicing machine check CPU died");
|
||||
}
|
||||
|
||||
static void mce_panic(char *msg, struct mce *final, char *exp)
|
||||
static void mce_panic(const char *msg, struct mce *final, char *exp)
|
||||
{
|
||||
int i, apei_err = 0;
|
||||
|
||||
|
@ -529,7 +529,7 @@ static void mce_schedule_work(void)
|
|||
schedule_work(this_cpu_ptr(&mce_work));
|
||||
}
|
||||
|
||||
DEFINE_PER_CPU(struct irq_work, mce_irq_work);
|
||||
static DEFINE_PER_CPU(struct irq_work, mce_irq_work);
|
||||
|
||||
static void mce_irq_work_cb(struct irq_work *entry)
|
||||
{
|
||||
|
@ -735,7 +735,7 @@ static atomic_t mce_callin;
|
|||
/*
|
||||
* Check if a timeout waiting for other CPUs happened.
|
||||
*/
|
||||
static int mce_timed_out(u64 *t)
|
||||
static int mce_timed_out(u64 *t, const char *msg)
|
||||
{
|
||||
/*
|
||||
* The others already did panic for some reason.
|
||||
|
@ -750,8 +750,7 @@ static int mce_timed_out(u64 *t)
|
|||
goto out;
|
||||
if ((s64)*t < SPINUNIT) {
|
||||
if (mca_cfg.tolerant <= 1)
|
||||
mce_panic("Timeout synchronizing machine check over CPUs",
|
||||
NULL, NULL);
|
||||
mce_panic(msg, NULL, NULL);
|
||||
cpu_missing = 1;
|
||||
return 1;
|
||||
}
|
||||
|
@ -867,7 +866,8 @@ static int mce_start(int *no_way_out)
|
|||
* Wait for everyone.
|
||||
*/
|
||||
while (atomic_read(&mce_callin) != cpus) {
|
||||
if (mce_timed_out(&timeout)) {
|
||||
if (mce_timed_out(&timeout,
|
||||
"Timeout: Not all CPUs entered broadcast exception handler")) {
|
||||
atomic_set(&global_nwo, 0);
|
||||
return -1;
|
||||
}
|
||||
|
@ -892,7 +892,8 @@ static int mce_start(int *no_way_out)
|
|||
* only seen by one CPU before cleared, avoiding duplicates.
|
||||
*/
|
||||
while (atomic_read(&mce_executing) < order) {
|
||||
if (mce_timed_out(&timeout)) {
|
||||
if (mce_timed_out(&timeout,
|
||||
"Timeout: Subject CPUs unable to finish machine check processing")) {
|
||||
atomic_set(&global_nwo, 0);
|
||||
return -1;
|
||||
}
|
||||
|
@ -936,7 +937,8 @@ static int mce_end(int order)
|
|||
* loops.
|
||||
*/
|
||||
while (atomic_read(&mce_executing) <= cpus) {
|
||||
if (mce_timed_out(&timeout))
|
||||
if (mce_timed_out(&timeout,
|
||||
"Timeout: Monarch CPU unable to finish machine check processing"))
|
||||
goto reset;
|
||||
ndelay(SPINUNIT);
|
||||
}
|
||||
|
@ -949,7 +951,8 @@ static int mce_end(int order)
|
|||
* Subject: Wait for Monarch to finish.
|
||||
*/
|
||||
while (atomic_read(&mce_executing) != 0) {
|
||||
if (mce_timed_out(&timeout))
|
||||
if (mce_timed_out(&timeout,
|
||||
"Timeout: Monarch CPU did not finish machine check processing"))
|
||||
goto reset;
|
||||
ndelay(SPINUNIT);
|
||||
}
|
||||
|
@ -1009,7 +1012,7 @@ static void mce_clear_state(unsigned long *toclear)
|
|||
*/
|
||||
#define MCE_INFO_MAX 16
|
||||
|
||||
struct mce_info {
|
||||
static struct mce_info {
|
||||
atomic_t inuse;
|
||||
struct task_struct *t;
|
||||
__u64 paddr;
|
||||
|
|
Loading…
Reference in a new issue