aboutsummaryrefslogtreecommitdiff
path: root/include/chip.h
diff options
context:
space:
mode:
authorHaren Myneni <haren@linux.vnet.ibm.com>2018-06-06 00:38:20 -0700
committerStewart Smith <stewart@linux.ibm.com>2018-06-18 22:13:13 -0500
commit56026a13292453b072ad3cc9adf3dee960077f38 (patch)
tree164f5050f2fedb90c2d3b330d3f3b1c93a9a183d /include/chip.h
parent94140dbc6a9cafd868609567f944349a1ed5cfe4 (diff)
downloadskiboot-56026a13292453b072ad3cc9adf3dee960077f38.zip
skiboot-56026a13292453b072ad3cc9adf3dee960077f38.tar.gz
skiboot-56026a13292453b072ad3cc9adf3dee960077f38.tar.bz2
NX: Add NX coprocessor init opal call
The read offset (4:11) in Receive FIFO control register is incremented by FIFO size whenever CRB read by NX. But the index in RxFIFO has to match with the corresponding entry in FIFO maintained by VAS in kernel. VAS entry is reset to 0 when opening the receive window during driver initialization. So when NX842 is reloaded or in kexec boot, possibility of mismatch between RxFIFO control register and VAS entries in kernel. It could cause CRB failure / timeout from NX. This patch adds nx_coproc_init opal call for kernel to initialize readOffset (4:11) and Queued (15:23) in RxFIFO control register. Fixes: 3b3c5962f432 ("NX: Add P9 NX support for 842 compression engine") CC: stable # v5.8+ Signed-off-by: Haren Myneni <haren@us.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include/chip.h')
-rw-r--r--include/chip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/chip.h b/include/chip.h
index 059033e..2fb8126 100644
--- a/include/chip.h
+++ b/include/chip.h
@@ -217,6 +217,8 @@ struct proc_chip {
struct vas *vas;
+ /* Used by hw/nx-compress.c */
+ uint64_t nx_base;
/* location code of this chip */
const uint8_t *loc_code;