Message ID | 20230428205539.113902-5-tom.zanussi@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1206464vqo; Fri, 28 Apr 2023 13:57:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5p2mGneLRgVzj9kaV4hJmiV8xosoHpB07JNgewP0HpZF+J3Y/WpsPQSJF8GFJt+KqpmiZz X-Received: by 2002:a17:902:f790:b0:1a5:a1b:bbd8 with SMTP id q16-20020a170902f79000b001a50a1bbbd8mr5965234pln.45.1682715452212; Fri, 28 Apr 2023 13:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682715452; cv=none; d=google.com; s=arc-20160816; b=fZA9qWW56vt8cUbsx/UTj3+DEgX0Xs87LTgH3pL949x3boR/5G6US4rVeZWmbSykmO 6O0uJ9AM8wKQdA7KcgktlGIPEse5nP8qqX1dnX3rhnOMZvbPIBfvFQEXdtVYizC7F1tG +qv41kveQOvT0yd4kkZingFCKhu0ZmwAwkyorPSi2IOjJsEuTCOhAapw5Mb8wy+rjMhM gET1g03eLV0zRgqqvOWtrEQyhTouElt+n338x1VhSHy46C41Mx9KVxCsPwAJeRYDsRCJ crnS9y9QFkDQzuYplht6rWf49i18Xi8XcMLJtw/xt963YFPdjdkomq9uwj2xOt6rXKBk uEpA== 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=7netAWx5MSVO+jAP4O/t5J1lh6u13PsXC66RS+UEGz4=; b=UT6LuQ8rJT2Xq0g7GEWY9aGpCQrA4wTMEqL8PrZwOp8VGlYPKf/TzvZFzbtFx/ijN2 BhTNP2dhRbvZbGT+5sUGREwZ7kL6OPN5giHSsBwgZTnBZGeY8XxLdOvxOq38zGqNwzZe Y3FzCu7mzFXUEvF/xlMGAXhULJ7hwrM0fe4z7SQaKpGP7PxYmulGgzNdowLhG3aC64Mk NYljt+n4vripEZ0dP8+XvqHU9cgPu3oilzoEiYSSvk8zeHjYitqoemAXdP04wfahoZKi XWdGk8w70AQioLLv3+SVoNAMfPaCjnfp2IKtH4+l+IPkmIhwAgmW4D+SXLMUDLfEwkCY ME2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ifrCxdq2; 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 kz12-20020a170902f9cc00b001a9256e81ffsi20082379plb.262.2023.04.28.13.57.19; Fri, 28 Apr 2023 13:57:32 -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=ifrCxdq2; 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 S1346804AbjD1U4O (ORCPT <rfc822;chrisjones.unixmen@gmail.com> + 99 others); Fri, 28 Apr 2023 16:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346763AbjD1Uz4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Apr 2023 16:55:56 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B216F26AF; Fri, 28 Apr 2023 13:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682715355; x=1714251355; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8vWNsHtMVLQO+g0UCfKG575lOXOobHTSjrTtOVeHrIg=; b=ifrCxdq2C+aVvSleJYkYh9eAh6Vmn5V63x/IJkU0IR/ybldREsvZI5GU ZknY1Ds5cfUZ/4ZM1VCC/6I5L0RW5N0ru1eWFJMSXeA6CsbAFC7pQIRoe /iGTueglvqBwjySaH2O9eS79+C/JEXFRG2dh5/Bbrw6VOwjGee/g7yfpU gmQbBvYQsRUEHJcF3ufEhqjjfpNMwp8Idz11G2TWNHuF5Lg7RBAsImek5 Dq6fK/Rlugbpc6+5DKTfJASOxHaOv4dqoh5drPM9HQv0anc6WBq0q+8AH ZJRJS7srIYvuG4goW9MCdM5Y0M9MtNWLUsJA+iyhg24gC4NjN9tMfMFI9 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10694"; a="336937648" X-IronPort-AV: E=Sophos;i="5.99,235,1677571200"; d="scan'208";a="336937648" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2023 13:55:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10694"; a="838980373" X-IronPort-AV: E=Sophos;i="5.99,235,1677571200"; d="scan'208";a="838980373" Received: from ykaur1-mobl2.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.209.181.29]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2023 13:55:52 -0700 From: Tom Zanussi <tom.zanussi@linux.intel.com> 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, giovanni.cabiddu@intel.com, hdanton@sina.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v3 04/15] dmaengine: idxd: Export descriptor management functions Date: Fri, 28 Apr 2023 15:55:28 -0500 Message-Id: <20230428205539.113902-5-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230428205539.113902-1-tom.zanussi@linux.intel.com> References: <20230428205539.113902-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764455037996778463?= X-GMAIL-MSGID: =?utf-8?q?1764455037996778463?= |
Series |
crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver
|
|
Commit Message
Tom Zanussi
April 28, 2023, 8:55 p.m. UTC
To allow idxd sub-drivers to access the descriptor management
functions, export them.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
drivers/dma/idxd/submit.c | 3 +++
1 file changed, 3 insertions(+)
Comments
On 4/28/23 1:55 PM, Tom Zanussi wrote: > To allow idxd sub-drivers to access the descriptor management > functions, export them. > > Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> > --- > 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);
On 4/28/23 13:55, Tom Zanussi wrote: > To allow idxd sub-drivers to access the descriptor management > functions, export them. > > Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Reviewed-by: Fenghua Yu <fenghua.yu@intel.com> Thanks. -Fenghua
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);