Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3558002rwb; Mon, 7 Aug 2023 16:02:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEptbflbrbXX50cGKuDDc0jXlNcc7PyjhgVk2frWn2tM3gjNJTQr30kdH7fNUKDi8FmseDt X-Received: by 2002:a05:6a21:3391:b0:13f:b028:789c with SMTP id yy17-20020a056a21339100b0013fb028789cmr11647296pzb.5.1691449346299; Mon, 07 Aug 2023 16:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691449346; cv=none; d=google.com; s=arc-20160816; b=JbyKq/FNWmc7NAUVJmBUEuWpVujxJbZhiWUlADqHq+3AMSLXbl7151RLpAcCh7opdT h5C1R4jMaSnuVqjcQ7D6V4255yTunjrUVQuEnB/TTzbI0VJFbaL9MmYWG0S990LmzyiE 2T5kqXmf3zy5udlWwdtI75cSeuO4FSNuX1XpCKpBdyGPT5d4rYlMMaxVAd2LQyVh57gC PNjNgt/YbgLo5UoH3mzc0W7yhD0wq3DS0szJ3jSH11Zof3ps0vob2LSG5/y9t6kz80us fXLOE3VYgcZ7FM90FkCirlDGJagsqYodVOSs9oz6l8CWGKNJWIgZBpr45BKDZrgvoNzw XvKg== 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=tgFUqu1VQTYXtXyLrTtHfnPHWyXo08jQUiCdA42KsOE=; fh=KKYX96Dyn269sAN9Nbt8IfOk86mWVdLVST7Tbph7224=; b=Cd2OL7dO+ni0x61NHY2dwMXW5pogXHZ4GfNBNdCzfL08MlQx+LNoEaq6Il9fdt9p1o kdy4yD61W3tQyS2NBfDzgA4HivTDFjbKqJKjAvlGzlDZxH+kCpfvYpc1sinDF6V/7Hx5 uJnKT8Y8YWlAgLWOkkbGB3DvdFJKgJEjXHBFEFSnTm7J1oFvyG4+cwP9yjewJ5CEgM8i iCQszcfv4LTuZVrRcRzDPyvWsECFj6GeElZk1Zm4WwRSePk0wRSCdtVAvQv005fwd6qF BelpHSEJv7YV0Q9ZhAThxFfFG8V1xu+oJo7DVbKDdoYUuzmEZIqlmuapM3VUoIx/5G81 ugtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XF+1dSTv; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a056a0010d300b006873f40fc77si6408181pfu.103.2023.08.07.16.02.14; Mon, 07 Aug 2023 16:02:26 -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=XF+1dSTv; 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 S231454AbjHGUiU (ORCPT + 99 others); Mon, 7 Aug 2023 16:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbjHGUiJ (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 6B22EE5F; 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=vObohvQfDDNqka9m/gIuvJ0AUJRK4wpxi4IWTNHjdm0=; b=XF+1dSTv1eJLfOQiGRZpqnjzW3JSiN3qLUfnZgKVc3kf1/AopV0XhmSj BqrXu44LKByT0l31vR4dg94MedRQV+yIxrWirq/HdbeQpUakAiSROYdMf 7NnovLSX8eQarI5NxGW+oCRJYj4X2x4FExQXe7nLkX/61eIWBdHIi5E9/ 9N08J2hkX+K4rsApBHtQon2WKOVu6QVsEDVXk2uQEdvXVeQ4wKEH2fgV/ X0333ozcIGRxk2XopNBmi+aQxoVR/fzOde/XNoKwt9YlsoEpnQ6/EQmfr +3/lMOH1LLwr6P0skNpVCs06/+g70CQ9rIc+RI+eOXTjWFV6zJKcGs3yz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="374319677" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="374319677" 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:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="766123345" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="766123345" 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:43 -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 05/14] dmaengine: idxd: Export wq resource management functions Date: Mon, 7 Aug 2023 15:37:17 -0500 Message-Id: <20230807203726.1682123-6-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 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 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 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 Acked-by: Vinod Koul --- 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 9b2a6a1ee2af..4f6972cf656e 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