From patchwork Thu Aug 22 19:13:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13776869 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 0F1FBC5321E for ; Sun, 25 Aug 2024 18:31:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 873088D002B; Sun, 25 Aug 2024 14:31:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 54FC38D0029; Sun, 25 Aug 2024 14:31:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 179A68D002A; Sun, 25 Aug 2024 14:31:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 903118D002B for ; Sun, 25 Aug 2024 14:31:49 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 38E2D1207F7 for ; Sun, 25 Aug 2024 18:31:49 +0000 (UTC) X-FDA: 82491611538.16.8B9D9A8 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf29.hostedemail.com (Postfix) with ESMTP id 7B786120013 for ; Sun, 25 Aug 2024 18:31:47 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=FrGKfggg; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of broonie@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724610638; a=rsa-sha256; cv=none; b=BGffpTDchqibpiC36P2TfODBbTWxXI2dML/+LCejyWO51a9VkR74ipI6d6JdNbzRRFrD0X ycggO/J1tlekgAiUrCLZDGB4DWDyc4M/7iMZ3pOsDMldcBufQf1gf6bzCONV4pmGjq5JcL cCbZF/skiO7UsZfm9k/9RkRJX0n7Eb8= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=FrGKfggg; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of broonie@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724610638; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=brLKthUFIpP0KWCCLeFdVVost5s8cP7DqtPefpuxJMM=; b=E1FIiud/z+KBUpBF11rHxLoHNurECPfORp+GAT/UFvGbsJ846NHhxKHYUiPfueJ/ihKlTg qxwcdkCaWS6IRqnPS+B60MfYA3N2YjhKX6EjRAD3Ovky8LDeqdZg504zBuxX0wBwmnEf59 o/brJg/dpZ7mvs0RbFVu6vU6GKU52w4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 0335AA4139C; Thu, 22 Aug 2024 19:15:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1D39C4AF15; Thu, 22 Aug 2024 19:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724354145; bh=nMY1SpzGoP8oeW0CCyhb2py/IKmlVcolBjcNTRB94bo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=FrGKfggg0RqKGEADj8upTbVV2vULhc0wuFAIt/NeFlYJCquWifB9+wRiU9uN/Or/e H8suP8YWjg/dQ8M3h82wzChv8r8hdh19M74U6a0k0kRGcR7uxf+ypA16/X+h7v9u8n maqMtaP/o014NIs2SJDABM97eTFoK9RpMD/OBME4cZ95KF26ktf8fMXLgaplVMchVb gYS+EYtPdGyr1Aj/sFeFKmW8qFGVmArgBP6Pi1Af0jJdyUJ2f/40dPlDo0i7GcMKag MrBxCTPRahoFCRbHSOKXDH/LlqZp90Gk6fqi9dSzEp7+vh5PUqnhzer+/YHkiXys9I K3mldEPj0y3gQ== From: Mark Brown Date: Thu, 22 Aug 2024 20:13:37 +0100 Subject: [PATCH 3/5] regmap: Use locking during kunit tests MIME-Version: 1.0 Message-Id: <20240822-b4-regmap-maple-nolock-v1-3-d5e6dbae3396@kernel.org> References: <20240822-b4-regmap-maple-nolock-v1-0-d5e6dbae3396@kernel.org> In-Reply-To: <20240822-b4-regmap-maple-nolock-v1-0-d5e6dbae3396@kernel.org> To: "Liam R. Howlett" Cc: Cristian Ciocaltea , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-37811 X-Developer-Signature: v=1; a=openpgp-sha256; l=809; i=broonie@kernel.org; h=from:subject:message-id; bh=nMY1SpzGoP8oeW0CCyhb2py/IKmlVcolBjcNTRB94bo=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBmx45Xnb0AO+klDAfjuZTanNIr2Sl1IK78oEHoi RHupP7GFl6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZseOVwAKCRAk1otyXVSH 0IlNB/4sujDfssqMAFFVfGMlBY+P/eYdMxzxMqDsvPLXwk3B833qyVPbfKLsdHOCTifxPs29bGU QJOKU4qA5e37G6FnS9t0lTuMjknafH4bdES+sj/FehZQyO7M728TP+F4M9Ata9jS/4RAseCJpSL KZzbTcbYrnSQ/6DVo8c0HoKOeQDMkK/HQajxOBKjMlBsJ0zTDbtG6GGXsKacR04pIrwMQ8f0566 nKG5TQK6lg7jATjGGcxrpcnjvxvaIBXEewIjWFpO92q2mkQODWLzXzFGRUyuZxflsWNSIYntiXs m/br6Oh07fOuV7sDTJx2hiAL/srD4GQfZIXl6MUFj5dhB/t3 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 7B786120013 X-Stat-Signature: q6wo1nbix4ieqz666k3kdjqiqa9baphz X-Rspam-User: X-HE-Tag: 1724610707-491322 X-HE-Meta: U2FsdGVkX19o+PeF7mYpu6jKyQRbdKlrC2nGqDvaBpB08KH73+IqmSQqM8AGzlsUJDl1r9uKTsqXn7+if31ed/6BhzyxB4FcASH4t+lgPTg9sRS/J1gc9HeeSTGY8jMTJq2iIJUK7N57q/GVO/yMFBDZ38ZKtrw/ug8sxKUpiuX0Pb2ol6vfPo0T0QvfJ5vykH2BsyXZGZdy1UeasFaI2tKyon+kMgE873gp6jbG4a5hJWygUL8RmQPmu4b/xE5hMLC6U3IcPFNUaRx/yvOrWFO1xMnaWrt4abpqWF/OEXTq+yvEpUP5Xrj8Wm2UBpABwO7C+PfgW0/bPHr31Eo1N/D7Rhav3ie8x5ROPcl0vIECJqFpGeFmUB3p5kjX+Ga5mnhJZNAc4geVFvsb6dtbCENEjsi0tSS1yOrJtAG2ZiRsC0G3yE5byp1J5lx+T2szs/UxRAEvG3YXZv5DtK2ai06KbNjXLY7raBz/b2nBiyqTF7uz/QQsJ5tOadM84deEZIcZkidFT7qq5wgILuITP/sGygTcOU/vElg2vsYaB70cDMxEqLP5Ls42wDITtgObCRuF5McHdfTgE5atc00CA4FRRVNMzQqgNekNkG+eqn+lxN9xH1U9k3TDeovXXmkOR5C2Kug66YzKS7kNounwo8bsI0l/f9njPFeYZLvItXMqj4tE5ho0pLryeW4J4rLrGxjod8x3Aq8V+4ye3ekE70Ge4nux88cG7puD0MFiClHelQAVtASBmGh89xHvwGIzcJsVTFlZ/CBTFIcLFHfEQSQzw3agEgTNEdRpbe3rOPDZMV4nKsYigU6kCT0CCx4UWWkbSyX6wJgxa1ej74ygc8+bp8u8UdrqYUU6PkqWC8im0yUROqa4W/21gM9yhZoiuPHiESxEX6hNV7wq9TJ6EOmz+vy55NGNQQO9VIjGzvm+sulDJBqitHKzg+GyVHG1tNstdp3mygD7KVresIT ZytzxuPw nTVfmQzZsDfPw92Sx5qcDroa+ycH4jgEAEzoEq2bZg4/SS0FNP8Cpj99XSQbYfXeyc23s2pOb83/KHdH4edjn5sXuVdbZoriaocIRskPgU41HlzVFaQDwyUuiVexb19WetkG2xGPh7aHsx8S/fblviVSg7s25J/QW5aVjOqHnSeGbLoUdTwdva26Z195C5azTgrkKYTs7qMfPf/En9W6CiNUdHgOhN9Y3eNhQJcdrX9lVNoptYkhFYBvTHF3kWLu3Rx9w1DVkLe4NzyV6Y/t5VfGTrieNApBAzfyZ 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: There is no reason to bypass the locking when running the kunit tests, leave it enabled as standard. Signed-off-by: Mark Brown --- drivers/base/regmap/regmap-kunit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/base/regmap/regmap-kunit.c b/drivers/base/regmap/regmap-kunit.c index d790c7df5cac..b80b447c87a2 100644 --- a/drivers/base/regmap/regmap-kunit.c +++ b/drivers/base/regmap/regmap-kunit.c @@ -151,8 +151,6 @@ static struct regmap *gen_regmap(struct kunit *test, struct reg_default *defaults; config->cache_type = param->cache; - config->disable_locking = config->cache_type == REGCACHE_RBTREE || - config->cache_type == REGCACHE_MAPLE; if (config->max_register == 0) { config->max_register = param->from_reg;