From patchwork Fri Apr 7 20:31:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenghua Yu X-Patchwork-Id: 81046 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp520764vqo; Fri, 7 Apr 2023 13:53:06 -0700 (PDT) X-Google-Smtp-Source: AKy350Zhje+esHom0wMyQp8ds2jiXCacrCze5Rk1NtNuqc/6mJsIYR2/9O7Iit6mjExkmJLd9YPQ X-Received: by 2002:a17:906:a88f:b0:931:51c0:7300 with SMTP id ha15-20020a170906a88f00b0093151c07300mr595053ejb.77.1680900786232; Fri, 07 Apr 2023 13:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680900786; cv=none; d=google.com; s=arc-20160816; b=OP4hOLqlXTMnFz3K1WFbnUMj7Q83QxPfih64stnxXB+L5yzr8nFPtQUybUg3OivoOO haK/Lcncy7qiqN0RHPuWl03UKcet7Pyf4vsVlTZ/u2Gr36eGS3M0/J1Lq3YXJpgjlMwN JoVajTl5ypCmLXEgAR0GSYlgTUmZx6RI5p6r8ukXqipm8mr6hgzGySLl1u/KBmpEc2rY qKt3K257C6Yfyi1J8pJF8aR9qbssoprkQGEHWNsOOZAub+Y751iGLn/wHgiuI9pEfWaj klXueK1PoHLi/XuY9Q6O3HnQ0oh7+M+4ETIh5Rzf75x76TcVLlr77aRtWyugYTT5OKdY LH3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5wYUFWDFSJx2oL4sjMA1P8gYFldWuLC4sAXjc05FGqU=; b=Gp2oLAYdfLhxq/gGGPG2t1OH1oOxvzicwyP71HQoVUHPfcvUXh106xTzWFdelVyVhV 7WCb9i1PfwmF4hY5bpeYvRvpqlaSrCBQ+B0otMfxD4PQQUse/2c/tdUfakapCLydRJb+ TnlViG2YllHxBvS5TCu7WENIgcho1vM7JSsc+NSo6l/ukMnalgOrg568EduRbwgGXCaY P9JlLvlNcyrhj5EgFWn1H5cuSZ5ArmWXP1yybCwobYOjfd3cI0VKVo1IYsmjx0Vb6PcR vfsOMiSWA2QeOkhLvQ7/B53SCjKsTyBPIglQ4pMiutvF2lV8uvd4G9fyEpt41tzsjbgY JW5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Kx+s9fer; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a170906795300b0094808f46674si4811084ejo.785.2023.04.07.13.52.40; Fri, 07 Apr 2023 13:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Kx+s9fer; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231912AbjDGUb6 (ORCPT + 99 others); Fri, 7 Apr 2023 16:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjDGUbc (ORCPT ); Fri, 7 Apr 2023 16:31:32 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E11C66A; Fri, 7 Apr 2023 13:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680899490; x=1712435490; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jp/PybrMffAfow6ihMX7Hz9cmducw1hINqAcylgIBU8=; b=Kx+s9fer8PkqFkBSqmf5EDmIt4OQlJxZaklkejFALP+eI3BG6TCuueAb p3s8dQZKv49FTpFvv3pg5wRM+T79NQOhKLYcCUdMM+OrynDzzaipJkIgS cS4fWlOY384ixGmeRNNuisGlRNC58G4yO6PlHUmDslTGS7l7bDbBrmCp6 ScCSa+3ZNXTzL3W/3fDpLxJ5PW/5dr6ozOTd4Eb2/UHSWAS4fFdfs0twf /HM9FV4vGhfXXHasn2xq0yBTTROO8kqe3pN/uxXiMlgSY8CHvTJMH8CZj XvLyvTFJZhNcxZGId/RmAruE82rUC2CUnBva8Ul0iEH4uj5sZpCysWtP5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10673"; a="408196871" X-IronPort-AV: E=Sophos;i="5.98,327,1673942400"; d="scan'208";a="408196871" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2023 13:31:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10673"; a="681125891" X-IronPort-AV: E=Sophos;i="5.98,327,1673942400"; d="scan'208";a="681125891" Received: from fyu1.sc.intel.com ([172.25.103.126]) by orsmga007.jf.intel.com with ESMTP; 07 Apr 2023 13:31:27 -0700 From: Fenghua Yu To: "Vinod Koul" , "Dave Jiang" Cc: dmaengine@vger.kernel.org, "linux-kernel" , Tony Zhu , Fenghua Yu Subject: [PATCH v4 10/16] dmaengine: idxd: add descs_completed field for completion record Date: Fri, 7 Apr 2023 13:31:37 -0700 Message-Id: <20230407203143.2189681-11-fenghua.yu@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230407203143.2189681-1-fenghua.yu@intel.com> References: <20230407203143.2189681-1-fenghua.yu@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762552222816900525?= X-GMAIL-MSGID: =?utf-8?q?1762552222816900525?= 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 685440a2c4bc..37732016f3b0 100644 --- a/include/uapi/linux/idxd.h +++ b/include/uapi/linux/idxd.h @@ -289,7 +289,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 */