Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4912996rwb; Mon, 31 Jul 2023 14:38:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFU+aLLFqMrXdVKgFsL2+RyTJFw8v3fPonSeb3kbnMBLa0YxetgXsmSauhEaw+N1BBy5F0Q X-Received: by 2002:a05:6a00:cd1:b0:687:fb4:be30 with SMTP id b17-20020a056a000cd100b006870fb4be30mr14106931pfv.4.1690839482463; Mon, 31 Jul 2023 14:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690839482; cv=none; d=google.com; s=arc-20160816; b=uuwCPxzATT6L+LbiKeXb1N3hEFRDsXjrddhVarllz/mA3pamAe+VcMjyx9LrA3fWQv McO6lZtH60tMUA8kGBf++I0+o8awKsEbMj9L7Ar4dI64LtjjiuofGtCsdGpNR9NT1Mx2 MV+n/MYRC/vZSeroq2n77nU5Z8saghT2Nhy3r8oaOUFY1G7S6/6rDkViEq9LEtTpd3dn zbxG/hTAVEgtfiK0XbW4WZKO3MvOwSmBlImGxANSUFkWL2OReJhEnrQqy+Y2uLBNhO5p yYhzAw1+g/ebETsmj2wBB3occeKwaC5d21Ol0mU20UjycT/aAobTZMapChvWDtANcvro jNog== 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=28ukhJ9ZEwjGhPAF7d4uGD1/Z77IIz6U7/9x19H/z9A=; fh=KKYX96Dyn269sAN9Nbt8IfOk86mWVdLVST7Tbph7224=; b=QQoiY/Qxuw0KJ7V3daZd6B290DvU8aUT1wN/USGoLZFzG8FlNSBzzomny/t3CNAKv3 +xAIY04s5jpjPAendhWbj5NWoojiVDQefdRNck/s4Rt5r+j5GrsVp76IpUKlas3LlRW8 DtasEnmeynXkXPVs1WLEv+vL6axcIEibvH/XcPAB5NBISvdfRxg4cwSwC2dbyrgAamnR iiFEQA5IDxmasFjSd8nyIQR1Rwr/GX/nc6h5JvYGB+H3Dg0tgXQkfb1dQASy9DSyKJ8J BmJnzEHmJS3jUK6qLsvwZmzCNr7juS3mQOnD/mEYvRC9h8kiHWMTdUbwsMBIOJo7ZYyf NXtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LbS+LT+F; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a126-20020a636684000000b00563a0bacbb4si2850022pgc.694.2023.07.31.14.37.48; Mon, 31 Jul 2023 14:38:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=LbS+LT+F; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S231376AbjGaVaV (ORCPT + 99 others); Mon, 31 Jul 2023 17:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231326AbjGaVaR (ORCPT ); Mon, 31 Jul 2023 17:30:17 -0400 Received: from mgamail.intel.com (unknown [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40071BD9; Mon, 31 Jul 2023 14:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690838997; x=1722374997; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=h7I8YHXeOlCOxfUwufW0FBvwo2i1M2IOXOG0q7S47gY=; b=LbS+LT+FfoR32d/OuNLytW0nFnn7EZ56wb7jETEh+S8z8CG8qbFAjYce HUCiPTu1172ZAlQIFcOauof2Lkhec4PmBmuo8d1xdRVWQyisel74pMcJu vCY0IZWMSIAOuXshB7RlE8QdxpyBiroelah3JqoWx/Oz/VNBAoEdxRhUZ 8uysBC2PywrrihQWbow8G+kHsg2oxAIbAYuwqvN37TbUKZNuSdNr0Tcb2 xBxAZBgyCl9QfFYAduamc2O1mzrU0T7ay7Mfp8HCn7znGvzMBnJMPDNrz JObAOwpdbr4gkEu0Z5RP0A+rB8cT98sXFLRKNFrTHvifWgsqYNlH0Xdek Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="349425806" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="349425806" 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:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="728428412" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="728428412" 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:54 -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 05/14] dmaengine: idxd: Export wq resource management functions Date: Mon, 31 Jul 2023 16:29:30 -0500 Message-Id: <20230731212939.1391453-6-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 Content-Transfer-Encoding: 8bit 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-crypto@vger.kernel.org To allow idxd sub-drivers to access the wq resource management functions, export them. Signed-off-by: Tom Zanussi Reviewed-by: Dave Jiang Reviewed-by: Fenghua Yu --- drivers/dma/idxd/device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c index 87ad95fa3f98..626600bd394b 100644 --- a/drivers/dma/idxd/device.c +++ b/drivers/dma/idxd/device.c @@ -161,6 +161,7 @@ int idxd_wq_alloc_resources(struct idxd_wq *wq) free_hw_descs(wq); return rc; } +EXPORT_SYMBOL_NS_GPL(idxd_wq_alloc_resources, IDXD); void idxd_wq_free_resources(struct idxd_wq *wq) { @@ -174,6 +175,7 @@ void idxd_wq_free_resources(struct idxd_wq *wq) dma_free_coherent(dev, wq->compls_size, wq->compls, wq->compls_addr); sbitmap_queue_free(&wq->sbq); } +EXPORT_SYMBOL_NS_GPL(idxd_wq_free_resources, IDXD); int idxd_wq_enable(struct idxd_wq *wq) { @@ -422,6 +424,7 @@ int idxd_wq_init_percpu_ref(struct idxd_wq *wq) reinit_completion(&wq->wq_resurrect); return 0; } +EXPORT_SYMBOL_NS_GPL(idxd_wq_init_percpu_ref, IDXD); void __idxd_wq_quiesce(struct idxd_wq *wq) { @@ -431,6 +434,7 @@ void __idxd_wq_quiesce(struct idxd_wq *wq) complete_all(&wq->wq_resurrect); wait_for_completion(&wq->wq_dead); } +EXPORT_SYMBOL_NS_GPL(__idxd_wq_quiesce, IDXD); void idxd_wq_quiesce(struct idxd_wq *wq) { @@ -438,6 +442,7 @@ void idxd_wq_quiesce(struct idxd_wq *wq) __idxd_wq_quiesce(wq); mutex_unlock(&wq->wq_lock); } +EXPORT_SYMBOL_NS_GPL(idxd_wq_quiesce, IDXD); /* Device control bits */ static inline bool idxd_is_enabled(struct idxd_device *idxd) -- 2.34.1