From patchwork Wed Jul 12 18:44:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 701862 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 2B84BEB64DA for ; Wed, 12 Jul 2023 18:46:37 +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 E731E845; Wed, 12 Jul 2023 20:45:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E731E845 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689187595; bh=qkCExCaGBIGvLsAX3lQaHwTQziAm62Ha9pkgyNzgqFQ=; 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=gz4IGY88fOAA8HxVS7+UBlqH3JIHTuqYjqvKqTKkzhcN7oVGKopT6Qz5uiJcD5gqY 5AI41LX64Uzj+7SQT+tNNEwEgRWL9v5NDQLue+y83aWQe0PgxepdtPrzgH4G9B1YAO Kr+ROT3zjqhhhvjwE1BfWGRKqt2e5D0CGiLQEn8g= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7B581F80563; Wed, 12 Jul 2023 20:44:53 +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 98DDCF80553; Wed, 12 Jul 2023 20:44:53 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 36E61F8024E; Wed, 12 Jul 2023 20:44:48 +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 77DDBF80236 for ; Wed, 12 Jul 2023 20:44:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 77DDBF80236 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=LoyXUnDw 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 24712618D6; Wed, 12 Jul 2023 18:44:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBF8BC433C9; Wed, 12 Jul 2023 18:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689187482; bh=qkCExCaGBIGvLsAX3lQaHwTQziAm62Ha9pkgyNzgqFQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LoyXUnDwST7X3OwukHcwOV054JxPAkRgfFV9ucKwEfe7PoBRQDY/7EQJjjvRuKjv6 HbVjK2nyTqGF/RzA3fYReXGWUzAYvio3uG27cySkXs/ZEhDGWCf5XR3SC+RydOPMPr qkj1qWmegygPeQRUUQVYRDH0CgZ6OwPBDFo29BiaBti0ikLIPB97Zu9UppjKkmytq9 YlDY6pOhn4T7fLGf7mWonMuucEoMO1v9TqDMVnQaK1AYtIVSiJ4hJPvvAU1wyWBOHM PKLMXry1+ZGE1npuFB1Vz623J/fn5SG72STqHj094vAN3HPJed6xpBRvwBG8p/Y9HX SaxJL2660Bufg== From: Mark Brown Date: Wed, 12 Jul 2023 19:44:27 +0100 Subject: [PATCH 1/5] ASoC: sta32x: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230712-asoc-st-maple-v1-1-46eab2c0ce23@kernel.org> References: <20230712-asoc-st-maple-v1-0-46eab2c0ce23@kernel.org> In-Reply-To: <20230712-asoc-st-maple-v1-0-46eab2c0ce23@kernel.org> To: Liam Girdwood Cc: alsa-devel@alsa-project.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1156; i=broonie@kernel.org; h=from:subject:message-id; bh=qkCExCaGBIGvLsAX3lQaHwTQziAm62Ha9pkgyNzgqFQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkrvSS6pnp8TJf3DmUbGnqXW1F15EnUJCk+AIW7 wDlxpEON4KJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK70kgAKCRAk1otyXVSH 0Cb0B/9jPsvkkCStJaYi4asEA1fmcpRPEYLbx3ARbkSs9EU5/Ofe4jCCqq+zFDpCvWez2E5uvRs 5j0qipOetRFnvJcmpY5PYBFDTwdYbw7pg1DvyHmf1KDsIFJe2Ivo6Uz6e7wlmRJUQWPrCw9r8eq E3B5wKd3ZC7WviaCbRuMifmUQmg6XixnBZAz6kFhc2ENqPfaHLIvdgoCL0bI/aGdXVmxRXGlm+W G4uIUZN9kwN1rpMvJfbNTyGM5yB3bm+10zySLnJ2bog9CYfKVOVd1rG+NNCAFRfNbtepIDmkP+i foOBFxjjQ01f8h555Ig4+fDqr83EnsOEoBiXTUxaualgxIZk X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: P5YHAG2HGXPYOE6UNJZCUAMSIP7ARJ65 X-Message-ID-Hash: P5YHAG2HGXPYOE6UNJZCUAMSIP7ARJ65 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 sta32x driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/sta32x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c index 4a694d0bfd68..34ffd32ab9dc 100644 --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c @@ -1022,7 +1022,7 @@ static const struct regmap_config sta32x_regmap = { .max_register = STA32X_FDRC2, .reg_defaults = sta32x_regs, .num_reg_defaults = ARRAY_SIZE(sta32x_regs), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .wr_table = &sta32x_write_regs, .rd_table = &sta32x_read_regs, .volatile_table = &sta32x_volatile_regs,