summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/icswx.h
diff options
context:
space:
mode:
authorHaren Myneni2017-08-31 09:18:18 +0200
committerMichael Ellerman2017-09-01 08:42:50 +0200
commit146e9f1b65478643f2729a97ccb8be60bb4492e5 (patch)
treecbcec3dba5f8710827bf96fb8d61ca23893856d3 /arch/powerpc/include/asm/icswx.h
parentcrypto/nx: Use kzalloc for workmem allocation (diff)
downloadkernel-qcow2-linux-146e9f1b65478643f2729a97ccb8be60bb4492e5.tar.gz
kernel-qcow2-linux-146e9f1b65478643f2729a97ccb8be60bb4492e5.tar.xz
kernel-qcow2-linux-146e9f1b65478643f2729a97ccb8be60bb4492e5.zip
crypto/nx: Add P9 NX specific error codes for 842 engine
This patch adds changes for checking P9 specific 842 engine error codes. These errros are reported in coprocessor status block (CSB) for failures. Signed-off-by: Haren Myneni <haren@us.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/icswx.h')
-rw-r--r--arch/powerpc/include/asm/icswx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/icswx.h b/arch/powerpc/include/asm/icswx.h
index 27e588f6c72e..6a2c87577541 100644
--- a/arch/powerpc/include/asm/icswx.h
+++ b/arch/powerpc/include/asm/icswx.h
@@ -69,7 +69,10 @@ struct coprocessor_completion_block {
#define CSB_CC_WR_PROTECTION (16)
#define CSB_CC_UNKNOWN_CODE (17)
#define CSB_CC_ABORT (18)
+#define CSB_CC_EXCEED_BYTE_COUNT (19) /* P9 or later */
#define CSB_CC_TRANSPORT (20)
+#define CSB_CC_INVALID_CRB (21) /* P9 or later */
+#define CSB_CC_INVALID_DDE (30) /* P9 or later */
#define CSB_CC_SEGMENTED_DDL (31)
#define CSB_CC_PROGRESS_POINT (32)
#define CSB_CC_DDE_OVERFLOW (33)