From patchwork Wed Jul 12 23:13:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 701857 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AEEFFEB64DA for ; Wed, 12 Jul 2023 23:16:58 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 83759846; Thu, 13 Jul 2023 01:16:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 83759846 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203816; bh=tuNPYAhEyAnDlSkVPmWiTnjeDyMPQdLYllR1mQgPQSw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=iLqcio5ozdAU9o5bUTYtvyCDQNI7NEHpcnjyIpWE1MmxVwff6QbK22YApzt1DOfq8 fZANqWVIHxMgBKFPr2+/CIoKKWTv1p4qSG9MvAcc1eT9cdXnxzKsr/ksN0Fm59LQaz EzL2ipD9OHFQbzNnM8Mu3sSRd1SDuJdLqBxvvWsc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7FE14F805A9; Thu, 13 Jul 2023 01:14:32 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id ED4E5F8058C; Thu, 13 Jul 2023 01:14:31 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A232DF80551; Thu, 13 Jul 2023 01:14:24 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1E771F80153 for ; Thu, 13 Jul 2023 01:14:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1E771F80153 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=tYqTP7vl Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2E7CF6198B; Wed, 12 Jul 2023 23:14:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 989B6C433CA; Wed, 12 Jul 2023 23:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203649; bh=tuNPYAhEyAnDlSkVPmWiTnjeDyMPQdLYllR1mQgPQSw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=tYqTP7vlgN93C5NQRewPJ6PRP0L45BpCpw5vbWHAc+XOTUEpxd799W8DQ5BgquKse YWcND+ra5rf+JooczK0Pl9eUqRF+Kg9N6Sb8TaRBEGM/sO0DBZDPWkW4uGGQoQhcbY 5odhtdRnt6WB/XZYa5pQVv2J+zhq2geMTDdozR3Kl2ePe+YpA46q9IaP2C/PxRSHUA wC45WUzVKRfVIYU0htyfaAOVMwT2Fe02s5SdKXRotIcNVZq0dQ+Mw/3IHSRAQLCSBL knImCqlY9LwTbeP0Nmb8pzVOjHw+OCVRVqBmDGhKfExJhoTn3MSXxuBbhhvBG5xsip bsWdhSVV4oOrQ== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:50 +0100 Subject: [PATCH 01/10] ASoC: ad1836: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-1-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1124; i=broonie@kernel.org; h=from:subject:message-id; bh=tuNPYAhEyAnDlSkVPmWiTnjeDyMPQdLYllR1mQgPQSw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO0HKgb+PiokGadY6+hoQmWVL29CfGYTKCqJ SmDd59p68qJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8ztAAKCRAk1otyXVSH 0FFBB/4ndindFBf5yEp/I95nIcivqePjK65zBv34UHzUK70RaetbkWTqRdU+nG68yEZ/8IjWATq kk1wT8gbd2765ACGA74xwtYQ3CfABB5vUIJwlMJTzve9dktPkLL/nwOKrD8QuxNGFVp+N37+4zp iRwjBovTdn3mGQ4kr/crXLjAaJYWLzYuXLXekzdPCEmIhHyGRNH7VmcXIBX1dCS23b9niE/7ejt W+q7QDunOCYMtHQsAdn93ZeleMQE1mA2mUqY1JBRNgVzctDsMhnZ1Kw+Mjr174ubrBFLpgPud/a btHWOJKTo1qGucsPKk3whNaA4ar/F15b5+8azKk2p8WMBdCk X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: N76JEYBOZ3IXTCSYWSDNDFOMO3TBGGVL X-Message-ID-Hash: N76JEYBOZ3IXTCSYWSDNDFOMO3TBGGVL X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the ad1836 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/ad1836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index 2c64df96b5ce..949077108bef 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c @@ -358,7 +358,7 @@ static const struct regmap_config ad1836_regmap_config = { .max_register = AD1836_ADC_CTRL3, .reg_defaults = ad1836_reg_defaults, .num_reg_defaults = ARRAY_SIZE(ad1836_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int ad1836_spi_probe(struct spi_device *spi) From patchwork Wed Jul 12 23:13:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702288 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25F43EB64DA for ; Wed, 12 Jul 2023 23:16:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 58CC27F8; Thu, 13 Jul 2023 01:15:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 58CC27F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203765; bh=+Z6ywkEJvnphopT/QGsfd/IJAkbLCsUDhcJqjaaKGG4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LbPeYEtENeSvl+LsxkeR3Wb/n15XUDFyt1sWrexv33ijiyUVeLUM740FQXbAmJx1a wX35qoam7ON7RuEUYFNSS+tJS4gm0Ito1HUWrhRnvCyXAOl8OlLDFDK4HpbmGIEEbf jotWkU6ZFcfODhwltuI2TMSzmmg311r4AT3hhP/4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id CC871F8055B; Thu, 13 Jul 2023 01:14:25 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D091BF8055B; Thu, 13 Jul 2023 01:14:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2069AF8027B; Thu, 13 Jul 2023 01:14:19 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E2360F80236 for ; Thu, 13 Jul 2023 01:14:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E2360F80236 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Li3s5/6L Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3A38C6198C; Wed, 12 Jul 2023 23:14:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12058C433C8; Wed, 12 Jul 2023 23:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203651; bh=+Z6ywkEJvnphopT/QGsfd/IJAkbLCsUDhcJqjaaKGG4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Li3s5/6LQTS2OZN0nGWiN4kCc7iwbuY8owtzce2OJvfe5xH+IfiGQ0WiNbnnGiQO2 ylHkjwE9Te/6a0HE3r0qUvPbEbMegOFzBakihXlF+59JtKda7T8k1nH+eI+TowxenA yCfoc+bRCigHhtoXaTNvmswUXJ4JE06buj3OH3XWH9I8djXn5JQOOctzDaG8r9WQHI Gz3wYDX3VM4QizMoYmWKDdy7CX3Z/Va0zDyyBs3epObOtfdOEsV474bXpSLChmmc3X wiTGLuAOAANjP+ssUCkx/miMF0kSxqi4rPhI3vE+jBOqz7PY2F42HNr+mADsxKpcth t7L9ovHHjw22g== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:51 +0100 Subject: [PATCH 02/10] ASoC: ad1980: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-2-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1083; i=broonie@kernel.org; h=from:subject:message-id; bh=+Z6ywkEJvnphopT/QGsfd/IJAkbLCsUDhcJqjaaKGG4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO1WTlQ0/4e8YXAZI6/9T6m8yzgdXs7P47mf vMa4rv1jZKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8ztQAKCRAk1otyXVSH 0G8SB/9ENzzCSc2z19fXPMWn4wVI/GzE+Ukwx4isxQcyPEBdZ49FvLl+10ETpw+NHz8833i5lIV 6418+YUqJEv0GDbmI0qeUhs7VuFvOn+KL9GmZpgMAfT+lH6OgCsTz/WQPj2zJ3s3JBeZDB3VYXY oedtQOn0B14Xzgcw6/mmHrdNsuZ7dPGynsoq9gabOGtV3VSAtoutPTVeVV1FEVeWT8bnheFl4wW Gq6jpxLwqslgjacbx1LELl4KtfLyjCrdg9eQr8/+sPyY0FEwkkk64vvJvKS9Vd6GtFF4OtIrA5o 7YgIzvBowqvBqq3Au9nif9NjPKqfua14H8XyWZPaXHbkVsSJ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: YVLLRS4UMDGUAGDARBGWBBDMHJQVQ3BN X-Message-ID-Hash: YVLLRS4UMDGUAGDARBGWBBDMHJQVQ3BN X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the ad1980 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/ad1980.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c index 5e777d7fd5d9..3c1ae13c1aae 100644 --- a/sound/soc/codecs/ad1980.c +++ b/sound/soc/codecs/ad1980.c @@ -92,7 +92,7 @@ static const struct regmap_config ad1980_regmap_config = { .reg_stride = 2, .val_bits = 16, .max_register = 0x7e, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = regmap_ac97_default_volatile, .readable_reg = ad1980_readable_reg, From patchwork Wed Jul 12 23:13:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702287 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DBE6EB64DA for ; Wed, 12 Jul 2023 23:16:35 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B2B72820; Thu, 13 Jul 2023 01:15:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B2B72820 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203792; bh=kN7Q6TJPWhd01UrZwm4+vTZv1EOlCbd/ekAQgk9Q93c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=uMGEkBonb2Va0dVIIvquisfOaYdk6+BxJPSZjiFGwDzoX+wtKpgHGgES6Iey4ia9l 0Y9Kvl1i07IJ/3oSoiT2OCcKH0n+n2mot4attJVntxxnLQHnUQHNR9JyLO1mL9JOJe QTKb7AdEGnDtCseaO5mYsGS82P74weptvYLZy1QA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 98A9FF8057A; Thu, 13 Jul 2023 01:14:30 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id E8D2EF8057A; Thu, 13 Jul 2023 01:14:29 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D68BAF80290; Thu, 13 Jul 2023 01:14:22 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 44236F80249 for ; Thu, 13 Jul 2023 01:14:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 44236F80249 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=rWQEJEiv Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3411F619A0; Wed, 12 Jul 2023 23:14:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36783C433C7; Wed, 12 Jul 2023 23:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203654; bh=kN7Q6TJPWhd01UrZwm4+vTZv1EOlCbd/ekAQgk9Q93c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rWQEJEivsSk6CTDFC7Z+KHcYysw+oLo8b103kbDfOS9WcPySkiwbDiN5f5KSj0pGE tdzLGg+Hwqyx/WwF7ZjGq+8v9qLfWDs3TXl3u9V1r5DF4WsNIc48YvNKDgf0lanl3R s/gWISWZC3vDTUO7upY5zs72+XsxHn1mclnUoOj4beV5WjebF7luIyBrHkjWlP6O5B W4xB8kTyhIx01q33wsGzcIY24FdvMoqnHDQpP6Vp6cUQaJ98Iq/kUUGTDfu5H2WgtV wDs87BOwg0oQ9vLk6SuHMX8eT6bxcGhd3aXes0nPtgp0HYuzT4KLgxgamNBOLRuEtp MZx8u3pPAgF6w== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:52 +0100 Subject: [PATCH 03/10] ASoC: adau1372: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-3-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1138; i=broonie@kernel.org; h=from:subject:message-id; bh=kN7Q6TJPWhd01UrZwm4+vTZv1EOlCbd/ekAQgk9Q93c=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO1KqolmtERSVYJzcgTWk3E6LU4Zkx2yQfGc WUADF6r8HGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8ztQAKCRAk1otyXVSH 0JyJB/4z9Pv2qfbbzQqA5kCF0sJCwwmsIcMbHzjeKZ1HIfSTwVaxROgcEMiob7c464mqIrfC/uM 2LXePFR2T5h8UJzFVXChi6EWBx6vCvPOCm219+i7HLqwrTvOb7LXtWp7ChTL3aJ2ijTlxvKIUCo 0qKi8ZWy1h+o6IHy1SoEFm29XAft+RG+2g+ehjnkd+vAo76QIR54dCxnXayQOsppg6NWRnb3/Lr rO5jGLIbTQvdVewdKrxrVTwd9skTPdOR5myBYe8M9wrA5Xdadw+8TrxLZd96LX14BXft6TDReci 1zbQ477M9BrNDbtRKx+31sozssDTXxq3mWlaZI7VRHlIA+Kd X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: GIJ72H52GZ3AKVS7EDUAVMSTGEDBSMMT X-Message-ID-Hash: GIJ72H52GZ3AKVS7EDUAVMSTGEDBSMMT X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adau1382 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adau1372.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1372.c b/sound/soc/codecs/adau1372.c index d9bde7eb043a..98380a7ce64d 100644 --- a/sound/soc/codecs/adau1372.c +++ b/sound/soc/codecs/adau1372.c @@ -1056,7 +1056,7 @@ const struct regmap_config adau1372_regmap_config = { .reg_defaults = adau1372_reg_defaults, .num_reg_defaults = ARRAY_SIZE(adau1372_reg_defaults), .volatile_reg = adau1372_volatile_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_GPL(adau1372_regmap_config); From patchwork Wed Jul 12 23:13:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 701858 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 230A4C001B0 for ; Wed, 12 Jul 2023 23:16:11 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 21D2284D; Thu, 13 Jul 2023 01:15:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 21D2284D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203768; bh=jH0tc4h0aO75yyuZ8Wux9PHPeYRfDjydLkgn8FKnic8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=YbBkhEepXmIKV+gt52tyGNba1FpL9fwOLyC8WQfuS6dudgJB78wWdNhbqPH5VjVnF TGeNZM+g6mZalIdCzEgJ8KgMtHrjxtbA6CnV5mWjIQYzi7e++wdfqIFiNiPePlswDp yQQteViAfTM7LMK2bM4hGdg/kkhPFxvDxd2YA5po= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D53C0F8055C; Thu, 13 Jul 2023 01:14:27 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 11E11F80567; Thu, 13 Jul 2023 01:14:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 27D2CF800E4; Thu, 13 Jul 2023 01:14:21 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 425DBF800E4 for ; Thu, 13 Jul 2023 01:14:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 425DBF800E4 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=ipixi9oz Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BF17B61995; Wed, 12 Jul 2023 23:14:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D612C433C9; Wed, 12 Jul 2023 23:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203656; bh=jH0tc4h0aO75yyuZ8Wux9PHPeYRfDjydLkgn8FKnic8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ipixi9oz240Fk6hh6FSP9GhovrfKKEzIsZ3oLPW0q4dhC5+issncyC24vCLZE8Kg/ de4TSRZMX3Uqdzdm0x2rs/XDnDO49/TdNIJ/HGweFJJrq6fvH086rAmXjewhIVTaRc xm2KWPlKBf4pTa3sLxRwDjJG8G36WAREu3DQ2aXqoka2GCWPX/59B2VBSLWXJQP8AB hJL880LY3uoLYMF61ZaNe7G/Ho7fYy31SRSyhW1LLFzNu7dnXCbOK2s3+9xzSayDxU 5y/UQNyG4kB5Q9ljKwX+pfh97nP/fyndOJw99CNy+96uMzhaX2RTwxOitDLogrV+2m +6TxkVYb7jssw== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:53 +0100 Subject: [PATCH 04/10] ASoC: adau1373: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-4-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1140; i=broonie@kernel.org; h=from:subject:message-id; bh=jH0tc4h0aO75yyuZ8Wux9PHPeYRfDjydLkgn8FKnic8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO2QeAN1qZjeKDjeWZf5jUfNPUw5eTH1mUr3 kD7sEN0T62JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8ztgAKCRAk1otyXVSH 0H1QB/4iY6SjVxxeAgJ3i31IWjv8dUuMUh56Plmnd8L/Gjj4DPuwDECXfBrKDCEByMAFh3lsyFe 5uYXMAEeiHZTmYX8Nb/CeGSaWRwBwyYanOMW8GXNjF9kBwsWcm7Iggm3D9SzT3bhPyJqygq4TvJ yJGQW9coieAh/qrSrw9Fe2r0ik9MyyR3Sz35lVQkxxReGbtomCRaer5JzqIAQopo8tuCX8MtdJG k5B9Z1n/bANKmzw/XpTYlmkSnjpZKXfFiJtghBO3nvLczllwZ0uuxGmHM6HVCNDr+D7MREqifdd Z08quqPn7At4SouY/9OpmmJumf3ZiwoXgHfNpcbm8U6B4UQc X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: ICULPMOKOMJOLHNIDZFY43EVNC5T7NCM X-Message-ID-Hash: ICULPMOKOMJOLHNIDZFY43EVNC5T7NCM X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adau1373 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adau1373.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c index c5b087b8fffc..b0ab0a69b207 100644 --- a/sound/soc/codecs/adau1373.c +++ b/sound/soc/codecs/adau1373.c @@ -1451,7 +1451,7 @@ static const struct regmap_config adau1373_regmap_config = { .volatile_reg = adau1373_register_volatile, .max_register = ADAU1373_SOFT_RESET, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = adau1373_reg_defaults, .num_reg_defaults = ARRAY_SIZE(adau1373_reg_defaults), }; From patchwork Wed Jul 12 23:13:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702286 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0498EB64DD for ; Wed, 12 Jul 2023 23:17:03 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9589F950; Thu, 13 Jul 2023 01:16:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9589F950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203821; bh=ZyuiWzGM9QePvtgOw/zkkwTBfsCaKneK7VJV37MCYHg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=CWg3Jcgh3Sz23/vfruwl7DyqSRzFIOzjtJp19Io0GdAj8c4frmZVLpa5DQGQPiuyI py7dqitG/1H45HDYUakB5t3SNeV+jNvZPvHUXOlThOf0F9Xcmov1gsGqxiGW9ykSmF UOMNrX3E13W9AZUFDW3xtAOg7GH6/eT7+nZH/e4Y= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 787A1F805B4; Thu, 13 Jul 2023 01:14:35 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id DE26BF805AC; Thu, 13 Jul 2023 01:14:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 24368F80571; Thu, 13 Jul 2023 01:14:27 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 21219F8027B for ; Thu, 13 Jul 2023 01:14:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 21219F8027B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=U/hJm4vm Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DBA7761947; Wed, 12 Jul 2023 23:14:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B209BC433CA; Wed, 12 Jul 2023 23:14:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203658; bh=ZyuiWzGM9QePvtgOw/zkkwTBfsCaKneK7VJV37MCYHg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=U/hJm4vmH6x6R213PvNvlm1FI6AKH8VhqjVRn0o9SitLpFuV/rLS+ZDTFTArLAmSl 3z6v4ajrh3sPIa2LekFrjsc+mkMGjIbVSptjKpdGg2Z/i9Gowhi/JNJWxXo3Ylys6R o3Cqz9/Gicj2q8Uzg4yT5Q6iFqgHiCWRS4z04qVk2Pf7s4Mg0f6zRToTTKzonBJOIS gC7fxhYzhOLHsxb95dcqB4y8tBpZxagiqnE3tH+zk0H6zkP+dAqi/Bo7gPs8pyxhRl BO2KXPL1mFe4fRoNOHdsY32OXSAJBEW3FIC+eD2XY7xt6RKhklNKGAFgFnzlMfQ3yt T8xhB8GXRdnhw== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:54 +0100 Subject: [PATCH 05/10] ASoC: adau1701: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-5-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1136; i=broonie@kernel.org; h=from:subject:message-id; bh=ZyuiWzGM9QePvtgOw/zkkwTBfsCaKneK7VJV37MCYHg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO3/uZY5QNBmGcSn4rf2mODTsNtqLX6JrRrs XpWfRfmB0SJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8ztwAKCRAk1otyXVSH 0PteB/4gampxLjwqYH3skRZTqilbrZu9SlPoLfZrJvrSvoOcgBXT/I1vrB0Pva3LEcjBluSTdS+ HIbOnbrJ/w8ecu2gssUQ1Yyiw1OKgcQfh7m3kt0+FRe792/K3KGO7jwLi1cnbA7BJYIf2kz1WNL Jq9p1Qv3mw8XmMMWwaWhY60AXGa/QtdgA/F4VgUdbTLU/S2wVHVbyhH0ViSxy4dzg4oxCKYa4zT OmWXDjHM8tlHlP62XMoWFyRmkQbWm1VLf+hcbjcM79hU/r8uMPMT9rxMDaXXIb23ZwExiLw17EG xrZfo3TlyqaApEnSJnS1DPy3+PRVPAIiAnu6uIIX3CGcpYzP X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: ZPB5DAX5UXJRC5ZRTKA4VCR2PWRCSWTG X-Message-ID-Hash: ZPB5DAX5UXJRC5ZRTKA4VCR2PWRCSWTG X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adau1701 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adau1701.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c index 8c8de3b3c901..94831aad7ac6 100644 --- a/sound/soc/codecs/adau1701.c +++ b/sound/soc/codecs/adau1701.c @@ -778,7 +778,7 @@ static const struct regmap_config adau1701_regmap = { .reg_bits = 16, .val_bits = 32, .max_register = ADAU1701_MAX_REGISTER, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = adau1701_volatile_reg, .reg_write = adau1701_reg_write, .reg_read = adau1701_reg_read, From patchwork Wed Jul 12 23:13:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 701856 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 741B6EB64DA for ; Wed, 12 Jul 2023 23:17:21 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6D448843; Thu, 13 Jul 2023 01:16:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6D448843 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203839; bh=pfxaFdGw5kNjlwfEfF7+1VfvRMBqHwURM+HheyjiR08=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Qk6YoEBZHlbMrcLBjYTjRJj6UtvxNlYwW/XqxlZn5pRLfi8jJiVG4yzzJ7vtz2JLw M0UxaEJlFEbO/Sfw7zHukRAY+whallCIqCOOrX/4M5S3yY7NicGLKlhW/MZGmGPIR2 JiR6W84KpOcZQFCDWWZ0xDR43MMzz2/95wJJvdAw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 90F0AF805C0; Thu, 13 Jul 2023 01:14:39 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id CD662F805BD; Thu, 13 Jul 2023 01:14:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 35972F8057C; Thu, 13 Jul 2023 01:14:28 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 86CEDF80249 for ; Thu, 13 Jul 2023 01:14:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 86CEDF80249 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=QUoYOgiW Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3BCA56198B; Wed, 12 Jul 2023 23:14:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6914C433C7; Wed, 12 Jul 2023 23:14:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203660; bh=pfxaFdGw5kNjlwfEfF7+1VfvRMBqHwURM+HheyjiR08=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QUoYOgiWK8KiXpYWQp+HvRyyhd7fxNjNOfzjLAlQiKpA+/QskSKMDzIJTZm1nZ+6p iHMIY6m4E1n29pr9ugX2s10UGKUxXPu3U9r+ScZFaoK0DSUegvbJnyf14WMBsYWoIE SDFMBrAMqffaKYCCn0i5f8TKzew1/+tNDf7ZVuldOOIB7alM2L6/M8lbSTQQCGYAOc C0UAaBQfJOQFOWitF2tecWRd1dKCM9PB8fqkqWOMQ/3nIcwtYbtyQMw665X/nVPpF2 iT2R5slNOnWiaehat2oskk3Ri6StMAUXeEaAOSQX1Dit3fSzJm3wU5Q1bI/tb7bPc2 /Sq6+uL1eSDQw== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:55 +0100 Subject: [PATCH 06/10] ASoC: adau1761: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-6-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1132; i=broonie@kernel.org; h=from:subject:message-id; bh=pfxaFdGw5kNjlwfEfF7+1VfvRMBqHwURM+HheyjiR08=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO4BNyVqwXtReshaJmBftJFtBbR9NOfNcpeR 4vYO3hXeEKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8zuAAKCRAk1otyXVSH 0I/xB/490htK63/MWX1NZbt8bo5AAKXuVyzOl+bb1pfs9w0q5P+IeEWTCKEWew7m0dgR32ogwOU 7oZdMQ038lqlgHbqtvEeAFZBWqLiTirpv9taA0P7MqHAxROWsfXeNe0lzeFz4NRPXPXrqrt6dcw gTmfbSNE+GlW0+2FSzcMCcbAVKXA04niXvSysZw2MkpUEuHy5JJUjnZGK+5zC+A7rhKQ152oXXF BjYc+jJ56Bhb5f2P0d3MYg4FCf9ZDprzz1gVlrcfmvSfOYyrnVzaTuPPvpgfCs39albNbPmbpPh Z8BUC/gf82zhPMnnyBKbo+yafJhv+srHb49uweGo+i5dag8c X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: IDHA6HMMVIJQG53QDZ6EORYX34KX2AQ2 X-Message-ID-Hash: IDHA6HMMVIJQG53QDZ6EORYX34KX2AQ2 X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adau1761 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adau1761.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1761.c b/sound/soc/codecs/adau1761.c index 3ccc7acac205..1f09ea385f8a 100644 --- a/sound/soc/codecs/adau1761.c +++ b/sound/soc/codecs/adau1761.c @@ -1014,7 +1014,7 @@ const struct regmap_config adau1761_regmap_config = { .readable_reg = adau1761_readable_register, .volatile_reg = adau17x1_volatile_register, .precious_reg = adau17x1_precious_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_GPL(adau1761_regmap_config); From patchwork Wed Jul 12 23:13:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702285 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58CEEEB64DA for ; Wed, 12 Jul 2023 23:17:36 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 61305A4B; Thu, 13 Jul 2023 01:16:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 61305A4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203854; bh=maeyk8niWnAULCMV0FtXrXZznstBI6OwjQVjqc4uEYk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=tR8uF9RlBkEQwyNtF5S+xNAPrPJ5JSUCMl7HHqSOHCuaL45YXOjaHiVOVHDFp/8CX WsPL8LHmdBXQwwuUFWVYPNoB2gup46SL6JCs5aEPzdiAliQP+AN2swgLEtxK5tEyiL ywYoMYhdSJikmrM8Si4/+S8W+vgeghY26CEILSuY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 01508F805CB; Thu, 13 Jul 2023 01:14:41 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A49D8F805CB; Thu, 13 Jul 2023 01:14:41 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6F10AF8057C; Thu, 13 Jul 2023 01:14:29 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B1580F80568 for ; Thu, 13 Jul 2023 01:14:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B1580F80568 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=mfPSQfri Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9477B61987; Wed, 12 Jul 2023 23:14:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A5C4C433C8; Wed, 12 Jul 2023 23:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203663; bh=maeyk8niWnAULCMV0FtXrXZznstBI6OwjQVjqc4uEYk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mfPSQfriX5rZDjSOqd+inssI9AYvJXrlboAL80eucCDW32Hw4Q2YeY2Wcr7svsb4r bKrnM/X0a0ftZBpLH0KefzpkGqmGlXGhD2TDpcYWeGjrfn5CG3U4gn47bK6ZImXqqm /ZVIy5yGbw57oKhDRBYjLXQO0I8nYvejoWDgK0hCzLnw30iPcCr0v82g4q+7nm89dX BTQPU3ZilWPR7OUqmA1xDcEI9eFZ6BRpuMHnQ27vHRvkoo8l6GeDybkRuHWaTsbu7a uP1QgNwFaWvrlJmJ8tLXd5WRbT6d0BMUZOInmTQTu9MZvlsNuSDP+cV2TnEadceWHv YKQnagZVbPrHQ== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:56 +0100 Subject: [PATCH 07/10] ASoC: adau1781: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-7-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1135; i=broonie@kernel.org; h=from:subject:message-id; bh=maeyk8niWnAULCMV0FtXrXZznstBI6OwjQVjqc4uEYk=; b=owGbwMvMwMWocq27KDak/QLjabUkhpT1xjuapwooPA3U2swTbvvmtOAWvpuVmaKHthQIHObvq dzEY9HayWjMwsDIxSArpsiy9lnGqvRwia3zH81/BTOIlQlkCgMXpwBMpPEOB0Ojd8hD7bwc0Sm9 yvXmnZ8YXPpqTTwT/A9ZrncUYxbMudi3+tGzL8lMj0OnX0iKnLQh+b6OaNj32zdPrQheqf7+zGT HvdcETrtXCPQyzdka27+Dyay41vu9bFvy3sDcIr3wb2s2OnmsDZ2wre/cpvIFHEwlV+6F5m82V2 hKunEnrpnx9FKePPutnxKnfPD7vsLnx/kcXZa/dzN6Lvd+TMj3S304X9v63f5ws70sm8yOBIvuO rJwzcrHvDcSJgp7+bUu6q538efjbtTU1nb/cKRgV8eK+Q2N7yt4VRb5uD4qucxinSBdUtyt6C7p 1SAXGF/6dXdFdI/k4xCtUA3NuFd+javfNVoJRhfr6lYBAA== X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 4Q5TEX6SFPUUHVD4EN7B7R4A56IT6U3J X-Message-ID-Hash: 4Q5TEX6SFPUUHVD4EN7B7R4A56IT6U3J X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adau1781 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adau1781.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1781.c b/sound/soc/codecs/adau1781.c index ff6be24863bf..faad2f9f8dd2 100644 --- a/sound/soc/codecs/adau1781.c +++ b/sound/soc/codecs/adau1781.c @@ -472,7 +472,7 @@ const struct regmap_config adau1781_regmap_config = { .readable_reg = adau1781_readable_register, .volatile_reg = adau17x1_volatile_register, .precious_reg = adau17x1_precious_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_GPL(adau1781_regmap_config); From patchwork Wed Jul 12 23:13:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 701855 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DA85EB64DA for ; Wed, 12 Jul 2023 23:17:54 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 765CA857; Thu, 13 Jul 2023 01:17:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 765CA857 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203872; bh=oxrEvVnY++rXrfX/tkK8XuL15XWkguq7C7FYOFUDMLQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rBvAXd49E0wxgEwUBjR2SlodiDNQ6+vtrJp/Ot794Mv7tbeyHnJIHgWsrWTOHLSFa zNpq74qcdraTq8Q/Ev7GoXc8QZY2oGKnA8XeyoVlK1dmdhuOzGWm+fsOL6l9sGdKUP BNUMADpR8HS+4W9MF3qaFDAP0hZfUks9R5P5g4XY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 31AD8F805D6; Thu, 13 Jul 2023 01:14:44 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 94825F805D6; Thu, 13 Jul 2023 01:14:43 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 624B2F8058C; Thu, 13 Jul 2023 01:14:31 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0ECE3F80578 for ; Thu, 13 Jul 2023 01:14:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0ECE3F80578 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Mcyq+ZCR Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ED3EC61999; Wed, 12 Jul 2023 23:14:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92577C433C9; Wed, 12 Jul 2023 23:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203665; bh=oxrEvVnY++rXrfX/tkK8XuL15XWkguq7C7FYOFUDMLQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Mcyq+ZCRUjSKsqH+2gWGYL+ZJ8fNk95+9ymWUC4hYY6Ep2iLEwdz3hEpwzwwWR3t5 r9IQ5NrVS/6oxvPgAR2Ntr9cAIY7l3qmyFvvUxcgeKaqSxpdcH+QA0DU/74Wysl4Rr 1wRyeZ6rAZTMBoXigetH8R0Wzc9gVGoI99wq1UbzeZf+J+BaloTCXmAiiNK2jX7Y76 x+nZuQEq5kBaO3XqYkKqJmUya5vy85EB8y/kTR4GnuCyjee0fx7tFDq0vQAhXMzZvu HyvkH65SvWV9/wedjNGXFymUVKf4+YKeJZYQhMoZiDSLEXUEsSyMtzRInEE7CLIwnG UdGwGMVtDX9xA== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:57 +0100 Subject: [PATCH 08/10] ASoC: adau1977: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-8-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1135; i=broonie@kernel.org; h=from:subject:message-id; bh=oxrEvVnY++rXrfX/tkK8XuL15XWkguq7C7FYOFUDMLQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO5wAaemkmcKRuJko7ypNDdv7Hm9ulfRM27R 4weqRcde92JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8zuQAKCRAk1otyXVSH 0F50B/930U/ZNcmlBaFuT7GeFbHWP2yrfdXTOGRjnlRR/KII+Kov5kpoNCaaLewy8WjkwQSnVJ6 aufN7XQNiUOXVSFrSMwmLBi3wkSiIm6CmTFGab1xy33jCnWPZd0kdkAhrc7DcMK0bcbR5fuAkYz J8NyKATqmqSkx9DK1ZtVmZIYg3YTD99tpMPo4P8pbZSxN1dWRwJx32hc175NuEzQ/ObmyWn/3CL dW3ai6+mGjj2LjFmm/fWp/bJbZsDVg4ZIY8chV8we/2xkXhJ4nXHUi/uIgCeGx2/5ODZS8Xgcdx 6OfRCnxs1se8zKTaQ43Blj+JT6QtasZlzMSQIKqyobDt5USz X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: UMRVNT5SR5FJOKTOL53KPSWPXJHVJW2F X-Message-ID-Hash: UMRVNT5SR5FJOKTOL53KPSWPXJHVJW2F X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adau1977 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adau1977.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c index 7a9672f94fc6..ae59efb38f26 100644 --- a/sound/soc/codecs/adau1977.c +++ b/sound/soc/codecs/adau1977.c @@ -991,7 +991,7 @@ const struct regmap_config adau1977_regmap_config = { .max_register = ADAU1977_REG_DC_HPF_CAL, .volatile_reg = adau1977_register_volatile, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = adau1977_reg_defaults, .num_reg_defaults = ARRAY_SIZE(adau1977_reg_defaults), }; From patchwork Wed Jul 12 23:13:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702284 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66F7DEB64DA for ; Wed, 12 Jul 2023 23:18:12 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3A56484D; Thu, 13 Jul 2023 01:17:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3A56484D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203890; bh=INOLWtSToHrSdR0d68H0vHbV+e4cnTe0UnhEvs1cRNU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=TdGtZZ/SU/H1Xtsj7KXS5t+BetsiOV85Vsie6MyYco987IWT/PrcgcdpNvBd305iZ ACKcqPx+aINqTIEwOu0096RPOUlLhdSiGnHDkbZXq0jRYT07dsAShYF5B6TS+S0fLx DLXFvSXP/Ub/OS4W6UKeBs6IoAB4QehYpjaplT1k= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6CB55F805E9; Thu, 13 Jul 2023 01:14:46 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 9ACB1F805E5; Thu, 13 Jul 2023 01:14:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F22D2F805AD; Thu, 13 Jul 2023 01:14:32 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 63D88F8057D for ; Thu, 13 Jul 2023 01:14:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 63D88F8057D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=S7i3nAbT Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 550136199A; Wed, 12 Jul 2023 23:14:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8C6FC433C7; Wed, 12 Jul 2023 23:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203667; bh=INOLWtSToHrSdR0d68H0vHbV+e4cnTe0UnhEvs1cRNU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=S7i3nAbTaS0qxqlBrDX5gCCLhiSp8jTbSmApHwNN/xwHzWe5hABUzfKm8/rQWwXWD Dzm//gELj3so8KsHseg1HT8eUTrp1EZVso3gUtW/+xZAANcRwToRfmDVIlALfiImbx N5ffJcN4taSO1MlLHg0cGHuCgH2wlZ9K1B25ATyqPQjIbZnUPGx33X8em3OziMFpPK DjeYHQRp5XN+76KP7tlfN+9mWNK4NPZhPh3Uj3Al+a532xaJ8H02B2r1ubFkG9b4lA 9obu9ykGtbXELnH9qdNqArESWEMlrIhUfSTWhF49xcZ5GK/XrzWL2X23qXHm2IpU5Y cGMMNmR8B50Xw== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:58 +0100 Subject: [PATCH 09/10] ASoC: adau7118: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-9-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1161; i=broonie@kernel.org; h=from:subject:message-id; bh=INOLWtSToHrSdR0d68H0vHbV+e4cnTe0UnhEvs1cRNU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO66e+ErUPMUubnMQp3MGfOu2lKyGKd2EY/A Q/AMlEP21OJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8zugAKCRAk1otyXVSH 0DVWB/4y/0GTcVUUSDakdRgl0oIJjsSeWvfzUvmf8Rho6SlJfeOFBd5Cl2ZRrbp21QN1MLIW04f FpKdKyFXz3xGII0L0kHRQRSHAesb6Web6ff+tG9Aobe2QVtgF1da3/3OIjlM4GeFl9rJsPDFSYP Pxyi7BileEbU8Y9Wgp6s9IK0yZVRRsBQhO5dLBxPmxqjEgt5GYEakDU01/TbSSs2x1I4SobnTry znzp3biG6Drsfg06F+xZ3V7NN+BK/MXp0wBLWuhI5AAw0aGz3t0OMziJaG6ymd0LdHLEtH28mka Ho0q+uA0AZlzp11SxdN73VcIlQwsr65QnUEQxxYEomA54+HR X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: XUBMYNCBGMT5UOAQJ5MIRLCL2V3NXK6Z X-Message-ID-Hash: XUBMYNCBGMT5UOAQJ5MIRLCL2V3NXK6Z X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adau7118 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adau7118-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau7118-i2c.c b/sound/soc/codecs/adau7118-i2c.c index 73f181f7757e..b302b28eca7c 100644 --- a/sound/soc/codecs/adau7118-i2c.c +++ b/sound/soc/codecs/adau7118-i2c.c @@ -43,7 +43,7 @@ static const struct regmap_config adau7118_regmap_config = { .val_bits = 8, .reg_defaults = adau7118_reg_defaults, .num_reg_defaults = ARRAY_SIZE(adau7118_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .max_register = ADAU7118_REG_RESET, .volatile_reg = adau7118_volatile, }; From patchwork Wed Jul 12 23:13:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 701854 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A32EEB64DA for ; Wed, 12 Jul 2023 23:18:22 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5F16F86E; Thu, 13 Jul 2023 01:17:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5F16F86E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689203900; bh=vDBcrA6q2CExjQvp42DqVJKk0OGqX6PpLRTDdxJCbwM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Zc6h3gWviU/kowM7Vpj3Kl/sbIhAdS0+mDg4lCp6EAm9ds5om4ZisGAmFYkN2CCqH sniw15iEJ+cULgNNOVwOjStJ/YRYVFNrJp0snnYWSqsHX5hTj4Oa5BTNvwhDrOGFvf 28Dvy5ggWqOah1uq7EYfFumfQFUAoEvKG0wovrwk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D0A0DF805E2; Thu, 13 Jul 2023 01:14:49 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 44E48F805E2; Thu, 13 Jul 2023 01:14:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 15D81F805AC; Thu, 13 Jul 2023 01:14:34 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id AB6B7F805AB for ; Thu, 13 Jul 2023 01:14:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AB6B7F805AB Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=ARdopTNA Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 93D676198A; Wed, 12 Jul 2023 23:14:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A0EEC433CA; Wed, 12 Jul 2023 23:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689203670; bh=vDBcrA6q2CExjQvp42DqVJKk0OGqX6PpLRTDdxJCbwM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ARdopTNAcWM/NNIJZ3LTT96ygwdFwKVyBVsmobVzrYZwFsSveItR3E7zCJoqi0tgD VatPjLUt0kLuHlmczLT+G6WA6xdDCl7Fwl4NHRRtOa/lE3xN0u3po5uVfipmFHLops JpEoAlMBY2pHTcsNIlCUF7HwqRwGkJN2B0NQ2Vckmt0k/nt8JEhzl9rQuasN0sniZx v9dFA00LI78DtIVwZVZCRF9+dG4GCuryr/M74Y5hFjBswxQDUdQOYKff8LwPzHKn3n p30qI9elKTcsWibVyPR0pPs1mMAcOIE2OxN3j29QmKT2ekpIaWQjcdd3zLAUBgfGOy 70Te4YiAoiIYA== From: Mark Brown Date: Thu, 13 Jul 2023 00:13:59 +0100 Subject: [PATCH 10/10] ASoC: adav80x: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-ad-maple-v1-10-7d2f35d42b5f@kernel.org> References: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> In-Reply-To: <20230713-asoc-ad-maple-v1-0-7d2f35d42b5f@kernel.org> To: Liam Girdwood , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1075; i=broonie@kernel.org; h=from:subject:message-id; bh=vDBcrA6q2CExjQvp42DqVJKk0OGqX6PpLRTDdxJCbwM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrzO7sJU5dzf1eAMBUPXLS148Wf6DRGDJHDPjO 1ZV+xB/CY2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK8zuwAKCRAk1otyXVSH 0KfDB/0ctGixzbARn4y/5pfQgFkcjN850hAn8rIc9ZG2bYTJHjQXh8y7lHBXqOTyIY8Ftmj9FsW x7P9HfY5O69mNXGiQzMOuOjfIRUa/GqNMwCQCXcaibI+fDVgVBKJx8Z13FMcUR5NvLERPVsr+6W rPPr5gIlWZ85U17hkoVA5HS7I5mkkzXkEa3HCHzYrQ2h/hTmzCN5ZJZFJJdo8Y0u0cy8EIZDmkS qFjPGaP3kO9LSVk1WsLi6xumOHrU/xXXdsrmrhzSYkCU4JczgWYzSMfMsXmEkFDf/uMpLGWZwyW xvHQYiNjP+FgX9/xv5ekMm7NqwcaPOHV9fUQU7tn3xZHR7ZR X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: OU33FJCSMTRWB3JUBA2X46LFAQIIGG7Z X-Message-ID-Hash: OU33FJCSMTRWB3JUBA2X46LFAQIIGG7Z X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the adav80x driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/adav80x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c index fcff35f26cec..bb08969c5917 100644 --- a/sound/soc/codecs/adav80x.c +++ b/sound/soc/codecs/adav80x.c @@ -870,7 +870,7 @@ const struct regmap_config adav80x_regmap_config = { .max_register = ADAV80X_PLL_OUTE, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = adav80x_reg_defaults, .num_reg_defaults = ARRAY_SIZE(adav80x_reg_defaults), };