Skip to content

Commit bfe5845

Browse files
Davidlohr Buesodjbw
authored andcommitted
cxl/mbox: Update CMD_RC_TABLE
As of CXL 3.0 there have some added return codes, update the driver accordingly. Signed-off-by: Davidlohr Bueso <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent ca899f4 commit bfe5845

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

drivers/cxl/cxlmem.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct cxl_mbox_cmd {
127127
};
128128

129129
/*
130-
* Per CXL 2.0 Section 8.2.8.4.5.1
130+
* Per CXL 3.0 Section 8.2.8.4.5.1
131131
*/
132132
#define CMD_CMD_RC_TABLE \
133133
C(SUCCESS, 0, NULL), \
@@ -152,7 +152,15 @@ struct cxl_mbox_cmd {
152152
C(SECURITY, -ENXIO, "not valid in the current security state"), \
153153
C(PASSPHRASE, -ENXIO, "phrase doesn't match current set passphrase"), \
154154
C(MBUNSUPPORTED, -ENXIO, "unsupported on the mailbox it was issued on"),\
155-
C(PAYLOADLEN, -ENXIO, "invalid payload length")
155+
C(PAYLOADLEN, -ENXIO, "invalid payload length"), \
156+
C(LOG, -ENXIO, "invalid or unsupported log page"), \
157+
C(INTERRUPTED, -ENXIO, "asynchronous event occured"), \
158+
C(FEATUREVERSION, -ENXIO, "unsupported feature version"), \
159+
C(FEATURESELVALUE, -ENXIO, "unsupported feature selection value"), \
160+
C(FEATURETRANSFERIP, -ENXIO, "feature transfer in progress"), \
161+
C(FEATURETRANSFEROOO, -ENXIO, "feature transfer out of order"), \
162+
C(RESOURCEEXHAUSTED, -ENXIO, "resources are exhausted"), \
163+
C(EXTLIST, -ENXIO, "invalid Extent List"), \
156164

157165
#undef C
158166
#define C(a, b, c) CXL_MBOX_CMD_RC_##a

0 commit comments

Comments
 (0)