projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
070e004
)
powerpc/xive: Fix IPI reset
author
Cédric Le Goater
<clg@kaod.org>
Wed, 4 Oct 2017 09:15:04 +0000
(11:15 +0200)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 4 Oct 2017 11:01:15 +0000
(22:01 +1100)
When resetting an IPI, hw_ipi should also be set to zero.
Fixes:
eac1e731b59e
("powerpc/xive: guest exploitation of the XIVE interrupt controller")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xive/spapr.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/sysdev/xive/spapr.c
b/arch/powerpc/sysdev/xive/spapr.c
index f24a70bc6855d54cf86a50d17fefebc9777e2ed0..d9c4c93660491849029044d37ab8e60160b0d7de 100644
(file)
--- a/
arch/powerpc/sysdev/xive/spapr.c
+++ b/
arch/powerpc/sysdev/xive/spapr.c
@@
-431,7
+431,11
@@
static int xive_spapr_get_ipi(unsigned int cpu, struct xive_cpu *xc)
static void xive_spapr_put_ipi(unsigned int cpu, struct xive_cpu *xc)
{
+ if (!xc->hw_ipi)
+ return;
+
xive_irq_bitmap_free(xc->hw_ipi);
+ xc->hw_ipi = 0;
}
#endif /* CONFIG_SMP */