Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82F32C64EC4 for ; Mon, 6 Mar 2023 16:46:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230513AbjCFQqM (ORCPT ); Mon, 6 Mar 2023 11:46:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbjCFQoX (ORCPT ); Mon, 6 Mar 2023 11:44:23 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A72C046A3; Mon, 6 Mar 2023 08:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678121041; x=1709657041; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g/s7XMoaD0305pZc+v+dkPi6sAXzjOyWDTcLsZDgBP0=; b=XR3eX01GpdKJKbRdFmwg/64mBPA9PGUdu573tkfhqJUKqCGoRGaWzTPI kwP7bKQwRL8VDL8A39XlfbTMe+BHmjKtoY5PpVgrLrNiPHKxjkKOC0bem eOV/Joj0K5wDL2LJzCweHY1AaKKt2zgvGPWbuOLjiUDsKrkYFch4jqZCn wFjmwIsVr8MIhJTdN/alQ/RmtDXEVzMWBq6WjO/CzylUjPVkEUNTFPW7M ShkYvmFb+Npi8ryPyB6aNRRVE1usLi8AcjHPwi73w3lwTawrqaQafI6i9 Fosus+p3yz59H6829ATbfTTdHF2O9jBYMXVY+fvscwM/SBJEIAtCSQJIV Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="398181175" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="398181175" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 08:31:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="669504538" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="669504538" Received: from fyu1.sc.intel.com ([172.25.103.126]) by orsmga007.jf.intel.com with ESMTP; 06 Mar 2023 08:31:58 -0800 From: Fenghua Yu To: "Vinod Koul" , "Dave Jiang" Cc: dmaengine@vger.kernel.org, "linux-kernel" , Tony Zhu , Fenghua Yu Subject: [PATCH v2 10/16] dmaengine: idxd: add descs_completed field for completion record Date: Mon, 6 Mar 2023 08:31:32 -0800 Message-Id: <20230306163138.587484-11-fenghua.yu@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230306163138.587484-1-fenghua.yu@intel.com> References: <20230306163138.587484-1-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Jiang The descs_completed field for a completion record is part of a batch descriptor completion record. It takes the same location as bytes_completed in a normal descriptor field. Add to expose to user. Tested-by: Tony Zhu Signed-off-by: Dave Jiang Co-developed-by: Fenghua Yu Signed-off-by: Fenghua Yu --- include/uapi/linux/idxd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h index 4b584d5afd87..76ad71bf751e 100644 --- a/include/uapi/linux/idxd.h +++ b/include/uapi/linux/idxd.h @@ -314,7 +314,10 @@ struct dsa_completion_record { }; uint8_t fault_info; uint8_t rsvd; - uint32_t bytes_completed; + union { + uint32_t bytes_completed; + uint32_t descs_completed; + }; uint64_t fault_addr; union { /* common record */ -- 2.37.1