alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ASoC: qcom: Use the maple tree register cache
@ 2023-07-12 18:29 Mark Brown
  2023-07-12 18:29 ` [PATCH 1/4] ASoC: wcd9335: Update to use " Mark Brown
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mark Brown @ 2023-07-12 18:29 UTC (permalink / raw)
  To: Srinivas Kandagatla, Banajit Goswami, Liam Girdwood
  Cc: alsa-devel, Mark Brown

The maple tree register cache should now be a good replacement for the
rbtree cache in almost all situations, update the Qualcomm CODEC drivers
to use the newer cache.

---
Mark Brown (4):
      ASoC: wcd9335: Update to use maple tree register cache
      ASoC: wcd938x: Update to use maple tree register cache
      ASoC: wsa881x: Update to use maple tree register cache
      ASoC: wsa883x: Update to use maple tree register cache

 sound/soc/codecs/wcd9335.c     | 2 +-
 sound/soc/codecs/wcd938x-sdw.c | 2 +-
 sound/soc/codecs/wsa881x.c     | 2 +-
 sound/soc/codecs/wsa883x.c     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
change-id: 20230629-asoc-qcom-maple-02adff47e26f

Best regards,
-- 
Mark Brown <broonie@kernel.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] ASoC: wcd9335: Update to use maple tree register cache
  2023-07-12 18:29 [PATCH 0/4] ASoC: qcom: Use the maple tree register cache Mark Brown
@ 2023-07-12 18:29 ` Mark Brown
  2023-07-12 18:29 ` [PATCH 2/4] ASoC: wcd938x: " Mark Brown
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-07-12 18:29 UTC (permalink / raw)
  To: Srinivas Kandagatla, Banajit Goswami, Liam Girdwood
  Cc: alsa-devel, Mark Brown

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 wcd9335 driver to use the more modern data structure.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wcd9335.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c
index 8bf3510a3ea3..a05b553e6472 100644
--- a/sound/soc/codecs/wcd9335.c
+++ b/sound/soc/codecs/wcd9335.c
@@ -4968,7 +4968,7 @@ static bool wcd9335_is_volatile_register(struct device *dev, unsigned int reg)
 static struct regmap_config wcd9335_regmap_config = {
 	.reg_bits = 16,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = WCD9335_MAX_REGISTER,
 	.can_multi_write = true,
 	.ranges = wcd9335_ranges,

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] ASoC: wcd938x: Update to use maple tree register cache
  2023-07-12 18:29 [PATCH 0/4] ASoC: qcom: Use the maple tree register cache Mark Brown
  2023-07-12 18:29 ` [PATCH 1/4] ASoC: wcd9335: Update to use " Mark Brown
@ 2023-07-12 18:29 ` Mark Brown
  2023-07-12 18:29 ` [PATCH 3/4] ASoC: wsa881x: " Mark Brown
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-07-12 18:29 UTC (permalink / raw)
  To: Srinivas Kandagatla, Banajit Goswami, Liam Girdwood
  Cc: alsa-devel, Mark Brown

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 wcd938x driver to use the more modern data structure.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wcd938x-sdw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wcd938x-sdw.c b/sound/soc/codecs/wcd938x-sdw.c
index bd0e9fbc12eb..6951120057e5 100644
--- a/sound/soc/codecs/wcd938x-sdw.c
+++ b/sound/soc/codecs/wcd938x-sdw.c
@@ -1183,7 +1183,7 @@ static const struct regmap_config wcd938x_regmap_config = {
 	.name = "wcd938x_csr",
 	.reg_bits = 32,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = wcd938x_defaults,
 	.num_reg_defaults = ARRAY_SIZE(wcd938x_defaults),
 	.max_register = WCD938X_MAX_REGISTER,

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] ASoC: wsa881x: Update to use maple tree register cache
  2023-07-12 18:29 [PATCH 0/4] ASoC: qcom: Use the maple tree register cache Mark Brown
  2023-07-12 18:29 ` [PATCH 1/4] ASoC: wcd9335: Update to use " Mark Brown
  2023-07-12 18:29 ` [PATCH 2/4] ASoC: wcd938x: " Mark Brown
