* [PATCH] cxl/mbox: Update CMD_RC_TABLE
@ 2023-03-07 4:26 Davidlohr Bueso
2023-03-07 16:10 ` Dave Jiang
0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2023-03-07 4:26 UTC (permalink / raw)
To: dan.j.williams; +Cc: Jonathan.Cameron, fan.ni, a.manzanares, linux-cxl, dave
As of CXL 3.0 there have some added return codes, update the
driver accordingly.
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
---
drivers/cxl/cxlmem.h | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h
index ccbafc05a636..3e5ed04b9d6b 100644
--- a/drivers/cxl/cxlmem.h
+++ b/drivers/cxl/cxlmem.h
@@ -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
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cxl/mbox: Update CMD_RC_TABLE
2023-03-07 4:26 [PATCH] cxl/mbox: Update CMD_RC_TABLE Davidlohr Bueso
@ 2023-03-07 16:10 ` Dave Jiang
0 siblings, 0 replies; 2+ messages in thread
From: Dave Jiang @ 2023-03-07 16:10 UTC (permalink / raw)
To: Davidlohr Bueso, dan.j.williams
Cc: Jonathan.Cameron, fan.ni, a.manzanares, linux-cxl
On 3/6/23 9:26 PM, Davidlohr Bueso wrote:
> As of CXL 3.0 there have some added return codes, update the
> driver accordingly.
>
> Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
> ---
> drivers/cxl/cxlmem.h | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h
> index ccbafc05a636..3e5ed04b9d6b 100644
> --- a/drivers/cxl/cxlmem.h
> +++ b/drivers/cxl/cxlmem.h
> @@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-07 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 4:26 [PATCH] cxl/mbox: Update CMD_RC_TABLE Davidlohr Bueso
2023-03-07 16:10 ` Dave Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).