Re: [PATCH] cxl/mbox: Add the CXL 4.0 command return codes 001Fh and 0020h
From: Richard Cheng
Date: Thu Oct 15 2026 - 04:23:18 EST
On Thu, Oct 15, 2026 at 01:50:48PM +0800, Gaobin Huang wrote:
> CMD_CMD_RC_TABLE ends at 001Eh (Invalid Extent List), but the command
> return code table in CXL r4.0 Table 8-208 also defines:
>
> 001Fh Transfer Out of Order: The input parameters data transfer was
> aborted because it occurred out of order.
> 0020h Request Abort Not Supported by Background Operation: The ongoing
> background operation does not support the Request Abort command.
>
> A device that reports either code is described as an unknown return code.
> Add both entries, mapped to -ENXIO.
>
> Signed-off-by: Gaobin Huang <huanggaobin23@xxxxxxxxxx>
> ---
> drivers/cxl/cxlmem.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h
> index c401e3a1a..43f29564c 100644
> --- a/drivers/cxl/cxlmem.h
> +++ b/drivers/cxl/cxlmem.h
> @@ -190,6 +190,8 @@ static inline struct cxl_ep *cxl_ep_load(struct cxl_port *port,
> C(FEATURETRANSFEROOO, -ENXIO, "feature transfer out of order"), \
> C(RESOURCEEXHAUSTED, -ENXIO, "resources are exhausted"), \
> C(EXTLIST, -ENXIO, "invalid Extent List"), \
> + C(TRANSFEROOO, -ENXIO, "transfer out of order"), \
> + C(REQABORTNOTSUP, -ENXIO, "request abort not supported"), \
Hi Gaobin,
Do we have users for them ? or potential users ?
Best regards,
Richard Cheng.
>
> #undef C
> #define C(a, b, c) CXL_MBOX_CMD_RC_##a
>
> base-commit: 999811aca000b0d3d1c838c60dc9db7c72eb0c73
> --
> 2.34.1
>