Message ID | 20230328153535.126223-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 b10csp2333561vqo; Tue, 28 Mar 2023 09:08:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bb7G0Fg3p1NIJ7qZ7wtW7uqyZdWh9yVm4AJXLkAQ6pa0wOXR7lR+4pal04Oz+0Eu08d4xl X-Received: by 2002:a17:90a:34c:b0:23d:27fc:8437 with SMTP id 12-20020a17090a034c00b0023d27fc8437mr16223263pjf.14.1680019738876; Tue, 28 Mar 2023 09:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680019738; cv=none; d=google.com; s=arc-20160816; b=iagefNPaFnNa6+wtdx6iIYojGdl5c6pYi4TOFQpavseyaeAXkCaGRC8t+jvn8kJ8eF JCd10acvd4xs7w0gs/8ygpzarKzQlVSS9canpR1MJghVTalqtrtg0AX3wk6sv6qQlOO4 6M3t5AQL+2yP053bOxougcFx5uUYkBTl32vhDnXxp4hnVikeZkIiCDbvkjLa5dOts+iK rqxuDNBvc49XZRYTMf/1YrZGGImWxb64e8xZzQ7Xa2GABzmYG+bIRLsfO31Ye7leKLFA J+lNJY8tslcW5qlknH6pRKUkwTKcie6GEcCtzmCYs6DktMixqWDj2AVykLYt5Gh/Jd8B Df5Q== 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=80e71FBn8S9bF27KzNvgPbp+w47gEL/d2teCfylXU24=; b=neHsGUNGfFj0TT3maMAl/4Q61hn4HIKCKYEOr8D+YsY96SHHI1xqVNpehHmtzPkgTQ DZCBGs7DbLHqY5trJtJ6fO11jkkmr2ITgtp6sD1ObjdOGqF9lbTr3umqK3Ix5+uSc5T+ RH8pJywRxw5NZRRm32bXON2U5fiLAhdyYUeEz2/inR0xQTiaencXDEsvt1Qnsz/cpRKr lBRzN4sNmxFj34KWJAbfjQFWTNXdH9ccrKN4gavXAD+G7RqVlo+GkuZx97qEZfQls8yM 67N+0feg+6nLdM9M1PyQRwH5rzla+zoGomLXtCrHryIkSLkQ8ogcr22bnk6X+cqey7Tj 0ZNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bDkjerHr; 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 y18-20020a17090322d200b001a1e0419e4dsi20219050plg.171.2023.03.28.09.08.41; Tue, 28 Mar 2023 09:08:58 -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=bDkjerHr; 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 S234006AbjC1PgE (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Tue, 28 Mar 2023 11:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233465AbjC1Pf4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Mar 2023 11:35:56 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B860AF37; Tue, 28 Mar 2023 08:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680017751; x=1711553751; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7/ydwUXLdHl1bpDjApixDXbPYE6quD+r8XqadnXkUFI=; b=bDkjerHrxMihrwqGzS73ByYgn7ccTUlGQ0pvX+cZn29PQq7uHPPN/TIo s6+1mUKXSpUCG7ro3SyIHCc9xBOlgMTxlQmAPk0STIjxfODlwLZrUSJOU UqtkXjKWxWldPLxCQJFzqk/zbgGimTL93EDy0/X4GtqVZAv+2gKFe4V5i JjVv1HI4qI14zKRsVnWcDfSQ938ABxrzFusXHVzvBYnotvEatbSN1CdEO UrMrJ6z/gBh0YeroioWr2VUr6blffDqreda73Kq6eh55jxMnLvUOpXhMj GPYCl+Cv+L7zgl/+bo/wTGpXeOOsxiahLwh9BN3jHaWUV6/k9jJzCjEVr g==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="342192062" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="342192062" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:35:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="683948318" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="683948318" Received: from sdwarak1-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.127.200]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:35:49 -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, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v2 04/15] dmaengine: idxd: Export descriptor management functions Date: Tue, 28 Mar 2023 10:35:24 -0500 Message-Id: <20230328153535.126223-5-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230328153535.126223-1-tom.zanussi@linux.intel.com> References: <20230328153535.126223-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=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 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: <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?1761628377696548857?= X-GMAIL-MSGID: =?utf-8?q?1761628377696548857?= |
Series |
crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver
|
|
Commit Message
Tom Zanussi
March 28, 2023, 3:35 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 3/28/23 8:35 AM, 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> > --- > 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..9d9ec0b76ccd 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_GPL(idxd_submit_desc); This one should use the EXPORT_SYMBOL_NS_GPL() as above?
Hi Dave, On Tue, 2023-03-28 at 09:04 -0700, Dave Jiang wrote: > > > On 3/28/23 8:35 AM, 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> > > --- > > 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..9d9ec0b76ccd 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_GPL(idxd_submit_desc); > > This one should use the EXPORT_SYMBOL_NS_GPL() as above? Yeah, not sure how I missed that one ;-/ Thanks for pointing it out. Tom
diff --git a/drivers/dma/idxd/submit.c b/drivers/dma/idxd/submit.c index c01db23e3333..9d9ec0b76ccd 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_GPL(idxd_submit_desc);