]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc: mpc85xx: flush the l1 cache before cpu down in kexec
authorKevin Hao <haokexin@gmail.com>
Sun, 17 May 2015 08:12:37 +0000 (16:12 +0800)
committerScott Wood <scottwood@freescale.com>
Wed, 3 Jun 2015 02:37:28 +0000 (21:37 -0500)
commit379caf606396a13c8da2742e9a6e0bcfaaffa726
tree84f88d7929c839b20fa34e473d9a9e380bf39415
parent5b2753fc3e8a72253310d01a8b0a5bb05d917ef8
powerpc: mpc85xx: flush the l1 cache before cpu down in kexec

We observe a "Zero PT_NOTE entries found" warning when vmcore_init()
is running on the dump-capture kernel. Actually the PT_NOTE segments
is not empty, but the entries generated by crash_save_cpu() are not
flushed to the memory before we reset these cores. So we should flush
the l1 cache as what we do in cpu hotplug. With this change, we can
also kill the mpc85xx_smp_flush_dcache_kexec() since that becomes
unnecessary.

Please note: this only fix the issue on e500 core, we still need to
implement the function to flush the l2 cache for the e500mc core.
Fortunately we already had proposing patch for this support [1].
Hope we can fix this issue for e500mc after that merged.

[1] https://lists.ozlabs.org/pipermail/linuxppc-dev/2014-March/115830.html

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/platforms/85xx/smp.c