From patchwork Mon May 8 20:07:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Zanussi X-Patchwork-Id: 91274 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2412296vqo; Mon, 8 May 2023 13:29:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kqu+EPMwXXtIabDd5TlZgg0KXNIF0W7zZL5m1k+LCmnPVwA+auMDJyADOMjmqCWq+vtO0 X-Received: by 2002:a17:90b:618:b0:24e:56e4:9718 with SMTP id gb24-20020a17090b061800b0024e56e49718mr11575669pjb.15.1683577767239; Mon, 08 May 2023 13:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683577767; cv=none; d=google.com; s=arc-20160816; b=TzlRym78qHISrunE53YojoIPYTa9lXbOJlmCE0olGdKMV6WaLLvQ2EdZcESW/RH+9t uQjdGV+NHTdvWasZ1iqQnmULkybN6zWBOVE2Ka353kV7Sx8gkoyytoVtV2Z85i8ypK7u Us+H4BoiGGhvC1TuZc3bDX/zT5y7cVekRhVTJpXegcKJ2yWX3fqNO5aMD+mCj4mNmfcA zUvI5zLmpzbYABS7rgwMD+1eqDlmX9SIjqUGDMxIy+eSHZ4oRCO2riGz3tOJG3KP+gD2 xi8r9NonRX4cL+Ua6PvSEA6SNrsvP3rGvkfnId4n/hTfH7Omo37vu6kxTfhw2IISmYpZ cCgA== 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=; b=dhWOVNldnYsf+3IoL1xk4ChhBSRfha2EKpMQWt7NkgM2sMvihNdIaDy1I/YJyoedIe 8bZoyDZPZy80YYGgKpgtxZX2KdfPWysqnq/Ilgl9Ccd2oOUkXGd7f3N3xfsDwxNMjh2h qXJjMpAyEl8Ga6sralPnsUZGOpgH/3mtsW0dAf4ok6+cV8Ktq+OYmrQ27ynqfufEe/m7 K/hFIltl4ffYJelH2P4aXNYGkczfEk5GMK0Ih3i0rTiTvRCrzxjYn2WCsUMZhZtwWr60 avB4cN3wS+SD1FJ6oh8ckqRWeHB7VDFCbOOJLFTQoWk4B9Ni3BKX01YYsU2TA9LU4RZG Yiow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FnID8r0f; 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 f14-20020a17090a9b0e00b0024e473fc6bcsi13056017pjp.141.2023.05.08.13.29.12; Mon, 08 May 2023 13:29:27 -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=FnID8r0f; 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 S233918AbjEHUID (ORCPT + 99 others); Mon, 8 May 2023 16:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233715AbjEHUH4 (ORCPT ); Mon, 8 May 2023 16:07:56 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 076805BAA; Mon, 8 May 2023 13:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683576469; x=1715112469; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yHOF6DrEvuRACHmnKROaRDudHiYk2POqQye99IoY3vM=; b=FnID8r0foLVAZy0mytCfB1LROjdNnJfy4fEznnMKedn5k0mETbzdvNQ0 +E6HbGtJPKPou/giiu1b3MsXNjAKjNJfzlfkLrzfgC7Yb6sma3B4kSDfw hXi4bG7A3yQYKMKwV4GC/1V64ve13ll3zZWOu+Ja0+adBWY3TfPmXiVGm 7hC0XMn9YJqiOKm/rmCuq382DtyBnynqTVLAtZ9VwDadtNQjgQCzLOHWx +oIr+xvzILMqAj9z/DLmvkw9gwcxFRERfr4vENIoNYyXADrXKLGw53XAi dmvzc5rtPk9U3nfb53+FDiU7BoyonPWCtxGhL6owHltOxEmeIm0Txnf2K A==; X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="348573631" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="348573631" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 13:07:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="788241629" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="788241629" Received: from sajmal-mobl1.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.74.4]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 13:07:47 -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, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v4 04/15] dmaengine: idxd: Export descriptor management functions Date: Mon, 8 May 2023 15:07:26 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765359240725982501?= X-GMAIL-MSGID: =?utf-8?q?1765359240725982501?= 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 --- 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);