Linux CXL
 help / color / mirror / Atom feed
* [PATCH] cxl/mbox: Add the CXL 4.0 command return codes 001Fh and 0020h
@ 2026-10-15  5:50 Gaobin Huang
  2026-10-15  6:00 ` sashiko-bot
  2026-10-15  8:16 ` Richard Cheng
  0 siblings, 2 replies; 5+ messages in thread
From: Gaobin Huang @ 2026-10-15  5:50 UTC (permalink / raw)
  To: linux-cxl
  Cc: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Alison Schofield,
	Vishal Verma, Dan Williams, Ira Weiny, Li Ming, Richard Cheng,
	linux-kernel

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@semi.ac.cn>
---
 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"),		\
 
 #undef C
 #define C(a, b, c) CXL_MBOX_CMD_RC_##a

base-commit: 999811aca000b0d3d1c838c60dc9db7c72eb0c73
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-15 15:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-15  5:50 [PATCH] cxl/mbox: Add the CXL 4.0 command return codes 001Fh and 0020h Gaobin Huang
2026-10-15  6:00 ` sashiko-bot
2026-10-15  8:16 ` Richard Cheng
2026-10-15  8:42   ` 黄高彬
2026-10-15 15:17     ` Dave Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox