DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1] dma/idxd: add completion status for page fault
@ 2022-08-23 14:47 Sean Morrissey
  2022-10-03 17:34 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Morrissey @ 2022-08-23 14:47 UTC (permalink / raw)
  To: Bruce Richardson, Kevin Laatz; +Cc: dev, Sean Morrissey

Add a status for page faults to be used when getting the
completion status of an operation.

Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
---
 drivers/dma/idxd/idxd_common.c  | 2 ++
 drivers/dma/idxd/idxd_hw_defs.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/dma/idxd/idxd_common.c b/drivers/dma/idxd/idxd_common.c
index c77200a457..6fe8ad4884 100644
--- a/drivers/dma/idxd/idxd_common.c
+++ b/drivers/dma/idxd/idxd_common.c
@@ -169,6 +169,8 @@ get_comp_status(struct idxd_completion *c)
 	case IDXD_COMP_STATUS_INCOMPLETE:
 	case IDXD_COMP_STATUS_SUCCESS:
 		return RTE_DMA_STATUS_SUCCESSFUL;
+	case IDXD_COMP_STATUS_PAGE_FAULT:
+		return RTE_DMA_STATUS_PAGE_FAULT;
 	case IDXD_COMP_STATUS_INVALID_OPCODE:
 		return RTE_DMA_STATUS_INVALID_OPCODE;
 	case IDXD_COMP_STATUS_INVALID_SIZE:
diff --git a/drivers/dma/idxd/idxd_hw_defs.h b/drivers/dma/idxd/idxd_hw_defs.h
index 2a219c1312..a38540f283 100644
--- a/drivers/dma/idxd/idxd_hw_defs.h
+++ b/drivers/dma/idxd/idxd_hw_defs.h
@@ -48,6 +48,7 @@ struct idxd_hw_desc {
 
 #define IDXD_COMP_STATUS_INCOMPLETE        0
 #define IDXD_COMP_STATUS_SUCCESS           1
+#define IDXD_COMP_STATUS_PAGE_FAULT     0X03
 #define IDXD_COMP_STATUS_INVALID_OPCODE 0x10
 #define IDXD_COMP_STATUS_INVALID_SIZE   0x13
 #define IDXD_COMP_STATUS_SKIPPED        0xFF /* not official IDXD error, needed as placeholder */
-- 
2.34.1


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

* Re: [PATCH v1] dma/idxd: add completion status for page fault
  2022-08-23 14:47 [PATCH v1] dma/idxd: add completion status for page fault Sean Morrissey
@ 2022-10-03 17:34 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2022-10-03 17:34 UTC (permalink / raw)
  To: Sean Morrissey; +Cc: Bruce Richardson, Kevin Laatz, dev

23/08/2022 16:47, Sean Morrissey:
> Add a status for page faults to be used when getting the
> completion status of an operation.
> 
> Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>

Applied, thanks.




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

end of thread, other threads:[~2022-10-03 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 14:47 [PATCH v1] dma/idxd: add completion status for page fault Sean Morrissey
2022-10-03 17:34 ` Thomas Monjalon

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).