@ 2023-07-12 18:29 ` Mark Brown
  2023-07-12 18:29 ` [PATCH 4/4] ASoC: wsa883x: " Mark Brown
  2023-07-17 21:59 ` [PATCH 0/4] ASoC: qcom: Use the " Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-07-12 18:29 UTC (permalink / raw)
  To: Srinivas Kandagatla, Banajit Goswami, Liam Girdwood
  Cc: alsa-devel, Mark Brown

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 wsa881x driver to use the more modern data structure.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wsa881x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c
index 97f6873a0a8c..3c025dabaf7a 100644
--- a/sound/soc/codecs/wsa881x.c
+++ b/sound/soc/codecs/wsa881x.c
@@ -637,7 +637,7 @@ static bool wsa881x_volatile_register(struct device *dev, unsigned int reg)
 static struct regmap_config wsa881x_regmap_config = {
 	.reg_bits = 32,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = wsa881x_defaults,
 	.max_register = WSA881X_SPKR_STATUS3,
 	.num_reg_defaults = ARRAY_SIZE(wsa881x_defaults),

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] ASoC: wsa883x: Update to use maple tree register cache
  2023-07-12 18:29 [PATCH 0/4] ASoC: qcom: Use the maple tree register cache Mark Brown
                   ` (2 preceding siblings ...)
  2023-07-12 18:29 ` [PATCH 3/4] ASoC: wsa881x: " Mark Brown
@ 2023-07-12 18:29 ` Mark Brown
  2023-07-17 21:59 ` [PATCH 0/4] ASoC: qcom: Use the " Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-07-12 18:29 UTC (permalink / raw)
  To: Srinivas Kandagatla, Banajit Goswami, Liam Girdwood
  Cc: alsa-devel, Mark Brown

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 wsa883x driver to use the more modern data structure.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wsa883x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c
index e40d583a1ce6..197fae23762f 100644
--- a/sound/soc/codecs/wsa883x.c
+++ b/sound/soc/codecs/wsa883x.c
@@ -938,7 +938,7 @@ static bool wsa883x_volatile_register(struct device *dev, unsigned int reg)
 static struct regmap_config wsa883x_regmap_config = {
 	.reg_bits = 32,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = wsa883x_defaults,
 	.max_register = WSA883X_MAX_REGISTER,
 	.num_reg_defaults = ARRAY_SIZE(wsa883x_defaults),

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] ASoC: qcom: Use the maple tree register cache
  2023-07-12 18:29 [PATCH 0/4] ASoC: qcom: Use the maple tree register cache Mark Brown
                   ` (3 preceding siblings ...)
  2023-07-12 18:29 ` [PATCH 4/4] ASoC: wsa883x: " Mark Brown
@ 2023-07-17 21:59 ` Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-07-17 21:59 UTC (permalink / raw)
  To: Srinivas Kandagatla, Banajit Goswami, Liam Girdwood, Mark Brown
  Cc: alsa-devel

On Wed, 12 Jul 2023 19:29:31 +0100, Mark Brown wrote:
> The maple tree register cache should now be a good replacement for the
> rbtree cache in almost all situations, update the Qualcomm CODEC drivers
> to use the newer cache.
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/4] ASoC: wcd9335: Update to use maple tree register cache
      commit: 272aedb250cff93c2c25d19db9f4691329238f98
[2/4] ASoC: wcd938x: Update to use maple tree register cache
      commit: 8caeeb54d8283601eab27f6d0ca727476cba7f1c
[3/4] ASoC: wsa881x: Update to use maple tree register cache
      commit: daf95b06a0615d8b2a6716d14a3b8605b90f1ed2
[4/4] ASoC: wsa883x: Update to use maple tree register cache
      commit: e1de05805133d2f2803001b4804d010b6812ca4a

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-17 22:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-12 18:29 [PATCH 0/4] ASoC: qcom: Use the maple tree register cache Mark Brown
2023-07-12 18:29 ` [PATCH 1/4] ASoC: wcd9335: Update to use " Mark Brown
2023-07-12 18:29 ` [PATCH 2/4] ASoC: wcd938x: " Mark Brown
2023-07-12 18:29 ` [PATCH 3/4] ASoC: wsa881x: " Mark Brown
2023-07-12 18:29 ` [PATCH 4/4] ASoC: wsa883x: " Mark Brown
2023-07-17 21:59 ` [PATCH 0/4] ASoC: qcom: Use the " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).