aboutsummaryrefslogtreecommitdiff
path: root/include/capp.h
diff options
context:
space:
mode:
authorRyan Grimm <grimm@linux.vnet.ibm.com>2014-09-29 18:48:15 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-09-30 14:45:39 +1000
commit8b925076b139a973b25ef88d3d701a810b38f1c0 (patch)
tree46c81f61f1f4bdeab8f26dc30c041acf74c1d668 /include/capp.h
parent32765e19a22f8366e562d7649cd726dc415600e1 (diff)
downloadskiboot-8b925076b139a973b25ef88d3d701a810b38f1c0.zip
skiboot-8b925076b139a973b25ef88d3d701a810b38f1c0.tar.gz
skiboot-8b925076b139a973b25ef88d3d701a810b38f1c0.tar.bz2
phb3/capi: Initialize capp regs with field values.
FLUSH_SUE_STATE_MAP change fixes a problem with recovery. We were using an old lab value that marked PTE entries in a shared state. After recovery, PTE entries were getting flushed out to memory with an SUE, resulting in a machine check. The new value means PTE entries are dropped on recovery. For, APC_MASTER_PB_CTRL spec says to use initfile value and bit 3 should be set. Initfile missing bit 3 so do a RMW. Bit 3 enables CAPP combined response. CAPP_EPOCH_TIMER_CTRL enables epoch timers and the recovery timer when recovery is enabled. Also relax epoch timer period mask due to a bug. TRANSPORT_CONTROL reg set bit 37 - rfs_benign_ptr_data in addition to spec value. Should be set in initifile in future. Rename APC_MASTER_CONFIG to APC_MASTER_CAPI_CTRL to match workbook name. Signed-off-by: Ryan Grimm <grimm@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/capp.h')
-rw-r--r--include/capp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/capp.h b/include/capp.h
index 417e952..c0b67e1 100644
--- a/include/capp.h
+++ b/include/capp.h
@@ -58,7 +58,7 @@ enum capp_reg {
#define CAPP_APC_MASTER_ARRAY_WRITE_REG 0x2013802
#define APC_MASTER_PB_CTRL 0x2013018
-#define APC_MASTER_CONFIG 0x2013019
+#define APC_MASTER_CAPI_CTRL 0x2013019
#define TRANSPORT_CONTROL 0x201301C
#define CANNED_PRESP_MAP0 0x201301D
#define CANNED_PRESP_MAP1 0x201301E