From patchwork Mon Aug 7 20:37:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Zanussi X-Patchwork-Id: 132403 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1728708vqr; Mon, 7 Aug 2023 14:48:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEozT19MrhKai5Mrdiw8lonoXxftko3QfcqU7MLpGSzK+6jUsSmB/5y+7RHHX8jsGSg2Dn2 X-Received: by 2002:a05:6a00:21cf:b0:680:d00c:b164 with SMTP id t15-20020a056a0021cf00b00680d00cb164mr11918881pfj.34.1691444908992; Mon, 07 Aug 2023 14:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691444908; cv=none; d=google.com; s=arc-20160816; b=FFy7XWq8Ba56T0KE3BTbMDUHr/8ZRpCP98jSwgLubHvMIN+znMLGi1UvfSGu2By/PR Oo9laaCsyL0tu3EJ9EspbWdtHaVlZES0wm9JyxELG4WV5WRYrSMvF6coLJ3+XOXct/tw 69xSOEhwH6lcExf6PDxdajwnH0DzWBqTrCnzVelWjJ8XvEFA2nke/ryA9eh7c9ACZSla /kZlyT8A7thiTQr/UCNpgbM9F3JK60krXy7fxfjiX/GrmuwmnXnMn+qQYFg4Uwz7ohur DoHmELwp1QDJ0OJlKe4J+l/pdzjw6Q9I1cGlHPg7JqVZ9RH3I5LxkvQVxCNi2/3l1cfB kCJg== 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=GlLQotyjOAK1WcqWjIdPBSs1VPDB1Ysp8dn4kH7RmW4=; fh=KKYX96Dyn269sAN9Nbt8IfOk86mWVdLVST7Tbph7224=; b=mRbz/jX/9B7iRXoYynfSLC+N4aUCw7DBcNBE2Iu4hHaFzlzwUi7brr4vLwOk/r5TRX RYuMxvhwxsrmP6mT82fuCL9fkHwu7AE8cSjnC0z7E5fZ1sMWnRLBr+TN8rrerOmxtmCT K8IiPwBtVCpnuwltntVFjT606hWGMwm7xKg4HMUW+Gfa/ZGNIF8H588EpMEa/LeKZZJX CxVDVE8jYyF0X+bqYQUbub12UYjZfBxWSMGLLPCKyx0fvlvSK/xRgC0V9R82S+KxpLSg fEFhIDeCG4zF/gtGJ/u4Z/xyP1I5H6QC9OYXW23Ox3atbTcqQgV1VM7uxGWb0eVQI6Qu Zh6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hmoABf79; 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 p16-20020a056a000a1000b006797c2c00besi6392420pfh.144.2023.08.07.14.48.16; Mon, 07 Aug 2023 14:48:28 -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=hmoABf79; 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 S230022AbjHGUiY (ORCPT + 99 others); Mon, 7 Aug 2023 16:38:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjHGUiJ (ORCPT ); Mon, 7 Aug 2023 16:38:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F4DBE5C; Mon, 7 Aug 2023 13:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691440688; x=1722976688; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oTslo5dfBjUzN5B7+kuIpfd8d61O/Ub8JrrlE4TLUdc=; b=hmoABf79qX7wSJH3nB39mqesyQxB0U7CnL573ws6+i5XT8d1pCGGLkm2 eZgFAID3xoXMdOzfLYh3oD9oCtRVL4Dgc11MAdXdwCL/bSh/QP2n8r7Xp xiXAJdR+cGJXsQQ5CY1l7K2k8zV5T80qgG/yqm2ATTUSBpNfHfC5431IE 3eWd5/RcBbPkm5z/5s8djyCcdkUtJ918/hrDguCZLKptLNT7HXtUcqTLw +jy4q1PzwzKg3XaeNI7liyjQ0KX+vVG+L9lcmpHNN/xxwA4iExff/1xNQ 2YMUzYDSDK1wwIhN5whD3mKQsEqgHSY+a1uXKVMinH7H14gH0XjAECP0i g==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="374319669" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="374319669" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2023 13:37:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="766123340" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="766123340" Received: from eeroesle-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.81.193]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2023 13:37:41 -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 v9 04/14] dmaengine: idxd: Export descriptor management functions Date: Mon, 7 Aug 2023 15:37:16 -0500 Message-Id: <20230807203726.1682123-5-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230807203726.1682123-1-tom.zanussi@linux.intel.com> References: <20230807203726.1682123-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 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: 1773608536803175519 X-GMAIL-MSGID: 1773608536803175519 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);