]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/pseries: Update dynamic cache nodes for suspend/resume operation
authorHaren Myneni <hbabu@us.ibm.com>
Wed, 26 Feb 2014 04:02:18 +0000 (20:02 -0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 7 Mar 2014 04:54:49 +0000 (15:54 +1100)
commit6b36ba8492abd1c819e949e085cc547b062d8593
tree83f51a02cb13333cbd9675a135828e4316699107
parent39a33b59f43088aa33f29ace6b978333dd0bca4a
powerpc/pseries: Update dynamic cache nodes for suspend/resume operation

pHyp can change cache nodes for suspend/resume operation. Currently the
device tree is updated by drmgr in userspace after all non boot CPUs are
enabled. Hence, we do not modify the cache list based on the latest cache
nodes. Also we do not remove cache entries for the primary CPU.

This patch removes the cache list for the boot CPU, updates the device tree
before enabling nonboot CPUs and adds cache list for the boot cpu.

This patch also has the side effect that older versions of drmgr will
perform a second device tree update from userspace. While this is a
redundant waste of a couple cycles it is harmless since firmware returns the
same data for the subsequent update-nodes/properties rtas calls.

Signed-off-by: Haren Myneni <hbabu@us.ibm.com>
Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/cacheinfo.c
arch/powerpc/platforms/pseries/suspend.c