From patchwork Thu Jul 13 00:13:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702282 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 4FB56EB64DD for ; Thu, 13 Jul 2023 00:16:20 +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 6D245857; Thu, 13 Jul 2023 02:15:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6D245857 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207378; bh=kJFT9cEbKj5HvTZIT1qU5x1lwzXqqMv4rOf7af1iuCQ=; 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=A9odryXb1dy8wwrEU5VT7D/a4R65Rhlfl9/X9JqhDiEO8In5AVlycrIEMMYcdgpMm 6MdnOcxRaJZr1SXbuPipCKhJ6PzunfwaDV7oQHuZda6Bz6Lcs1YDjb3EdCCchBhAUi loK2YGhHoOGIIqFQD9CVXbYF7TfhxSZHOWjOGOns= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3A2F3F80564; Thu, 13 Jul 2023 02:14:37 +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 9F127F8057B; Thu, 13 Jul 2023 02:14:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D54EFF8027B; Thu, 13 Jul 2023 02:14:27 +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) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 20FADF800E4 for ; Thu, 13 Jul 2023 02:14:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 20FADF800E4 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=lEvUaMrM 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 26724619B9; Thu, 13 Jul 2023 00:14:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BB39C433C9; Thu, 13 Jul 2023 00:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207255; bh=kJFT9cEbKj5HvTZIT1qU5x1lwzXqqMv4rOf7af1iuCQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=lEvUaMrMJGJC86aMbp8sOKRjJPNRfO9bYUE9kEaLSv7ANHr8mcILnS2twuH3vM6TN PNQfn+2rcApkcKOsuuupVhsIp02Q2C7jrdNJHzfDF5DmKAKH//A/wkNJJmlHqOgIbq V2UJyON7dR0oGUWQxuKrgezY9VfnKxBfLaCRmEWG0Umh5Vn2xxqQWZNbn45dbvkUm4 yZNcASjPFEuX+Xu+YK9X8dRnx6rHGM3KBkTS5q90G5TLisqnb0u0NSEy8o4IEQmZAq 5wZGt2AQkti9rxyLH+KyFxSRsYiQln2ZuxGyvNFDaptDTxykCACsDYlEsGGOGVM30h 4L+jUWJ2ZOizg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:14 +0100 Subject: [PATCH 01/48] ASoC: cs35l36: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-1-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1110; i=broonie@kernel.org; h=from:subject:message-id; bh=kJFT9cEbKj5HvTZIT1qU5x1lwzXqqMv4rOf7af1iuCQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GsCUUYHj47ptczrEIZdar6i8xxcjvJFnY0d LClLoNI7YyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BrAAKCRAk1otyXVSH 0HGNB/0XApHxFtoTudv8vcnWUrVnQYvH+WeOWVIIkLM0rWuOZ7C6jG/2MR5scjoNOB+JsOl3DAN HEgbm7v7mnweiDZcVh+ge2uloCRNOxktIoIYRdqB/Eo/feEuWwpftY6WckrlEU+PXEZSWks3/s2 iCQnF5qnfiwyrlwpB5Zpw/Ds9s/HoquQIEm35lGsTOp68XA+6xjogo7q8ido/6McLQ44vC1qR+T YBoN5NCbCUKCYIboNoe5LzgzX993VPQ2FqYQpde5Mt5RGXg0Ftrxlv0eLyYKhSXAv4MWg7DcEY6 ndIQ1Na8JeX4ZSkPnaKw9NanxMuP6Or0Re7YUUR3yFDR3R07 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: UYKBI6DT6IXK6YFOE5XOQGD6J3VCAPGJ X-Message-ID-Hash: UYKBI6DT6IXK6YFOE5XOQGD6J3VCAPGJ 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 cs35l36 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs35l36.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l36.c b/sound/soc/codecs/cs35l36.c index 04ba7f25012e..20084c7d3acb 100644 --- a/sound/soc/codecs/cs35l36.c +++ b/sound/soc/codecs/cs35l36.c @@ -1312,7 +1312,7 @@ static struct regmap_config cs35l36_regmap = { .precious_reg = cs35l36_precious_reg, .volatile_reg = cs35l36_volatile_reg, .readable_reg = cs35l36_readable_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static irqreturn_t cs35l36_irq(int irq, void *data) From patchwork Thu Jul 13 00:13:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702799 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 D8DA5EB64DA for ; Thu, 13 Jul 2023 00:16:14 +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 8E911844; Thu, 13 Jul 2023 02:15:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8E911844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207372; bh=8ohZ1X7AV8KGhMNDSGBLEz4dloW867isYn4qGwQfdSk=; 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=bqdDBYiTt/HbQdF4jSWX2wYwTlEZkgPtAke7N7RAfn1OZYSG0wN/oZAhb/LNKeCrb r9uYjPQqyOuzbUZURvtruoCsnuTatrYNCaHCXWvDusdyzVNfCXhwTTrcztQ0bouFA2 YduFlpKE5nR1M+FpYN5YD/arj+VTAFboM2hvlOBM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D317CF8055B; Thu, 13 Jul 2023 02:14:34 +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 1F41BF8053B; Thu, 13 Jul 2023 02:14:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 99828F8027B; Thu, 13 Jul 2023 02:14:26 +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 7C251F80236 for ; Thu, 13 Jul 2023 02:14:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7C251F80236 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=BAhqMCRC 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 DDBF9619BA; Thu, 13 Jul 2023 00:14:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ACD0C433CB; Thu, 13 Jul 2023 00:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207258; bh=8ohZ1X7AV8KGhMNDSGBLEz4dloW867isYn4qGwQfdSk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=BAhqMCRC+2nV1d57JTmK/eFyRNrWQLAGrqQgbTdBBT0cJSl/MJc0k9tnSs0n3ZXqu JRk5+SSG5WVUw77TcWtyTZCqaWj1ztuy3/7geSxyAbgUCTmDXm7UmwjlQhAw7sAVSy o2j5CcvEg55JjD1ZSfODo6L1LvUhEimrzwfGH+nh6EJT7x54oLU6cbADDKzXsWTLPh ZlKiWWYDkciX5DopuODGR5XbFYMrPpNUO9DkyEUL3ukx4IKQfRVc0dADE9FU/0tN98 lSR0l+tslD+fuBlXkmXJBrHsps6hFuCN2tYM+P7fOlJISzl8ViGTycOC7dROa17B2G 3Ylav2thsokrg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:15 +0100 Subject: [PATCH 02/48] ASoC: cs35l41: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-2-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1420; i=broonie@kernel.org; h=from:subject:message-id; bh=8ohZ1X7AV8KGhMNDSGBLEz4dloW867isYn4qGwQfdSk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GtQxPQOqxDv5bMKTlSywvq2EII34e9WwSlx bpQGTRx4AqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BrQAKCRAk1otyXVSH 0Bh8B/4okseypC9+hjTC+xP1T2L3LwelZdW8WY1S/RaqYrury/RWxdNOZ7vGaYnfzqCuyyV7ouS llCGYcFR52Xb+u5vD9ebeqaYe7ZSas5HWBSpQPzBBv0ZLr3HnF43QeDYQxCwCySXrRgVP4WW0k9 QqvPIgJ4uokQglyHOOVLUPnjOfQZoMoLgZ4U6rkAofeHqm4OAOGXjWe/fA4WeLznvA0G+yrS+2l W/bYOfNLlZUB1ulhR1h8EdlKYzyMTY9s2hKWgvyXscPko4WQm7n7WBAaAqe9vLEu/JEf3Nt43vC yx5Iv5H7Z5iJOAc2DCOm2HY/B/MBl9waTuefzC98UEqRrtqM X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: CRPRV2BC76RNSYKGWLKH7WAB6LAOGAED X-Message-ID-Hash: CRPRV2BC76RNSYKGWLKH7WAB6LAOGAED 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 cs35l41 driver to use the more modern data structure. Signed-off-by: Mark Brown Tested-by: Charles Keepax --- sound/soc/codecs/cs35l41-lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs35l41-lib.c b/sound/soc/codecs/cs35l41-lib.c index 1e4205295a0d..ac7cc492bcb0 100644 --- a/sound/soc/codecs/cs35l41-lib.c +++ b/sound/soc/codecs/cs35l41-lib.c @@ -743,7 +743,7 @@ struct regmap_config cs35l41_regmap_i2c = { .volatile_reg = cs35l41_volatile_reg, .readable_reg = cs35l41_readable_reg, .precious_reg = cs35l41_precious_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_GPL(cs35l41_regmap_i2c); @@ -760,7 +760,7 @@ struct regmap_config cs35l41_regmap_spi = { .volatile_reg = cs35l41_volatile_reg, .readable_reg = cs35l41_readable_reg, .precious_reg = cs35l41_precious_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_GPL(cs35l41_regmap_spi); From patchwork Thu Jul 13 00:13:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702281 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 511D8EB64DA for ; Thu, 13 Jul 2023 00:17:05 +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 D35CE83E; Thu, 13 Jul 2023 02:16:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D35CE83E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207422; bh=h5y0kuwsUVvqGIw/hAX6PQPYX9+JjGYByNSBszDAM3I=; 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=bORqnuJFRkJMxeQdyC2U4wzLIFm2GziK9so/+CSA+5TVo7WMpnTEqSWlGehEyECCt 6ijpz8S59jZzwLPo8joUS0H6vpoRneG93u0mDI26Jvyd7dn+vB46Y8Gwaez06e3sAD EwRoYtmDYFpDuYo717hc016pcmtpmWBuMHCfZbjw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id ACF72F805AE; Thu, 13 Jul 2023 02: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 352FFF805AD; Thu, 13 Jul 2023 02:14:41 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 90C66F80551; Thu, 13 Jul 2023 02: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 EE908F80249 for ; Thu, 13 Jul 2023 02:14:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EE908F80249 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=p7ickjd0 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 DF6DF619B9; Thu, 13 Jul 2023 00:14:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDC2CC433CC; Thu, 13 Jul 2023 00:14:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207261; bh=h5y0kuwsUVvqGIw/hAX6PQPYX9+JjGYByNSBszDAM3I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=p7ickjd0d9HMc9ES0P8y1ym0lhmF+GFD328thTTv6eudonZRkFOi2m1RvdWCL5KxU tUQpLKlPxON/aQxsoSe9rRnY8R2KElLygVcw4PWPcWu0fKeK2Fa6WtavKwZnFCMXX9 wgFFNcasGOZh8ChzDbNr7TtgOdf3hcdw0cuko4lRX6CIEfEm1PsaTI99WhPdiUnZY0 gRrqYiWi91UeVryWccdcPyQ5/BnfmwGEo6/rJ68aGUasK87nagJ12PT55T84wNMrUa pIRBhKuJrMEdzyL4pvnkS6NeVstzVtiP4AHTY4896DFJv3PcwsV2IG53KK7hUxLj4m ubkuiT526mDTQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:16 +0100 Subject: [PATCH 03/48] ASoC: cs35l45: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-3-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1511; i=broonie@kernel.org; h=from:subject:message-id; bh=h5y0kuwsUVvqGIw/hAX6PQPYX9+JjGYByNSBszDAM3I=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GurDXgVILaHk+Nnlqr253JR9BaNjI5RlG16 NjoXn6iXXWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BrgAKCRAk1otyXVSH 0KMTB/991i/QBGU3DgbMY1Tv+M3TvmLGTG8LdYkf2H8CV7e89yfvU03HGCDQFxFVAo5dnHRKupN al5BldeSVnB8q4Alkz1rXEZKHyPQijvuqNlgMQBO8DK6YJexlu32Hp5t7mPYcnXNsPSjVIihMhE IQpQhqj8OwEGDqp5quUa+vs4LmS1LxAKgIkFp1usg+UoXtHfksbU1uY/d+vEvR27isuVr5GSHaw hJR+9NIYt4wCjFVGA207nWoFA8rfxjkzH3zdZVgGVVblhsLRW4sM3/cqPzDVP3lX3ibTYb/pg/8 tXsf9G29tHQb1v4ljdOM7TT5wmpZcO6vuY3rDdvVySfCpcli X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: SDCHCMTDTK2QS53EUG7LDVWQZYZSHG6F X-Message-ID-Hash: SDCHCMTDTK2QS53EUG7LDVWQZYZSHG6F 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 cs35l45 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs35l45-tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs35l45-tables.c b/sound/soc/codecs/cs35l45-tables.c index 066f83c0c7ac..621af1785979 100644 --- a/sound/soc/codecs/cs35l45-tables.c +++ b/sound/soc/codecs/cs35l45-tables.c @@ -255,7 +255,7 @@ const struct regmap_config cs35l45_i2c_regmap = { .num_reg_defaults = ARRAY_SIZE(cs35l45_defaults), .volatile_reg = cs35l45_volatile_reg, .readable_reg = cs35l45_readable_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(cs35l45_i2c_regmap, SND_SOC_CS35L45); @@ -271,7 +271,7 @@ const struct regmap_config cs35l45_spi_regmap = { .num_reg_defaults = ARRAY_SIZE(cs35l45_defaults), .volatile_reg = cs35l45_volatile_reg, .readable_reg = cs35l45_readable_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(cs35l45_spi_regmap, SND_SOC_CS35L45); From patchwork Thu Jul 13 00:13:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702798 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 5A0D1EB64DA for ; Thu, 13 Jul 2023 00:16:46 +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 4CDFF7F8; Thu, 13 Jul 2023 02:15:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4CDFF7F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207404; bh=UlmasQmPNsZaeQKAgTGST/YNDp9S79cLSWd1E/jlxds=; 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=ouhPJIv47z4P1+PSYwAlqmGkz+EnRhkI2iPekIkihbag/aehDdM5YtmLI7CCD1XgS /snq0Ky1t/ezbsc8dDydYOKa21/vMWQzFzIq6hLuSjM3rYlyX5/zD6Oeob7WxJ/oIk wNfo+cuXrRpoYSOlqloR6CUSTOaoGeXCPjacYvo0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 46942F805A0; Thu, 13 Jul 2023 02:14:38 +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 71DB5F80589; Thu, 13 Jul 2023 02:14:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1C244F8027B; Thu, 13 Jul 2023 02: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 B5768F80236 for ; Thu, 13 Jul 2023 02:14:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B5768F80236 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=ql0AQTPL 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 82A4E619B9; Thu, 13 Jul 2023 00:14:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFD54C433CD; Thu, 13 Jul 2023 00:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207263; bh=UlmasQmPNsZaeQKAgTGST/YNDp9S79cLSWd1E/jlxds=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ql0AQTPL5OuojiZHV82IaqvCU6FbRn6AJMdAevSrW04sfvuFqrwMbCSiuTT7J16gC 32ooiy2OG7bLEkd/eUFQlXAhQtdEkjHBQVR5dqOBePb46pM6NRvTkSerjJmy+b+vEg kNIfSJhplqE49HezVq/QIaliawS8lu6eNXlqv2KHpXak3/nvh5GD0Z52nCXpr0hMAD mAiN8ohR9C1IRtoLOt8QeXEx7FWoURdcd/9bI8HZZC/FOwtEnMVe4u//V2ttbbH3M+ YzO/fzJoEYpkKp99sFHDXh6ahTyRBq+ObQ+fMbNRtJdDNvvMVyW3iHK1f0Kvrs0C2N 5JOTzACLeC3Ag== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:17 +0100 Subject: [PATCH 04/48] ASoC: cs35l56: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-4-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1822; i=broonie@kernel.org; h=from:subject:message-id; bh=UlmasQmPNsZaeQKAgTGST/YNDp9S79cLSWd1E/jlxds=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GvgMMoiVebpLmS3DkG8knCnlAtkaiCfimdz b+UZFmECV+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BrwAKCRAk1otyXVSH 0B2mB/9FbuFtrymB7rNZ7LLNjgnialurZjI4W9gdItcXrrhSfL5GYuF/Hshf2nOb0Qb1RtBFHuV +0aT5cI0Zz+CRhNHinLBkh7mIQorByf1j22vMt1YBqVLR5QHkafElQSlYy39i9Pdc5KOYj4OLSu URLE9Jvte5mSmddYa3aJJymzaTJkW1CX3BUrufiJTnvuFur8sYWFOs9g7nZjy5bzRbagiGHC/VO ucIVjsYLQIhnknQSOICEnUwx7U2bG0wS5qAtIwOflDqWF0Y2vtw/BdBirQyMYIqITeEnsR2R7Wt G85X2ynH064YmQEonmPKRWvgDo8hlfdXHQ7JTQRuiBjeSnVC X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: N6NTUBAZGECBQ662AOE5ANSLBRSWKWEW X-Message-ID-Hash: N6NTUBAZGECBQ662AOE5ANSLBRSWKWEW 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 cs35l56 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs35l56-shared.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/cs35l56-shared.c b/sound/soc/codecs/cs35l56-shared.c index 60da8c75b7b9..d561fbdc12de 100644 --- a/sound/soc/codecs/cs35l56-shared.c +++ b/sound/soc/codecs/cs35l56-shared.c @@ -319,7 +319,7 @@ struct regmap_config cs35l56_regmap_i2c = { .volatile_reg = cs35l56_volatile_reg, .readable_reg = cs35l56_readable_reg, .precious_reg = cs35l56_precious_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_i2c, SND_SOC_CS35L56_SHARED); @@ -336,7 +336,7 @@ struct regmap_config cs35l56_regmap_spi = { .volatile_reg = cs35l56_volatile_reg, .readable_reg = cs35l56_readable_reg, .precious_reg = cs35l56_precious_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_spi, SND_SOC_CS35L56_SHARED); @@ -352,7 +352,7 @@ struct regmap_config cs35l56_regmap_sdw = { .volatile_reg = cs35l56_volatile_reg, .readable_reg = cs35l56_readable_reg, .precious_reg = cs35l56_precious_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_sdw, SND_SOC_CS35L56_SHARED); From patchwork Thu Jul 13 00:13:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702797 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 A418BC001B0 for ; Thu, 13 Jul 2023 00:17: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 B609B9F6; Thu, 13 Jul 2023 02:16:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B609B9F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207429; bh=NUAvKg7hEMEGB3PEXKsUJF06rptBcDzXIY6bIE6/I5E=; 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=sNZiIP+l0V+c5GpvKqC1rV24tQyPCfq62J0zdnXBtkiWH8NMdqopyqWQV/sFSgfig K0wNnmZQ2kNGOPSyNmRdLLcDPp1+zP4eOi4wEz2UvlgRdS9EpfYJEtzW6bja3buUnZ lm58HeikRWL3NmPG5Eby+v4uctn1BzNr83VI/fKM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A1CC1F805B6; Thu, 13 Jul 2023 02: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 2227FF805B1; Thu, 13 Jul 2023 02:14:44 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 99599F80551; Thu, 13 Jul 2023 02: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 BF16CF8047D for ; Thu, 13 Jul 2023 02:14:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BF16CF8047D 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=c5YvbZgm 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 9197B619B0; Thu, 13 Jul 2023 00:14:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96796C433C9; Thu, 13 Jul 2023 00:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207267; bh=NUAvKg7hEMEGB3PEXKsUJF06rptBcDzXIY6bIE6/I5E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=c5YvbZgmsx9luu/e29oTPzilVoyq4i56WCtWCBD4a786izd/zFxs2BsKa5wiBIRGX 332Lb1GYu5+LliCtmVy5kbmcxYZtKJ1YDvTfdeWU/9fieiv202q6pmYdk0cp/urEeQ DjD8wI/ipi+5z2Srs2QenS5INH5cebNMU1uxqFqG4jhTophUPZp00HPC4VI2IYENYX 58pNc34ZlRJkzqamOM7DaSbGXGXd3ucmBovsJtfzhUkmaVEBgFFEzxKKd6EorGGWuQ LoARsORH0hzmXIfKghDdWftC7Vhm7nRlbvGoap7yEulWuramo76JjMEFiNaW9/1Xzi 3JdRkfTiJHMGw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:18 +0100 Subject: [PATCH 05/48] ASoC: cs42l51: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-5-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1091; i=broonie@kernel.org; h=from:subject:message-id; bh=NUAvKg7hEMEGB3PEXKsUJF06rptBcDzXIY6bIE6/I5E=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GwFCVAM9ljNOsh7jyqUK9NyVqcpJcR7Z64Y 9dZCx6K1p6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BsAAKCRAk1otyXVSH 0KXyB/4y17GRx/hTY6IA495wUOTMkyyrgzZDT4pd/9phUHrXu1h9tIP1wemwVNMGWJVlgqd8trx +R9cVgcIZr+9Wuz/Nw1l/k5s6FlJLgxfQRYlH7ikFPUaaYjFFWM6j4tHl72cVX6hvILmZqWc9pY MHYtsOX+XzWrosBt8oYe3h/lfFSFi7YNC1gScQPl/DGc5YngncxszVjWaSKWAG05uDVThL/1YHv zilnKxLaEWOKRfaBLruVmjK2pM93EjSLRYd2DE6DvmNdgAO/nnrpsyNy2nnBPdIAmwFk7G/kKaA bH1bgkEZSvMZdjQCuVIkwr7qpY7NJJnwrUVNwZIuEnVChprr X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: H5P6IRL67MAMICYXRP55AGRACZAY6F6A X-Message-ID-Hash: H5P6IRL67MAMICYXRP55AGRACZAY6F6A 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 cs42l51 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs42l51.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index a67cd3ee84e0..36066fac394f 100644 --- a/sound/soc/codecs/cs42l51.c +++ b/sound/soc/codecs/cs42l51.c @@ -703,7 +703,7 @@ const struct regmap_config cs42l51_regmap = { .volatile_reg = cs42l51_volatile_reg, .writeable_reg = cs42l51_writeable_reg, .max_register = CS42L51_CHARGE_FREQ, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_GPL(cs42l51_regmap); From patchwork Thu Jul 13 00:13:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702280 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 EF940EB64DA for ; Thu, 13 Jul 2023 00: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 D6C6A1F6; Thu, 13 Jul 2023 02:16:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D6C6A1F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207454; bh=xcYzg6z0Vv0wEuoBCXIuRt3deUbwZ2sskYeGNAS0OMk=; 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=DFtYN4MFkE/rrdFal4w6NZuBJ5wuAHd1/OSpex4aJDpSdXavaCSxHqlIAKlG/PZOd C1OJso5HtNUafJr6vGpPldVpD2Zz7/yXN2veGhEzIapZOPCkkJQ7M1Be/lZJ/i0dDQ CTd44P0QtD+/RzwFEBlPDcGUrN2eiImx2w5M1ijY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8E6F2F805C7; Thu, 13 Jul 2023 02:14:47 +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 D49DEF805BB; Thu, 13 Jul 2023 02:14:46 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B1393F80551; Thu, 13 Jul 2023 02:14:33 +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 6DC78F80249 for ; Thu, 13 Jul 2023 02:14:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6DC78F80249 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=VfgM0d7d 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 573DF619B0; Thu, 13 Jul 2023 00:14:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C765C433CB; Thu, 13 Jul 2023 00:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207269; bh=xcYzg6z0Vv0wEuoBCXIuRt3deUbwZ2sskYeGNAS0OMk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VfgM0d7dbvn4GRVjdxKuRRdIbtDcXEkt8eeU4vEcD1Vr+VC4Zm5//1AVhVz/BZO2Y OkQ5Oz+98EGl60eFTlt5X4U3R5y+XqJlNFfQgWXqA6ZuHjuFyAoJmWo39+NHjBbW8c 30hZEVDafUOx/M+Y8eYGgGQt6+pr5VH6iX5uBxmAFLPGJs0z20yR8hSAOimmuBeJH/ sQziweFsTs/wjzFXnYDkds+3rdv0Eqsw01S+XXelYzBxDY7dGIVEpkKtLgmFjoiI2I pJpge5xnPj9JuSuA0SVyj6EPLNZioGPm7pHJ5ul4XlRiMwOdRzMbm+s1cdfSsSoGGq 1u+OxaB0/VlUA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:19 +0100 Subject: [PATCH 06/48] ASoC: cs4265: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-6-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1137; i=broonie@kernel.org; h=from:subject:message-id; bh=xcYzg6z0Vv0wEuoBCXIuRt3deUbwZ2sskYeGNAS0OMk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GwcXN+fZ/ppjnwNpDPxNTnzVCh5pttcAyyz tMUaaN2r4mJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BsAAKCRAk1otyXVSH 0Bt2B/49dPzdvrwOLnkaMf0s+oaB2unZV5Tf2h+yNnT9QRh5S7L3woahvagDZs5IuEt4aIPd3Py w/vy8u56xtX6hLL9CJTbGP8s1Z4qG8MjT4iPbBWyUyZGxDcdgM/dUkthxIJqpQ918tKcLe+kHNe 8O9E3qI7T9BXpjEvwXMGSXN7uHF/mAjDq/4BZzwb21ONze9h1uvuqWIXgvVHR9MH6wckSBCMpZ/ 3qei7r7HR1Z4tU2u1zqcOYjssIJtuqrkYgz+1jxYuEthmJVyGm9eMWJBYXTAXHxvOCtmsSfNee5 bKSDipykOWKR+zNaRfgHsKsm4Ej7RsmEjZQoPVIs2eRjaJ4O X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: QNCXWHDMFWB77N46ANKUIN7WWP34ITH5 X-Message-ID-Hash: QNCXWHDMFWB77N46ANKUIN7WWP34ITH5 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 cs4265 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs4265.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index 0cfc5ab36a13..1ed1e60d8e53 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -564,7 +564,7 @@ static const struct regmap_config cs4265_regmap = { .num_reg_defaults = ARRAY_SIZE(cs4265_reg_defaults), .readable_reg = cs4265_readable_register, .volatile_reg = cs4265_volatile_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int cs4265_i2c_probe(struct i2c_client *i2c_client) From patchwork Thu Jul 13 00:13:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702796 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 6009CEB64DA for ; Thu, 13 Jul 2023 00:17:44 +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 79C8A7F4; Thu, 13 Jul 2023 02:16:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 79C8A7F4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207462; bh=IBNC+v7RMLGIksUTsABHCIbFxxoeRBCa//WWLfSosN4=; 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=a+Kuj/F+fnjVsY7ZxJfLyEV4r4VawZX2mPkb6v2wF3S1EspHu7TILkrezJrlp0F3u 5u9EceYbOEoUFQqL2PAK5UpTx9CCQibqAjVelWJbOHiYls7woA2aB6D/ZkkgQ4aopo fOac3QUpjwTVf8rojwodDQh7DVjZRo4b5PEV950o= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DDBE4F805D7; Thu, 13 Jul 2023 02: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 59D5FF805D5; Thu, 13 Jul 2023 02:14:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 52E1EF80567; Thu, 13 Jul 2023 02:14:36 +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 4BED8F80567 for ; Thu, 13 Jul 2023 02:14:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4BED8F80567 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=EMmd1eix 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 3C49A61987; Thu, 13 Jul 2023 00:14:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52790C433CA; Thu, 13 Jul 2023 00:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207272; bh=IBNC+v7RMLGIksUTsABHCIbFxxoeRBCa//WWLfSosN4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EMmd1eixNwv6KWkoHx9z4i+iDmH5deWJ2rQKc1+s9qPGohWPtnUdJeWOUJuZH5Wwq HM5UZCDyfvaKS8yFOVVEhJoF3sSsh/7d0NprxSiqYFOz+5VzJ9Hqk8zc579+PrKGW4 2vBw9Fejta6PDW4sR6T7qBqTz7MYmXpneUGZI6sn0gzkgJfC1g7h+4ibrGJ8MVCFZX h4fUXEXl/RVLCiyZg/wZzXpuezvWb26XlXFsoJjQuLr7fbNZ8YLikgrvyWCtmttPAB 153cZBfVp8an+PpP/pexs8MmPtVxpaPxDz/S8hWJc8GEPKzCbL6tPiRi+XZ8bcMABr wrhfS6oggMBPg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:20 +0100 Subject: [PATCH 07/48] ASoC: cs4270: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-7-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1143; i=broonie@kernel.org; h=from:subject:message-id; bh=IBNC+v7RMLGIksUTsABHCIbFxxoeRBCa//WWLfSosN4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0Gxf/SXAbSQasBLaKdb1fjAWqgMiSrK6A8bZ x8Azllv38aJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BsQAKCRAk1otyXVSH 0Gc2B/98jB6JhpdLevDwwfKetvGbC4fSEKfcKcqqxABC7XhCBW5SGrvcs4BmzBPBp1pqKYm/NYg YztJW5wf14yCnD3rySWapsSM+siCoKXSYKoND7dWP6Dmi8OHJ1rWG6ENfd/vEVbm2URV952+CXu YhSEe67hkXooenfhZ/X9F3ciRxF8zcfXpApQeNiOBLYalfkpYWwk/K1FwGBSasi4fwxb7QwT8nu qI+vSm3a0xluonVHQ8pz+QJsUhJHv24ehFI7HStGql54U/pIheYVTekYWn25f/xZhMbbjDCvuAb FmTgMVlX8Aj2xB4dt5eUJviwWKSW7B85yMepEqhy/k1QrKNY X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: EPJTDEEOPLJYQPXFBTIDW7DJXRS4564D X-Message-ID-Hash: EPJTDEEOPLJYQPXFBTIDW7DJXRS4564D 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 cs4270 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs4270.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c index ab32f15e3b44..3df567214952 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c @@ -636,7 +636,7 @@ static const struct regmap_config cs4270_regmap = { .max_register = CS4270_LASTREG, .reg_defaults = cs4270_reg_defaults, .num_reg_defaults = ARRAY_SIZE(cs4270_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .write_flag_mask = CS4270_I2C_INCR, .readable_reg = cs4270_reg_is_readable, From patchwork Thu Jul 13 00:13:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702279 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 7C314EB64DA for ; Thu, 13 Jul 2023 00:18:02 +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 6C96D84A; Thu, 13 Jul 2023 02:17:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6C96D84A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207480; bh=A8vHwRzCwHS4yC+9YfVZKPZfPQI3zfXKZ0/ASIO56lk=; 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=OUK20ZTWNuM+dbW/ZIYC8i+2JvMtb66w1ShspOuLiNJO+fzEH1rwWvVwhZi2xgLbD JYWy96uQXtd7GLN/LCOczXb7KmqhO9pa7yCPhNI7vw9HjSTnRSJ+SCzJ4SxvBqPs/G h/EkLl1Ie/BVJZQlHrJeQwkuhxbyZTQPXOqpd2YI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DA9FCF805E4; Thu, 13 Jul 2023 02:14:52 +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 5A9E7F805E0; Thu, 13 Jul 2023 02:14:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7B9B8F8059F; Thu, 13 Jul 2023 02:14:40 +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 9BE74F8057F for ; Thu, 13 Jul 2023 02:14:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9BE74F8057F 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=HCnF9hna 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 8944C61986; Thu, 13 Jul 2023 00:14:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31EEEC433CD; Thu, 13 Jul 2023 00:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207276; bh=A8vHwRzCwHS4yC+9YfVZKPZfPQI3zfXKZ0/ASIO56lk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HCnF9hnavi0nRv1RbqnYjTLjhQ4AKaOJfVQIohAqTbVlHB9y8llHYDpGjok2qRecl S/prAaDvWrSXeSdRULcq/VMKSNjc43usJjd3oi1wMApwXTOt68ua1V9ManfQsZYo2X jwBK8jOLd/v5J00gN5g1Ui9w9ioNlQ36/0tfBPlRovY+9YR/ZZdGNtfcq5Idm5lR6J TjW2XestGwyshxxwUYy3OYjsg9O818YbgwsA8tzugU0LUDkPNhmr8euy3wW6sfWGUA zgyi5NWPsDbnQln8zEdbJOkhFYxAUf4Uoa2Mm6xnunE6WyTEh7qpbAv/eoIduI345D zl6BMe7kA8i9Q== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:21 +0100 Subject: [PATCH 08/48] ASoC: cs42l52: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-8-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1150; i=broonie@kernel.org; h=from:subject:message-id; bh=A8vHwRzCwHS4yC+9YfVZKPZfPQI3zfXKZ0/ASIO56lk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GyAwoCfSSmmyObCfHTHiDlLDTPSJZzWD1It Zw+vUGOPq2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BsgAKCRAk1otyXVSH 0KmwB/9KkQnGkf667EzoazSlLV2MAsO8AeK1uhLin7BqQc1YsclqakLyT5FuqxwZO4ntghSDfRV E3cDO0EqHSBGHaGOCFy5Q+IYH8sIn4LgHQekMm5Ne+UY9SVqaKlOTNP4+cIH81z4XkaMKmwJSds 79hGEGR6DSfKh+hH8eGNfF77723n8RCFgn8Zafg+ZPTbvKQE9w7uxMtmrNUd/d7BO6rKJCrCY2C IoCB+80HNM8YyiM5WypbLxC/n8Epi6ERB5yGfrwDzCL7DkuccPd6gw8aobUrscJ00Dq2O4f3asa WTp/RNAj/Eapp5QfBYMNC666+A9S6ylvgkUOqda90Dwu3DQo X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 6ULPYCY4CM5IZFDIH4LKUN3X6P5Q3B2P X-Message-ID-Hash: 6ULPYCY4CM5IZFDIH4LKUN3X6P5Q3B2P 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 cs42l52 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs42l52.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index 1f1ded0ff0ac..4fc8a6ae8d92 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -1084,7 +1084,7 @@ static const struct regmap_config cs42l52_regmap = { .num_reg_defaults = ARRAY_SIZE(cs42l52_reg_defaults), .readable_reg = cs42l52_readable_register, .volatile_reg = cs42l52_volatile_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int cs42l52_i2c_probe(struct i2c_client *i2c_client) From patchwork Thu Jul 13 00:13:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702795 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 3D75CC001B0 for ; Thu, 13 Jul 2023 00:18:06 +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 616B9850; Thu, 13 Jul 2023 02:17:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 616B9850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207484; bh=QadRCauUHc3luCjo1nsfoeYTP1Ic9HjyB1JlffjTMmI=; 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=mkJbgcM/veILEZPqjErWcg1U437hF3VtXxwstfcefRgXaqwQsObSxWdPDkX0KAvH6 B14KQpy99Phv4barfd0sAPFDgjuFu+7UKTOP4T6e/4XDf15wYDW9UJCPF+HjiS6RXP 4kOik4DrcdjtgFJ+jzcbvV5DaC+e39ew1xPFr1EI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7FEF6F805DA; Thu, 13 Jul 2023 02:14:55 +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 28CF6F805E8; Thu, 13 Jul 2023 02:14:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A3407F805B1; Thu, 13 Jul 2023 02:14:42 +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 8174BF80580 for ; Thu, 13 Jul 2023 02:14:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8174BF80580 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=qakehfuc 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 757BC619B0; Thu, 13 Jul 2023 00:14:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7789CC433C8; Thu, 13 Jul 2023 00:14:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207278; bh=QadRCauUHc3luCjo1nsfoeYTP1Ic9HjyB1JlffjTMmI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qakehfucf6g65K6T9I6399OdBbxKnyrjcNC+rrPCudTB37/k45hbLQlLKwczwhENX k/abj/DU8Qm5t3nadnKbNw22Ao+bdII69gIpoGyRn/drgQog9dCYgyybxLVcBRBreK 25eVQ9was9fWzBxGq2ig3tPZOAmNwKV6E8ny/QrbYGOYwU5qxtBWkAmREuC1osVVbo ZOlmB9oxmYdrckfKTRXmTg1WM3HkPdaD4dTmxf/1bCDCWoNgyOqR4+oHXlvINYPft8 lec+RQJcL6hVdIzNKbz8dNqaUOiqrpy/8usuWqip8DY1AmL/kFEmKjrIiPXTIRN9Os u98SR/fSBAngg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:22 +0100 Subject: [PATCH 09/48] ASoC: cs42l56: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-9-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1155; i=broonie@kernel.org; h=from:subject:message-id; bh=QadRCauUHc3luCjo1nsfoeYTP1Ic9HjyB1JlffjTMmI=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GzW8o4fQ0QlgmF3NDt8zfFx2A0EEOPSj96M y6FNaPf2kKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BswAKCRAk1otyXVSH 0HbKB/4urZQGWznkNFSST1RUI3j/WUdl9oUkYrbBN54Meapd9UJJDyQpRpDb9wYn09JkBcOlWpn uWCqPjctzJp6f9BFZAPHoBHfUA5B9YWpHeF0C0HKJZ1y4czwH6xQfjnt+7/jcg9DOXQ1OteAs6X 1EBE4JuQ9W9TyTGZ871wJ+8D3RsYLTGI8w54q9TPd0KVFViODJ9ZLZmP/yfd+oIEVflXfPqtNzN J+l4XlnA4ANBVs4gYtGOtBNme62tyHGLlUW6r/CWjOdBs9wHhpA5p8P2I4kafWCyG1gIzdlDVLT Nb5uHCv83AyCyyvq54dJjVWNF72rm94szneS6xKVWBmpr5gP X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: F6NEQXFFBNAIQXL5QIBZWUAYDU35MKCR X-Message-ID-Hash: F6NEQXFFBNAIQXL5QIBZWUAYDU35MKCR 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 cs42l56 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs42l56.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c index 4c646e8d72aa..1714857594fb 100644 --- a/sound/soc/codecs/cs42l56.c +++ b/sound/soc/codecs/cs42l56.c @@ -1125,7 +1125,7 @@ static const struct regmap_config cs42l56_regmap = { .num_reg_defaults = ARRAY_SIZE(cs42l56_reg_defaults), .readable_reg = cs42l56_readable_register, .volatile_reg = cs42l56_volatile_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int cs42l56_handle_of_data(struct i2c_client *i2c_client, From patchwork Thu Jul 13 00:13:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702278 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 7E224EB64DA for ; Thu, 13 Jul 2023 00:18:30 +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 817E8206; Thu, 13 Jul 2023 02:17:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 817E8206 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207508; bh=VRXQYXa8Qxz2t7oUH72fvpxl1d0//wcuyf2srJuE27g=; 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=m1F4wGKkTIuVlfk6rmBtt1lOvUwpmPCojBwD21HENKnTxXcl3AJC1pG/3d7vG+XA6 j8Oo34I5EBcM/vsTCoxLhPcO1XDBHakpjOXoDbhHyUaZyutz0jQWs+3o0SxIVceGcs V9AKw16Wh+lON/IBt4tx9b3RrnLsSqB9BELVUbQQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 953CBF805F8; Thu, 13 Jul 2023 02:14:57 +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 C8082F805F4; Thu, 13 Jul 2023 02:14:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E8B2DF805BD; Thu, 13 Jul 2023 02:14:45 +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 80697F805BE for ; Thu, 13 Jul 2023 02:14:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 80697F805BE 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=hVi6p03d 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 6FF7261986; Thu, 13 Jul 2023 00:14:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F0FDC433CC; Thu, 13 Jul 2023 00:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207281; bh=VRXQYXa8Qxz2t7oUH72fvpxl1d0//wcuyf2srJuE27g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hVi6p03dKsQpA09T4kHv6dZbl0kKAcdXfDHWpKNJFTipwO2POwMR+zzuYBcWx1XXT 8SZoPLPSRMcJSkgu2sUHSsGSLKIFSS0a2axWvSxkM74BWksf481mJvb5AjJKK5hX9H nUybjOSGBetiZq1UwOiPIE+hRrsydYDhzL8opXTSqkFJtQ258YcwEcmkhb6FyOk59W Vz/QvDsuLgzbu/PGY5T58SZnW4936UKNKN3i3inndpwdWgBcbLXQYvqBHPsMdIe5gx hA35zjmWKBNTOHykTb3henRpmpwpReVTyJanR4DNHFZEYarQ11VWQdmEI8/tHSGCC9 0e01l3mQo+bCA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:23 +0100 Subject: [PATCH 10/48] ASoC: cs42xx8: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-10-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1123; i=broonie@kernel.org; h=from:subject:message-id; bh=VRXQYXa8Qxz2t7oUH72fvpxl1d0//wcuyf2srJuE27g=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0GzrvS/7kToxnbplx9I/PQ1ywQgQx4cLlXXs izUigE+IMyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BswAKCRAk1otyXVSH 0Kd4B/9YxGHHWM7HWwKTV5tyMN3FKCXimdpw0jPbxNwNgXSvu6ZKRPrgFx7GwMU17D63Qlj9ZEG Mm/BNZZ/pu+uUQ/86+97f/vEO5BetD2k0QiVFBJV5mmkt9M+qVARzo0ls0Haz9ixPtzvtJGFJSa Mbv4x3J9VYYFI01p7xQM7Cgw9BFRFQ1GeeTix7skG+xZFfIude3fuYoKuyjBH+YP9mkfV3kAl/C N8aqCP2GR9S0kxmPpQc4Rh9GtOjhggudesvus6isyi3JFQQ4ake++JG71vI6aTZIQX3c56NHXP2 DG+PhjNqJDXo91idWyX8ve8lAaAcRtQda5WgJho1mIrr8vq9 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 7L6B5ZPOCQ6AF6C3TZAP5HTCNQ6WUSFS X-Message-ID-Hash: 7L6B5ZPOCQ6AF6C3TZAP5HTCNQ6WUSFS 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 cs42xx8 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs42xx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c index 4558ec38a7ac..9c44b6283b8f 100644 --- a/sound/soc/codecs/cs42xx8.c +++ b/sound/soc/codecs/cs42xx8.c @@ -458,7 +458,7 @@ const struct regmap_config cs42xx8_regmap_config = { .num_reg_defaults = ARRAY_SIZE(cs42xx8_reg), .volatile_reg = cs42xx8_volatile_register, .writeable_reg = cs42xx8_writeable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; EXPORT_SYMBOL_GPL(cs42xx8_regmap_config); From patchwork Thu Jul 13 00:13:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702794 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 F14A4EB64DA for ; Thu, 13 Jul 2023 00:18:51 +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 F0489851; Thu, 13 Jul 2023 02:17:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F0489851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207530; bh=LF732ejLVHu/dBbKR19LX+OhhCn45u5YVe52e1U6Y8o=; 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=no0RGRJ6HulB9murzzpUibHtXMBWIjz3m2d+JaJ8ZIeSqGdj30sXhvo7y0cMzdgDo jkOWS44VFe3TLeK93/UrM+DCjdsuNKZq1g382zkKscf+gKP58aJTA0/gXPO+t8uZYu i0CegJSnZ/hW+i/K8scDA95JTyv0cNz2jAh7SiyE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 81E1FF805FA; Thu, 13 Jul 2023 02:15:00 +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 D5B5EF805FA; Thu, 13 Jul 2023 02:14:59 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C0C56F805CA; Thu, 13 Jul 2023 02:14: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 5B26BF805C9 for ; Thu, 13 Jul 2023 02:14:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5B26BF805C9 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=nWH15L2V 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 3DBAB61987; Thu, 13 Jul 2023 00:14:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67AAFC433D9; Thu, 13 Jul 2023 00:14:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207284; bh=LF732ejLVHu/dBbKR19LX+OhhCn45u5YVe52e1U6Y8o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nWH15L2Vwy3athL4B9FOigRCGLjLZjUwCDCWqfrKwOmOUKbEnKZCobWdN5uLeB8gu vzohQx7skZQcD1PZ0YmvXr7NkIO6ibL9lGkUUr1pS1aEKR9HQ07qGUXU9tRxmR1yst htxzoDUyJ4Zxly4R4YBW3beZB0yRoMVTB/utmIbP6q1PSAfsyEKEx07aG9PhEOvx2A 80kBhnfJ4i6qbVzeqe5HC/3/AhvmpIVUonrXtJjTta2C6qcxd3J4nj9kKvqe6JPi9n 1eg6+1Krzbqy4eQKO3u7yVn0dIDaQW3Bi9lQqptNn+SuQJB9jd+bs5iDg5S9BIwIOg 0IXuHW4Y2PH5w== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:24 +0100 Subject: [PATCH 11/48] ASoC: cs4349: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-11-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1139; i=broonie@kernel.org; h=from:subject:message-id; bh=LF732ejLVHu/dBbKR19LX+OhhCn45u5YVe52e1U6Y8o=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G0WUaLlpt/t4HbR5aDE5bidvBZ5MBKaKcMo 6VDJUqhbIKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BtAAKCRAk1otyXVSH 0F3oB/42goyDxs+262yaBy+M3jXXhWB5tRoaq8XUQ1pA/aWHZxp4fcES3EB73ifsBu5aRxHNXma WuTrZuajCCMAAGVt4OLq6FN9ZwHqz+dLiYNsi96X9pPpt/ktjNW2Nje03grixMdYsD11Racl+HX wAvgch6W6bMwak0ZwP0W6w6AYUu5IckcSIavqEw27uRVQAvFYiMWpUhilgfd356wLxyAvY1F+zu 5Dt7D272+bFhg8lgayLLjCmrrd2f1e5EZNcYRiknUcSMsCn9qqySiAcN/pl8GSQlTwlrSxvorpc ueWn/nUffdX4chLMHmEj+XDkyYs6cg7EVKdF7V5lrD/Jmy4g X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 3A6P5TF6RRR55BDWK7LTIV3OVJQ2YMDZ X-Message-ID-Hash: 3A6P5TF6RRR55BDWK7LTIV3OVJQ2YMDZ 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 cs4349 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/cs4349.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs4349.c b/sound/soc/codecs/cs4349.c index 8365dd0ebe2a..ef08e51901b5 100644 --- a/sound/soc/codecs/cs4349.c +++ b/sound/soc/codecs/cs4349.c @@ -271,7 +271,7 @@ static const struct regmap_config cs4349_regmap = { .num_reg_defaults = ARRAY_SIZE(cs4349_reg_defaults), .readable_reg = cs4349_readable_register, .writeable_reg = cs4349_writeable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int cs4349_i2c_probe(struct i2c_client *client) From patchwork Thu Jul 13 00:13:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702277 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 1F61DEB64DD for ; Thu, 13 Jul 2023 00:19:04 +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 7F02284D; Thu, 13 Jul 2023 02:18:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7F02284D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207541; bh=dBTk2FefqnG4xin7SCS0yWDPA8l6zdKHnV8xp41BCFk=; 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=dt3MBanRUh1J2/klKdFNr5kU6lbRhYxP5rreCNQU4lhTJk+rsMil04vV5ZOqTrcp6 75kI4CP6v41JAASLk3WSSKOPqszcMaKtQKCnSwDowPE+sGn7Uhp4JISCzGoyxKAdzj tm+WOZJWl8BkdX13YAK6LofrqBbIMfC1kPIWipSM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BCD13F80601; Thu, 13 Jul 2023 02:15:04 +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 23684F80607; Thu, 13 Jul 2023 02:15:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 49A98F805C9; Thu, 13 Jul 2023 02:14:51 +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 EE9C9F805D5 for ; Thu, 13 Jul 2023 02:14:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EE9C9F805D5 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=SPobgD/F 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 D4F60618FE; Thu, 13 Jul 2023 00:14:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DC8FC433CA; Thu, 13 Jul 2023 00:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207287; bh=dBTk2FefqnG4xin7SCS0yWDPA8l6zdKHnV8xp41BCFk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SPobgD/F0xfUFcltIsP+S5hlxYNY81Aikp41jj4tu+xDAsoseO6RrqI3hkl2s0/lL +ye3bUTdJGmSOn6Q1S9i94rmosb75eSB55H+mpA4xCptw3+k+fvUVgh51KDD2cTpIt 4vYaaDiOBZryzQExiiwt3PpKxi0wqW323jeL4Rx/qbZ2zWkXi4AcPfVUCT9LOEhpB/ XmO2DXzSjYrF4Mx31sV1VZsJo32stvCWVjMDIGuOVDzr88M7/G9Yp2bCmH4nEJsqT6 UOSEKAjQdC84+af5lMBJeppcTfSnHoyaqbjFNZRabXFhVGkvd6R1Iq23FTYZb4u/Jj Y0FYAuYexo5kQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:25 +0100 Subject: [PATCH 12/48] ASoC: wm2200: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-12-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1147; i=broonie@kernel.org; h=from:subject:message-id; bh=dBTk2FefqnG4xin7SCS0yWDPA8l6zdKHnV8xp41BCFk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G18kDgxN+pJ85ZYykb1CQ4oTxrnlGBmYDEe f/p/z3T/hSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BtQAKCRAk1otyXVSH 0JQbB/wLhYr5Ql8DO9f32msQd1grXk+7UuMd+/+1NWmjC3S7BaoAp4FEJSSFIcgkrCAZMppi7V4 UOdh0qYOBICTLNLjaYgHdm/QZm7r39GN76TXfkeKE2dF+En6/7M+pJQ5hH8Bycqi96A4l7Qwrqx JVML7fiAlLmsHHfMHttYeC4H4Aii0OFSb8LkArzO+1WblPvaWptW+s8K5FU8r6kDPud7+FAn/Ye i+Ok7CGLcztGiOfWtNKQQdIdznRAiAWcU9iyhdt8d5MsmdDzW9DEt/2vZGG0LotTIYmDmoUr5Yp mHAThyXkSCQ135gq+i4WY1hAfWUx0k+1yhV3TKEFGgT7wrtQ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: P74OTN2PMWMCBHEHVQWUHWFTVTMRGLG2 X-Message-ID-Hash: P74OTN2PMWMCBHEHVQWUHWFTVTMRGLG2 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 wm2200 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c index 277b8c468c78..36cdf97993a5 100644 --- a/sound/soc/codecs/wm2200.c +++ b/sound/soc/codecs/wm2200.c @@ -2151,7 +2151,7 @@ static const struct regmap_config wm2200_regmap = { .num_reg_defaults = ARRAY_SIZE(wm2200_reg_defaults), .volatile_reg = wm2200_volatile_register, .readable_reg = wm2200_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .ranges = wm2200_ranges, .num_ranges = ARRAY_SIZE(wm2200_ranges), }; From patchwork Thu Jul 13 00:13:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702793 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 BE4CAEB64DA for ; Thu, 13 Jul 2023 00:19:20 +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 AF0E5857; Thu, 13 Jul 2023 02:18:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AF0E5857 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207558; bh=aZ0Km6k2MpASmBDuwRnn2hw2kleJjjMTWXIxObqEJjM=; 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=b/wTpQyZwtDomVSzOgK6flQoBoMFE74ep9vr+JfhcxBU+48BlImvXMv/jdxHHrwvu kWom84wkGBcGH1WppMyF8lT9DGSnNElFlrw6gmToD3zT4yEw7a3kzae/0SK+wmLzWW pWmyppUew62AgTo56awS0WMQ6HdBQmtvY93fLmq4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 54633F8060B; Thu, 13 Jul 2023 02:15:08 +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 B00C3F80613; Thu, 13 Jul 2023 02:15:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 79663F805E8; Thu, 13 Jul 2023 02:14:54 +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 0D0E1F805DA for ; Thu, 13 Jul 2023 02:14:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0D0E1F805DA 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=I4QE4iMI 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 D11F661986; Thu, 13 Jul 2023 00:14:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1B54C433C9; Thu, 13 Jul 2023 00:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207290; bh=aZ0Km6k2MpASmBDuwRnn2hw2kleJjjMTWXIxObqEJjM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=I4QE4iMIFdt8PE/laEhh7wYh5S/vI8hE9kFf2t3/rv04qtmVLcAnCLCIgjc8XYwuJ wkNNdjjh+t4GvgQ95ZDO+4jE8RIK7K0qTveNHBjgGaeQgMBH+ZEFbuExRLY9BN1CZC 0pvYkbnG5mb6FC41isXyfnbMT5tARqrT8idAjKv4hD+5KeMHHQfek24WBotOXJyrt4 Hx22gyCoqrr921cd6isvfErHD4tRlVSJj7VpLr/xziSBKOZCYvzxPgVbNajNFthjIk UquiwonEVFxkYED0y9j0IscpRnLqqXRXRBagdTaFsqflb/4sV6DxDYi5N8VAq1iINj 8xp4eR8ojyV3w== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:26 +0100 Subject: [PATCH 13/48] ASoC: wm5100: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-13-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, 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=aZ0Km6k2MpASmBDuwRnn2hw2kleJjjMTWXIxObqEJjM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G24gLtpP3LQVGyJ30f9sTtZ7y/kKFdWhIFd /ZOMFiTYn2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BtgAKCRAk1otyXVSH 0CaNB/9ZeUKsGlTznRt6qqfU9fv9H8QuR62+Usl4KC13JgVfeFE11I6slNflWmppCeqg0Y/g0Z1 +QptrXkyF7Nu+QiGK1z2QAxES33Uuhlb5ZxEvRmTPiWStGQHu0vfukiEVyFtQlY3LXcNu8+y8Wz ysPF9PwI1bQ5tTmJH+nxp6S8yMAMYqdbHskq4Hnl661SZI0B+Pkd9O2BEVNlIjmPKVD/8Bb032Q L4mm/TfKuL0j3BPIUodNMod7C8oC33xbMEYYrPUCdulSEo2NKfEMeg7GUc4LofdA9tTdwzO4OF1 cyrPhobraNQ9X/45iApvz/XiSkpZjB0jtyt+4azZwYar+nVL X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: AFJEMVRX2NICEL53RUBIALWWJR6WDYVG X-Message-ID-Hash: AFJEMVRX2NICEL53RUBIALWWJR6WDYVG 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 wm5100 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm5100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index a86eacb2a9bb..ff63723928a1 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c @@ -2400,7 +2400,7 @@ static const struct regmap_config wm5100_regmap = { .num_reg_defaults = ARRAY_SIZE(wm5100_reg_defaults), .volatile_reg = wm5100_volatile_register, .readable_reg = wm5100_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const unsigned int wm5100_mic_ctrl_reg[] = { From patchwork Thu Jul 13 00:13: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: 702276 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 D3CC3EB64DA for ; Thu, 13 Jul 2023 00:19:39 +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 C2E70820; Thu, 13 Jul 2023 02:18:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C2E70820 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207577; bh=3PywKAFWkwriAnChF4krGz94x7ZTY8vloSY8lWfMtIw=; 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=Sd52z4NqKU1UQ2CMnLh6L2yk9OWSAfw7taBCH8caEoWkeg9jSH67OKdMVcx+ofysE JIZu5dEZZom/tNEQwjjwCXNd7NdVXx4qCABwq1aFIOTBqOZuUqzGazO6AwKP1ZalPD Y1vSg1ViySPCCOFmiGrcSp0RyA/lj6nSIO1kgudM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 71DE3F8061E; Thu, 13 Jul 2023 02:15:11 +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 8F14CF80616; Thu, 13 Jul 2023 02:15:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B197EF805F9; Thu, 13 Jul 2023 02:14:57 +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 AE786F805EE for ; Thu, 13 Jul 2023 02:14:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AE786F805EE 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=bfBZyVkP 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 920C361986; Thu, 13 Jul 2023 00:14:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C817FC433C8; Thu, 13 Jul 2023 00:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207293; bh=3PywKAFWkwriAnChF4krGz94x7ZTY8vloSY8lWfMtIw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bfBZyVkPjw2mINifzXkW8ZbdIpPEXSYNq5GkxwzJh0Om9rfWmiTaVPcYMfCKbe/m/ RfFCXEPEIDdRSpbRdoqorojLiBXGFZe+rn+3GjT4G4eSQG4hC95IlS/3bhtK+qOJ1j shqVT/Jlh6mjErexCNZcesJkWlwYA6JSEbLVCX/WzrV2P2P2Sp9ZOMI/6F0nvhlp+o gOLSHAHkpfpZ96ARiOGYnJgH9TuE8rN8pnEdnmm/UhWQ3tYR4wvWvlzg5Qav7dPcPK 8xy/w0FfVQPmfTWLGn1TM+0tB+cJbehIhCUd5tv2usmpYeQk5tkokRq/n61z5IcFgi +qoDtE6jPxexg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:27 +0100 Subject: [PATCH 14/48] ASoC: wm9081: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-14-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1123; i=broonie@kernel.org; h=from:subject:message-id; bh=3PywKAFWkwriAnChF4krGz94x7ZTY8vloSY8lWfMtIw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G2HrezrlWer0LCujg9qoAygR/GodqieebYY ZTu2kG7GxuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BtgAKCRAk1otyXVSH 0BFeB/0SUuVt71NVh6ny9tCg+wHFoQoANsYSCn6u3sQoq5J7nGMPUok3/67DkfNranbZc8/XHK2 /Z6PGTOCLpRULxMNxjkbAm92n9oAOsn7zL9Zt5C9ivCOHskowMxnJregwJsd3TALZYB6SBZZyYE 21wmVvy4PKQNGNFqWjruZGUx1T9etYK9Cz1KPQAkQDctuzgW3UuJveYEAJ8WkodY2nBHFxA0oXR 3sCjW4vGpZSROLjGkbpK8Pe0p+BpA1UIdmkP8wPPeYViSgS6LQJ+YI27sZbrrqusY6ZEKuPd75w k38nGIqwhhnbjtbj8sxPx+U64i76ZViGZ7LkULJk6nXgVXWi X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 4XEVXKHVI7OV4DF5OPEKR2Q3UE2C3Z2B X-Message-ID-Hash: 4XEVXKHVI7OV4DF5OPEKR2Q3UE2C3Z2B 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 wm9081 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm9081.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c index 34a07db7342a..e7ec799573d3 100644 --- a/sound/soc/codecs/wm9081.c +++ b/sound/soc/codecs/wm9081.c @@ -1295,7 +1295,7 @@ static const struct regmap_config wm9081_regmap = { .num_reg_defaults = ARRAY_SIZE(wm9081_reg), .volatile_reg = wm9081_volatile_register, .readable_reg = wm9081_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int wm9081_i2c_probe(struct i2c_client *i2c) From patchwork Thu Jul 13 00:13:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702792 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 0DF07EB64DA for ; Thu, 13 Jul 2023 00:19:55 +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 C28A4847; Thu, 13 Jul 2023 02:19:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C28A4847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207592; bh=OSzP3slIHM0RPGBQp8TAKuB/zqLcOXA79h+ZosVLquA=; 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=A0qzxqyfifXsc4KL9cgLK673dhBIWVbvgXICA42Q3lWYzfZ9qEHHjS+J6gpLwcn7Y aH5sp9Adl16zTAYc4JsnMEgBUe9UMTXguX/s9jCt/cfUUDRlgED5TwuTFxg0nhJMk3 5gdy6NK/4uafxOVZaW4Jnb8F38qm1/WacC904tuA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 68BACF80548; Thu, 13 Jul 2023 02:15:24 +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 83CCCF80535; Thu, 13 Jul 2023 02:15:23 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 75AD6F805F7; Thu, 13 Jul 2023 02:15:00 +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 AC294F805F4 for ; Thu, 13 Jul 2023 02:14:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AC294F805F4 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=VdnqO3ce 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 91D0F619B0; Thu, 13 Jul 2023 00:14:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F1E7C433CC; Thu, 13 Jul 2023 00:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207296; bh=OSzP3slIHM0RPGBQp8TAKuB/zqLcOXA79h+ZosVLquA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VdnqO3ceG39H+mEqZlKuq5SSBDrO2Qjkd4pf88fD6EShZ2x1PUYZvnsNiV8V3R6fx g7wuyFYpCMwNx6AmpOxnWcUgAqJT/HGiMtg4BXCI3kdyDaHlYFEOtPU7vjVF2vb5jb 1tAT79Oyw45sSM67WLXDChWi/5YB6thKlwaXWnQOutjxrfiPcD9QfkSf6jM+IFc3mu FuIPhV5P7+NQWBpqWEC6sxc0cp2mnVo+GqZr3iVurkq29EDuYnYHPpNM2AL+QMYp7X iczW1X1xKRJpfTaSbuE4DLK/VfYilHwhtjjuTlGyDkFXagXr32WxFkWFsr6e36tAnE 4VEYeKfffnQFA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:28 +0100 Subject: [PATCH 15/48] ASoC: wm9090: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-15-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1098; i=broonie@kernel.org; h=from:subject:message-id; bh=OSzP3slIHM0RPGBQp8TAKuB/zqLcOXA79h+ZosVLquA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G38ro062rGSJj55rmfFETC4IVaFk+2t9gsE beNjK9XGOmJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BtwAKCRAk1otyXVSH 0JnvB/41ubRHjT7KVTMpQZ2Wg2MWxqhCfpoqCTvgYZ8rBMReyta0n2d4+bnmQWiryfYtWIRbmah /HgXyoqH+Du7XcBxqGpzP9K4NLjf9OMUoe+RMeYCPP4Dd5o99zLS8uWuzu47rPVeU6mZEccZN4n 7IVrmxeZe8hsNm+t7OwccL6bACkhVWP8D9YbAqhdbQBgoNsdWKUeDGNi2WFeoMsI1gYFuChH2m9 WMbA5bRfozgElGFub732sCS2orxEKy4nI5Vc/4SuJtfSxNRGnbEmOMhxFdSrcV7y9MwvfBIPbbH bIMjgEOVVf2W4LV4jNSUkTTr8UbS3KCvqfyS8FI+L/EK2+Eq X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: VRJ47YS2MNBBO7KXQDOEOZOVPQZ3DS7R X-Message-ID-Hash: VRJ47YS2MNBBO7KXQDOEOZOVPQZ3DS7R 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 wm9090 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm9090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm9090.c b/sound/soc/codecs/wm9090.c index 432729c753dd..50c1cbccfdb9 100644 --- a/sound/soc/codecs/wm9090.c +++ b/sound/soc/codecs/wm9090.c @@ -553,7 +553,7 @@ static const struct regmap_config wm9090_regmap = { .volatile_reg = wm9090_volatile, .readable_reg = wm9090_readable, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm9090_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm9090_reg_defaults), }; From patchwork Thu Jul 13 00:13:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702275 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 8BCF2EB64DA for ; Thu, 13 Jul 2023 00:20:07 +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 6B4DA93A; Thu, 13 Jul 2023 02:19:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6B4DA93A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207605; bh=sWuLqgc4Z6UtooweXyQMttnQTNbpwzdVPcwP9mGLJMM=; 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=Y2W/DgeJlplX7IP97reQEU4hDMXKhFNjPujAF5sNW0885OjI6ijdiyEmw6WLxKL2a 7fccmpGiD4RS59JLVgAsKr69B0XU5DwVD3+Mx6Susg/mCzo0TSjXNzCzd9uXTzGPpt Rngdz5nsMcqN4SIasjJt/mg5nf5b7BHdVoi2B5IY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 43B5DF80623; Thu, 13 Jul 2023 02:15:26 +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 5F0A6F8055C; Thu, 13 Jul 2023 02:15:25 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B74EBF80602; Thu, 13 Jul 2023 02:15:03 +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 C6BCEF805FC for ; Thu, 13 Jul 2023 02:15:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C6BCEF805FC 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=HYerCLKT 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 B7A4361987; Thu, 13 Jul 2023 00:14:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89250C433CD; Thu, 13 Jul 2023 00:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207299; bh=sWuLqgc4Z6UtooweXyQMttnQTNbpwzdVPcwP9mGLJMM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HYerCLKTLdd8paDOUIwhfKJtE0re6pPg5yA4IQXplPTS/g04D9OVjaZqtlxbM7QkB eHbqybTOQ60nSJ7BvxxMCQj2ARAzGxVB4kpK2Fvi6zjjyfAgVmJfUIpwuwXPj3YyWy N+OZKxWMF+HEVT62SrukPeDbCa2Exnzm8NCPLquVM+t2YpLwmTwC04CkJbP3kR8Ygi EQ7NjNmGaohB0kBGSTEjNXnD6qQWw04nUxXlL3R7WPCw2o8Ujx/M8cj+RTTcW1DupW o/y/TmnXLEYk8CMtomqZgbNoesHPJWnaCNWHN3lFlHEap2b1HwxdZn4dxcqzHKdodg gSBDVE3biQkjA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:29 +0100 Subject: [PATCH 16/48] ASoC: wm8510: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-16-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=broonie@kernel.org; h=from:subject:message-id; bh=sWuLqgc4Z6UtooweXyQMttnQTNbpwzdVPcwP9mGLJMM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G4hI+4fT27Oa6SThWntwhVWkz7vTUaL4CBE /Jqkw74FtWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BuAAKCRAk1otyXVSH 0K5EB/4iPjMvcNtavWMZfd5yqKP+j13GCD7YzdlWoVQMvMvGsQYmSgHpuswc+eSbUBfp3nWXu8w H+jqDTzxFvLixeHJclW7hEz0BuQ+p4/QBFL2RHqhxoF8zzMl38obXImZDUqVAe3zT6dYep/62jx VsNvQTu9BYOx6yvUwlw8CfE+fxOyzTFQRTpzmiyXqw61FRt9AN6oaQ2DKcwjvpaKFWreQd4BVab 4nW/34VmlLF2hnu4No8UDI/nHVQOYQNivEvWcmgNtsqgFXpMGPBJuDH2EZ1qxPI4w5O8Q7sJHcb qcrJuw45qMcjVCFbjxiHfl2auKTA/HIX72fBcHmWVG5unDC2 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: LSUG74GJTOJCUOK6UIHUNAWQGYLJFWWU X-Message-ID-Hash: LSUG74GJTOJCUOK6UIHUNAWQGYLJFWWU 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 wm8510 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8510.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c index c0ed76d5b65f..6636a70f3895 100644 --- a/sound/soc/codecs/wm8510.c +++ b/sound/soc/codecs/wm8510.c @@ -607,7 +607,7 @@ static const struct regmap_config wm8510_regmap = { .reg_defaults = wm8510_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8510_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8510_volatile, }; From patchwork Thu Jul 13 00:13:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702791 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 0D153EB64DD for ; Thu, 13 Jul 2023 00:20:13 +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 DA3D3846; Thu, 13 Jul 2023 02:19:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DA3D3846 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207610; bh=mEQjmqKbNvHzHuxZdpcZL/1D4KD5AVyShbqeO+7gIAs=; 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=qS82CEOIpVgN88DrC92kGcsVr8WC6f+nMKq/YyxXw5ODVmwlIvuI2SH+Vl0eOjQ0M jyhlIlYPx8qhTDOThd4Mvn4FhQMf9ynMbyCpa/t/Zexfp8EY7b52g6fG/c459W4Nvx sWGv14OXNu8qD/AYowvXRUq6yUlci8bb1NOrZvig= Received: by alsa1.perex.cz (Postfix, from userid 50401) id E67E7F80632; Thu, 13 Jul 2023 02:15: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 AB645F80638; Thu, 13 Jul 2023 02:15:26 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F225DF8060E; Thu, 13 Jul 2023 02:15:06 +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 D7D3DF80605 for ; Thu, 13 Jul 2023 02:15:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D7D3DF80605 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=DOWw1nG9 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 C8ECD61986; Thu, 13 Jul 2023 00:15:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1EDFC433CA; Thu, 13 Jul 2023 00:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207302; bh=mEQjmqKbNvHzHuxZdpcZL/1D4KD5AVyShbqeO+7gIAs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=DOWw1nG9eSYOzbkPxvXwonNuO05bqHw1tO9wmSlcQBauUETFQqKJV1Io8xnruF645 nor4yiZazPZE6adDj67UQzoN9VmWNDC0iNMWTnDxhc9+axGzWWwVbi+D4UcKk9pHyV BGyZf0DfX80lh0V9MNfI/rwq7ZNxd7IQNqGK8nYlL7lFzZhyPvIiBjQmRyvOKoAl7i m7hXF6uaRajXD0iKISxzbJedpf0yajSG/IU5De6L8Tqrem9zcOjDRCC0zWE6/d5XO9 q1kUZfjBc41xEhgiTMlhkwXcxS7xhnwK518GJBXfKNUGelI8jD/bhLebsbYxMJGsdq Bh7knKUu2S5kQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:30 +0100 Subject: [PATCH 17/48] ASoC: wm8523: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-17-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1074; i=broonie@kernel.org; h=from:subject:message-id; bh=mEQjmqKbNvHzHuxZdpcZL/1D4KD5AVyShbqeO+7gIAs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G5ZWEXEXEbebbqO/TvCvhIYDxuaxlqlpI9u Nizu/xX9vqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BuQAKCRAk1otyXVSH 0IfIB/93A1uAP04BdTRJ2i+RDVzmhC7jJbMN4OQz08gQabYnhNf9sSJ+OYOJ3RHlRFmlKk8eMoM ftqmNXI+MaJYPhfHcsWAGTC57HqPNTaLWHwsbwwdNtoHFSuLVx3e0OSe33cbYiTI5OMrIejIERo WfQQ+Qo1vAmNQRHBLDhqLYu+ZeSvp2M9eW2TdVyC6O37k62s3BES13k072CxGN6Js3QX0bVr/uq 5i+r4iyE6nfbkGMOu6s/SG11b6YQjtI+I7BU1Q8HDMg+dLpC+v1PaTNR5x7NkQ4uNIuE1dkwh9R VS/YZjzxIfyX8sIBTYK9uYF0xWEcxa1QTF5BQBG9FZNhRhcY X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: O72PR4BTTZ432TBHLAQ6NJLRMI6MZVR2 X-Message-ID-Hash: O72PR4BTTZ432TBHLAQ6NJLRMI6MZVR2 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 wm8523 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8523.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c index 55c72c5ac845..ea87cd3cc0d6 100644 --- a/sound/soc/codecs/wm8523.c +++ b/sound/soc/codecs/wm8523.c @@ -437,7 +437,7 @@ static const struct regmap_config wm8523_regmap = { .reg_defaults = wm8523_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8523_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8523_volatile_register, }; From patchwork Thu Jul 13 00:13:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702274 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 ABDB6EB64DA for ; Thu, 13 Jul 2023 00:20:39 +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 D02517F8; Thu, 13 Jul 2023 02:19:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D02517F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207637; bh=YyEnQIX2JWZLzjew7wfYcn0E6NOzr1V02Gn3KHhT3fw=; 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=YIRkymXtZyn+NueVY1sBAZYiSdiW7UOuF9VUMEcVsXjfjKIpp4g2V/kGwvAv1E+MQ Rc9rEx+sqt2g/ic6wjWHjKuySCMdlZwCh+x789gtBZFm1vkdJRDjf9k1cHnm0eYD53 2qPLQxnlS8RI/o5RD5YY9/EKPjvflDAlJHeg4p0U= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6E5D6F80641; Thu, 13 Jul 2023 02:15: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 23D74F80639; Thu, 13 Jul 2023 02:15:29 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 127CFF80617; Thu, 13 Jul 2023 02:15:10 +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 7DBFAF80615 for ; Thu, 13 Jul 2023 02:15:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7DBFAF80615 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=MrN1se74 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 6D164619CB; Thu, 13 Jul 2023 00:15:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C39FFC433CC; Thu, 13 Jul 2023 00:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207305; bh=YyEnQIX2JWZLzjew7wfYcn0E6NOzr1V02Gn3KHhT3fw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MrN1se748SuGocddHkC58K5Jx+cdnv9USqHpV/6v/UxxkrbIqtJgoj3pEyuXspNr3 aB61HoWAraIxlwe5VpqZIn3eUkSvqT/DNeZY3DSN9OnmsAG8g9qGbD2cJkfh9soce2 O10Uz+dhlGu1iZbPX3wzJwebBzS5XonLO1Yb+pDd6HSyAb+f/QahF74Gk/V7oKiJ4B QxNu+Ijry+mSDqapdGIoMMjm4xfcak6FZbNPXyQvNuDmx+MrSmrxueNGKfp17LyjSr okCbGle0lTsARFYvjgLK1ydgycbS7S/YjYry9SIDMLOmexqAY9BTR2wb3q4m+KV7Po ySZpnlAkjvRyA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:31 +0100 Subject: [PATCH 18/48] ASoC: wm8580: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-18-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=broonie@kernel.org; h=from:subject:message-id; bh=YyEnQIX2JWZLzjew7wfYcn0E6NOzr1V02Gn3KHhT3fw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G5OtVudBY8FAVSDPctPkPgoFU4kyJ6gNmXO qPhHvcI74KJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BuQAKCRAk1otyXVSH 0CAhB/sHcdUm8GWaq2evgAhsi/FSjfUZoYWag6s+Tfh22CjyGu7nYuuH6KQwW60RI28lERm1h+O WYNVqgDNlc9xMqdiN6D2o6uZIODetDuDBrdXKC55GesLTxTiK+rwSLnROQgfKOHb1d+fziSlZGw YBkMW/ebFlUbaHUkMrGKrDEUy0OWW5E975g6+Tbt6o/SeYd3yZFgveS69aS4JfW8CVoGZunoTD6 KA5b3NPqiBt0SvZdoL+8NmXPGABWqzPtKyyAgWQvV/vrI78WkNLmeoRpUYNjGUoUGb8naylDAjx 105csON5nNu2gLhyX6rtBbC6eAfNNVHal6vxeINOjsO219pf X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 5OCKCEC224HFSFFQ6WEBLYHHA442XLD2 X-Message-ID-Hash: 5OCKCEC224HFSFFQ6WEBLYHHA442XLD2 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 wm8580 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8580.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c index 34ae7fe05398..6d22f7d40ec2 100644 --- a/sound/soc/codecs/wm8580.c +++ b/sound/soc/codecs/wm8580.c @@ -975,7 +975,7 @@ static const struct regmap_config wm8580_regmap = { .reg_defaults = wm8580_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8580_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8580_volatile, }; From patchwork Thu Jul 13 00:13:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702790 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 1BFC7EB64DA for ; Thu, 13 Jul 2023 00:20:56 +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 209BF83A; Thu, 13 Jul 2023 02:20:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 209BF83A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207654; bh=S0FMra/NIwtgrsf52A0Jq6twDcNgq2AIqWYgXwNT5Sw=; 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=U632P0HBAbg1cQtSrPYIkGhsINafip2bfiIdgCB4IJVmT9iMZjtUcwyVrW6584JYJ npdJQOY2IMAnATpeeNr8ck6CXMyEPJ4sIuK1FzxIj5YClWhqAXxr2XkYeGq19VjTJ4 L/iHMmQlJur8pxQ81S4F2BWV4eenaABTu9uFYWT8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BCDDCF8065C; Thu, 13 Jul 2023 02:15: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 70B47F8064C; Thu, 13 Jul 2023 02:15:31 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BBD5EF80621; Thu, 13 Jul 2023 02:15:13 +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 96123F80617 for ; Thu, 13 Jul 2023 02:15:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 96123F80617 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=rD/goXWd 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 8810A618FE; Thu, 13 Jul 2023 00:15:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4A0EC433C8; Thu, 13 Jul 2023 00:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207308; bh=S0FMra/NIwtgrsf52A0Jq6twDcNgq2AIqWYgXwNT5Sw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rD/goXWdT9Jim5bxZF1Tfr1xnCLuMibprK9tREVRRw514WcDyGbqJcz9di6MwJx7z c0+lzDgnrjtgASvmVdJFoDfwVbSC9CDJWVa46Gl0AxTIpJxoo6EA0xdxGbSxoI/3ZE cxTwmH0WZM0dAnlXvMz4vF/EgRPBwCpsGYx4MWP5uluT0kCVN4GjMoXak+aMGbyOFB IWRnCtbJoUmkI0I1sFgPDBtXjz5r3v/L17K+wL9OJUe6z5sTZcARaKPR8eY6Ewo7jk aEGki26Pm0B3cxqba0GJGjKzmXwEwiNdmltqI7lJkLYiyAfrGMn6q0NIJYgonWn1Bg jeaawXHzbCxhw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:32 +0100 Subject: [PATCH 19/48] ASoC: wm8711: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-19-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=broonie@kernel.org; h=from:subject:message-id; bh=S0FMra/NIwtgrsf52A0Jq6twDcNgq2AIqWYgXwNT5Sw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G6u/Tcxc04uR9CQjEvI2X0H8LkB4yzDCJoZ vq4UtoNrBCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BugAKCRAk1otyXVSH 0MZhB/4z/7bEJfQxifWv4Q1yhC2r+TvTqpuJV1pGam3rXDU+n//kVHVj3xoTHKXsi8pKCP+XDf5 bNQaiXO8BEvV7rGOoG4NSMi78slEX/kTYaAUUHJtPR89LZUPQq7E2lzth696q16IJHa1rlLPO2c TrLF06aVRNvX+TTyc+uty6oVkxJNIS9EE0vkcfDb25pf9yuFPSNwYPxw+NH81L84A1bPeMAq6Jw IFWZoYTDV/7UbSMdai2zKujg2USFb1bMNIht2zXad5xkLAp/5qIrf1y+Qa0Xls6ZwWUXAwtrIxd wygODI4g4WTZ+d0vLIJO/ydOAm6vQxPzvL8+5OCUcOhuHJKp X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: MNOIPOLIRRX2JAGWG64X6WHGNMCVC3DP X-Message-ID-Hash: MNOIPOLIRRX2JAGWG64X6WHGNMCVC3DP 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 wm8711 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8711.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c index 903a0147d584..916f297164de 100644 --- a/sound/soc/codecs/wm8711.c +++ b/sound/soc/codecs/wm8711.c @@ -393,7 +393,7 @@ static const struct regmap_config wm8711_regmap = { .reg_defaults = wm8711_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8711_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8711_volatile, }; From patchwork Thu Jul 13 00:13:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702273 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 04040EB64DA for ; Thu, 13 Jul 2023 00:21: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 5F62884B; Thu, 13 Jul 2023 02:20:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5F62884B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207669; bh=TiTPhvZo9N7KpTy/6yr36XNtiQICsBYSYQYcZGYusaE=; 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=E4HR4diHY3KXNGIbrLsksjYMzNUeMibbgyjMRxGkgKV6xQlC028yetLLl4Jw3fakW 3pBPY01nB6NhSCnpPf47pazP8Ce8VlMf+x4NeFsu7h+7xt0l65eUnK8X0tXCDCXAgu 7dNIMdSCiK2vRrfTVVLSAHxHjp6cuj9X47z8fFZI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8A03AF8065D; Thu, 13 Jul 2023 02:15:33 +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 E37B2F80638; Thu, 13 Jul 2023 02:15:32 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D68E3F80620; Thu, 13 Jul 2023 02:15:15 +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 AD05AF8061F for ; Thu, 13 Jul 2023 02:15:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AD05AF8061F 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=ZLIZmFxn 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 9DFE0619B0; Thu, 13 Jul 2023 00:15:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B564C433C7; Thu, 13 Jul 2023 00:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207311; bh=TiTPhvZo9N7KpTy/6yr36XNtiQICsBYSYQYcZGYusaE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZLIZmFxn13T2Q4rbPZ4V1KtfDstakDp2ZZIjKMERVJh25OM8YTUiIiDBQmlBfKzoS WnDelLrP7g7RDoJaz5e6QVhxlxoCbnorOwMNwZJiaHcieD2E1D2DAOm4gATKELrX0s 9Wf5JCsn9R9rinNmqEuIhYlLUi8bpkbmhjFuy8nuV/NSVpA7RhKGjvdDAK8oLW4P+T /wxVbkxQQjEPD9Efl/RE+FvsXH9pljSAM0G4jDSYs6c7Y6cMS8bgHQ0G7z9k08T5Z3 Fb9Ky5XjvC0+O/Ntia3h6LWnjmiLlaPtrQJNB03WrhtC3NV0AIAjK26PV+5RgwohYA mTw9Ox+5bn2mA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:33 +0100 Subject: [PATCH 20/48] ASoC: wm8728: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-20-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1062; i=broonie@kernel.org; h=from:subject:message-id; bh=TiTPhvZo9N7KpTy/6yr36XNtiQICsBYSYQYcZGYusaE=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G7u5BI+tJ5Ub4Xug7RQQVHSuL0cZDZUt+Jb 9xHV/TsmjyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BuwAKCRAk1otyXVSH 0CmlB/4unZk7Z9R7vZbdhKNIBMoupK2dVrDm2ak7Er8Gi2ATXUML2QtICoEAmhYOEFs/yBEGnWZ heu3LrAHz77UMTRpSGbDF+RVEZiBqdH2+o1a+O7lX4OWPNNt0iBhmVmp+pVS+qN7m53ruj1hrR4 8q/aC9aS3InVgJhyUYpJVekzVF/fsnG/edA878GlucE6GHMP2hIajJTIA8f1p2ev8YNj9lgUWYc +L5Xxt0NVkymaZZwdC45YVzBgGACV9IrJQuITnvN0JkBxFlUUFxlQg4aU0ZG/q0gc1gkr5Y/VH2 5/cJDKUWYBTGH42Lh5e3mZiu5xKgoLLvO+cACg5XlXL5Cn8T X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: X4UKKS24BYW7Z7ZUFEEJLDTA4GZBSLMV X-Message-ID-Hash: X4UKKS24BYW7Z7ZUFEEJLDTA4GZBSLMV 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 wm8728 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8728.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c index 5ea6d8fd10f6..0c943e7d4159 100644 --- a/sound/soc/codecs/wm8728.c +++ b/sound/soc/codecs/wm8728.c @@ -236,7 +236,7 @@ static const struct regmap_config wm8728_regmap = { .reg_defaults = wm8728_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8728_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; #if defined(CONFIG_SPI_MASTER) From patchwork Thu Jul 13 00:13:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702789 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 8E391EB64DA for ; Thu, 13 Jul 2023 00:21:30 +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 8652FAEA; Thu, 13 Jul 2023 02:20:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8652FAEA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207688; bh=l3ebw0XWDneVahRnEFmLn8+x/+DwVlxfRDQ4EhGXcqs=; 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=bOZWs2BPhRQ3l8xYzCIOheet6NiuTB8Q7Y67knJYC9MBTJ+DZTJC6H4Q5EuzbcVCd w3lu3QUdHsXWA1y6d/O7fy+khxf9JM47VsOsHl4DwDN8Qvc4B3KMgoMlZtwLkD/aVx Q1foky1FL8ShUj8a1J3F0TTLcGumRgIfhTVSYj7E= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 23F87F80681; Thu, 13 Jul 2023 02:15: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 1AE3AF8067A; Thu, 13 Jul 2023 02:15:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 63F77F80620; Thu, 13 Jul 2023 02:15:18 +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 9427BF80619 for ; Thu, 13 Jul 2023 02:15:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9427BF80619 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=Wb3npYiA 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 80AE0618FE; Thu, 13 Jul 2023 00:15:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 957D5C433D9; Thu, 13 Jul 2023 00:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207313; bh=l3ebw0XWDneVahRnEFmLn8+x/+DwVlxfRDQ4EhGXcqs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Wb3npYiANGSYcJVGTIZJ+Ju9HuWc7P+9jCnCZsuXIe3zO8F5L9KV8y3Yn223FdH8C C5OuegigWVe7vC4PK3DrXDg0SqTVw17byd+PcRX8dsdo62L7Fl4VbveRQPek4cZCdK a5VRAXZc5Kifr0NUShM2tWwTmDOXNphvDFdbIpxBBUBH4R/vVmwsw6XcgNYZR3ZMRc 3FXySC7i7m+CeHRPgdnON/fUnwf6fHUxjvSxOZ7j21eSnvPSbsAsnt9JcQBAxdbLIr dMNMqLNyJUgM5w9Az3qiw7ON1Wmn4Dbw5/FoA6THDFPbwfoIbHav6C3if/xIX060Zk 6rT/UGD/QdFHw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:34 +0100 Subject: [PATCH 21/48] ASoC: wm8731: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-21-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1088; i=broonie@kernel.org; h=from:subject:message-id; bh=l3ebw0XWDneVahRnEFmLn8+x/+DwVlxfRDQ4EhGXcqs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G8wR6rCNkIQC698mWPi0or8oloJzHqaNqZx 0qyvIURlaCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BvAAKCRAk1otyXVSH 0INMCACCmwT/H6oniKWlo9hF2VVP3/+aqEnFOdBFR9Nuw3JbH+Q4ziwgmJdv26bhkAb/QHTdpVl kmnSKUI0ZX6rMhU4yjmJvZAannN2CHeowurGR4wj0XAIkjeUKz9iZmX2pfBxTdrLVNcsu5K5ze1 +xLRfjUWJg9x5d8F7LfYZnyChS+k8VvmYw59a+rUJiiaZLwhjuOiJ4LKzhndL+2J181/VuNl3LA yAmoh8q0JROy/kho4KFerVIe1UeTVQ/XWIMprVmXfJRhODr4iK3mOWPsys/uXbptPWHEncMLhEe hNEm7uVICAabCvU7x+fbzdZkXUrgcSCMVEsFZWRdGDViCJDc X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: EGRC4S7RM7GKQAYZ6IWIMAF43WQJGANK X-Message-ID-Hash: EGRC4S7RM7GKQAYZ6IWIMAF43WQJGANK 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 wm8731 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8731.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index d5ab3ba126a6..efc160c75f40 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -642,7 +642,7 @@ const struct regmap_config wm8731_regmap = { .max_register = WM8731_RESET, .volatile_reg = wm8731_volatile, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8731_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8731_reg_defaults), }; From patchwork Thu Jul 13 00:13:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702272 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 5D6C8EB64DD for ; Thu, 13 Jul 2023 00:21: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 8DAEA84C; Thu, 13 Jul 2023 02:20:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8DAEA84C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207693; bh=p9SLiWNYubnGrtWlIFYl6cE2PiPcU8xCW7b12JzI6uM=; 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=G2TrVzx8nAn54CpDlA/z5FQGO/ABUVsp90BwmecvVEDPr3BjWa6G8hg5rkxntIoNl yB6yAajhktnkugf7Nkzf3LrDWMYe54m9dix9TNTthBYnxk70iUSmmuUe13gGAPyYgd B/avP1vo8DF8CW4puxdSVP5f7uJxaoh3N2IulETo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 21727F80687; Thu, 13 Jul 2023 02:15:37 +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 883BAF80683; Thu, 13 Jul 2023 02:15:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 33946F8061F; Thu, 13 Jul 2023 02:15:21 +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 30EE4F80548 for ; Thu, 13 Jul 2023 02:15:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 30EE4F80548 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=k4z2Lxjf 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 263C261986; Thu, 13 Jul 2023 00:15:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75E1FC43397; Thu, 13 Jul 2023 00:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207316; bh=p9SLiWNYubnGrtWlIFYl6cE2PiPcU8xCW7b12JzI6uM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=k4z2Lxjf/3ypfENrAAa7cOVOqeE+LSWlLO/e683k7MVhMvnBOlUoNKVjaiTJ1s4MU qmKcNzoW5b/rSvx4VwhIHeQAZFFyLVsrfrOCDQUrRtYl8/1I1UfAUl0T7nCpeBPzUe 4j0+RBWhQyrb+4Zs3nzyD2wZTJfZPqq5KiZB6qFIhPtQIOoaXuNW/ajGZoZEJPQw/a PqsK5li6twVFjVZbro1galG3quDU3f9y3SJkUf7lPTxQJWh3kk23XkLpQPn1Z7r+S1 pdxRgA2Zm948J3jyNElkfQu2ebQNGxzqtAobb7T+XR3hjDk3KuXDsaNHBWrriRi1OY oOJjoRu61/mPQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:35 +0100 Subject: [PATCH 22/48] ASoC: wm8737: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-22-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=broonie@kernel.org; h=from:subject:message-id; bh=p9SLiWNYubnGrtWlIFYl6cE2PiPcU8xCW7b12JzI6uM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G8vGXaHi2LNujgmogYUKImWYUkQ6VPBE0FH JXcNRsj8zKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BvAAKCRAk1otyXVSH 0EdPB/wKipM6cpFPWDPT/zUco7EGxN0THYKQQfJEu0cDl2h4BeSOuOBAdShsdesfGcajI1hInDL Z0LRp9NHSAPd4e4ZmFUAyelkVXiwWVwS/9apxLsAV90gPD2flR6ATQU7Phh/voFMuoADEI3n+kQ XZBXnvU31+Gl9cqYBom7l0lXWk6vr65Si5n5yR0uc51pTkcd2V2oIEVGr1LSfdDqNMjoLWYxMTR MKQo6rORQrhG3ut5zgU5FdT+ZOoCcH9/xB1UJdQOd5dG8Y/CgbWOTNkotgvpbRVDvCuokmc7pqD vgvdbGcHjQYKB+y8//zt2yoP/FDhNAl2BJLs12ykg+vwOut0 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: K54MP34EMQGFBB3FGH7OKZXXQKHYO7DA X-Message-ID-Hash: K54MP34EMQGFBB3FGH7OKZXXQKHYO7DA 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 wm8737 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8737.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8737.c b/sound/soc/codecs/wm8737.c index 9f4e372e90ea..0d231c289ef3 100644 --- a/sound/soc/codecs/wm8737.c +++ b/sound/soc/codecs/wm8737.c @@ -599,7 +599,7 @@ static const struct regmap_config wm8737_regmap = { .reg_defaults = wm8737_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8737_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8737_volatile, }; From patchwork Thu Jul 13 00:13:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702788 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 E052FEB64DA for ; Thu, 13 Jul 2023 00:22:00 +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 435681F1; Thu, 13 Jul 2023 02:21:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 435681F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207719; bh=5Blbg/xfRWYBk3+mutGYbQkQ4Yps69Vbul50Xy+zScE=; 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=IV+wm+TKCZPZxbVW78BMOuMhiIsZHo0RkuQKVp6AktFnTEXxj2iJBzhrHtEd8ahfK UJnzUfQ/VAwLiUxWDO1Pn6i0SrA0dfYxfgaGKG1p+5DN7lvFuhajQpEeciLXHf9jcX UwOMKtFvn8AZpHTJXGJQOLeZOsuecDJvXmWib/AQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 68450F80693; Thu, 13 Jul 2023 02:15: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 6781EF8068A; Thu, 13 Jul 2023 02:15:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A03F7F80623; Thu, 13 Jul 2023 02:15:24 +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 DE575F80617 for ; Thu, 13 Jul 2023 02:15:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DE575F80617 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=VqfJWG9Y 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 CF0AF61986; Thu, 13 Jul 2023 00:15:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22C52C433CC; Thu, 13 Jul 2023 00:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207319; bh=5Blbg/xfRWYBk3+mutGYbQkQ4Yps69Vbul50Xy+zScE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VqfJWG9YV0SM8wtxeeaLca/qrqMNFnhrAiKVTanijb3z6ga07yi90ceWgtA5sjS8w GLulhXGEHR0HNAw6XHWKnUWqkYqa/+ySfQ4j1588f2iq8/c3qJI/tyedfXkETWajoV VasUOY7TcXleJi0rL/lMvqCzl0vu9iFqTDx2JnU6AcQCChLhGy9Uw12A8VT1r/8NI4 p5h0i/gW9lyk38/mKSZQRsn1sIwtAB+CI9lETuEOkC1CBV3ESkAl0TbOB+FX17Fin1 l+OL+GOdyy9kQbYw+Jh/J2e2jZP0r2qxyY8I79cLD6GXyXzVXi0N6MvTZXy+VWiMoS kqPAIFxxpMzJQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:36 +0100 Subject: [PATCH 23/48] ASoC: wm8741: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-23-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1107; i=broonie@kernel.org; h=from:subject:message-id; bh=5Blbg/xfRWYBk3+mutGYbQkQ4Yps69Vbul50Xy+zScE=; b=owGbwMvMwMWocq27KDak/QLjabUkhpT1jns3rXg2r00t2UErUPT6coPi9MwfNmdOzp4bEuIbq sxlw36qk9GYhYGRi0FWTJFl7bOMVenhElvnP5r/CmYQKxPIFAYuTgGYyNQV7P+r7c6olS6boP/5 LWOYpQcrXyTvt1U96yTsHKTWvYg0MDj3Iykw6vXqp0YJXBMki54fnHjIWjV8w+EvV335ak7nPDo RyBDed/lUia61dipP8jsO2auafrdYlvqfdzS/GKLx9O1yie/WfXGMjH/P5DUuEGfPaug7/Kr89s G/EldXRq49kPylxipKpMG5/5G7wbJYm6kr8hLVRIInvJrgO+knN3OBw8qN2vPtj+yvPfW/LvH9k w1l7aFNLcemLX78Pn9ZUMXt+FQxl6oYvXv+z5Ue1K4pLmn/y7DEwyJEtmgD482PMkr11lOWhUva sPpVKN/UeckfLOa3bVeFT6LnP/l5mp+lE8tazHPShDIbAA== X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: DA4KOQ2ME2UTSXSX6RIQRLDTKTAWAQGF X-Message-ID-Hash: DA4KOQ2ME2UTSXSX6RIQRLDTKTAWAQGF 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 wm8741 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8741.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c index 787156b980a1..19e8fc4062c7 100644 --- a/sound/soc/codecs/wm8741.c +++ b/sound/soc/codecs/wm8741.c @@ -543,7 +543,7 @@ static const struct regmap_config wm8741_regmap = { .reg_defaults = wm8741_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8741_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int wm8741_set_pdata(struct device *dev, struct wm8741_priv *wm8741) From patchwork Thu Jul 13 00:13:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702271 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 8FE58EB64DD for ; Thu, 13 Jul 2023 00:22:16 +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 91A3DDED; Thu, 13 Jul 2023 02:21:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 91A3DDED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207734; bh=vPdJg7Afn0wwLfXOBMhM4nmwJbycCVKMF0pEW1NQ59U=; 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=r1o3qkWfhEpBl1KTKFUDPx2vzgMJ+/xXFFubhkXe1Z7cRibixP6DVEQ4b0Lym7x1/ Bvh2QlSa3UVmv7WXHCgO52QfetMeWFrWyxz4jJX/3r6b3aTtoz0fIwVVSWFwIC6mG3 16xnNd2uf5rc1MmMRExsQc9G0F2aooog0x18j8fg= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3B096F806A0; Thu, 13 Jul 2023 02:15: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 468E5F80696; Thu, 13 Jul 2023 02:15:43 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E153CF80630; Thu, 13 Jul 2023 02:15: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 AEA00F80617 for ; Thu, 13 Jul 2023 02:15:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AEA00F80617 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=SrV8LGP7 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 91F6761987; Thu, 13 Jul 2023 00:15:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C51A6C433CA; Thu, 13 Jul 2023 00:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207322; bh=vPdJg7Afn0wwLfXOBMhM4nmwJbycCVKMF0pEW1NQ59U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SrV8LGP7mns8WGmttezb4g/MpD3W6Lv7QPAKdU3ZwaRqMGUKvYKlb81G3ECS9s6zK xJOImK8wC8fR4ANy3GjPRiNnvaVBJ6F/pacIuOzpQHxBw/Mzv5VBhittMeMlooiONN iOiWUtWFbZhks3KGD40rdTdC7/I5klPUqhU4fAag4zc9AylSP3tRqgCQcrGd/9HgrV crhf7RgQuMxbWoyLzOGv8TW0jSnB4m3hdjsYCiCuCiOcKKlXLP8lwgmZfdUsOZmYva RdmQruvjYTIO8S/nRqOIuMBk3QVbtWhNw5LrN8v0JZi5LLqlycmnSJFcecYkJmHhz4 TjsFYlx2wv1UA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:37 +0100 Subject: [PATCH 24/48] ASoC: wm8750: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-24-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1062; i=broonie@kernel.org; h=from:subject:message-id; bh=vPdJg7Afn0wwLfXOBMhM4nmwJbycCVKMF0pEW1NQ59U=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G+QQyJXHifqhSyTTTLDek8jgzEwhXonp3+y 4vqNf+Trw2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BvgAKCRAk1otyXVSH 0FXnB/956q+NOneUZ/O25iIMPDPQ/u8Cfdj1HQtOt9DkEUe75m/Uiut7qQ9gpV6yxIZ60XvpTL0 Y9xjf3ybRf+DQ+lnctdC9h++fGYd7vnkrzFLouTs5zA5kb1unwX+wAGVQGCvXn67EwqPDoQdE/S 2Eh7xawVNM0xU1G6se6FHiKxc24QNzDELjVuW2dhTQ6eoq7PX8+HN88W+NN+kUuFn3VMFM4+pgb oMS8WmQNL4C5QQGIdVVvW9WCt5wv6e9EscRwQ0vOc6ty7w0im1azPUKHUXitt7ao/dMvZo5+IEO eAGjNxyREHRj95qPbrDodaXeYrE5N0DdedcR8Y8msquNXqpF X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 6LKPR7MHDD6EEAJGXTY6OMC76NJ733PK X-Message-ID-Hash: 6LKPR7MHDD6EEAJGXTY6OMC76NJ733PK 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 wm8750 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8750.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c index 20dc9ff9fea9..2d2feaf95e49 100644 --- a/sound/soc/codecs/wm8750.c +++ b/sound/soc/codecs/wm8750.c @@ -735,7 +735,7 @@ static const struct regmap_config wm8750_regmap = { .reg_defaults = wm8750_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8750_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; #if defined(CONFIG_SPI_MASTER) From patchwork Thu Jul 13 00:13:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702787 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 68CCFC001DF for ; Thu, 13 Jul 2023 00:22:29 +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 4294D844; Thu, 13 Jul 2023 02:21:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4294D844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207747; bh=K+uHgFpOwUEUeSWZyVu7FZjBmFPpYsmD1WRCwpLgioU=; 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=K5t1oQvPiTXxe+gZaKMMFY1kP8LKWis2szQ13dXz9+4pPtb20o4fHVSqwweuTYoYj qOLoxOnxWpQmBySOW156G/iU6mTXv/d8DVy/bGZ8LkfkTOsVgCJUXDsWC7C5pIo3tr VU7BmMrZXQ5NwQxFEhLNvAVQNIGKlNr0dNkpSRCk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7C101F806A1; Thu, 13 Jul 2023 02:15:47 +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 EC88AF806A6; Thu, 13 Jul 2023 02:15:46 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DD09DF8065B; Thu, 13 Jul 2023 02:15: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 9B1A1F80638 for ; Thu, 13 Jul 2023 02:15:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9B1A1F80638 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=JK8l8xD1 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 71165619AB; Thu, 13 Jul 2023 00:15:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A053C433CD; Thu, 13 Jul 2023 00:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207324; bh=K+uHgFpOwUEUeSWZyVu7FZjBmFPpYsmD1WRCwpLgioU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=JK8l8xD1Su/+cepOW5n8t+segnkh/RSqkV+7A9kmAdMO2mYUK6QpjnruWZRtx689q kScBkvb2+Nsz/Vx8RUwl5CxZWlFH9ULqykmr59EViOe2xPvNmG2R30YFRHt42wafeB EWuyivp6rUwsP9Z2wdrDFgBFamSUUy53F3rjjArHCUrHDUzxeE9B+X6QjadOuTulEa CUlMOczOjL0Kt7kgjzL+3dRT3ad+HjXdlQMTXoQIn7vk+QT+aYFLR/Epo/v9hbyZfc 1Xm9w9hFDjB8WsrQRq4VGVNaG16aSg3zOyBsRJT2mdSyYkPz6CIJVh+cUAnO3QJuox ruTTNxNoyPHhQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:38 +0100 Subject: [PATCH 25/48] ASoC: wm8753: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-25-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1098; i=broonie@kernel.org; h=from:subject:message-id; bh=K+uHgFpOwUEUeSWZyVu7FZjBmFPpYsmD1WRCwpLgioU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G/nNhAICAzKig/CE7nseQNQw603NThB9swz 9/06yP5cgWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BvwAKCRAk1otyXVSH 0I3LB/9NyMDeRz2oozNI185rVAiG01nXWsOfZ1mL0BsehUqhJtqiueCjSBF1nauHDwznOB93UyI e0ue5ighYatcq3GuB6z6ivU0HUEcEFHpuAGbw8cLH2vbf/ce1jj4bllm/CcZ3FprG8HFU2Usyik Z+1IuzayDrCDuQbcXCTOvk6mN96Aw9F0a7oFFzLe9QMTxui4D0oyTwTTs2frECEKdlR/7zIh7rS WJ6m99MC7LV/OgI/Nn28sOTeAQR1I0c4G0WYD5PhL0eZZbFbaKmFAvWNpUaYv9tE7OSSiiEYA90 A81Iqnosu2N7hVUfoa1bJeh3+BdJA5If1mnjNNeydCRt+/iJ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: CLX4UU6576YDFZFCSRQQ65JDGEXQFYCA X-Message-ID-Hash: CLX4UU6576YDFZFCSRQQ65JDGEXQFYCA 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 wm8753 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8753.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index 5e8a8eb41b2b..b5d8290c37d9 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c @@ -1507,7 +1507,7 @@ static const struct regmap_config wm8753_regmap = { .max_register = WM8753_ADCTL2, .volatile_reg = wm8753_volatile, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8753_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8753_reg_defaults), }; From patchwork Thu Jul 13 00:13:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702270 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 38663EB64DA for ; Thu, 13 Jul 2023 00:22:51 +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 68944850; Thu, 13 Jul 2023 02:21:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 68944850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207769; bh=hlTWm9uzvVhLJWDvXOfLrEEeUpDCqI158rWMlFjjDDU=; 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=cUqlZ/Ybw92XH/EnbjqR5Ym9KQfF1t0p/EaZGf1pLKTO0n17n2RlKlJIXRJmYUDNT DVKRxVLohDRR+cLan/4yHLjif6cPfF+vtJwO/3cahjqQ8cR0AkciUtmB+5GWiGG8Po jqjLbNuMG1TGEMgFt0zyOgYv23AJTfjVt3n25hIo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 853EFF806AF; Thu, 13 Jul 2023 02:15:50 +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 CFD60F80696; Thu, 13 Jul 2023 02:15:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 09C90F80695; Thu, 13 Jul 2023 02:15:40 +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 5E74FF8065A for ; Thu, 13 Jul 2023 02:15:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5E74FF8065A 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=UHx4ltPz 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 4D490618FE; Thu, 13 Jul 2023 00:15:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82928C433CB; Thu, 13 Jul 2023 00:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207327; bh=hlTWm9uzvVhLJWDvXOfLrEEeUpDCqI158rWMlFjjDDU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=UHx4ltPzUot3P5aWbLEHvziNheFIF/tvtNs+QcJQkxcL8Jba1BpkkU888DLXD/83R eGdqnFPeyFCu7c7suKtmf18ycalRNCWkanMU2ci+tAg7YmCApbDyxT0NF4Vcb9DIMz EQgFSv9OEy8K0p2U6y2H2iJ/FPlKsRuGU9jVV1EmjeyzsBxEgbj98o27+DXzNIseHU +uc4DCpnyi3hdzTNKBG6k4tc2sXDCS/ycDpt/vTTH2AFYpBcL2443YrCXMd3qiWvlm c/jq0tbEmvcKMhTBkBmOIX/sG+pS3vlc981BANi8AZjs6E6YIYkctLZew5FgdArN/L h6NCgw81MoQQg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:39 +0100 Subject: [PATCH 26/48] ASoC: wm8770: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-26-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1069; i=broonie@kernel.org; h=from:subject:message-id; bh=hlTWm9uzvVhLJWDvXOfLrEEeUpDCqI158rWMlFjjDDU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0G/hTZZ9wwUZvjJvA9gnyujC//k5cKF/mI5z v4rDzAQsdCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BvwAKCRAk1otyXVSH 0PY3B/0T1rLPp6rDWLDeCc1gUt9KPH8JaUhiYBzSCEjjbLnlo480yiBEO/VgvNbeIuhFU0k1E7b DW3dyljrQFVSNoWJL2zLbl7z1OMOan5Ovu9f5c+m1f3+PwFzMZknUCLB0zSm659emGA5YAEZLxs aTOj/ZH9SX/q47xbMl0gSDsRN+kXVGsoverbWlxslsvgBGr4k89k5ZjSWp/dgeItzyxXll8P56+ Mp3xOHq4UuFrCo1zJ98fzpZORpShP31yw8gbmpK1MeMPHOMoGpebqLIyTYDV79DYfTR9P4Q9EXm 3WCKbx4ZqIL35SoCM6+aX591Uv01tP92urPX5BjokMaPa3H2 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: OPO45KEWP4R3RZD2GUACX2GCI57LG22A X-Message-ID-Hash: OPO45KEWP4R3RZD2GUACX2GCI57LG22A 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 wm8770 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8770.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8770.c b/sound/soc/codecs/wm8770.c index e03fee8869c3..2469f4f3bea3 100644 --- a/sound/soc/codecs/wm8770.c +++ b/sound/soc/codecs/wm8770.c @@ -632,7 +632,7 @@ static const struct regmap_config wm8770_regmap = { .reg_defaults = wm8770_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8770_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8770_volatile_reg, }; From patchwork Thu Jul 13 00:13:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702269 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 B38FFEB64DA for ; Thu, 13 Jul 2023 00:23:19 +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 182E6E0E; Thu, 13 Jul 2023 02:22:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 182E6E0E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207798; bh=c3tkK1xfT+JxgIXVfAzXWyvgXZjJXs9r4NWOTBzuNSQ=; 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=Iu6kDRqm+ji8kO1gCIdE8bwt8aRu/ztSav+Oeb9x4MTPPX2m+DLeh4Man2T7vqIW+ Fjo+ytWCfL+8KEhPKtCpET/NNX0/DuHEjD9QZncrs+5cTYNK2v0dZkQnHvv2mq75rS HHtRtqb3JQlml6VqEqU/p4FUzCNLkgxu97iKsOc8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 91343F8058C; Thu, 13 Jul 2023 02:15:57 +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 DE889F806A6; Thu, 13 Jul 2023 02:15:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0CB16F80690; Thu, 13 Jul 2023 02:15:43 +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 54DA5F80654 for ; Thu, 13 Jul 2023 02:15:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 54DA5F80654 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=Z2SNBncI 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 45D90618FE; Thu, 13 Jul 2023 00:15:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 499F0C433CC; Thu, 13 Jul 2023 00:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207330; bh=c3tkK1xfT+JxgIXVfAzXWyvgXZjJXs9r4NWOTBzuNSQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Z2SNBncIlYx/gcHXllMMPYo+rtVhGmdpkAfSEAuihcL9+3l4s+yYRIn+oRgmFVfCu 540x4h5fVamzBZPLOROW0xT0eEgWxuAyCCtPx+/bzYkTQ+xrIaFshxTnr0xPr952wj xM7J1pzg842e09QT7k+EYj3fR1dHfej0PWrXtGCIq2z06lflLAUIH+tTjWXRk+US2L 2XDh5oJZ+bLS5gIXUOsjjRQkSmbLj/V5ZmSvw+DeWow3gG9OY42d2jp8+2f5LiJb1p bPq4OGkcC8btOnuHXnErmRLbber3NlUtRXgRSaVm3GHx9HgAKGgrRFTb1iC0iCT7jh +fWohmchKIY0A== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:40 +0100 Subject: [PATCH 27/48] ASoC: wm8776: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-27-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=broonie@kernel.org; h=from:subject:message-id; bh=c3tkK1xfT+JxgIXVfAzXWyvgXZjJXs9r4NWOTBzuNSQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HAtCsCipw1BeA6iMT+ZzemVcZnx2cafvtkv oI/x9opIcWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BwAAKCRAk1otyXVSH 0NuWB/9Sr+eHImBhO1j21cQ91Hf1HbyJdJKXS84yRrjmzNHABIT8Rk1xX/dj64Wud/ETg577h2d to8aZvkM4YemduAIobURJ7AsROtmofGualZvupfIEGd/yuieblcB9JkJiHmjPOCSJFPJX5tUBbe 2CtgfvGVC5IeNU9ZlJ7zgSbD69G1Xaacqvf/sVbVjQWks2S32N+g7ID6t7VVBEcOg8eAlb5G7OU +yDxIKfMIbvDeCqq+ro9U9yM+/u5C93VY7RpK0CfqVfKjjm90p9OCJXAHzVvIwxaTVH7MxzpZKV YZXqUa0j/kH8DCbAnUWN04FO+v3JBZHhG/llYLcOEjXodHKP X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 3EHZPN7ZID2DLA5OJEIX5ZKKLY4MVOQ3 X-Message-ID-Hash: 3EHZPN7ZID2DLA5OJEIX5ZKKLY4MVOQ3 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 wm8776 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8776.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c index 212224a68006..0673bbd32bab 100644 --- a/sound/soc/codecs/wm8776.c +++ b/sound/soc/codecs/wm8776.c @@ -451,7 +451,7 @@ static const struct regmap_config wm8776_regmap = { .reg_defaults = wm8776_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8776_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8776_volatile, }; From patchwork Thu Jul 13 00:13:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702785 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 64575EB64DD for ; Thu, 13 Jul 2023 00:23:39 +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 4EDFBE10; Thu, 13 Jul 2023 02:22:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4EDFBE10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207817; bh=ouZk4wc+f1PIp4ij66/IcUE3AAmg7eKbHKCNGiU5Pf8=; 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=uaDAq3KqRQaI04gBoTEqVujg/VRMye7MpGgIl78A21hAQJze5CS1tgvmWWxoO7LvQ vHGrMlDeTdcXlMwPXyQ2w6pKGceSdEqaltZccLAdE9eSnJR4QZzSfDOQOY4WXiDcSv UCqnlczPm2SltzqxVfintObq5FOkvyRO2/LOpqvI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id C9476F806C0; Thu, 13 Jul 2023 02:16:06 +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 1C3F7F806C0; Thu, 13 Jul 2023 02:16:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8287DF806A2; Thu, 13 Jul 2023 02:15:45 +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 6A4E2F80682 for ; Thu, 13 Jul 2023 02:15:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6A4E2F80682 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=tqKj5fDT 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 121CC619AB; Thu, 13 Jul 2023 00:15:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42C8AC433CA; Thu, 13 Jul 2023 00:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207333; bh=ouZk4wc+f1PIp4ij66/IcUE3AAmg7eKbHKCNGiU5Pf8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=tqKj5fDTQBC8Ah4pEQBT/mQQ2KiWaWYkzp2sGBAWcxfGPUgLXIxJt7iK0xgGpj2I6 i3zxAzqH9JXJtZO9PpMxTpgxqyNw5bhaAzr0Dy5F8RIeWRLHkKrevgGCXRNfW6QcS0 gPzFc7Z/lXLe+GOftQceEeJVV/JPHqLbZY3bK25nslGD11+Xv1kNg7NU3Tu5LxnQTp KNWTJVjCbGLA+AJW/d0QbHnThijStlol+SltE2DsC8f82S5696P9jx7/ZGN1VA3Slo Q0AdZUbhvIpjIDGVNtGmNixg2rUJpnf6I2tZHsHwDLkjW79urJCIs6vFCac2Sxg3lC T5D7oVaJ7GeDw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:41 +0100 Subject: [PATCH 28/48] ASoC: wm8804: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-28-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1102; i=broonie@kernel.org; h=from:subject:message-id; bh=ouZk4wc+f1PIp4ij66/IcUE3AAmg7eKbHKCNGiU5Pf8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HBjo/wcEmoFBcXY1w6KGWDknQfgXgkwG280 HMfK8DrVDSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BwQAKCRAk1otyXVSH 0MazB/9JXh/xnUzb4zBWrVG91FWymTWN5gYMKLCKMfvqibV6rRSDJD0StgawIlWSgtLBpKbfKNq imx6b1ahZN94vi4i7O9QJn3J3K/2q40+lGUO3SICpa0Bplu8d46Qra5P1VtzxsMliepEyRGCLqZ uQtaTKGb8YqkU1YUh6J0rkcKnwpbbSWeNmJvXwJjrw5qvvhNhkDbW0hN5BetihW+MebW2/R7veh wgHY03k2d2pAXr9voLS9EJF/kaf3yvJYb2o7eteSnGfo6TiY87O3nih05rCiCLithViwr1n/dfq e0aCyHUOT0xr5t7tMbIPuAH9wcF1IecpfBJ5zphVPoDcICIU X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 5FMJKQQOYTSI5THISI3QFH7R2THGECOC X-Message-ID-Hash: 5FMJKQQOYTSI5THISI3QFH7R2THGECOC 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 wm8804 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8804.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index 0b234bae480e..bbb4b6e3b41c 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c @@ -555,7 +555,7 @@ const struct regmap_config wm8804_regmap_config = { .max_register = WM8804_MAX_REGISTER, .volatile_reg = wm8804_volatile, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8804_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8804_reg_defaults), }; From patchwork Thu Jul 13 00:13:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702786 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 5F42BEB64DA for ; Thu, 13 Jul 2023 00:23:06 +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 8CCFF83B; Thu, 13 Jul 2023 02:22:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8CCFF83B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207784; bh=nah/tEYBJXlWzhJvP0QxHmrDmQDFpilqGypC1OgFlmA=; 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=mk843vQD0f397VYOzokVqwQ+G/It+so7fq35lMygo7OzVRACMAUNd+XJj8MiP2EQe QjneeqzVdVOZkcQLlpu4yzGvY2/jAvJARMhszZ5BNkeyLV0AeJbfYV5WuZ7+UNYMPG mjWe7Ri1SvN2psUz6BQTJuKcEFIQt3Qz5HpCCuoA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 925AEF8068D; Thu, 13 Jul 2023 02:15:54 +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 A663AF806B5; Thu, 13 Jul 2023 02:15:53 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B97A6F80694; Thu, 13 Jul 2023 02:15:41 +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 39D6CF8068D for ; Thu, 13 Jul 2023 02:15:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 39D6CF8068D 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=YpXdWb0c 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 21862619AB; Thu, 13 Jul 2023 00:15:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 219CBC433CD; Thu, 13 Jul 2023 00:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207336; bh=nah/tEYBJXlWzhJvP0QxHmrDmQDFpilqGypC1OgFlmA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YpXdWb0cjdS7pmobIBHkx8BVW5lbZzDfitzH0e1fW8JZwMbcUt4daZbmI4FlDuusw OePd10AX2YRlW47EM/7nyMScQ7x0EqxdW0L10iXojgWB3VQ4vCYV5VZa6G9BT4sDyU H+91x/i5t+bqaHpRed2T0O/7YMZCmd1TJZRg/tIGD0IQ5x/ddB/YcLXkoD0s5B2O4e bAeUTUBMgXlSMmyZQYVRiSXbHtAosOXuXK8bcvIGCt2wUHvGliT+LiQgC/DANLaFZY glns0mnkg0j6DzEc9B6yepZOi8LmVrm3V4vF58ypA110MPWqCfPNWXTBFCir/aSFEG ZQylWPt0vqtQA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:42 +0100 Subject: [PATCH 29/48] ASoC: wm8900: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-29-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1076; i=broonie@kernel.org; h=from:subject:message-id; bh=nah/tEYBJXlWzhJvP0QxHmrDmQDFpilqGypC1OgFlmA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HCwUQxN1vzKeW8KrW8YisioZXXTRxv0guqz 4UXn05+CoGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BwgAKCRAk1otyXVSH 0FqiB/sFGi36z+nwaIJtnwWsv4s6nQc8WaCGl3Wt64JG6YFEjkKmUFzdirOQ+vaSNl+3rhCeHbl L0uqYT5wX/qFpKvj3UKjM4PLKlilBNLMPfarhxZthFYbuB4S6abdub9yAE2gqkqrhfWfOsc5Tgi WMZXYcBYHiIxiOHt5eljXMEGkGAlCxo6jM7heJ2Z8UP6P/arZW4ASfgBuWoXNGfvIM1pgeOxTaF 6zcwJ/btj2M7NxodTmkNXa5lOmJmX0AMjI2Je5bHnzABufRlNa/eJBNKIgFpmtZWCb1YG7na4ik 5X58n2krs9IRl9RziRYMXE8t0f//9lMyMIMnn+02zWyEGHKZ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: Z7BJ332WEJWRSWWLBDI2XFRYXNO6EI37 X-Message-ID-Hash: Z7BJ332WEJWRSWWLBDI2XFRYXNO6EI37 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 wm8900 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8900.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c index 320ccd92f318..84d06c190411 100644 --- a/sound/soc/codecs/wm8900.c +++ b/sound/soc/codecs/wm8900.c @@ -1223,7 +1223,7 @@ static const struct regmap_config wm8900_regmap = { .reg_defaults = wm8900_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8900_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8900_volatile_register, }; From patchwork Thu Jul 13 00:13:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702784 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 2DA3CEB64DD for ; Thu, 13 Jul 2023 00:24:04 +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 3C51CE72; Thu, 13 Jul 2023 02:23:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3C51CE72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207842; bh=0SngACP7G86bgdtRUTJfpix055BqdmD2JOX0dxB5Tgc=; 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=CUMq2h8c9OW6RAgsFItx1N+rWMLSbMWNDvC107jHIru0Nq7RRdlO43kJ1CU/Kzom0 jM0bGXLZq3s4lDrcUuj6BMwbasTCIVoSxxZrbdRLCVZyqQifG1q5IQ6wieshVxNlB+ 8ozg07qJ4c+JR08ZDeoDgy6OAcwiiogxbb6aXHYY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0F7DAF806CF; Thu, 13 Jul 2023 02:16:12 +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 C4F53F806CD; Thu, 13 Jul 2023 02:16:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BA249F806AA; Thu, 13 Jul 2023 02:15:48 +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 3E2C6F8068D for ; Thu, 13 Jul 2023 02:15:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3E2C6F8068D 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=u9NphqT/ 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 3093F618FE; Thu, 13 Jul 2023 00:15:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C132C433C7; Thu, 13 Jul 2023 00:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207339; bh=0SngACP7G86bgdtRUTJfpix055BqdmD2JOX0dxB5Tgc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=u9NphqT/c9iJjVtJqvS/wPKX4/ycQu/NOxJNf/pW2uGtGBUPoAV7t30ZwCKq+6Q52 uDViy7DG8tPi3VVyIOCmkB/t58WFUlFbeCR2P71bwTdxP7tIVuhAIofM0i34PCJ8PZ OTtMvTyOJVS9a1gIhTGO1a5TtTbZDFEBY1MgpCr2DZDDSIncFketvWv5rfb5jZqhXE TImbnMYmDkVD8L8zIwUG16hjvByvdYPM1S8oJarzSXvmM3mRurpPZG65Y77zYZsE4i BjKWI1lvM+xOnK9ujK0Mp/sBWd5x4hy88a1bML6RhMf0tJHG9uNgoi/6O9iqe/Rsnx rjMJEu1LlBTAA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:43 +0100 Subject: [PATCH 30/48] ASoC: wm8903: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-30-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1118; i=broonie@kernel.org; h=from:subject:message-id; bh=0SngACP7G86bgdtRUTJfpix055BqdmD2JOX0dxB5Tgc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HDpV3QSYXA7giN1SO29fAxH6D5tXu7MQzzV QvGFELEidGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BwwAKCRAk1otyXVSH 0GH4B/98YCbgiKkNunwijVDO9MlSEFllfzqTf+FSonckqwGOW31THFG1TnO04ZFpw547rRsq9jw Uz879o2FX7w0TuBLqSgMRwhOjOdtBuL98RDKV1hdz4Wq1JamdxljXzTHECSTtvuNHtf3ILZVcbs zP6g6eu0YSds8g4OWKpryR2yWN5s0C/DC06ZHAkPBZW5rctDR5UXbtXaTyhzI8zUcEk8AeCbHxL xvRiekBIn/ymwx7vF1schB1V7aupYSZ2kW41El0TIvFFXkJl78bjwEkYf7NDWKd7YlliLM3F8aD BJjnd7hgCLoyjOtQJ0IBzuMpqXkZKWUpCognFvtJ71kakpt9 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: T2UCKUDF4ED5QSSJFVD35DLL26UXTRGW X-Message-ID-Hash: T2UCKUDF4ED5QSSJFVD35DLL26UXTRGW 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 wm8903 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8903.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 901b65ef8de5..84ae1102ac88 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -1902,7 +1902,7 @@ static const struct regmap_config wm8903_regmap = { .volatile_reg = wm8903_volatile_register, .readable_reg = wm8903_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8903_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8903_reg_defaults), }; From patchwork Thu Jul 13 00:13:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702268 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 1EF12EB64DA for ; Thu, 13 Jul 2023 00:23: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 5473C868; Thu, 13 Jul 2023 02:23:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5473C868 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207832; bh=KtuApyPLDWlsikDsmqUopTiXx1qbWI9HY40NRsytM+c=; 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=kACCSmLmvFW+nViNE6B6oEm/I5GToFYuTLB4IW1n9sM1Sbkwm1vlMX3Ty4dfmbzik dbiVU7g9MJJER7Mwmpex/XoV8F+qjnwbOicjGhJYuTkUbQWRJf/DqNoMNHEaMk4mCD iFhfCN/bN1WuOWrto8NYjLedOHtm7z5Teo0aNwtg= Received: by alsa1.perex.cz (Postfix, from userid 50401) id CB818F806C9; Thu, 13 Jul 2023 02:16:09 +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 D8A05F806C1; Thu, 13 Jul 2023 02:16:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A0F16F806A9; Thu, 13 Jul 2023 02:15:47 +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 DDC34F80696 for ; Thu, 13 Jul 2023 02:15:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DDC34F80696 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=VdzM/JhX 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 D0C2A61987; Thu, 13 Jul 2023 00:15:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B62EC433C8; Thu, 13 Jul 2023 00:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207342; bh=KtuApyPLDWlsikDsmqUopTiXx1qbWI9HY40NRsytM+c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VdzM/JhXeT/mB1DHhbW7okqDgS8QkO2+IooD9cUkfUcKflIN315Vv5ZcYEx/2Wrie EIQm+hkvCR/NsbnjRraiYLC/ZwuFsJQWnM0/ri4OD4C1ABYLNBMWBX9aS3ldDH6Qgp wtgrJ+i9goCgrsZHBXXLvpJpIc+y3BUUFJKUKiC4Oaz7uTlqrsHS6qIKx9T7SpuLqv HKxac3pTAFVnE/zq4VRbJsrg1TqCTMwFl34L5PZk0rmQNDmYI61FLsHiabQVZuZnjU GWZgRxkqdcvkZLdB2OZwXjdSanqvZIbzN4R8KCk0n/KGfTc7XZaXdy1J4VQmDwKus7 A966Om7iXxqUw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:44 +0100 Subject: [PATCH 31/48] ASoC: wm8904: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-31-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1118; i=broonie@kernel.org; h=from:subject:message-id; bh=KtuApyPLDWlsikDsmqUopTiXx1qbWI9HY40NRsytM+c=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HDxHJ+1BJgeFQohGSx/DAhAdjb9gHeERPtr If7iD5X9FuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BwwAKCRAk1otyXVSH 0K64B/4uhCReUlYY7dziXuF2h86HgT+E6xCfVaCdjI9J5DVxnRCYjKPAR1l2qK51ld0tpUv92Bq OXfcMO3KD9EhO9oLY2KlOZWLUBRA5fJEOY6qZwthnir/DcJfCq6J4gLA7RoDStZEKMFDgOjCdcx dXP8FPsnsRetdSuLEeyKryu7sogl67Dz1wHx38UUR1gQNJsGrvmwr3T8M2xi9rnt/0IfFEBW8iK GiLeCqdOAkjhWewrwJX6EpIpphFWHPLA+rHy8j+f4SfLmGr/NDlzpUQYW2h1doXHw6QjZVuaUS1 ovPy2n71q5s9dByEn/TytqPTKdAcsAcTiZ/PfdOqHdbGT8Ag X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: QSFTWI32TKAUICBN6X4N73C6NWM5ABTF X-Message-ID-Hash: QSFTWI32TKAUICBN6X4N73C6NWM5ABTF 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 wm8904 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8904.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 068e610b1b4c..ac4e1654a967 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -2148,7 +2148,7 @@ static const struct regmap_config wm8904_regmap = { .volatile_reg = wm8904_volatile_register, .readable_reg = wm8904_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8904_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8904_reg_defaults), }; From patchwork Thu Jul 13 00:13:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702267 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 64E60EB64DA for ; Thu, 13 Jul 2023 00:24:19 +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 81C45E7B; Thu, 13 Jul 2023 02:23:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 81C45E7B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207857; bh=1jbRpI5sJeLKn9nenSrVePSD3Y2qxSI3XhNFEvhmbEY=; 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=Tdo4Cd0P4bBv/68p+qUdudNMdlPDb58B6uo5r2yxY7GOKW8OfBwC6RFfcoSi06zIj ucvEIslwhYYBaMKEEq47lj/7bqLrJPzKlUzZrmRRA5uadsHRIuU4ck52CJgvPZkQ1t Nh5243IxtQentOgdKR4WWnSR657KXWzuZwti34L0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 26071F806A6; Thu, 13 Jul 2023 02:16:15 +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 54F64F806A6; Thu, 13 Jul 2023 02:16:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DBD46F806B1; Thu, 13 Jul 2023 02:15:50 +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 BE69DF806A6 for ; Thu, 13 Jul 2023 02:15:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BE69DF806A6 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=kmCDVfu8 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 B0DBC61986; Thu, 13 Jul 2023 00:15:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD233C433CA; Thu, 13 Jul 2023 00:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207345; bh=1jbRpI5sJeLKn9nenSrVePSD3Y2qxSI3XhNFEvhmbEY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kmCDVfu8+vcIW784GFBjU7M84QonyN2cfaz26qiAmJ8BIDbRMGrgS41SMUnQSbuvo +t5tNYpZtlhTvoQoU2zDb3eKLxyosBaK9iEtX0gjC1sfRDaJi8nTmcSiNZQZdwR2gb wZqlNQPkIzdSk3L26QrWGbEHSsjPiLso9fF6sRv42kqj5R5AtJYIX7Zx7+iKYug/zw iQVGv83SL326QHp1fAOG9mJAIBPFLIv7sVyl2P0p7DVHoljc6pPDCRKYYEuFK1MRfr tW17I1xjvAR2Oc5Kz43emmghei+36Ke+cuLotyhlwzcCHrOywuj5qqH1m3fAZOAXlS KqQgS8yFgjHJQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:45 +0100 Subject: [PATCH 32/48] ASoC: wm8960: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-32-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1067; i=broonie@kernel.org; h=from:subject:message-id; bh=1jbRpI5sJeLKn9nenSrVePSD3Y2qxSI3XhNFEvhmbEY=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HEJzDyLJTfCx/5uOgCiVf/SIO0SukOLGDNC WA8phrGUeeJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BxAAKCRAk1otyXVSH 0DiwB/0S2O9ovOtbT36/mpVIiM3Dcb6XR+FtGR4CUEbGG2LamWGZ41/nHADG4BeZklTQ9T6ye1s WqJXUR+rcxg8ttEshjquU6b51iDCCSmhpbQmNGAS/CjOnVaNDOqJdZlhqN7rSbWXEY3H2oBp0e1 gxWgbW6F4m2kigzzf1+XsR/PwV+HHTci1EvTN9ck9HeBRZk+/Zz+8vCUgWSBCD/EneLKzpuE5R+ wjVBJ/pabYUKJ1I/C5jUwLz+k7d81rJ+5E8j/KuLCh0udxmjx1JHvSHhHyE5A5BEhSV9n2fFNY+ ZiZe7+Wsm2vQI8m2x06TEr/tAgwcC9FzI/xwVa1NNMvfNCcd X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: AU3FBDXOSQN75NS3S4WI43V4W3Y5DNVR X-Message-ID-Hash: AU3FBDXOSQN75NS3S4WI43V4W3Y5DNVR 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 wm8960 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index 366f5d769d6d..3a73d02cd698 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -1387,7 +1387,7 @@ static const struct regmap_config wm8960_regmap = { .reg_defaults = wm8960_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8960_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8960_volatile, }; From patchwork Thu Jul 13 00:13:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702783 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 AB76DEB64DA for ; Thu, 13 Jul 2023 00:24:32 +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 D5ADA86E; Thu, 13 Jul 2023 02:23:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D5ADA86E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207870; bh=osu8rFzTBZ8m1UeqrZg9hYkaNAUgh2FTql3B/T8oRkI=; 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=MOzgrORpAdX2QPkIUQ9qbFm4KFDKp7jm3dtFS0YGln5FzNZW5pKiKhbltj5XapKcV myR31RUkGYsZ8cIHVILDF4yirlDtjSD9QRz6n1SSR3EuSbh5vg/IfdvwJQ0Zp7FOSt UvSMj3h5taiPmEnkNO4Gihf8UYp5doK1NB3Uihuo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7F51CF806D9; Thu, 13 Jul 2023 02:16:19 +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 0448FF806DC; Thu, 13 Jul 2023 02:16:19 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D72D7F806B1; Thu, 13 Jul 2023 02:15:52 +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 B82D2F8068D for ; Thu, 13 Jul 2023 02:15:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B82D2F8068D 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=VxIjed1j 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 ABAEB618FE; Thu, 13 Jul 2023 00:15:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACDEDC433CC; Thu, 13 Jul 2023 00:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207348; bh=osu8rFzTBZ8m1UeqrZg9hYkaNAUgh2FTql3B/T8oRkI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VxIjed1j8ox5mDiHFU9PyTM8DJ+voVRnDpWXH8LKXGUIOw17pcpg3W4XuBw+y9Cbc 3F6T/ctHHBoM31Zmmh9Ezp1KXM8UZhsjdPDRgSk9q0inzeM+hfSaTf0YaymxQFn8Ku zz8VFhDt0eF4nM2/rM95XH9Rg/4RkGe7sAvoGshE5Qxz0Gt8B7LEvNxQk/IjBMIZC9 5dzOO4ICztrD2emh0oTTgNJDyF1TzujBCiPoINtJRWCuvDNwtC0+EJGxNnfmubvRMa pLFpSsG5ZJTzm79j4c+NUNq27Qco0/AEJ5zBUGO61NbcunOSHlzsAgzDarbyFdVfEm WykFLV/9vCJpA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:46 +0100 Subject: [PATCH 33/48] ASoC: wm8961: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-33-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1096; i=broonie@kernel.org; h=from:subject:message-id; bh=osu8rFzTBZ8m1UeqrZg9hYkaNAUgh2FTql3B/T8oRkI=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HFVJTniWn8WK58ZxzT4xj0xd9JEjTAFo0cd jOnS465z7CJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BxQAKCRAk1otyXVSH 0Ej8B/sH5ybSlKjsZpZM52BJAX6c1XrV3Wy4fsoIHRf8Nf4zfBT1QvatB0S2+yXs/s4QfI8AOA8 l6wcsoX/Me/hZg++YmpoUfPDZ1Iafehpp5V01fLvdCAY3HjuMyM6SzFoci1jPXz1BZYCeyN1hrp Ko6hDKpwIqf5UjsljCRnPsz7HtVjgi+VskP9z6CG1CI6djHYjkXJJMhXrelb+lRpmkmNEWydhn6 yEKi32j0wKlnYl4vH/jJirxNqkU7na/hpakYujM60bk0oHDplV2acdjpkR1K/AysBIG2jvi+P6B 8XzSc+M7siorSsIHGggdCFn/GO+F/9Q+GnckvWWNGOadOiQg X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: LMQG2R53CI5MEPOLYNWHZXNWPVD5MQET X-Message-ID-Hash: LMQG2R53CI5MEPOLYNWHZXNWPVD5MQET 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 wm8961 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8961.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c index c076f78d04ce..8f8330efb341 100644 --- a/sound/soc/codecs/wm8961.c +++ b/sound/soc/codecs/wm8961.c @@ -904,7 +904,7 @@ static const struct regmap_config wm8961_regmap = { .reg_defaults = wm8961_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8961_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm8961_volatile, .readable_reg = wm8961_readable, From patchwork Thu Jul 13 00:13:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702266 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 2628FEB64DA for ; Thu, 13 Jul 2023 00:24:55 +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 DA0D1E12; Thu, 13 Jul 2023 02:24:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DA0D1E12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207892; bh=PxsEIEEuKsGyYeu4ZjT3V1J7ugTXZES7jicOx2qd1nQ=; 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=IQ10nXuxa0zZLW+vo1NCprBLHcaVGd/vzIcq0y7bBsFFmUdRXdfbF7NpjQpwwXB7A dV391dTSu8Ayg1OiJkBLBmr10kLigeGQmbeWyuEthrfYwqpJeWFep5fDnNYX5DPEZa 87NDq0CyzXgmkajvOTdUpOKYjTuvvna6LP1s7aF4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 75B49F806E3; Thu, 13 Jul 2023 02:16:22 +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 912E5F805BA; Thu, 13 Jul 2023 02:16:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 07A6CF806A6; Thu, 13 Jul 2023 02:15:56 +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 CC663F806B7 for ; Thu, 13 Jul 2023 02:15:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CC663F806B7 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=Gkr3wwjI 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 BDF0761987; Thu, 13 Jul 2023 00:15:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6EA3C433C7; Thu, 13 Jul 2023 00:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207351; bh=PxsEIEEuKsGyYeu4ZjT3V1J7ugTXZES7jicOx2qd1nQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Gkr3wwjIIJY4f7G+qXILoplQWwF3SXHobcwnYEPfj8SpfcSH9w6zg6CZEqOhhmz9I 5Zk1CIBUoMUqasuu4mshWYFag1OQWXLgOAHLE1WK00U8NzbaA1b/O0IE80o3cc8ex+ xGFhOoT0vPH/l20hNBgHiQYzNHNTvAQZrpuX2ES4LEI3+fD2/0eHzMWCr5rMm4PzH9 iYVyvT1p/zDbTX5yRweR2A97DAFfYCxTMtnZFNAX5WotH1QTUAc/unatd2fuXcbW1q CnlGZ1bdGRmLQSpFPkYtFT62UWHgHkJd+nSLIs6RV0UhROTvqBC/Q/P5T1sdveEnK+ NX4QgJT78S7cw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:47 +0100 Subject: [PATCH 34/48] ASoC: wm8962: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-34-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1131; i=broonie@kernel.org; h=from:subject:message-id; bh=PxsEIEEuKsGyYeu4ZjT3V1J7ugTXZES7jicOx2qd1nQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HG9yNF36RFtUN/aCAIaIPywSpOHKfZ01D+N xhkKPzFXD+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BxgAKCRAk1otyXVSH 0MM9B/0QLCzpU6EORsRCJqozpFgEXDJ+3Qz2CuH6boExoofrWLbXsdwIeGVIWLx2SexPTD5RxpV A2QD4N94Xj76ZPgOIFnTsYjp4eKxv8iylaDE60cQ8M7FZDoo6CAt3FpidvyE+OyoyUJ3TPDD1t4 gRBf2CnHMXxR+m3fOQZB/PNS447Uk1vttTD/V1GKThU10sMVY6zEdfOvy+HUO/hN/opwNkBLoLt r+y3NjMl9cj/jk6Bf7uj9rwQC1LvH0aCKes2JqL8LAT8Y+QFOuctkvFJF3+fbNoa8uLuWXEbvS3 ZMEk/I881/cxNhr6kxhObTJGRy20IhqNu9XKiaudbLgFzwlm X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: CQSHK3J7J2J2767WDEZAMQEFLH6VOFQH X-Message-ID-Hash: CQSHK3J7J2J2767WDEZAMQEFLH6VOFQH 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 wm8962 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8962.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 68ea15be7330..83ce5dbecc45 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3573,7 +3573,7 @@ static const struct regmap_config wm8962_regmap = { .num_reg_defaults = ARRAY_SIZE(wm8962_reg), .volatile_reg = wm8962_volatile_register, .readable_reg = wm8962_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int wm8962_set_pdata_from_of(struct i2c_client *i2c, From patchwork Thu Jul 13 00:13:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702782 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 BDE9AEB64DA for ; Thu, 13 Jul 2023 00:25: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 C5D64A4E; Thu, 13 Jul 2023 02:24:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C5D64A4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207909; bh=KC/GQ3Br25p5MuSafBm8be5t0MMwKzflznzovGCCEvc=; 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=Mx2dL3g6mmR36ZC4SuT20poScknm7fARZ+nZYfeK1KzzB+8ZF/wBh6trKmuOMkjRh RgQ2/wIwnNrZcvaOji2cUhg6Jyc1wwU6hDg5F08kSgQf9zMZEUlDkx5Os+MYKGDUVg fDo0wH3qlttg3KxWsQn7vAh1sQkNcgcpQonSyxWA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 394F6F806F1; Thu, 13 Jul 2023 02:16:24 +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 4C954F806E7; Thu, 13 Jul 2023 02:16:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4D1C2F806BB; Thu, 13 Jul 2023 02:15:59 +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 DE920F806B9 for ; Thu, 13 Jul 2023 02:15:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DE920F806B9 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=trSklcyw 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 D0FB2619AB; Thu, 13 Jul 2023 00:15:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B872BC433CB; Thu, 13 Jul 2023 00:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207354; bh=KC/GQ3Br25p5MuSafBm8be5t0MMwKzflznzovGCCEvc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=trSklcywIG2sXspdNb8jm7snMjkJyLgi9TRs5DDclpco4MEKWNCc+8s6cgUkT33TX 3MIGCvkW9a+7CcEpw6A2Tz0LW63I9lnt99duMS+HKmvJojpY4xkoc+RrgjnFrfERhZ HhfAceCL1s+FeCbbbzvTrUXhi2PieDp58Lm1papZ/HgM7UTGW7PxqXcmpy0ov+HDGF 1Q519oPom2eX53HJQFQWkMCN+YsWhNXC3TJS4apocUYzhT4VkyWMboylfph+SJhK2r tjrRaMmDQK8B83CAFEjrOkJYTMI8N+/UbluzgJqgyUyztTUg6ItsdHPo5b7Pl0/fOM w79LqAmjyf0AA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:48 +0100 Subject: [PATCH 35/48] ASoC: wm8991: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-35-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1118; i=broonie@kernel.org; h=from:subject:message-id; bh=KC/GQ3Br25p5MuSafBm8be5t0MMwKzflznzovGCCEvc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HGv6xnlB/xEKvgotvzqob3vI+aZMEbX2p2P rE39f2TsYiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BxgAKCRAk1otyXVSH 0LMtB/46Rq581Ajng49HB4Rx0jtBPq7lZJpa7v2V9qHYGgAHCkDYXQlx9EZLtBg9VUDMpzWS7Vf YBqLytfFJa1WiMTMWbFQrCWeTfxb9mqMpTz4Q5oIpJKyPndiSNoFL+lKlvVdUgS8TgFGNMEry5j hxPGptlHikfYhievU4pY+iKdzTBDLLTh3nSCM4MKxVSE+by7Jiv21UlDnmFUDoYLb8zToofiOXi xc2RRChHPEKS6k7wtxyPSHtMEvAXZkqhWSd0SSBl5G8uVYR8bMXn6vfSLtVu+033shIG2d8jbtO RCa2fHod6netmgA/Aow5iygdxu4EUa71JYZqSs3WTIoMBIBU X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 6HBDV4CT3QRSBC7PD6PCQC3WWCO3R53M X-Message-ID-Hash: 6HBDV4CT3QRSBC7PD6PCQC3WWCO3R53M 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 wm8991 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8991.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8991.c b/sound/soc/codecs/wm8991.c index 8cb2ae829699..590318aafaea 100644 --- a/sound/soc/codecs/wm8991.c +++ b/sound/soc/codecs/wm8991.c @@ -1253,7 +1253,7 @@ static const struct regmap_config wm8991_regmap = { .volatile_reg = wm8991_volatile, .reg_defaults = wm8991_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8991_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int wm8991_i2c_probe(struct i2c_client *i2c) From patchwork Thu Jul 13 00:13:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702265 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 D7E98EB64DA for ; Thu, 13 Jul 2023 00:25: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 85D40E73; Thu, 13 Jul 2023 02:24:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 85D40E73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207920; bh=caeaRZpv9KNt7MRxKdw/pn2QazYQmX68hlKVnirJ+Bs=; 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=j66+mtWq+ozGosc3UMeRf5S5vvBVXpcO6Ub1BAGBMjMQ9AEgQH9+3HkUGmWJk0CMV GPwgM01hW6YHfDlCcr1TcN8KbFINiAr55+ZISGzdV569T4TnrYtbmwkHKYOC5ot7m3 q/rdLNd524h5qe6ggaUqNPqVD2uyaoje7eU4230w= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 340B6F806FA; Thu, 13 Jul 2023 02:16: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 443D5F806F8; Thu, 13 Jul 2023 02:16:29 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C37EEF806BB; Thu, 13 Jul 2023 02:16:01 +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 CD0AEF806A6 for ; Thu, 13 Jul 2023 02:15:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CD0AEF806A6 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=uNeubY+J 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 B30FC619AB; Thu, 13 Jul 2023 00:15:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0E21C433C9; Thu, 13 Jul 2023 00:15:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207357; bh=caeaRZpv9KNt7MRxKdw/pn2QazYQmX68hlKVnirJ+Bs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=uNeubY+JNmgBsT/C7pEnGzRA+PD9strQQ9MQ5lueBCCOOba4w4U9N9/15e9nYZuHV N295mD1lrBSwW4JHvNkJEYjAKZ3Y9Pe0NSXKDM5ilK9m8rYO0eezmqFGrb94uw7AiW c9IL+O+g/0pomlLUtLnsf08KOUmMdB9k95DTQxm+tIN1Z0ex5lpb3+mgfiU6kTK02D qdPnb99C2Kro+HRosGSpH1i4Xb+eAMxrxmzEwoA2pGYwJS7/jefaCwEJSdPGoeW+WZ pmrlqkbMDdKUttyUKT/8hSg1tImov2awJNK2O1wEZCNwgWYvMIvjF4DqRPXouKdRqZ qfnisKTjohy2w== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:49 +0100 Subject: [PATCH 36/48] ASoC: wm8993: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-36-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1100; i=broonie@kernel.org; h=from:subject:message-id; bh=caeaRZpv9KNt7MRxKdw/pn2QazYQmX68hlKVnirJ+Bs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HHSa3044IPN5cebNYtDHQ4dPDxjw9QNyTgo iOWmlaJOpuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BxwAKCRAk1otyXVSH 0MsRB/90/p/moaayPsqi7zAQbNv/3+HIhpt93DZxrDYnIdtWf8aj2S8cB3o/7QPMzNZv2uty4an JZzIpXy07sJmOZC5FWdBWcU8nNGlVadPYM6+8I55AAhyhospsA0Ka0oVTvRfnAwyaq9W4sv1hek oLtdfNuISJG7FeQg6/I0XUIzCpGSaimPQcl/PIO6c6jqYeiWLY4IVGzuUqMuWmVO9JLtSlVH81S nL7TB4P7To+Gi3rpEtVrnNw2KGNcj/ObF1cvK6AIhBJwY1ZNKzkkA5sm38CKWnDGMm9Z6H5D15H wrhPcFjGLnPmDwc8fwdnMhuPFSNios6RWFLZJ8rcRRNfhex9 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: RZ7KOQAJSEGIJD5ZZYOZMWIUR4CCTKPG X-Message-ID-Hash: RZ7KOQAJSEGIJD5ZZYOZMWIUR4CCTKPG 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 wm8993 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8993.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index feb997c698e2..5b788f35e5e4 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c @@ -1608,7 +1608,7 @@ static const struct regmap_config wm8993_regmap = { .volatile_reg = wm8993_volatile, .readable_reg = wm8993_readable, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8993_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8993_reg_defaults), }; From patchwork Thu Jul 13 00: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: 702781 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 A9CE8EB64DD for ; Thu, 13 Jul 2023 00:25:44 +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 857DAAE8; Thu, 13 Jul 2023 02:24:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 857DAAE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207942; bh=gJSZbPwrJrao2cx93fqYL1L6cp2CuH4ruhKdl+1SL3Q=; 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=JqJF/bfxOXFCwNptdvscmAo5pXvK6Lxjjkh/E5+9dhBoQE+rkKL93j39rTnzEWlVf 3O5u2G1MmXq2zjnhaxHm8Y5EqgaKtCQaMom5zeti3c4jgemFIeUsu9yQK4RP11+sfw xGQ3tenJYtybGXrQycJ0szI4TWFl1NuvL/kNk5lY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 37381F80722; Thu, 13 Jul 2023 02:16:33 +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 2B5BDF80716; Thu, 13 Jul 2023 02:16:33 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 64FEBF80588; Thu, 13 Jul 2023 02:16:04 +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 8031DF806A6 for ; Thu, 13 Jul 2023 02:16:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8031DF806A6 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=CfR9mk4A 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 723EB618FE; Thu, 13 Jul 2023 00:16:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8672C433D9; Thu, 13 Jul 2023 00:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207359; bh=gJSZbPwrJrao2cx93fqYL1L6cp2CuH4ruhKdl+1SL3Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CfR9mk4AmA0qccMYh0uuf3+xssDtD9ehXKmZB3wBcjyatNTzBlXVx/1U7o+RNDuBg NpXy5V5xqWnI/7SHI6b8l983FBHDoTx3/j4CUqZH4FL0Woz4zFvvWhTE2DiIa6cYTv N4SIh/zttepNAEb+8skfe28AR7VKKroe8yjmTo3yXwV213A2hY/PXPBqfes46PPQoy Pvh5BS8Wd/uudDlbXJVsYHASFx+DBNlC/P7hjTAmllFaF9N0X7O+bXfjRaRVwdwKsR CgwgQ/nf49CJa5MCT080nSfgQDcSuFsyDKNxDDw0Z3jyMYNsZO9/LaomX5/JeLDnbF Got1z2mH46jpg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:50 +0100 Subject: [PATCH 37/48] ASoC: wm8995: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-37-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1093; i=broonie@kernel.org; h=from:subject:message-id; bh=gJSZbPwrJrao2cx93fqYL1L6cp2CuH4ruhKdl+1SL3Q=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HIF3Nslj5oL4RwImE9COdmH9ewFRvmG9Nbl 0yQalS/D3uJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9ByAAKCRAk1otyXVSH 0APRB/4lkJ7B71pUa83AzY89Z/4qGfcOYDGrONX5sea074UxuMgmWyG7m5RW7o6Rb1wvgwlW3YX t5oOCYKRTFD2UrTYg/kwwwTnCVVLbwrPPZm/awfgJbLc/7M9FkNcuqrFsxWo1aiSJOgrE6AVL4b 7PPuaf/fijSC5NWJZ1dVt4yJJo6A3UuFLZxZL2rt1QHq1hIZp3XDJ9QLYoJxAdh62EhhcjMan2y tWMoc4+nxpntKKRDJbp9cjStpV0hP3iuVa7eEBKR8NI2g921nGueB2mCfzFNdqoU2SsfUEYTmDy WHtRcS/xqhv1XMrcxoSx26UDUplH9/EW+/HjTmXv8pUm2nw7 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: USNAR2W2K2XX4FTLKFT5PRLNITXON2LP X-Message-ID-Hash: USNAR2W2K2XX4FTLKFT5PRLNITXON2LP 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 wm8995 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8995.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c index 90588614edcc..4ffa1896faab 100644 --- a/sound/soc/codecs/wm8995.c +++ b/sound/soc/codecs/wm8995.c @@ -2193,7 +2193,7 @@ static const struct regmap_config wm8995_regmap = { .num_reg_defaults = ARRAY_SIZE(wm8995_reg_defaults), .volatile_reg = wm8995_volatile, .readable_reg = wm8995_readable, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; #if defined(CONFIG_SPI_MASTER) From patchwork Thu Jul 13 00: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: 702264 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 3D482EB64DD for ; Thu, 13 Jul 2023 00:25:56 +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 24EC67F4; Thu, 13 Jul 2023 02:25:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 24EC67F4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207954; bh=32QAqy4sciYh2rhvwNr5TWmnz/aq8Z9ODy8wTcsO83M=; 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=ZG3RJLoKqRPzUnT8JL4xk37dvS5XBXN7JFOFuBuRNCbsoOs8Am97NHK14HZI72Ust 3gLrtd813uaL10CRhMuWJ3DoaIJhbZPUcah1I6XyiTNYzoOLptKoq1Xc5LMIE2/uu/ FRNWQtNxBje+Cal0EMgt4BgVgLus6mmTrw9mNTlU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A4F1AF80735; Thu, 13 Jul 2023 02:16:36 +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 A720DF80727; Thu, 13 Jul 2023 02:16:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DAF22F806CC; Thu, 13 Jul 2023 02:16:09 +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 5F7E4F806A6 for ; Thu, 13 Jul 2023 02:16:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5F7E4F806A6 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=LdShSqb1 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 52553618FE; Thu, 13 Jul 2023 00:16:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87CE6C433CC; Thu, 13 Jul 2023 00:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207362; bh=32QAqy4sciYh2rhvwNr5TWmnz/aq8Z9ODy8wTcsO83M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LdShSqb1Mkw6+hLMvsT07NixvAgM26RA05pXnyu0kzyvndDHXI0C4ztTR1YWXaK6m LjpQ0k65nXummCqZ5yjci4LLgM4+E4igXyJmGCrjJdWji8WQS6EJgDnUCH3rygh2a2 4ZgwxxRBWUgvny+m1cNQlxK5tZ8H6MDCcsBlWkArA1MvDU5h2+C/3Aoph68qwAlQj6 aogxmCtYe7rLPXDvtuQtcgEkDCuO5lx203GK/IHPye2rfHSMnusrdz8oLHWkWkmare 7zy+MUEhH1cMAdRJ4hvsi0asLYpNXXboRJw7sMUNA4R/p5h6McdsEMXjwNk8lW4Jdd LwE5U8bevhxew== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:51 +0100 Subject: [PATCH 38/48] ASoC: wm8996: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-38-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, 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=32QAqy4sciYh2rhvwNr5TWmnz/aq8Z9ODy8wTcsO83M=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HJnlDXdmcrRthPIB7ojLkfAyEKfSbA7gWfZ wHjXp6qUECJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9ByQAKCRAk1otyXVSH 0GaECACBsTpO1dcTW0NMo9FHQWegSMjSP0Z/2q73wwUhCXItMwa1G0kyVrBt0F3C/gCp2iAc2tM KamnPjElH7rw0n9MWEbyelK3AG/Se9z5Ucr/YW9FsnMm1CAZAvSKFBFdCJZFpWhzEUmcgAozKfp OH4Av7OLM3LlMidQlEOYklMroLfdMKfxRacw32PbxRsNtSo5EF/Tcw/B0cfgjuWZdzE7Lx/ODHW +o8Hnh6DaVWo5PQn++wt7bLjCBtF56j5j/RL8txCcjw867rpX907ADX+c5c/NLfBuXABUQf0VWj FxWnWN67gPLkRy/VMbpM9XX6ojRNnyuBkN/d9F0qfMMLoCBT X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: XXZNPWTTGUYHF7E4CHJ5Q777PXJ3TOK2 X-Message-ID-Hash: XXZNPWTTGUYHF7E4CHJ5Q777PXJ3TOK2 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 wm8996 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8996.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index 5d0eb0ae0475..df6195778c57 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -2610,7 +2610,7 @@ static const struct regmap_config wm8996_regmap = { .num_reg_defaults = ARRAY_SIZE(wm8996_reg), .volatile_reg = wm8996_volatile_register, .readable_reg = wm8996_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int wm8996_probe(struct snd_soc_component *component) From patchwork Thu Jul 13 00: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: 702780 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 5C41CEB64DD for ; Thu, 13 Jul 2023 00:26:17 +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 C0389DF1; Thu, 13 Jul 2023 02:25:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C0389DF1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207975; bh=x/iI9jVc1mJEZFmDovLOKMPOEISZT85v4e1NVWqXcOc=; 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=EBeb7sEyNGHUbLH2LEfxQBf1p6MxtPf/Tp/B8LeyDEKoQBf8JqNLHNmaa3RSYOTyF vqMWqdIoxrJfklvwq4kb+hoABTXVdwxVN9DQ3dcZYPkPNsQV+VIYKViS7x7BNnyJVw qgm+S7nDJAlSGJVpnSC1yb2Dx6SlTEsSKEBMq6DY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 08255F8074D; Thu, 13 Jul 2023 02:16:38 +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 375DCF8073C; Thu, 13 Jul 2023 02:16:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 35562F806D2; Thu, 13 Jul 2023 02:16:11 +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 65A93F806C6 for ; Thu, 13 Jul 2023 02:16:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 65A93F806C6 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=l/kYuBnE 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 52CA9619B6; Thu, 13 Jul 2023 00:16:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DEECC433CD; Thu, 13 Jul 2023 00:16:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207365; bh=x/iI9jVc1mJEZFmDovLOKMPOEISZT85v4e1NVWqXcOc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=l/kYuBnE6e1/V1z9EGULZPjxa1vzR4oNNdEGErse8pJQsnu4y/j9SO2kXWWn0jvyn 4ghccWLPucr2ZS99gqE8Y2PpmG1ZX7uF9if38BrpOSgi04rCIFrixeUwIxHV/lxRdl IJNDeVotv/2f/YbUlZY3Lq7ASo55qDMbopXP5nFdQ1g89xDHTv+LaXn2PSyLTNsoYe qMYGFvfdpmtehOdfL7Y5h2YADa6NuMRk+fNRwRImI3uegeIPlHXKgTdLZt+/d9YK0P HcK7mJ8D7Wh54ULuujSvlxyYFZNLPiTfRl9WeFotqPUGAk094XEOhW85TO5DU6oyR0 AroO5ea4uEOow== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:52 +0100 Subject: [PATCH 39/48] ASoC: wm8940: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-39-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1145; i=broonie@kernel.org; h=from:subject:message-id; bh=x/iI9jVc1mJEZFmDovLOKMPOEISZT85v4e1NVWqXcOc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HJIErYEqYb+boy5S2NqYZ6Z9O5RpEzUodj6 WsFEBM/JNeJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9ByQAKCRAk1otyXVSH 0Ab3B/9kXP8UwOA3OQtnooyjccdJMfOqZ0RWUIKBmbGw8MuFfF7YbiMAe8oO7xyDkrmGOdMhiE5 Hy77Zr9psCtWEjudCcoYQbcdPWGLSwDM1e2aOJ+x6nU8rJCtmfRy6yU8SLHA9UlujlRJThflGkT okOrfXEg0dgnXrLhV1ucuMmzH7zcDtN3YFpfehjl6goT4mQPWKApXyYHnc1UttMcuHzmiN0EPsY Ly7KL4ZMBoaZKdEj6KVhb/elB/y+sfGBVJL15bSuPiLfmSVku+JGkrFD955VAbxl5ivsA2hW1MG pa8FHLcsGnCRrlayYannuHcxFx+KXtPxOW/A2jnL0v7hvOOQ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: WYAZ4FCJVPPE6GOUNVDWG7KRKKO6LVZV X-Message-ID-Hash: WYAZ4FCJVPPE6GOUNVDWG7KRKKO6LVZV 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 w8940 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8940.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 53c27986d216..b9432f8b64e5 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c @@ -815,7 +815,7 @@ static const struct regmap_config wm8940_regmap = { .max_register = WM8940_MONOMIX, .reg_defaults = wm8940_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8940_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .readable_reg = wm8940_readable_register, .volatile_reg = wm8940_volatile_register, From patchwork Thu Jul 13 00: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: 702263 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 F1DDBEB64DA for ; Thu, 13 Jul 2023 00:26:27 +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 377C1E8D; Thu, 13 Jul 2023 02:25:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 377C1E8D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207986; bh=AMCX6Q0zMFgbz4pwuxj5urRasCu687R+XmoAl/UoZJU=; 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=eSj60FWzKizUQOEPUgr4XdxlcAcLokytss5+3FS9jjmgoi95F5bl+HgcPebUm+0hD zT+nhVjQ+jk2IZSaNLaa0jiWo2OQJtC0YHJFW6CfuxU0dL5TEQpAg9dzeQxRiLDcnl Qo7uqCCdyA6ZgTmnHwmDYyikGUqUGC4p2XAQ/4q0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 936DEF8075B; Thu, 13 Jul 2023 02:16:40 +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 C5E56F8073C; Thu, 13 Jul 2023 02:16:39 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7422AF806D7; Thu, 13 Jul 2023 02:16:13 +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 0AFC6F806A6 for ; Thu, 13 Jul 2023 02:16:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0AFC6F806A6 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=YrSR0Q2H 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 EB32661987; Thu, 13 Jul 2023 00:16:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 476B1C433C7; Thu, 13 Jul 2023 00:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207368; bh=AMCX6Q0zMFgbz4pwuxj5urRasCu687R+XmoAl/UoZJU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YrSR0Q2HNTk86rIDHTQF8YDjN3n7fbhM07ykdWp92MAYvAhFP4MP4IZEPQtNoSCTB 9rVyOXGidwrseA+ZL8uxNRzBuhekJqFZ+jo7vMTYDPPEwo0169929DntnK87+fIKL9 +du4T8AC4uqgKHTJLvbN4kxtCcjZ1ymi92urxqQUkGZrlkCNShIq5tHIluCgPGOZ2N R7SrcnMFaITFOcncmO24btxIt6kzNYm6iDyJXO9pyfXuFDFVvNpqwZm+sDrVh1CF0I buIF+djq0LB907vuD481X8cg4ZT+LW9J2n6DVu5C+hJx2lpuYz1lJtHxB/4BQNZdSH X8mWTAxmFY2hw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:53 +0100 Subject: [PATCH 40/48] ASoC: wm8955: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-40-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1100; i=broonie@kernel.org; h=from:subject:message-id; bh=AMCX6Q0zMFgbz4pwuxj5urRasCu687R+XmoAl/UoZJU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HKVjTndiPZxl1WhqDZ3k+72qfSb0Vx2nLqL 1zjzNEkNjyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BygAKCRAk1otyXVSH 0JG/B/4xARkU62FfGGN9FziJaLaMgopAbTX4iLkiAHgdbZ9cJF7Ua74sAocDV9pJvlu60L2ohy4 WnIthUKsEqNDijUvLQrJIttZlIGhGosOn0fbZQ9u/q8CdxRkzdvXE5MkNzyApSN2uk9vl0MUIy9 9zUz/HMTDXbHbB7TWF9YHzjz91g9boiAZrMZb+/HCdkarx3YsizBMG223QxFvRQfTC2VRcDaHuO zNaa5ytTru6gvHUS7z4W+5805RS5cmPQWTcVfboMWB4+xb5qci5v32jGp1gKvlXmDZxGiTo10cT 0kbdb9aHC+5grRMtQtPjc3NrMVBsaxQ8bmiLG34P/fQso+rn X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: IUWYD6JYYVDWLENEUZOP2CDLHPQBY52X X-Message-ID-Hash: IUWYD6JYYVDWLENEUZOP2CDLHPQBY52X 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 wm8955 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8955.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index 78044f580a67..4f4338326438 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c @@ -962,7 +962,7 @@ static const struct regmap_config wm8955_regmap = { .volatile_reg = wm8955_volatile, .writeable_reg = wm8955_writeable, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8955_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8955_reg_defaults), }; From patchwork Thu Jul 13 00: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: 702779 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 1A185EB64DA for ; Thu, 13 Jul 2023 00:26:47 +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 DDE4BE91; Thu, 13 Jul 2023 02:25:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DDE4BE91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208004; bh=uNz4oz4LcCtiuPJSjL4Y6B6FicMszzoTpc5mth9mp3Y=; 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=MGmhdK36PvrEMk114cUPwyMbyHkhxJ0F9Ak2FyIkn3E8p9rOLRMPC4Q/fPrVrJtip dpabB3coALB69659gFH6Jy4C1TMM85TIoWGKMrDlw8BjokFC0ihLOZSwKPe+hBzGe6 6xDsj0HxM8D24a4VjO93ELrEoRYd7BUUC3XOPpF8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9A615F806F2; Thu, 13 Jul 2023 02:16:43 +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 7F590F8075E; Thu, 13 Jul 2023 02:16:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1F361F806D9; Thu, 13 Jul 2023 02:16:15 +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 2818EF806D2 for ; Thu, 13 Jul 2023 02:16:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2818EF806D2 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=bi3eHvai 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 08E5D618FE; Thu, 13 Jul 2023 00:16:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E851CC433CB; Thu, 13 Jul 2023 00:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207371; bh=uNz4oz4LcCtiuPJSjL4Y6B6FicMszzoTpc5mth9mp3Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bi3eHvaiS5DyZdv30rqxC47OKjEeCMreMKXgfB/aaSeU7uIbaAV/C5xXoqKXZX2GP IxB1i8FXj1va98FzgecTnHzsWahgFhd+MHTndIfsGgtA17mvCVRbvSlpcIfndEMZyx fdgQn7Y4B1yQxYfG+0D1n9TkY2VkKA6zCM9oStpB0OUw9CHza9vatDu8UYgUz8NjXa DDgAUAgKth/IbCaTGmXfa/UJHigaCOTOeAmRVkcknRMmwLid/VMBURBTjOzjOPtoSI fpcb6L/WvGEWk4YccmicCv5dmEc2GBc7ygIak1McZppQcKjPVIEWr72nEt8+Vxs75g AD80my4ZpuT2Q== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:54 +0100 Subject: [PATCH 41/48] ASoC: wm8971: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-41-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, 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=uNz4oz4LcCtiuPJSjL4Y6B6FicMszzoTpc5mth9mp3Y=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HLI0yNT0SzPydClllTU5DxlM5qSK4sX3JnM 7akj0dulcKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BywAKCRAk1otyXVSH 0LqKB/9BMc91HsnbY6H7gztI4lbBbgYrenE8SVKDXmmRUpF61ZEwv9xCU0qmNIqnzEOFvy6U3MX LYP/qg5hQpkhxjwYx5+Sv6Y0IXdKVGHNqanmgvT+zSR1aWvAz8yWnk2AqnDVkigD6V0suhZ8H8L rRo67D7r0aaY6R5Uu2pRyiqyuyuxsWDbgw6a9BxnKyCxM5ecCFjTQfWtuB0byusmJAv6m0vjtMO 5OAGDAD4QZiUpuCimPd/UX51wZ5cvMYn4uAGdl0dXA6ICEWN0ZGeG5DWOrVELv8t4JJtH+Rzqoh Y67YFy+gA8R080QkcHQ37ZmVcUXqrcJtn106opOwiKieg60T X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: KV7NJBEVM7TNNSVIANYNBWGZSIRPNAWJ X-Message-ID-Hash: KV7NJBEVM7TNNSVIANYNBWGZSIRPNAWJ 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 wm8971 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8971.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c index b22d8f0b59be..e88f323d28b2 100644 --- a/sound/soc/codecs/wm8971.c +++ b/sound/soc/codecs/wm8971.c @@ -668,7 +668,7 @@ static const struct regmap_config wm8971_regmap = { .reg_defaults = wm8971_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8971_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int wm8971_i2c_probe(struct i2c_client *i2c) From patchwork Thu Jul 13 00: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: 702262 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 9F5F5EB64DA for ; Thu, 13 Jul 2023 00:26: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 68C1BE84; Thu, 13 Jul 2023 02:26:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 68C1BE84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208016; bh=xtGOnDRcTXT8WVLfFDqPlV+MGAGMWphSd3kDQNybOQ8=; 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=Ggv/LkFo1NSJT9whTI+gvyGuYHGjH3CcnJ/F9vBL+E5OtYs+VwvRdEsyFxJDfvSG8 oiPYW7NWg3/R7bf8x2gLQZygUuuS7wIUwz9VPyk+ZJ7P8D0ZNE1CQEZiLy0+Q+XBdq aCV8TaOa/22wuvveoPxnePf0BuCL34SplMZCmFbY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 07688F805C6; Thu, 13 Jul 2023 02:16:48 +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 9D6D6F805A0; Thu, 13 Jul 2023 02:16:47 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 038A3F806D9; Thu, 13 Jul 2023 02:16: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 3CDCDF8055A for ; Thu, 13 Jul 2023 02:16:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3CDCDF8055A 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=AlYOc7Iz 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 1FBA5619B2; Thu, 13 Jul 2023 00:16:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 087CCC433CC; Thu, 13 Jul 2023 00:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207374; bh=xtGOnDRcTXT8WVLfFDqPlV+MGAGMWphSd3kDQNybOQ8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=AlYOc7IziRhvD4r7rvKt62HpfVzb8lht5hxhozx9xFPf+CLc/xYs7LvstXxjxVxgE cyhenyqhrKt/9oP+ZYfx5D+QJAAqZiHr+RbGl8sqtSLJAFWRBnfpvj76vh1NrGqHRO 0nnqZognlMnmm05D3hwxQ0v/IHtsf5o8+bkjnUpxtWxJBzRc7XUsU9/jGD3O89o0ti +eV+psDe/NmiPP72JYLahiX2FFF5Wr+c5+gjKeTSWEX2EabwUF14jWyWN2Cy3RlXE/ V2w5lm9IE4O9Bq/0tTOZFD1r7gVdB3cBWNVhpM3SqA6tQy6twqZMKBRgq6ro8gMTqC nhNG2Bg+LuhhA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:55 +0100 Subject: [PATCH 42/48] ASoC: wm8978: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-42-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1111; i=broonie@kernel.org; h=from:subject:message-id; bh=xtGOnDRcTXT8WVLfFDqPlV+MGAGMWphSd3kDQNybOQ8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HMz/ygkyJNys6xhWQ09l+GhBkjtC+IURWor 4l4Quim9oOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BzAAKCRAk1otyXVSH 0JahB/9K/b1CqDk1bv/wGg7ndgddwmueeW8z5Qip7okcomLl5nGNjRgbnQQ9FaiRJsJAWtoQBus //7Ugfbo2mbN5SbtagDJBJu8vnaO1vC4Z4yHFJ316O/TaQWCKZLfb30meHHxMirhth3FGjSCcEp uoh/Yji2Sqxw/8OnM0RyZ/lKkvQPC3olXoabkc/euoPwYMwJXNvBhvVB/gumr1Ep8/HapepPt/i EihiAmU0RYX8ukYQdnSoYUUbRVB7vcnbkJmLc5vhqAeC9EF9ihCEXZR9J23qzSZAE8mIi6Gux69 wMKkVL80mrLVEhfjJ+FHV7WVxVHySC2RAp7zLhr6gWiicbmz X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: URU55E4BZGEINH5XVKJCIEWMWRHD4BOP X-Message-ID-Hash: URU55E4BZGEINH5XVKJCIEWMWRHD4BOP 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 wm8978 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8978.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c index 5c829301cf4c..718bfef302cc 100644 --- a/sound/soc/codecs/wm8978.c +++ b/sound/soc/codecs/wm8978.c @@ -1014,7 +1014,7 @@ static const struct regmap_config wm8978_regmap_config = { .max_register = WM8978_MAX_REGISTER, .volatile_reg = wm8978_volatile, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8978_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8978_reg_defaults), }; From patchwork Thu Jul 13 00: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: 702778 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 66BECEB64DD for ; Thu, 13 Jul 2023 00:27:16 +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 8A1A0E7C; Thu, 13 Jul 2023 02:26:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8A1A0E7C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208034; bh=AAwZLZ3wCUicI0cwpGlzwbb6Ss2N5VmgoHj9kKZsWMg=; 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=K20T8ecQPGgjaODRIO9lfyrVxZANUfQb+jy/1ZDf0NDHmF51JlSy6OI8bzCljknyQ UXqBecGQrBvXRtumWerhpfsIVqeQRG2l/AnG3+EMs+Zbs6Vu2hMbpQKQrVYAdD9c6f qyuzCi8tg63eDT6XGk1s4Zg/L8pCGw9h73L6mkd0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5EB0BF80772; Thu, 13 Jul 2023 02:16:50 +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 D2B62F80766; Thu, 13 Jul 2023 02:16:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C8477F806E1; Thu, 13 Jul 2023 02:16: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 ECE9CF806E0 for ; Thu, 13 Jul 2023 02:16:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ECE9CF806E0 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=e+/+Egpm 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 D9A15618FA; Thu, 13 Jul 2023 00:16:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 186FDC433CA; Thu, 13 Jul 2023 00:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207377; bh=AAwZLZ3wCUicI0cwpGlzwbb6Ss2N5VmgoHj9kKZsWMg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=e+/+EgpmdCsmOm+I7w01x9NSMCFcw46wIi0JFQrwOvt2lLOzV1s8w9y2iehyTKfiZ rctITfDZtlInrxBVUL5Jhn+hNSzQ+qv6MuO6Ad9f9uEfWMUGIfvzw+y9eNgaEhzMNk KgKWnK7C8WtWuu/4WtfegmuOLY74ix+un1RxYW2rlQMYoJu6vcGPKLUaskQFW2R57i q4eIBzQK11xC1ASqJUAoKXmReFTW+WZhy4pUTHaV6JWvg99CoG2xyGUMlMLqfZXkk3 MRiB7BGK07tKJv8T93r5rfJMsQ4/Fe4zLyaGCaYTy/qTdNA4IbtCe8KKA2NcmFsJIz WyRGXhnCrYnQw== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:56 +0100 Subject: [PATCH 43/48] ASoC: wm8983: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-43-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1094; i=broonie@kernel.org; h=from:subject:message-id; bh=AAwZLZ3wCUicI0cwpGlzwbb6Ss2N5VmgoHj9kKZsWMg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HM0xllK/SOQQG+LadzL1ML9t5duL0ZGokXy BcVXvR9dmyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BzAAKCRAk1otyXVSH 0JBOCACB85ybYYCw9ZUVDYq+4i8bSmmQEz40N2jsMxkBkMBmrU7rIeB42n8bHPLSRm5MewbOwIr Z4LguEF5O6AKrhFgkPl2L48X67a/VQ7JwM+oRmu3JbDKS0Lm/oadwBchvK1VoPDAynhLUKwomCu TOI/YYA83IBJSsns2ITppvOiEBuhvWYDRpbKfGFmu6+0EPkJ5XI44e8w3RD9C+Pl9BRXWTPl2gJ B+z2LpoiXs5FKZTJxNYJk1ccEms/7ZTdTvzDZRDpx6RAND/FjHLjuxtK7NAlt+4VnmJY0K+s4Fk UcsWn/CRdsSD2kEkniLYu5v5i6nmo7YR4ueJmGU2oTmgZ8QT X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 3RDFNCECPVO267L6CIEVX5ESW4NR4RHZ X-Message-ID-Hash: 3RDFNCECPVO267L6CIEVX5ESW4NR4RHZ 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 wm8983 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8983.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8983.c b/sound/soc/codecs/wm8983.c index 2bd26e2478d9..b26d6a68e8d2 100644 --- a/sound/soc/codecs/wm8983.c +++ b/sound/soc/codecs/wm8983.c @@ -995,7 +995,7 @@ static const struct regmap_config wm8983_regmap = { .reg_defaults = wm8983_defaults, .num_reg_defaults = ARRAY_SIZE(wm8983_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .max_register = WM8983_MAX_REGISTER, .writeable_reg = wm8983_writeable, From patchwork Thu Jul 13 00: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: 702261 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 35759EB64DA for ; Thu, 13 Jul 2023 00:27:33 +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 1905FE82; Thu, 13 Jul 2023 02:26:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1905FE82 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208051; bh=gr4V194GM9AwbQLZw3o0fLR+mQvArlDQoQoKogOSANs=; 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=rVdIk8TEDj2Qhcd0wTl407mkJKnZKnN0kYsJfD1qIEOyuvwF9zfXdYHKlsrisQ89T ypf6lJ6HDCn5NNRXU3M+q+lO7lZ+8kQNkU+1JJQ8d/68egL/PTtVBqJtR/4912jZN/ 5Ofop/thxP9XygBvzwADF4pU02Ylsd0SrLKnObpk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3DFF2F8077D; Thu, 13 Jul 2023 02:16:52 +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 66CABF80774; Thu, 13 Jul 2023 02:16:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 25863F806EF; Thu, 13 Jul 2023 02:16:25 +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 DC8D8F806E2 for ; Thu, 13 Jul 2023 02:16:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DC8D8F806E2 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=dhA+Sa53 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 BCF9F619B2; Thu, 13 Jul 2023 00:16:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D35D1C433CB; Thu, 13 Jul 2023 00:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207380; bh=gr4V194GM9AwbQLZw3o0fLR+mQvArlDQoQoKogOSANs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dhA+Sa53eG3z9t9R7aP6+n4zI9DTfFv/trh+Az2G3MDbZt/3d+B3TDv1tiAHZOH6C nSnnyb6LDAAlV8YmTxCPypdRqIzrwh5uL4/u17hM7KofNN7N7K6Qf6Ke4PWqBQoRyT F2OP0SrV0UUMGPn+A2KLjFG0crnz4MwEethKmZtxQSADLSqw8tIOaMdXp00uHyFhgF 7oYRddL+JJAGmj6h+A7dFXdjPw5/7SWAtfjkTcyoKlyjqhaSPNAEfJqtr8Bf4ZjMIB DKmb3KiU6/aU15SF9H+AsHOHQTfYCEEdvPUQj32MHJPJy0mLBzrdu5ndC1VgQFU87m uSDqcz93fKfvQ== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:57 +0100 Subject: [PATCH 44/48] ASoC: wm8985: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-44-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1106; i=broonie@kernel.org; h=from:subject:message-id; bh=gr4V194GM9AwbQLZw3o0fLR+mQvArlDQoQoKogOSANs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HNyjBeY0MLXJ17MeRNMLBj6D9Qtz10Wi3SW K9pGhm0N+uJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BzQAKCRAk1otyXVSH 0Cn+B/9BdyNtMZoPnoGfWYJeMbbTwlJ53OkQeiwqJvob3AiMyDZ0f4vciGLJWbY0U1iih7ucq9d LwuIXCgVnLU/OAp/15a714l8a5KW9KgUF/BpDd/4C0VM0sPzMSM7fX4yYwfaPmaEklpX4xobjUb kj6yHvOs1bwzdajvz5PvtyAJfNbdQAzu9b5+6J8TiE6Z79cNND42Evbu/waPn+oXneNAac7lqp1 5r2T9UzHAvZBmUvlwaWCZcrK9Fzqho7PM97pVrBNhXP+3wPyLIckxZLWEG+eOy1VFYFt3p136mE JgyGljx0Ty6fH7iNOoijpWifVcfx6mgtxciiu8y69eM9e/eY X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: EHEOIMTOW33SQOPWR77VBHYIN7ZROHHC X-Message-ID-Hash: EHEOIMTOW33SQOPWR77VBHYIN7ZROHHC 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 wm8985 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8985.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c index c0816bcfa294..8606e0752a60 100644 --- a/sound/soc/codecs/wm8985.c +++ b/sound/soc/codecs/wm8985.c @@ -1125,7 +1125,7 @@ static const struct regmap_config wm8985_regmap = { .max_register = WM8985_MAX_REGISTER, .writeable_reg = wm8985_writeable, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8985_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8985_reg_defaults), }; From patchwork Thu Jul 13 00: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: 702777 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 4488DEB64DA for ; Thu, 13 Jul 2023 00:27:55 +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 17F19E94; Thu, 13 Jul 2023 02:27:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 17F19E94 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208073; bh=OBMjeVDhDXKWHzZfgbwshvDo8AsqyDiTCFal21Yjztc=; 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=ijVofhmhhRC6Z45Jyhas4YMxb1v3GPP8U2/GsPgcT9XAZq2yS3JuJiH0CObKBKht+ TmjyuVYcm20soBD8Levl9o18DBDGQEL1mz/SjqIrTbWX3BqXcz0Fkg1xTJso3KhWBP LMUCcVwAUXa+Sb99QRaDaNetUg9uR9QCI7N8y4EM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B048FF80797; Thu, 13 Jul 2023 02:16:56 +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 F4007F80796; Thu, 13 Jul 2023 02:16:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0C153F806F7; Thu, 13 Jul 2023 02:16:27 +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 8E0CAF806EF for ; Thu, 13 Jul 2023 02:16:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8E0CAF806EF 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=r5FzIOk/ 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 80741619B2; Thu, 13 Jul 2023 00:16:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B32A8C433D9; Thu, 13 Jul 2023 00:16:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207382; bh=OBMjeVDhDXKWHzZfgbwshvDo8AsqyDiTCFal21Yjztc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=r5FzIOk/kWG8596XgnBj9K+QzVgfaD2fswIJDzb7LcuVIx2a1B4+4o7loyMf4qItp j1RR6wMqAvygCwgrxlcs9oXXvnxxJdiHDnZwWz6l744pX3IFXJB7GcnhRMr2F0PbJ2 rAhGZsTbFCDDJRYruJk3qwphEN/nDLI06UL5wjO0ORQ9eyw75YJ7VKUgoTLeOIiVTZ qhDTmmx+ThLGcUCJvgwOkg8PfcZNrdArI9M7vr58UTFSsc2Es+kgJGMtsIaIm1jKaH ApHdTjySLttQx7+OEvSShECNUTtAxZopS2FUhnJfiBc8OAObWk+RfPTMRZSQ2ZORTt tI03lbG16MFBg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:58 +0100 Subject: [PATCH 45/48] ASoC: wm8988: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-45-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1096; i=broonie@kernel.org; h=from:subject:message-id; bh=OBMjeVDhDXKWHzZfgbwshvDo8AsqyDiTCFal21Yjztc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HOvww25edrHXfa+LcppsTzggje7K45sb1zV J/ITqHpgqCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BzgAKCRAk1otyXVSH 0DhZB/49okZYlTziW/QDavueJEALX4dYlWUgnTf1m+Nuq0FracHNpFAdOVlI/wX1cR0TapSUnxd npuMMXVba7WIA9e14l4vvyTVU7BrkfUvaRiH4Ku+Cu2aELSESS1KQkXvinS84zIG2JrRn4Y2yzv Zyve5MZbYxbvuN+ZXpUPt3LZ0P5n4GVSXZfl/2wLFevTbrb+Xko/tRCPZBlOZJNW42ZAvReSlfQ Qe4PxYrE/g4rpE04dlGc8gvI80Qah3TE7+Q+mYsNaPh3pigUlWubrK8exsRxis4MzpJfIyv68yi m/ey4HLIL7Y5S/t9OOG+ckJhzzLapvA5pSqN2Pe64/ERb2n1 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 3E4TID4DBZRJIQACL7KWT5LNSJHWJN3N X-Message-ID-Hash: 3E4TID4DBZRJIQACL7KWT5LNSJHWJN3N 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 wm8988 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8988.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8988.c b/sound/soc/codecs/wm8988.c index b440719cca7d..76f214f12ce0 100644 --- a/sound/soc/codecs/wm8988.c +++ b/sound/soc/codecs/wm8988.c @@ -832,7 +832,7 @@ static const struct regmap_config wm8988_regmap = { .max_register = WM8988_LPPB, .writeable_reg = wm8988_writeable, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm8988_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm8988_reg_defaults), }; From patchwork Thu Jul 13 00: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: 702260 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 87E03EB64DA for ; Thu, 13 Jul 2023 00:28:07 +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 11758E7E; Thu, 13 Jul 2023 02:27:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 11758E7E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208085; bh=TPPu/Z6W2UYe47f64BjjYuoAfWqnzRv/XtPbIpYnPcg=; 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=RSEttwX4n+yYlTFkTwU+L420QMbO5bqNrKIMqO4fDMeacXxGsmbTlJqAt0J+RPUud BUIXrs6ReHo8lfy7Y5ho3Y0BPirq4/EoyHFrub9IPlS4ZjjANz4XPuFdup/b5f70Q5 Wx4+gRBeV7ZSM5ks43lj2SpVq9L3z/T8ETLNGbBU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4E709F807A6; Thu, 13 Jul 2023 02:16:58 +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 893C7F807C3; Thu, 13 Jul 2023 02:16:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1420FF80716; Thu, 13 Jul 2023 02:16: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 67E61F806E5 for ; Thu, 13 Jul 2023 02:16:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 67E61F806E5 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=EptHSpE/ 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 4337A61983; Thu, 13 Jul 2023 00:16:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78CBBC433C8; Thu, 13 Jul 2023 00:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207385; bh=TPPu/Z6W2UYe47f64BjjYuoAfWqnzRv/XtPbIpYnPcg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EptHSpE/fsImxglU0a3uunwPdronO4Nz2+l9gu5uLcsa6CR6/jV/j+IcUDIUwKjB4 dE6Um7a2v4us8h+PP7WooNIVUXeUmvDyzTm4rxuWsukjz8zDHusskJEFLO9C8pQNBY KAxhH7ieKdRYmWRCV+alQ/Y/JZjtUwBReLk4odwrXEEB/Dwznletb+Ft1yNuTsx676 ouuYPerstON7I0QtUVKZbfD1Kc8Ep6uxyYMpxVg5vn+aIkKpbfoPMhz7Cr1zmWxqvO xFGtPSwDzTtcmp9ZbwvMGY/F55lzh/RJtF6sO6Gs4xbrL40d1XOV7EpfS5mHC9FaaR uDfc3kM9qivcA== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:59 +0100 Subject: [PATCH 46/48] ASoC: wm9705: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-46-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1046; i=broonie@kernel.org; h=from:subject:message-id; bh=TPPu/Z6W2UYe47f64BjjYuoAfWqnzRv/XtPbIpYnPcg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HPyV+NRtOSquMoV8jbXAH+gf/G1WccnnYhk 1sUN7KCWRqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9BzwAKCRAk1otyXVSH 0H/zB/40IQZu9mPvw6TeHZzPBg0kDIuctaTQjlpWCcGiH3qhFVjWi+tU5Av2Pg6r+enfUB6/cGE CErl2ZRpNU5Af7T2GpOE6z3qG8hgSUzzE9WD3OvC9DkIV+kwFnqnoUHOlhvCnraZOjHbC5Ye/3b oyzN2ghjRNUh1JZlPGRbBn0YfuLtd47VH/NxlnVMHxgGlmsjgrcCrP2SSJhO3HW4Jz6ez33cMrB EDcUdQ4gXJaILTGFDovraH/uTvDlimxS/VFr6h3jOJnnoKsSCPoU3a1dLXCfCTCqrVEdf3tQ6Ra 1VBs0dsdYStcgjUncLIG9KFBJ+E1UC0oOFc2tgfZpYqhZNS9 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 464LXXAQQ7AKNYOBY5MVMPTBNT7RSTE5 X-Message-ID-Hash: 464LXXAQQ7AKNYOBY5MVMPTBNT7RSTE5 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 wm9705 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm9705.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index d04902ef1d5f..5c6aebe29cf1 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c @@ -64,7 +64,7 @@ static const struct regmap_config wm9705_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, From patchwork Thu Jul 13 00:14:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702776 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 4B87EC0015E for ; Thu, 13 Jul 2023 00:28:09 +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 28A55E9D; Thu, 13 Jul 2023 02:27:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 28A55E9D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208087; bh=ebII69k6DQ4r2X0HdiYVZcbSXjtVMF24HW2OLsV2rA8=; 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=H1YEUH+0aKvcANk9IS8vqHnkvxubj4h9ftrPiXFTErmU86Q8zbab6nksM4cnL3tz2 wJ/f3ANXyc54ovKBoqygzmsJP9sZb5+HNEdlncrSIbmgvU1Al5iLDWcl3ui2QSImc0 yQwykD/c5UVvGKuuEzydh86V9ISC6YUPKUq5hBhQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5477FF80806; Thu, 13 Jul 2023 02:17:00 +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 17604F80803; Thu, 13 Jul 2023 02:17:00 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EDDF7F8075C; Thu, 13 Jul 2023 02:16:40 +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 379A4F806FC for ; Thu, 13 Jul 2023 02:16:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 379A4F806FC 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=Jz8b296j 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 266D961983; Thu, 13 Jul 2023 00:16:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FF60C433C7; Thu, 13 Jul 2023 00:16:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207388; bh=ebII69k6DQ4r2X0HdiYVZcbSXjtVMF24HW2OLsV2rA8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Jz8b296j1Jn2pJf6+uq5aMRTUMYnHw7p+nNR3ZbE+SizNvGimfUE3BAd63UAuZuqk mT8n0+R0dVTo5AwfJGrZ2hxh2u/m7/EVs+lwmtZP4VyIlclpcPkLQCSx7P6RIBGqD+ FfsaPqiVcArp/C9R2Xqg57l4OX/XXjq9760GTyWu5OqvROD1ZkIz/9ENesf7Ah2Fse 02T2pfE+2nJBjGQSEF8mSnAH9At1tkQfLCncUAfTni/wKzSerX8Un/QvrmWfrbB2AE YXuJO67IX7Oy5IpCeKbrMIXIfuxrwVZtTJjd8zr5olw94ZMUEeEgZEeDQP3w1b3e1x A+0EOEZhaGtjw== From: Mark Brown Date: Thu, 13 Jul 2023 01:14:00 +0100 Subject: [PATCH 47/48] ASoC: wm9712: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-47-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1037; i=broonie@kernel.org; h=from:subject:message-id; bh=ebII69k6DQ4r2X0HdiYVZcbSXjtVMF24HW2OLsV2rA8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HQT49IsB9FPGQ6zrtACJtgSSzF+YLTQlp/X eEY99qC+aOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9B0AAKCRAk1otyXVSH 0DLFB/4pm9+L4qT8lCVX5/JWpnYArK4uE9Vi/qrH2zoX00ZC4a+uOutTMoYxuqWYI1Gtvdrk5rQ ZxWjiLgMaHMRbvFxjexvaUn1ZjdkqN63ryiH4oVoGMGfMzhcoWVPogY69Xvp5nAuV+S/iXgn+bX DSE81LW4+H7rysmXiw/bIV9zj38lRAn35vdnniYEQUquZfc/2zAydlvzk3gstX6+jggjj15gBNG fC5P5H94oyxcWejqiBfOfcK7aNaeUfCKrNbc1biEBqNkhZ14ZGXRoutPBaaJN6d/bqerhDu+veR VNbsQqRPJWn4pNVZ7Lk+Liotb6EhG/oKkmJQe5LCCCUKQYSl X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: FZPN2SEYA5SUXIMLNKRNRJPJQEYG7BS7 X-Message-ID-Hash: FZPN2SEYA5SUXIMLNKRNRJPJQEYG7BS7 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 wm9712 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm9712.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index df9b7980706b..e63921de0c37 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c @@ -86,7 +86,7 @@ static const struct regmap_config wm9712_regmap_config = { .reg_stride = 2, .val_bits = 16, .max_register = 0x7e, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = wm9712_volatile_reg, From patchwork Thu Jul 13 00:14:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702259 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 EFDC8EB64DA for ; Thu, 13 Jul 2023 00:28:42 +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 A14F0E9A; Thu, 13 Jul 2023 02:27:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A14F0E9A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689208120; bh=eySvdiHt0nvShNYD0dPWcUpDt+Gp3/9d9uPK51mRSJ4=; 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=cEZ36lIf0AmsojM0DVB1Ytk3dn60WbttKYA1vzrqm6sADcZAW7A2TAGlsXxtsg1Ra +/Jl25zGW5jmBDqDR5YBZqZKSQeih8G2RC5UcswqKUhVR9sGvXJht7WzyMA/Ckr6UU /Axb+hlfNKXzIvvdqt934h6jTehAwaYh3PIwzrds= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 98ADFF80804; Thu, 13 Jul 2023 02:17:05 +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 89BC4F805AE; Thu, 13 Jul 2023 02:17:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 72BD7F80760; Thu, 13 Jul 2023 02:16:44 +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 D8816F80724 for ; Thu, 13 Jul 2023 02:16:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D8816F80724 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=d1Xt2Jn3 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 C6C99619B0; Thu, 13 Jul 2023 00:16:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DE45C433CC; Thu, 13 Jul 2023 00:16:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207391; bh=eySvdiHt0nvShNYD0dPWcUpDt+Gp3/9d9uPK51mRSJ4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=d1Xt2Jn3aX6zpDurP2+FCcxFmaBNLqSmLS4Zgw+jUIF2roRiz2bZeegv3rSn653hN JSRaGEQ8YgzZIAFpDVsum37d1Tiah+O2s+U9ZXtt5X9oyg226FEByFLT+7nnrJRlkb kraJg6EZVEsmdnRvz1pJvvgpU0X8ByRTlwgJDrPvI5tKjXGUj20y9pJdh0JorMPAHF rE+voyycljIKTXKEPzEZsmmiBKKhZ6Em8/rysNtbHLlm6XB8mI2CixNl3laMYmTu3u wi0N81+ZR6X09Q07sAzpDNLwtOorkggInFvawhY51LIIoKhpIzc8aphVSMQPm4cj2+ uKkskateeZV9Q== From: Mark Brown Date: Thu, 13 Jul 2023 01:14:01 +0100 Subject: [PATCH 48/48] ASoC: wm9713: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-48-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1092; i=broonie@kernel.org; h=from:subject:message-id; bh=eySvdiHt0nvShNYD0dPWcUpDt+Gp3/9d9uPK51mRSJ4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HRShdMLpPh/QY4YGuJRmn8dfk8SMFLeNE6h ce5j0Ttz4qJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9B0QAKCRAk1otyXVSH 0O3JB/4qj2IcnrCuzWlGbEJKY9hEOk6cmL/fFRpYrEdvoG1cpd/vy5X8J80DZWwsAD84oW2mY1K VWU8C/8m5jJaA2U1wufZr5z880cBaQXCGRWTWW5L1ch0FtIyp8L5hm1zrwTytIJCSgRCa4onpYg Hpdvqx569cZta53hYBV80ICtdXGTNH+ewKWEwU1oTLk6v9x6DoKAUpYdy4xrrNSSX61yF2+mWOK P8tLhYceWRaOJsT/o75YCmeth3tWB2btGoD3IK3Sc51B4HaVayBPGQ4lETsdpi0TYoLSEklCpPO d4tp/+41gfiHzWGn6O4o3DIMWSEpKhHO0PXs7hzfxYW06qV2 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: 552LN4OQV3GX2EPPHOUOR4RMMK6FRTVW X-Message-ID-Hash: 552LN4OQV3GX2EPPHOUOR4RMMK6FRTVW 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 wm9713 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm9713.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index 5d2e54e06e30..64b69316e4c7 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c @@ -727,7 +727,7 @@ static const struct regmap_config wm9713_regmap_config = { .reg_stride = 2, .val_bits = 16, .max_register = 0x7e, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = wm9713_reg_defaults, .num_reg_defaults = ARRAY_SIZE(wm9713_reg_defaults),