From patchwork Fri Oct 18 06:40:54 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: 13841233 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 191DBD3C54C for ; Fri, 18 Oct 2024 06:41:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 839966B009A; Fri, 18 Oct 2024 02:41:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E8306B0098; Fri, 18 Oct 2024 02:41:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 63B986B0099; Fri, 18 Oct 2024 02:41:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 3FA5F6B0095 for ; Fri, 18 Oct 2024 02:41:11 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 6171FC04D7 for ; Fri, 18 Oct 2024 06:40:58 +0000 (UTC) X-FDA: 82685775648.05.BA8243A Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf27.hostedemail.com (Postfix) with ESMTP id 3205140005 for ; Fri, 18 Oct 2024 06:40:58 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QZKRiaER; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.15 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729233550; a=rsa-sha256; cv=none; b=iyfTkLJU/Xw30pS7AbVpUKWp9UuJW4dbHTa0qisVzlCoUHGQTfyyHYd4Cx4PLa264F8j0z bAE9y+ZBv6/E9BXoufkeeGP4OAU/nL5G5SjRMdVHDKBkdj+2vjhvujA3sEXQtEhh0eS7u0 n3ChC9xcKZt5vVvm273WKw0FYHVB4VQ= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QZKRiaER; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.15 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=1729233550; 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=qifxFL7WKgPi3n67HmjuZ7i0DYtwFJEouMFmP8+eMD8=; b=bz2fWCeaUvkbrfpD/kk4yRkJ3qwgjiHulo0RPizDSLeRjq7QbOLjGMvWNVcPm5hYMbekHY LJUJUasGRNyLIdIA+5+pmuBCdYZAvsapLaG+vuKFAlFlawNofu5Q5nOEezi9aRVX5HKeVE QnQUMMz0yDXU7FRGxLdYw0SMcCQnEUo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729233669; x=1760769669; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EYVB88p4llixVMUciVyNq2hbHLQAzfv8NwXmpPaNhRE=; b=QZKRiaERvUjKnC9HV/Z+9VIOjzmR0YXr+Q8RULVj+yaKs5SkisqsxjRi LsXHcjcSQSj0ZM/HSU96vqg7RzbG9U/rG6oBgIy4G1xIF3UBAV/Ja+3sg xPYrsKm7J05tL5prYbhyx+MB1ryBcO/6GE43JUIYmZHjyyvCwENunTmFX v41dI4otXILyleGdJmVQ8P30cXNT8labu1Yhc5bzNy7hByouTpTnrMR4T 71FTh7dICGzSW38+TeQ60X9rt0NOcZa+S+qxc+kYzpH95iH/ciz8DwZ5T QGmYOaVtOSqYkazSR77MSZqEaALq/rr+cmSk9sk9tQIUUPWqHZ8Iz7TJg w==; X-CSE-ConnectionGUID: 1FT/YBJORnWS8XEIvRqQLw== X-CSE-MsgGUID: sVWdXnb6RuaFbtyvzgFQBQ== X-IronPort-AV: E=McAfee;i="6700,10204,11228"; a="28884861" X-IronPort-AV: E=Sophos;i="6.11,212,1725346800"; d="scan'208";a="28884861" 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:03 -0700 X-CSE-ConnectionGUID: lhuPBnn6Sp2tniOZwmYnLg== X-CSE-MsgGUID: RubBN4GeQEObYR11REdZpA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="83607509" Received: from jf5300-b11a338t.jf.intel.com ([10.242.51.6]) by orviesa003.jf.intel.com with ESMTP; 17 Oct 2024 23:41:03 -0700 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, 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 06/13] crypto: iaa - Disable iaa_verify_compress by default. Date: Thu, 17 Oct 2024 23:40:54 -0700 Message-Id: <20241018064101.336232-7-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 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 3205140005 X-Stat-Signature: kfm83dicous8mkfcgs1qpi9w7bxo9mod X-Rspam-User: X-HE-Tag: 1729233658-67841 X-HE-Meta: U2FsdGVkX19X9QhfIIRzuukC5KQgcTLMVhefAH2s6E7NXtzk/dvSdxCStp7anYZTcEX6NGmdruthAgMyryfizbTgrLvXCpNs6xR+8DJwnW5z98f2cnpjEtJOs7hs0mY12Y5MPseYIng1OLPpcMTJ1Lxwf5TLF08XUexGJ8n+PDYt2J8uBmmi2ru7LbYrBhq2+waxNDDeZQvr99aEw+aouaiu9NIamAAtH/lk+4LjVAL/xvc3hKjJqCIwrCxn07yLlhytwgPlpWEDYNbwOvkjfgJJysYcBorw3+DxzW0/OS7DdLJcRF0lUFiqpAujDWhd00fScF657fDz1VDzvJ2Bo/hYeSK1cqFpYc8zK0eE6HuitjV16TjSQ20dyDFTrD/xpB5hnpKCXIUfBhySRzteAKcsBf6Av1PD/iZiEcaXQukFvSzeyTZsFQosYWNl348U5Pz5QEQhVfV/jzx9a7SsqhXuN5e2Vk5ofpag4F7GgexoJg4R2eVkFxbfCYaEdeHSMmSAymJYvUj7f0bIMsRYRGt64fxICxYktoEVaVlThKcWPPV33qJKZBT4q/1yEzW5J07AFcbWTe+Vpg/HN33kX0X3aGRoXf1fYYy7+s3HMorOF5JEAxoKdOcR09F62XenszNUf1e0uDIINudaAghdX3/8r0i5PvJQjYbLefTzSKipwt7zfSGcoFy0at9TrPX38O1jT4C83FQoYCoe1Sx0bWpsLPyxuVEPapguD9gLQP2+AlfN1LBAKRZKjjrJYlpHZ2+gNyE7x/po7o5k38FS4pFFSRt3fdIqqWsPKvsEcMS5auY+4CqafuQLLyT4Pp4KD9gY+ljWAeqkuuDvKGNrTrzH/SCV16zGcbz/npCl9VVv50uD7aYuKUrUdy7Wh4D1ipvrIQvxkCVq2upJjXcUc6clJdcn3sxoH3OlLDJMShwoOuAmGlnlO/ceUYs/SnINrfyjYHrJmIGbvRnAasn 99cYwdae WYiELPr5ylMo4V9I5MQW4XYKUUs+IAozXNl62lkH92vboy4VVSPZRM6xh3msqtV06Z8EpCMadxc52pPpU85Yf6YUfbe2ZACfqf4ZW231i/vb5JcVYGCXFsBJbw3fpOlnpBtZwpyN8br32i1EwAxVyYsPIP+WPZztMV85b+3PvINnn44ivWLVP5JGPfdXpSNgkiDXJFhd417Cy7HbsLRHShAwU3hQnZ3ZFYNZyhKNWPCB3rvk= 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 6c262b1eb09d..8e6859c97970 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) {