From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 169D9A0093; Tue, 23 Aug 2022 16:47:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0EAD40DFD; Tue, 23 Aug 2022 16:47:18 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id BFD2440DDE for ; Tue, 23 Aug 2022 16:47:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661266037; x=1692802037; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wRo2soDSXV1CeO9khg2RO8uWjUdMl7KldQTMpIduWlw=; b=PCNLT7i8XHWTWiBYoZl0WTp5GQyQvdvrueHedaTToUAXdHcsUGlhMGar DaD1wZt0GnKO39E245kMIfZmpm5N80jgtf+290Rf//hCVUOjyX8/e1rJX SunEHniMSlWTbJhfLIKwT5AgvgjrQ7tUKLaN7einU6EEIT1DQi2VWY8FF hpnIgmktNTmMkoJ1FuZKA7fCGq3e9/bYjjGp82XuO64Z/J5U9mWmM6EXT M38z4sr3NAzbE5gxC3UiPoQD8ggTRe//tjViH9k8AVrwtoAd6RdI2rZun 9e8EH1VxL4NpZ4kuS12K26iUgGamtrwukvUuNk3FKpETFS5h0qq8DjhPK A==; X-IronPort-AV: E=McAfee;i="6500,9779,10448"; a="379995206" X-IronPort-AV: E=Sophos;i="5.93,257,1654585200"; d="scan'208";a="379995206" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2022 07:47:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,257,1654585200"; d="scan'208";a="785270370" Received: from silpixa00401412.ir.intel.com ([10.243.22.89]) by orsmga005.jf.intel.com with ESMTP; 23 Aug 2022 07:47:11 -0700 From: Sean Morrissey To: Bruce Richardson , Kevin Laatz Cc: dev@dpdk.org, Sean Morrissey Subject: [PATCH v1] dma/idxd: add completion status for page fault Date: Tue, 23 Aug 2022 14:47:00 +0000 Message-Id: <20220823144700.718995-1-sean.morrissey@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add a status for page faults to be used when getting the completion status of an operation. Signed-off-by: Sean Morrissey --- 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