From patchwork Mon Jul 31 21:29:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Zanussi X-Patchwork-Id: 128896 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2320139vqg; Mon, 31 Jul 2023 16:13:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlFMCSo1QsaVoXG4wN+a0uBkRq1tMs6vMBv8grJo8RME5puLRBAbwHR2X2UhYHB7RDB6Supo X-Received: by 2002:a05:6a21:7988:b0:127:7ea7:e039 with SMTP id bh8-20020a056a21798800b001277ea7e039mr10182944pzc.62.1690845224727; Mon, 31 Jul 2023 16:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690845224; cv=none; d=google.com; s=arc-20160816; b=ciaOlAtQwbqVSHMPwGLFRIQa+H5v82LA2H0SEL8dpl2/toAeWIJbmH6ZAJYQthCY1t DqssRRLpkIOfXOFeBNxEkBI7ClLrIforxZtpj0j8rZCbP0KNKgr4PxunWxl1b5q16W65 Jp/cSa7r5OMf6DVndZSnGoTNtKnbp7eL6s8ZcoJ6S/r1wZyLCzCqRGBQymb27LejzB5d 2X5xGSWnuYQBLQIrcKhJJ0sVAhMTFw5edVGCd5B99ua1k2W/dJPvHkunE0OmKz9Jf0PD Bsow4rCiGIkKnXmuEweHVRjQK/Bwc4JG42j6KDTPFLQ7CQtTzzfZbzlPZ9VDCfxC2qT0 TdVw== 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=xUCnNEkutjRm+xP8XozB0tO0wGbiHMTjxATOl4/JdOA=; fh=KKYX96Dyn269sAN9Nbt8IfOk86mWVdLVST7Tbph7224=; b=AGZHIL6feje34lnHgEgO2TG7ecB9TrjA7y/BqQ8SDzeTBmRKc27/AcUY3P/1yj9bfZ 2rF58F+HGTbmeI6dWnXBg1Jr+xAaxhcMKJJ8pzO5oSGQnCVvIHhJP2oiTpMvZ9PwNZH2 keTixWcM2jlb7EFawFYs/9H0boiUmxz1I31Q8eT3xx3nHa7wtnrjoOjYZwWvFjhzMZA7 GLMtZahhKfbQBrzoFlfjFFqyIFeK0XEhQGYHgQrtDm61ZNYsA97NJJR29hsQeTjhg8SV wdThIuR6H7V5M8mqZkDgCkvfpQlpjkFZNaTzg6yTLXCZjkPEX/t8xLhsGxxdbiCnucA1 VgSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q+XMHKPz; 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 y22-20020a17090264d600b001bbd452d974si7933578pli.554.2023.07.31.16.13.31; Mon, 31 Jul 2023 16:13:44 -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=Q+XMHKPz; 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 S231321AbjGaVaU (ORCPT + 99 others); Mon, 31 Jul 2023 17:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjGaVaE (ORCPT ); Mon, 31 Jul 2023 17:30:04 -0400 Received: from mgamail.intel.com (unknown [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1A81BD3; Mon, 31 Jul 2023 14:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690838994; x=1722374994; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yHOF6DrEvuRACHmnKROaRDudHiYk2POqQye99IoY3vM=; b=Q+XMHKPzphiYqULZb/e+JP0kSCnQZqQStfRP+2E9Nwcg5NIXZP+eN9Kj garS4Rm7cQCWmL4m3eEwCLped4jU6YVmVH2xkWnyC1BzyXnP+nSz2ja+f RHRz9RVtwIXft9VK2B0XiFOxeflICRRbzcCohKd6ZFct7q3lMupfwT32W htJhmiYorrrRQnSwWrHEHdp/scQp0TwTjW62g6T7AqNDimVMc7PIvGBNy A9CTdqvtQLXQp44TuPgQyaPcpKwZ4O2o/r+iQq1fuM0ZaBmElThKYAftt 6KJKxF2zHrmWUQegpEdWp8mRO/4Lq+yClqY7q3ajUW4mx5mRLX/moO7Z9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="349425780" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="349425780" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 14:29:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="728428401" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="728428401" Received: from sgimmeke-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.91.213]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 14:29:52 -0700 From: Tom Zanussi To: herbert@gondor.apana.org.au, davem@davemloft.net, fenghua.yu@intel.com, vkoul@kernel.org Cc: dave.jiang@intel.com, tony.luck@intel.com, wajdi.k.feghali@intel.com, james.guilford@intel.com, kanchana.p.sridhar@intel.com, vinodh.gopal@intel.com, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v8 04/14] dmaengine: idxd: Export descriptor management functions Date: Mon, 31 Jul 2023 16:29:29 -0500 Message-Id: <20230731212939.1391453-5-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230731212939.1391453-1-tom.zanussi@linux.intel.com> References: <20230731212939.1391453-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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: INBOX X-GMAIL-THRID: 1772979722337014112 X-GMAIL-MSGID: 1772979722337014112 To allow idxd sub-drivers to access the descriptor management functions, export them. Signed-off-by: Tom Zanussi Reviewed-by: Dave Jiang Reviewed-by: Fenghua Yu Acked-by: Vinod Koul --- drivers/dma/idxd/submit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/idxd/submit.c b/drivers/dma/idxd/submit.c index c01db23e3333..5e651e216094 100644 --- a/drivers/dma/idxd/submit.c +++ b/drivers/dma/idxd/submit.c @@ -61,6 +61,7 @@ struct idxd_desc *idxd_alloc_desc(struct idxd_wq *wq, enum idxd_op_type optype) return __get_desc(wq, idx, cpu); } +EXPORT_SYMBOL_NS_GPL(idxd_alloc_desc, IDXD); void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) { @@ -69,6 +70,7 @@ void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) desc->cpu = -1; sbitmap_queue_clear(&wq->sbq, desc->id, cpu); } +EXPORT_SYMBOL_NS_GPL(idxd_free_desc, IDXD); static struct idxd_desc *list_abort_desc(struct idxd_wq *wq, struct idxd_irq_entry *ie, struct idxd_desc *desc) @@ -215,3 +217,4 @@ int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc) percpu_ref_put(&wq->wq_active); return 0; } +EXPORT_SYMBOL_NS_GPL(idxd_submit_desc, IDXD);