Skip to contentSkip to conversation

cxl/mbox: Update CMD_RC_TABLE

PATCH In review Davidlohr Bueso 2 participants 2 messages Mar 7, 2023 CXL

lore
Share & tools
lore

Davidlohr Bueso

author maintainer
#0 lore raw

PATCH 1/1 cxl/mbox: Update CMD_RC_TABLE

As of CXL 3.0 there have some added return codes, update the driver accordingly.

---
 drivers/cxl/cxlmem.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/cxl/cxlmem.h +10 -2
index ccbafc05a636..3e5ed04b9d6b 100644
@@ -127,7 +127,7 @@ struct cxl_mbox_cmd {
 };
 
 /*
- * Per CXL 2.0 Section 8.2.8.4.5.1
+ * Per CXL 3.0 Section 8.2.8.4.5.1
  */
 #define CMD_CMD_RC_TABLE							\
 	C(SUCCESS, 0, NULL),							\
@@ -152,7 +152,15 @@ struct cxl_mbox_cmd {
 	C(SECURITY, -ENXIO, "not valid in the current security state"),         \
 	C(PASSPHRASE, -ENXIO, "phrase doesn't match current set passphrase"),   \
 	C(MBUNSUPPORTED, -ENXIO, "unsupported on the mailbox it was issued on"),\
-	C(PAYLOADLEN, -ENXIO, "invalid payload length")
+	C(PAYLOADLEN, -ENXIO, "invalid payload length"),			\
+	C(LOG, -ENXIO, "invalid or unsupported log page"),			\
+	C(INTERRUPTED, -ENXIO, "asynchronous event occured"),			\
+	C(FEATUREVERSION, -ENXIO, "unsupported feature version"),		\
+	C(FEATURESELVALUE, -ENXIO, "unsupported feature selection value"),	\
+	C(FEATURETRANSFERIP, -ENXIO, "feature transfer in progress"),		\
+	C(FEATURETRANSFEROOO, -ENXIO, "feature transfer out of order"),		\
+	C(RESOURCEEXHAUSTED, -ENXIO, "resources are exhausted"),		\
+	C(EXTLIST, -ENXIO, "invalid Extent List"),				\
 
 #undef C
 #define C(a, b, c) CXL_MBOX_CMD_RC_##a
Signature · 1 line
2.39.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Davidlohr Bueso

As of CXL 3.0 there have some added return codes, update the driver accordingly.

Quoted 34 lines
---
  drivers/cxl/cxlmem.h | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)
drivers/cxl/cxlmem.h +10 -2
index ccbafc05a636..3e5ed04b9d6b 100644
@@ -127,7 +127,7 @@ struct cxl_mbox_cmd {
  };
 
  /*
- * Per CXL 2.0 Section 8.2.8.4.5.1
+ * Per CXL 3.0 Section 8.2.8.4.5.1
   */
  #define CMD_CMD_RC_TABLE							\
  	C(SUCCESS, 0, NULL),							\
@@ -152,7 +152,15 @@ struct cxl_mbox_cmd {
  	C(SECURITY, -ENXIO, "not valid in the current security state"),         \
  	C(PASSPHRASE, -ENXIO, "phrase doesn't match current set passphrase"),   \
  	C(MBUNSUPPORTED, -ENXIO, "unsupported on the mailbox it was issued on"),\
-	C(PAYLOADLEN, -ENXIO, "invalid payload length")
+	C(PAYLOADLEN, -ENXIO, "invalid payload length"),			\
+	C(LOG, -ENXIO, "invalid or unsupported log page"),			\
+	C(INTERRUPTED, -ENXIO, "asynchronous event occured"),			\
+	C(FEATUREVERSION, -ENXIO, "unsupported feature version"),		\
+	C(FEATURESELVALUE, -ENXIO, "unsupported feature selection value"),	\
+	C(FEATURETRANSFERIP, -ENXIO, "feature transfer in progress"),		\
+	C(FEATURETRANSFEROOO, -ENXIO, "feature transfer out of order"),		\
+	C(RESOURCEEXHAUSTED, -ENXIO, "resources are exhausted"),		\
+	C(EXTLIST, -ENXIO, "invalid Extent List"),				\
 
  #undef C
  #define C(a, b, c) CXL_MBOX_CMD_RC_##a