Message ID | 20241123070127.332773-5-kanchana.p.sridhar@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0EC3E6ADE7 for <linux-mm@archiver.kernel.org>; Sat, 23 Nov 2024 07:01:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F23A6B008A; Sat, 23 Nov 2024 02:01:36 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 35DC66B0092; Sat, 23 Nov 2024 02:01:36 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 159B96B008C; Sat, 23 Nov 2024 02:01:36 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id E78146B0089 for <linux-mm@kvack.org>; Sat, 23 Nov 2024 02:01:35 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9A2F5141B26 for <linux-mm@kvack.org>; Sat, 23 Nov 2024 07:01:35 +0000 (UTC) X-FDA: 82816464150.10.91FA4A2 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by imf02.hostedemail.com (Postfix) with ESMTP id 8282580017 for <linux-mm@kvack.org>; Sat, 23 Nov 2024 07:01:32 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=e6yuXIDE; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 198.175.65.21 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732345293; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=bdW0VFB1jw9NppF2KFtR0NRJUsxJabGz0CmNQLLI0Hc=; b=qbSwLO0idlyDCuBjV0VYbqP0Tp1S/faEWJNX0jONva+ilmK9LdBaUfGHboHL5+Mx5HukAt UBwcdhVu7zoiHpY5+jeKCQAQ4+jrcSDNfjdkUN4sxq4+rgEtaduV/N0fnNlDu8U6RaO42Q 3gTZmsT4VVXwICeCW6IMyYJE7LPV/hQ= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=e6yuXIDE; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 198.175.65.21 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732345293; a=rsa-sha256; cv=none; b=TXZjRl5SoK9vVLJePhELIbxIzJaLNx9zTvefMrEZ3R3qR27w5tYgZpgqIoJ6CFX3izW2Fk XShLMbnxxEg21u8Czf4kRtsXlAsxVruiLffN/tWE06e3CHkGClC5w2OAm01SJjMMX9kcxl fxuWUjKd/Vb5qzUc3OEkZWL3sAmj+1E= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732345294; x=1763881294; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QbVPHifD6kbvaQyPWicO/+NjbMZ0sYtZbDpqlwtWffY=; b=e6yuXIDEfUvK8Nm2VSvP6u+QeHU0TjEs3IXTeqNFhCB9pCQko9TMiWbs fcj9qeIv8vLqmYj950/GhwbhEDVOhiRalOa3uGK5wUfDBGO7PJAgsR1jZ JcbIUc2/BvujKaQtko2h+MHDM36MBDc1LdjW7JHJYk7ACrdrBUxlU0Ucr 3qQYiwdoKkoWxc/YoE3enwtXZIC4UPiIhYIsWGiyZv72sjpRZrOf9eKbJ ZPycSljKoQUYKpVxZOOpPIYCjzf+DwM2EQBdc+4Mby7BrvQdGeF5PCnie hThpdbyfPDU4VAgRiMqgw4I50UryDlDJXO23B+wzqLA/BTJIJBGX42Zg4 w==; X-CSE-ConnectionGUID: MkIBTHoRSBWxutKjyZ9HSg== X-CSE-MsgGUID: 1k7dkfMLRo2U2GwUBok9jQ== X-IronPort-AV: E=McAfee;i="6700,10204,11264"; a="32435499" X-IronPort-AV: E=Sophos;i="6.12,178,1728975600"; d="scan'208";a="32435499" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2024 23:01:29 -0800 X-CSE-ConnectionGUID: ObQFb837QdKzc06jS1W0Yw== X-CSE-MsgGUID: +0JuenxqTvCxqHgsFnoJTQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,178,1728975600"; d="scan'208";a="91573556" Received: from unknown (HELO JF5300-B11A338T.jf.intel.com) ([10.242.51.115]) by orviesa008.jf.intel.com with ESMTP; 22 Nov 2024 23:01:28 -0800 From: Kanchana P Sridhar <kanchana.p.sridhar@intel.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, hannes@cmpxchg.org, yosryahmed@google.com, nphamcs@gmail.com, chengming.zhou@linux.dev, usamaarif642@gmail.com, ryan.roberts@arm.com, ying.huang@intel.com, 21cnbao@gmail.com, akpm@linux-foundation.org, linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, clabbe@baylibre.com, ardb@kernel.org, ebiggers@google.com, surenb@google.com, kristen.c.accardi@intel.com Cc: wajdi.k.feghali@intel.com, vinodh.gopal@intel.com, kanchana.p.sridhar@intel.com Subject: [PATCH v4 04/10] crypto: iaa - Make async mode the default. Date: Fri, 22 Nov 2024 23:01:21 -0800 Message-Id: <20241123070127.332773-5-kanchana.p.sridhar@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241123070127.332773-1-kanchana.p.sridhar@intel.com> References: <20241123070127.332773-1-kanchana.p.sridhar@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 8282580017 X-Stat-Signature: ukjggeef48okfswwe3am8pbidtd8a5pi X-Rspam-User: X-HE-Tag: 1732345292-687559 X-HE-Meta: U2FsdGVkX1+RV6pRLuHw0G/Mgc79YLEFs/BpVDqZ1s89GWEL3Yzn3ebp1NFU97f1kLlvF0bnEoyNSWaDsCftqDiJuS7XoS/701ys4Ko6cZosQZmBqMICP2Cg21taQ8gCD5aDijVEH4iIbo+JERHV3gJERTG6aA5/6D0deHt/JKaT6mGNSUTc4cwxdNxCKmLH5rRp7f0MMzwSgpdiZMnMOv2OZTdSoeHjGUEtIL5xIHrZMHMEfIbELU1JzukF2dAhmPEDXeX6T6V6qs5t5CuIT88UOON5wnitFa9xXZqBYKt5l+zsf4kKcZkCr1Z/Z7zdYwT2cNy8vObltvAYcxyOV2HWxM8aWYEmdmYuT6jFdYt35QcK4iXX54Ib1iQKsc5ni8U9juLdIpRQCTHb0pj6m57iJx+C8P03gBSkgZMEgv4ulfcoDmCaQHH7NcuTkRco0jQ5GaXz4yOEpTgVxa86D/+Kvzz1ut3yT/tsBq/N8T+a6VdppAvYxmho6SQSxyIY0WMHPIplwEbZiof55tmI64Fvqgk31x7tmGjSLaDoYn/slwL9S+Y/U3+YBKZB+tf7Vaao5uDRQwzf27+UJgyLL60lDk0muCRpqn3LcV3mt6lIM3v+Cj3aqTLH1ShJe7atT9qdC+1cEqIM//0K784AeBU9hsnDqhBfd0D+EoaqTCWmmD2TCHkM7cz352dmxn00h9Gv2xz4ektds3aaNUC0PwvGw3dOwGIqxx5YggpV23Jicd34ODMXA1DDCAXtokfM0PwVANoNTOMEbMmEZHzg+Ch3uYo0hOgdfSx+epSslqiF8CPVshZ3grJOqlFE7Htr6lOEZmZ7ejnBrYvVO0AqN/n3B40SsxqvHAvcdv91XsJABmBvUe2hWge6U2kMZk5QPKgM0yVUFXRH5LwyHqemgf56SKs8HmxTq/sNOELv4wU8gz0WYGhVlI7DZUaSPPR/p5GFuP7ndUKWq9qPX51 7JyP872w ZiMcibVd7LspUi+UDQpk5c+0pZ1PBMrZ7nWFpy5xxwkPoIIJaKiRGwkfay9/HpkWbiyQMuynHluSl1hmPRa9BxjaHrulr6Aw1DidK473ur/AqkvY3owM9M50KjKvuB7Y536HcmJOPvJB+fbTMDcFFQENZC99UwcFpmr11u5fHYn/J6NFJva2nDnBf0Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
zswap IAA compress batching
|
expand
|
diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c index cbf147a3c3cb..bd2db0b6f145 100644 --- a/drivers/crypto/intel/iaa/iaa_crypto_main.c +++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c @@ -153,7 +153,7 @@ static DRIVER_ATTR_RW(verify_compress); */ /* Use async mode */ -static bool async_mode; +static bool async_mode = true; /* Use interrupts */ static bool use_irq;
This patch makes it easier for IAA hardware acceleration in the iaa_crypto driver to be loaded by default in the most efficient/recommended "async" mode for parallel compressions/decompressions, namely, asynchronous submission of descriptors, followed by polling for job completions. Earlier, the "sync" mode used to be the default. This way, anyone that wants to use IAA can do so after building the kernel, and without having to go through these steps to use async poll: 1) disable all the IAA device/wq bindings that happen at boot time 2) rmmod iaa_crypto 3) modprobe iaa_crypto 4) echo async > /sys/bus/dsa/drivers/crypto/sync_mode 5) re-run initialization of the IAA devices and wqs Signed-off-by: Kanchana P Sridhar <kanchana.p.sridhar@intel.com> --- drivers/crypto/intel/iaa/iaa_crypto_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)