Release 4.18 arch/powerpc/platforms/pseries/kexec.c
/*
* Copyright 2006 Michael Ellerman, IBM Corporation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <asm/machdep.h>
#include <asm/page.h>
#include <asm/firmware.h>
#include <asm/kexec.h>
#include <asm/xics.h>
#include <asm/xive.h>
#include <asm/smp.h>
#include <asm/plpar_wrappers.h>
#include "pseries.h"
void pseries_kexec_cpu_down(int crash_shutdown, int secondary)
{
/*
* Don't risk a hypervisor call if we're crashing
* XXX: Why? The hypervisor is not crashing. It might be better
* to at least attempt unregister to avoid the hypervisor stepping
* on our memory.
*/
if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) {
int ret;
int cpu = smp_processor_id();
int hwcpu = hard_smp_processor_id();
if (get_lppaca()->dtl_enable_mask) {
ret = unregister_dtl(hwcpu);
if (ret) {
pr_err("WARNING: DTL deregistration for cpu "
"%d (hw %d) failed with %d\n",
cpu, hwcpu, ret);
}
}
ret = unregister_slb_shadow(hwcpu);
if (ret) {
pr_err("WARNING: SLB shadow buffer deregistration "
"for cpu %d (hw %d) failed with %d\n",
cpu, hwcpu, ret);
}
ret = unregister_vpa(hwcpu);
if (ret) {
pr_err("WARNING: VPA deregistration for cpu %d "
"(hw %d) failed with %d\n", cpu, hwcpu, ret);
}
}
if (xive_enabled()) {
xive_kexec_teardown_cpu(secondary);
if (!secondary)
xive_shutdown();
} else
xics_kexec_teardown_cpu(secondary);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 79 | 53.02% | 3 | 37.50% |
Michael Ellerman | 47 | 31.54% | 1 | 12.50% |
Cédric Le Goater | 21 | 14.09% | 2 | 25.00% |
Nathan Fontenot | 1 | 0.67% | 1 | 12.50% |
Nicholas Piggin | 1 | 0.67% | 1 | 12.50% |
Total | 149 | 100.00% | 8 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 79 | 43.17% | 3 | 27.27% |
Michael Ellerman | 66 | 36.07% | 1 | 9.09% |
Cédric Le Goater | 24 | 13.11% | 2 | 18.18% |
Benjamin Herrenschmidt | 8 | 4.37% | 1 | 9.09% |
Paul Mackerras | 2 | 1.09% | 1 | 9.09% |
Deepthi Dharwar | 2 | 1.09% | 1 | 9.09% |
Nathan Fontenot | 1 | 0.55% | 1 | 9.09% |
Nicholas Piggin | 1 | 0.55% | 1 | 9.09% |
Total | 183 | 100.00% | 11 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.