mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Michael Auer <mick@yoxcu.de>, Georgi Djakov <djakov@kernel.org>
Cc: Konrad Dybcio <konradybcio@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Mike Tipton <mike.tipton@oss.qualcomm.com>,
	Ard Biesheuvel <ardb@kernel.org>,
	linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] interconnect: qcom: bcm-voter: Clear the ALC vote left by the bootloader
Date: Mon, 23 Nov 2026 19:42:22 +0100	[thread overview]
Message-ID: <b11d2e6b-8802-4450-8eb1-7984034d5c4e@oss.qualcomm.com> (raw)
In-Reply-To: <6e30e65c-3fa7-409c-90da-2740f7bf0a24@yoxcu.de>

On 11/20/26 10:41 PM, Michael Auer wrote:
> Hi,
> 
> A sashiko review of this patch found that the wake and sleep writes
> never reach the hardware. rpmh only caches them, the (0, 0) wake write
> replaces the (12, 0) wake value from the active-only write, and
> rpmh_flush() skips entries with equal sleep and wake values.
> 
> That matches the OnePlus 6: the rpmh cache has ALC at sleep 0 and
> wake 0, and the APPS DRV vote read back after a night with 139
> suspends is still 0x20030000, so (12, 0). What I tested is the
> active-only (12, 0) vote alone, held through suspend, and with it the
> SoC reaches CX collapse.

I was hoping you would test my suggestion before sending it out..

> Konrad, did you mean ALC to drop to (0, 0) in sleep? Then the wake
> write has to go, so that rpmh_flush() programs both sets. I can test
> that. If the active vote is enough, I would drop the wake and sleep
> writes in v3, so the code does what was tested.

My agent suggests that changing this to use rpmh_write_batch() as
these aren't cached and should achieve the desired outcome, please
explore that

Konrad

      reply	other threads:[~2026-11-23 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 12:21 Michael Auer
2026-11-20 21:41 ` Michael Auer
2026-11-23 18:42   ` Konrad Dybcio [this message]

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=b11d2e6b-8802-4450-8eb1-7984034d5c4e@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=ardb@kernel.org \
    --cc=djakov@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mick@yoxcu.de \
    --cc=mike.tipton@oss.qualcomm.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

all inboxes | Powered by JetHome®