Message ID | 20241103032111.333282-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 653FDE67819 for <linux-mm@archiver.kernel.org>; Sun, 3 Nov 2024 03:21:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 19C476B0089; Sat, 2 Nov 2024 23:21:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 127F66B008A; Sat, 2 Nov 2024 23:21:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EBA726B008C; Sat, 2 Nov 2024 23:21:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id AED186B008A for <linux-mm@kvack.org>; Sat, 2 Nov 2024 23:21:20 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 66EEA1C79FB for <linux-mm@kvack.org>; Sun, 3 Nov 2024 03:21:20 +0000 (UTC) X-FDA: 82743331608.03.AAC25A9 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by imf18.hostedemail.com (Postfix) with ESMTP id D14571C0002 for <linux-mm@kvack.org>; Sun, 3 Nov 2024 03:21:04 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QYvf3Vge; spf=pass (imf18.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730604031; 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=S7KSdyx1Yt75nyZU3ul+IeNaI1n+U4GJzibDvgrqEXQ=; b=H8ilLgAb3yTfdtiqQhm1VwDp7s1lp+Gbvseqz60vaIoTVQEVUey3fDz1rGv+tXzjHXWpbp BTSgqITFf+dGU2H8VCFE/4zOTU3d5ZMDxyvjD0nsSICES7xHxaiGapYCcBnxy5Y1fRpb11 U871hJKBkL9TKRjR0mSFPO+gRjOFZ20= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730604031; a=rsa-sha256; cv=none; b=3zmmqMhKiXcIVkghyxiJox5rFNRHGAVQiGv3HJufROf2tlJL4KI6MOLj4s7cJTTdThvkt3 jlFphMPTagornOvSCd30Nl5r52lfpK/wczbnLkDmLqXbyP29H6TIlz7IA2KSo+qsxAOS56 1PtmjfjGrMHaFhyCQq4ksyTLmKo1m/U= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QYvf3Vge; spf=pass (imf18.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730604078; x=1762140078; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pX2jvauw5wJ2+nUrjP9yXpyaB7Rg+Ni/oUTJYJHTKmc=; b=QYvf3Vge82nCZKXslwen8rG0sJWlFIKkCGf+upm+UQqCMUpmlL+IGY2K payYVYnPAHC6XcYsEGfo7lmcHAaDVyDCwt6FDhhmazv8ZcgEpKm27ZDjb NKzWxrcawlh3Ldua+CuefTGD+7QiddNNZHxktgN1CEJJvV2Fsz8hdnPlZ eAGU6y14YmTsoSn3wzu41kOsziINggarKx0OqAehDcjLF2Krm+AcTWtOV EHaOlhWUzcnD/HS5xfGMs3qKc9rl0075FNbwXrFpa5mOTsKs/PhCfFhXv oZLCXgDct+wCU4vKA/w8WDJpoNbgsQyK5v41UsR53f84zcve3iMFH3nzG w==; X-CSE-ConnectionGUID: 66RJAFBTT3Gv/KH+Aui0nw== X-CSE-MsgGUID: oBILVIcCR6C47Y06wUwb5w== X-IronPort-AV: E=McAfee;i="6700,10204,11244"; a="30548249" X-IronPort-AV: E=Sophos;i="6.11,254,1725346800"; d="scan'208";a="30548249" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2024 20:21:13 -0700 X-CSE-ConnectionGUID: wD/bMYhARqyYIrYFEHpnGg== X-CSE-MsgGUID: wRKdRZrCQCS1ApOrudAP+g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,254,1725346800"; d="scan'208";a="83451878" Received: from unknown (HELO JF5300-B11A338T.jf.intel.com) ([10.242.51.115]) by orviesa006.jf.intel.com with ESMTP; 02 Nov 2024 20:21:13 -0700 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, zanussi@kernel.org Cc: wajdi.k.feghali@intel.com, vinodh.gopal@intel.com, kanchana.p.sridhar@intel.com Subject: [PATCH v2 04/13] crypto: iaa - Make async mode the default. Date: Sat, 2 Nov 2024 20:21:02 -0700 Message-Id: <20241103032111.333282-5-kanchana.p.sridhar@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241103032111.333282-1-kanchana.p.sridhar@intel.com> References: <20241103032111.333282-1-kanchana.p.sridhar@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: 6asw36sjyxjwy1bjwjwt8zc8x1u18ncf X-Rspam-User: X-Rspamd-Queue-Id: D14571C0002 X-Rspamd-Server: rspam02 X-HE-Tag: 1730604064-720315 X-HE-Meta: U2FsdGVkX19oyx+/aEfA7Tor+Z2OqExYpwwG23kh71TOjMHRzI4ZliDpqUhxiva3Gj+8cWjymU//Bk/xeReCQ93w0x4FsRA45TOhpMZwNgWJ6sAI2f13bpvVhLHvFE9QZT3PSjdfuueK+UxmYXD6cM5p/0rKm5rvWR5OloMx2WbpQL3ajCd4OZs8qH2qGng3eYcXJ5aINa71UgY+nse/AmOVuAC/vudGxg4cvZ0BIDjBFOkkpUyNZnOlGD01pSCbciruhj/5hj1aDka988VPbtBNEHVENbc+ZWvoq4Xc+96Xo0L3oRu5lMdNfWNJ5ZcpAkQSakLyifGQyd6Qo5DcEayrMFhC/J4UeztA9nwdvR9X0qw4FF3TBlex6NzOCdiZhKsWIiLrgXbTnyV/bJYDBpx7OTL0TCiwVOUfrehVfrCFqxoLetdEeRHqA3S4OBT6cJLJH7hFarfxSNyVqm6izs+JiRCZkNalVovpIIjmATxJooqbOrhqMMbIVZLPfQj4FHWQYZ32CfQZpkI9+EvjoCDWaRhUcFpzzrepsTgmoYSksXsSI9/yWror2nGZMH9h48JpkbimYZd0uan8Ic7W5nd2EC3fTCeEWrbZ/XPaJ0upayrPyznPkX9v6mTVYtFpWvounycCP5/zL73lJYI4Yx039noKTcckLEdQypUydmY2DwpF9vFS2QPD7NYFJ0Qf3AUnsBWoaXmrGnjL5WH5SxT3TPSXQt0Z+OOPnz3gxUWWrHIAFUpTTv50dS3c5EAMXPfELCqOl096OPuAdEAdQa4/6ZV95TY6Na8IWkkFsZ13bNfiJ96j3igEdXB/USb1jfJQpj9vRhTX1EdcDH2D6K0MP4rXrNpteE3RdLXUPeu8zlJDnZDDbVhpadoNKv5wpfGGOr+iRFrREWS8H5dXtl6WRYWSvHRcLTJSQlMrzLqDy946Hk6ZerX8dBJ3Go/t1p2SQ6798sCEzwC9hcM 9fn6xAq2 v7wFnvT9dO5Ou3TCIAqs/fKE2BwTqwnYBEoQwkRjx90wC/vzr+kjHvZwmj6n0d/P4kKQE66t4tY/2R4NJ541QMZYugseuJunaxvETBCG50w+iz9UWVssJXaURIYcLDqLBMzMglUXoeoZducljZ4AFp2sP9y3nTio7uIXSSumnWxehGp9cc8K8bjnRZw== 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 3ac3a37fd2e6..13f9d22811ff 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(-)