From patchwork Sat Dec 21 06:31:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kanchana P Sridhar X-Patchwork-Id: 13917682 Return-Path: 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 19100E7718B for ; Sat, 21 Dec 2024 06:31:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0FD746B0093; Sat, 21 Dec 2024 01:31:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 082BC6B0096; Sat, 21 Dec 2024 01:31:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E22296B0099; Sat, 21 Dec 2024 01:31:28 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A78746B0093 for ; Sat, 21 Dec 2024 01:31:28 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4CCF3806C4 for ; Sat, 21 Dec 2024 06:31:28 +0000 (UTC) X-FDA: 82917993942.16.ECAEC6E Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by imf11.hostedemail.com (Postfix) with ESMTP id 0868540002 for ; Sat, 21 Dec 2024 06:30:53 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bYqkkMis; spf=pass (imf11.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 198.175.65.20 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=1734762649; 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=M4SVokmn+Bow46EUfXu/KTDCIdzMHroC23ILD26n6g4=; b=zUJJ+QlT8iF+vOtnB4Yg9j2fbfzROk1Wt5U+L8AB9gUx5DQJhnXgxlogfJDVleQGG+kVcG YRUv/UaU1wX44svfARJVdCTfThNrnU+ZHpLziUG8TPGSwHiVOLE/MaVY1YCzRam58OI8jm k7i0I9d27ehE3SkSnsNQrS7L76IbWm0= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bYqkkMis; spf=pass (imf11.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 198.175.65.20 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734762649; a=rsa-sha256; cv=none; b=eqxJzWFsOlXyhAa5Qo+p9a4zjXuvp2suv4Lr9EjQIgpF8HIkOUnM/lnd9AkXk19AdFFPNo K7iTmaPoTWXp18FOc3QWZ8OWLPm9mLddNLLcZvbs10kJvzvz2OKT5QpUixPd4NRH2IOobl 8SafMYlr4v0VbkHEXq/0kU3C3yUuuZo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734762686; x=1766298686; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3AC0t67W9YXnQaqtfbv5O8FRwsYURPHnfKQ9TbAZwNM=; b=bYqkkMisVywYct8gvDx94cOeJav/EDTnQqGzs/mQPM3MEfI96vpyNyxN kQHKWs5gvYFXed6NMsjxrGoVcyi6vKDnJc+jp0GIXiIyuwc331hcITdLR ZQNnIf2PcfAs8QK0QI6kM6CCoyYAkosRtd4npIlwuvmCLWYPnzSwUnOOk DObmV85/o02rCVUFHnb1wt3CgNWcHMYa/q/WbhvYlwyX08F9AutRWNAqd UgleDbI8Vrlu9lQF4LizEVNpKOyCNo6RXuyyx7dwtEi9QBXnIXYxXsjNg kgvKGjFIVgsORMpF2CG4G2BAXJ0zjMveR6lmChvBRhR0aYpx2heToMobi Q==; X-CSE-ConnectionGUID: dn9+9rl0RhOf2SYxQVYKnw== X-CSE-MsgGUID: fZWHU2e2RMmSstXnqf7DMA== X-IronPort-AV: E=McAfee;i="6700,10204,11292"; a="35021674" X-IronPort-AV: E=Sophos;i="6.12,253,1728975600"; d="scan'208";a="35021674" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2024 22:31:20 -0800 X-CSE-ConnectionGUID: z4BLm9q9QQGNlzkgRdLZ0g== X-CSE-MsgGUID: SerZT0HOQPixyY2N5jgjOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="99184592" Received: from jf5300-b11a338t.jf.intel.com ([10.242.51.115]) by orviesa007.jf.intel.com with ESMTP; 20 Dec 2024 22:31:21 -0800 From: Kanchana P Sridhar 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, 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 v5 06/12] crypto: iaa - Disable iaa_verify_compress by default. Date: Fri, 20 Dec 2024 22:31:13 -0800 Message-Id: <20241221063119.29140-7-kanchana.p.sridhar@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241221063119.29140-1-kanchana.p.sridhar@intel.com> References: <20241221063119.29140-1-kanchana.p.sridhar@intel.com> MIME-Version: 1.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 0868540002 X-Rspam-User: X-Stat-Signature: bxxiywnmc5jkz9tboreeu8p545zqs6yy X-HE-Tag: 1734762653-203943 X-HE-Meta: U2FsdGVkX19DLcchKo3YsBFv/+YQfVdZsFqzKGvWkOrqxxxJb1tjqomwJJmUFTtOqEF1OLN5YbNyJ+q5jSa1UZrI6upWOkmFFr4fu8IffwBFMxQgrNr4/kwx27CcBBFsj9H2QhVxy3YlN6LqU+HD5L9OEWDIuGukhRj75InDfzlQAEty0okWnGEJHks1Kx1v+1mEEeYQ67KVa9jpGMLg5/iQGigu4dBAtNxZw1MFQSeodXIfi5IARlU4aGXgpS/Mxito1fo4p5Ok3KS/SQGdP3/e6Zdag0UiW6hFhOA/emuQRczNfTfD0KkDm8bJ7rYypHg+8HyJvWXukxNauzac/klOQzTb5xlFWA+CmJvGN8Gyg7mqFYe7BabrgkqLMjr9xfnel6PcHu599YXUrRs8hZrIMj3ugPD1stu2+uPwieh5dLDYyUXBmOFKL7DUSu3om034XAfoIO/k9dLHbHYZ3RJvx1ttFZIiO4DF5Cdp1okbI+xJ8pr0KJWIDmqN/Xn4YTxhBCuLx47LwMoIaG4bHK/fMKCL02ag+7CsNGCOiQpEkN3aJeYkO1ybXK/YgWfq7EbKXBHfT1V6mFJjX3L9rzxdYz2RkdOnMJd6FLXgJAGhI82RhdyQMeuLtvDBgZiTAG6cCVArh3HRaTn+CXwFwYOr6xRive8aInwDtC+eI/Us7cXuzfh0ylO5WbX8xNfV2nA5rnlEi+cPFEMpU12Cmf12g6J6exQz5Y3I4wyilhtqMd0i3/3nC37wKGIzvHU+52vEaAkR97irUn+zM4H5ZhMOHYO4yj9j+1q7eLGmwBNr6d0yZH0pEad38b5Jru1nng5+G9olf3sXNPbcvybaf/o9z8Nl5cjsKT0NaTFLwvGed7bX4S74zx3uqIBsQc/XaId+7Y+LK3RqrThb69zrpiUbw+vOp2b8RxdzBiEW3YI5Q5EX3HSWQQdLUrGmPI3znK9yTDWwhrfS2J5oeDk zp34Fhec w76D8wter6iUOvZIwAyULcVfw2RJSg/hd9mXbYqhtm8TXKoLPktvDJ9PBre/QywKHwI8+zDSG5gTwnpGde+Yktm7X1eu91mo8UtTjPAOVMEEzoo1+3JIahxVxVsSoVCrI0k2qcP+kiTnTOLD/dI7g8PA21S8cIN7h4IM2v9fS7Rx0RTgbImQQKDSxqF297GIi3Zp1UB856eMByki5PtmMRQSLsT4PteLr9YeG 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: List-Subscribe: List-Unsubscribe: This patch makes it easier for IAA hardware acceleration in the iaa_crypto driver to be loaded by default with "iaa_verify_compress" disabled, to facilitate performance comparisons with software compressors (which also do not run compress verification by default). Earlier, iaa_crypto compress verification used to be enabled by default. With this patch, if users want to enable compress verification, they can do so with these steps: 1) disable all the IAA device/wq bindings that happen at boot time 2) rmmod iaa_crypto 3) modprobe iaa_crypto 4) echo 1 > /sys/bus/dsa/drivers/crypto/verify_compress 5) re-run initialization of the IAA devices and wqs Signed-off-by: Kanchana P Sridhar --- drivers/crypto/intel/iaa/iaa_crypto_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c index 6d49f82165fe..f4807a828034 100644 --- a/drivers/crypto/intel/iaa/iaa_crypto_main.c +++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c @@ -94,7 +94,7 @@ static bool iaa_crypto_enabled; static bool iaa_crypto_registered; /* Verify results of IAA compress or not */ -static bool iaa_verify_compress = true; +static bool iaa_verify_compress = false; static ssize_t verify_compress_show(struct device_driver *driver, char *buf) {