summaryrefslogtreecommitdiffstats
path: root/ccan
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2017-01-27 18:33:16 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-20 11:23:33 +1100
commit9fdd5e830b322097d415dc31499b2dd61eebbdfc (patch)
tree9dfad2ab7032a232025043fa2029c5493ebd7d7c /ccan
parente9ede1c48b3bd5af3a68e2277146f3b6b1c7ca3c (diff)
downloadblackbird-skiboot-9fdd5e830b322097d415dc31499b2dd61eebbdfc.tar.gz
blackbird-skiboot-9fdd5e830b322097d415dc31499b2dd61eebbdfc.zip
hw/phb3: add host sync notifier to trigger creset/CAPP disable on kexec
To support kexec in Linux, we need to trigger a creset to disable CAPP mode on each PHB that has been attached to a CAPP. Add a host sync notifier, phb3_host_sync_reset(), that will be triggered by the opal_sync_host_reboot() call that Linux makes when "shutting down" a powernv system (this includes bringing the system down to prepare it for kexec). This notifier will trigger a creset only on PHBs that need it, and will poll regularly until the creset completes. This approach is somewhat hacky, as it's somewhat of an abuse of the host sync notifier system (IMHO), but it seems the most obvious way to ensure that the reset/CAPP disable occurs that will work with old kernel versions and not require additional support on the kernel side. Suggested-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'ccan')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud