Message ID | 20241018064101.336232-6-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 C86EFD3C550 for <linux-mm@archiver.kernel.org>; Fri, 18 Oct 2024 06:41:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A81676B0093; Fri, 18 Oct 2024 02:41:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A31AC6B0095; Fri, 18 Oct 2024 02:41:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 85D156B0096; Fri, 18 Oct 2024 02:41:10 -0400 (EDT) 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 634B86B0093 for <linux-mm@kvack.org>; Fri, 18 Oct 2024 02:41:10 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D12F0AB378 for <linux-mm@kvack.org>; Fri, 18 Oct 2024 06:40:46 +0000 (UTC) X-FDA: 82685775690.11.5817867 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf19.hostedemail.com (Postfix) with ESMTP id AA9041A000C for <linux-mm@kvack.org>; Fri, 18 Oct 2024 06:40:54 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=R2xeUpSa; spf=pass (imf19.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.15 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=1729233521; 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=Bluf7mu5dGh0ItEEG/jNQhxGtfJbo3k5gaIfftwacYA=; b=KKXUo/lVQUHdYQUXbbJbKApm9dqREO/bJaKHY+EETbQJTxmCOtQe/KYnW1AR3fSWpRBhWi ub9Dq16dBIX18b7KFms132dFIwFRISFB2ukoRr64VKcQdoFH/OCSL0h+X12+h3BrFg+Zs0 E5mRL0r0JcaLWj92SNuGny0dhpgmVAM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729233521; a=rsa-sha256; cv=none; b=MHdJJX6h4tq/2nj7/NTY7MSJojCO0ww4pRmFv9BBg2FyfWQGrI0RZgUSchceeXa53wv5fj DfRMMQLDFc5Qy/fKObvdOKHuf6kSeNsVdKBfoRnvo0uLIfiZ6rEAhgW6U+zcRJ6EM4jloZ uHax5EV4BUMlJxIJ4kWFvG+11MNSLqA= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=R2xeUpSa; spf=pass (imf19.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.15 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=1729233668; x=1760769668; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Z1uLVHFrCxBVRppWSz2uPPFIJpDocNdlo79Vr4aRt6E=; b=R2xeUpSaRiT95YqgpF2+YmZOCC65FXhX+FMgh1qP/DqOUcosZ8AH+zC0 fzBTcfITIT0DQMe9YjB/B1eBUN+sWCKREZhSPVe8e026VvpY+TCx/A0q3 8Fxqqm2kZfqhw/C3L6SJnnATLX1IHyLqrB1m0oK7QG8gGhDwCwcGqY3TE lSN5wVwwZUm6loK+KXXmRj6MCxCmtcgwzeADGcwOoaYjTX+0G/vaRpS9+ yfy04aDBiCc/8aPkyX2DWA5BgKUR5y0S/4H/eYYU5INmYgX/MZqSM0pXA GRklOQLjXJ0007Yf415PETBomJx9om3KVyapf7x7YxapPZM0TtX9AoRDs A==; X-CSE-ConnectionGUID: YWqC/V7kS9OyscpYVVIaKA== X-CSE-MsgGUID: J6F5f+2ARYqZ3uBkkRtwwg== X-IronPort-AV: E=McAfee;i="6700,10204,11228"; a="28884842" X-IronPort-AV: E=Sophos;i="6.11,212,1725346800"; d="scan'208";a="28884842" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2024 23:41:02 -0700 X-CSE-ConnectionGUID: BcOBrWNBQuGJzmoGtHi9jQ== X-CSE-MsgGUID: tf9TGtY1SRSPfpX2G7ugmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="83607504" Received: from jf5300-b11a338t.jf.intel.com ([10.242.51.6]) by orviesa003.jf.intel.com with ESMTP; 17 Oct 2024 23:41:02 -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, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, mcgrof@kernel.org, kees@kernel.org, joel.granados@kernel.org, bfoster@redhat.com, willy@infradead.org, linux-fsdevel@vger.kernel.org Cc: wajdi.k.feghali@intel.com, vinodh.gopal@intel.com, kanchana.p.sridhar@intel.com Subject: [RFC PATCH v1 05/13] crypto: iaa - Make async mode the default. Date: Thu, 17 Oct 2024 23:40:53 -0700 Message-Id: <20241018064101.336232-6-kanchana.p.sridhar@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241018064101.336232-1-kanchana.p.sridhar@intel.com> References: <20241018064101.336232-1-kanchana.p.sridhar@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: ir5xmrdzfb49kgeyjuhiwyruqjryjzbj X-Rspamd-Queue-Id: AA9041A000C X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1729233654-142561 X-HE-Meta: U2FsdGVkX1/WgUvsIzGhiTuByK6q5a8gtLsZnx/rV5JqgMSwyDWbgW+HD+CHEX2BT/1cBFZAFF3+Eb+vJfdlP5YkwoKIBFjZNZyyum0rjr0M8/kIHjr5IvbnlpghPjJkw7xMBJzuJ0+ciLK2B6R7cfXfx8PoMRJS2ALH444Mzmyem0pmKqNORVppgnMmdvfDXRvjqmegKqwSuOiKxX5kfa6arrpdoUw3xXqbni30dpFfuQnBamHscVLFPr/ML9TBIfFFuuIhMa6S3hFmuAa3sg+Pocyg7pDbJ4DCKEzHVorhc4wClXZnQjJcykuArnh4XuLaW8hewiQSY1xPR4jJCuAz/DLgJzOVL4tM5BPnVZVWfSkdHktAw3rQJ0lbnQzsYU8h0VrBMXJHy5QM2QsX+WBy2jvQ4zQdc2iodmZ+OVWt2aq4ZLJ0V3qWU9Jb6VlqZqHvMayGS3n0gCpHY5J65OTzaQXBOWtTgc0agOx0IizFzG2Lncmubq39xdHooBQ2CxPZc7rX5dJUirmdt0TkoWk9JqWMB0+oFbkOyoBdqENFkCLQ8AC2Mi5c0gbFZ4mvssvo8q9yNRQO/RHFH9WF6a2aeqo6by7328CcfJixsSNloktB3fDoKo6TKSbZPFBdZDX4zLd2MjUjhRdqYThi/FQsiYbGjJNHY6jWU/o/mIdfBtTGFdMKhsRtuCDfFGi0dnf/oAOexLcPB/qkOW1J2KiIf+Lw2GYMnmGc/gIe3sEI+WnbHUO03O51Qihaf0Dn8Jw6kuNP8WJhux9Be4p/7WFKELL3RWAnWaZdA6j5aFXTpN+xlYt6PaKfcg6imw9Pol5e1Pj8CBbNnEkruALMG2EjHYYsh+BMEXfKGl7EhHPfwErFZTpfkQ43O1gT0XW7LMfZxuBkkrJucL1MXLr9SLLIY9IG7bikgIgleAHhwM1p57MLgBcDK0zAH/uxe/gDnTt4qP1nXwWizfTG/qb rpUS2OlU GriNXN+8SRCiO0KpA9Ido1Ad/BT6nN876Hh4mZTaOXmYt2QFR+gv2u2g7s2PdEbkacyKnu32UTclmBuXahnSlVcG2DXUrtPnGckHkkxz3gGPg70XtVo/potpVkCRz5DVukOcxR/PDtqSupSPg39mDnVR7546laC3W8t8jtJt2yf0avCq6ZPIPZ5ruJw== 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 6a8577ac1330..6c262b1eb09d 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, 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(-)