]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/powernv/memtrace: Let the arch hotunplug code flush cache
authorBalbir Singh <bsingharora@gmail.com>
Fri, 6 Apr 2018 05:24:24 +0000 (15:24 +1000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 21:05:47 +0000 (17:05 -0400)
commitd119249b94cb591032edc80dd6ebcc20517a2295
tree17b73336f6859be794aa7fb19467a359a7f5b0d8
parente7d270d05520d3261522b00fb0b6b89fca77b733
powerpc/powernv/memtrace: Let the arch hotunplug code flush cache

BugLink: http://bugs.launchpad.net/bugs/1772991
Don't do this via custom code, instead now that we have support in the
arch hotplug/hotunplug code, rely on those routines to do the right
thing.

The existing flush doesn't work because it uses ppc64_caches.l1d.size
instead of ppc64_caches.l1d.line_size.

Fixes: 9d5171a8f248 ("powerpc/powernv: Enable removal of memory for in memory tracing")
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Rashmica Gupta <rashmica.g@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 7fd6641de28fe9b5bce0c38d2adee0a72a72619e)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/powerpc/platforms/powernv/memtrace.c