From patchwork Wed Nov 6 19:20:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sridhar, Kanchana P" X-Patchwork-Id: 13865320 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 EE856D59F6C for ; Wed, 6 Nov 2024 19:21:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 74DEB6B008C; Wed, 6 Nov 2024 14:21:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6FF066B0092; Wed, 6 Nov 2024 14:21:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 505B36B0096; Wed, 6 Nov 2024 14:21:16 -0500 (EST) 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 2EC6C6B008C for ; Wed, 6 Nov 2024 14:21:16 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id E99DE1A0BD2 for ; Wed, 6 Nov 2024 19:21:15 +0000 (UTC) X-FDA: 82756637208.06.BA3B3E3 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by imf23.hostedemail.com (Postfix) with ESMTP id 2524D14001E for ; Wed, 6 Nov 2024 19:20:50 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=J1Os5YoT; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730920814; a=rsa-sha256; cv=none; b=Lc84vP4pKN+0pzEv+qvxJGHmozdSVW4sBR/nNd1JcihoRdhjVXC61BufPYwCMMzmV5BndE dyriuBL7U0hsN1zpFmT0+Yo/RINpmSlrI0UpBLR6+VjuDZpUfVPDkIt18UF++5QYNGqS8f lPRc5Danwq8DXtt0/cSGhT8VpBexn84= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=J1Os5YoT; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 198.175.65.11 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=1730920814; 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=oauYIVWgF52IbGjNwKTzwuD93EHH4qPYrLAmXIwHNFc=; b=zieB2k6ip/HwLzNOHqeWHle024ZAVBbwpKhYLtKmBJtzGQN4XRIx7GIsjhWXC7Z2lU638Z GM80IPkoUOI2wPD9LFYpoCyDPrMd8ll0uWbHHtR0OgsYYzQmYIOX+6+KGFv+RUHbF3b7No xRCp1tbqkvhEgQ7P1rdIIzE/zchYCjs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730920874; x=1762456874; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yFcfU2b3t6Krq275SHD6OXxnKnpJ7Jmrcy/87R0bztw=; b=J1Os5YoTQeL/fioSd16ZsBghQLJI4Q7LLEigMI0zVEiJs/DeM0oiL6SR h8Z2qxWOhwtcSkb8r7yj3KX5c2bEMX37rtjwuhJr9f4k4qYYijw6aNwBm g6UufwflrOTDMlvDYZuFRWB65N7hZpbIE958lmz7bMsTWFes/xs1HW450 BLlFma85doWrqaTGmJK8En6GLEfdpxVYUBTRQMcbBWo6EVjPF3m3qrhzP SEDI3cexW94IrdETj1eiPbEpHfaRtGxMXpXzbwDGLXSXtHhKT0cDse9JF jdLGrMm+3n8JSr/fExdYcbMP+DKmbog9YWncOoYRVnueI75SdIRiJG2Ii w==; X-CSE-ConnectionGUID: acIdtwfpTjWjNK5LvvnJTw== X-CSE-MsgGUID: 3LrRH6NZRNeVY3BiBdntJA== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="41291986" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="41291986" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2024 11:21:10 -0800 X-CSE-ConnectionGUID: X7LtG8ZhSOm9GUcPjmI2MQ== X-CSE-MsgGUID: Ch43AaPUSz63XfnLGxWmQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,263,1725346800"; d="scan'208";a="88695388" Received: from unknown (HELO JF5300-B11A338T.jf.intel.com) ([10.242.51.115]) by fmviesa003.fm.intel.com with ESMTP; 06 Nov 2024 11:21:09 -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, 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 v3 05/13] crypto: iaa - Disable iaa_verify_compress by default. Date: Wed, 6 Nov 2024 11:20:57 -0800 Message-Id: <20241106192105.6731-6-kanchana.p.sridhar@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241106192105.6731-1-kanchana.p.sridhar@intel.com> References: <20241106192105.6731-1-kanchana.p.sridhar@intel.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 2524D14001E X-Rspamd-Server: rspam11 X-Stat-Signature: 5rb9o97n6aejbjmqfj3qzwdk1ez68u5n X-HE-Tag: 1730920850-942183 X-HE-Meta: U2FsdGVkX18z6fhFpdpc7YhcjoUKUEnAEL/QG/sk6JLT6DGo1VAO8GbLT7pEVyN10DCmFEcpiCUJB1XQnWHN1gPNxRjiHtlZxikVIiZmSbtIITwRkxVqx7qXdvs37xAjWJWpQqT0fezY89M9+S6yIjFO5sM1pVF46/9LTUALsEplF9lWU0FL9TZiSTA0nXB7zmJsD11ydJ/6wL10Hs/EGpK8i+mQc3FuIXaXhO7+/htH0J7p7I9oHp4kcH+TMELCG7pTkKklk9i2fHPc/VEx7k+WBZBoYenGODuuQfV7Ci6p6ZhFOJgvoRdxWFSK1wOJLF3Fg02BygNshIejdpBpP14qvuCaKDXswU5LaQFtIgPXm01MAPXMQAWKA7Rwv3+6HrLDYw8juUay9ikebs58Y9t29WXT4xdQRtGXmk23YsJj5IuU9U/BCaBZ0HecZpdx8XIRRm5iHZ3nI+EBPltoU1w+nyHGNLhHRY5VtaHoN2lUXhd78NOnsFefWCHtFx0eYZ4lKUkbFu8QU8vz9MJsVbYjiT88EGerFepgJ+Jw8MtrXaQrAduOvXMgf0MhHxRwukU4eGwdMiMs2v//Jl3fpb9DHc7BrAuwH4YSP5K6FDyVmbtffYsPoSPFBHvGbOLmNlPQEJSTwSf0ycWebpQDU9t4X/eNBu9B5PK5+NSw1B7dQ4krCRMsj6s/ySVM2TmVHwvbDtqwo3SDdxf57DNFS/jdsyIMabZ++jHSoxN1i/qdhWmHfUiGqNNJVkpocku/lN4ox+hatkChg9Tybs0n1rOnk5x0uImiKYFTR7MldvdVM+gbf6VEAR0gd8Mq387JFbwPsdmg/1GlHkbCDCxfcU8Xd7mRYluO8s3qvs5RUEOO+Fx/0fW6+KktCxwCCGp76i4sIRfZgraIti5mgePDy0eg9BYmeOspdNjOPNT+5/7L1XOWhcKWbSPHQMZ9l7iT9oSdR+2UR0JDcvV0CfV ChqNS/uZ Y5ZxW4clmYjVkQmIxE88hvRx6XrISYSf3D044EuqKEg9hxajYFdSyRKDO3Mcit/ygfxul1cLemVN8Xk/QIaK1hfGeRT3/9RQvLFvZM/rejowVpTunHlhV3oSR41Pnbg0r19nCLHW7KwJUcE8ZWziBZLBbBRswDXXED8pZ3U8VEILbwLNUpRzBA5eVg7+6BnsQyFqK0oU/7Vm7tf8MpR3muV1s3gTa872wECMq 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 13f9d22811ff..c4b143dd1ddd 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) {