public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda: Use maple tree register cache
Date: Tue, 13 Jun 2023 09:36:34 +0200	[thread overview]
Message-ID: <877cs7g6f1.wl-tiwai@suse.de> (raw)
In-Reply-To: <87v8fua1qm.wl-tiwai@suse.de>

On Sun, 11 Jun 2023 09:37:21 +0200,
Takashi Iwai wrote:
> 
> On Sat, 10 Jun 2023 16:26:37 +0200,
> Mark Brown wrote:
> > 
> > HDA can only support single register read and write operations so does not
> > benefit from block writes. This means it gets no benefit from using the
> > rbtree register cache over the maple tree register cache so convert it to
> > use maple trees instead, it is more modern.
> > 
> > Signed-off-by: Mark Brown <broonie@kernel.org>
> 
> Thanks, applied to for-next branch.

Now I noticed errors like

  snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x2f0009. -5

and it turned out that the error comes from this patch.

This is an error from regache_sync_val(), and it indicates that the
synced register is write-only; regcache_maple_sync() tries to sync all
cached values no matter whether it's writable or not, then hitting
this.

I'll submit a fix patch.


thanks,

Takashi

  reply	other threads:[~2023-06-13  7:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-10 14:26 [PATCH] ALSA: hda: Use maple tree register cache Mark Brown
2023-06-11  7:37 ` Takashi Iwai
2023-06-13  7:36   ` Takashi Iwai [this message]
2023-06-13 13:59     ` Mark Brown
2023-06-13 14:24       ` Takashi Iwai
2023-06-13 15:49         ` Mark Brown
2023-06-13 16:15           ` Takashi Iwai
2023-06-13 16:41             ` Mark Brown
2023-06-13 17:05               ` Takashi Iwai
2023-06-13 17:29                 ` Mark Brown
2023-06-14  5:56                   ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cs7g6f1.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox