mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Atul Dhudase (QUIC)" <quic_adhudase@quicinc.com>
To: "Mukesh Ojha (QUIC)" <quic_mojha@quicinc.com>,
	Stephen Boyd <swboyd@chromium.org>,
	"Atul Dhudase (QUIC)" <quic_adhudase@quicinc.com>,
	"Bjorn Andersson (QUIC)" <quic_bjorande@quicinc.com>
Cc: "agross@kernel.org" <agross@kernel.org>,
	"andersson@kernel.org" <andersson@kernel.org>,
	"konrad.dybcio@linaro.org" <konrad.dybcio@linaro.org>,
	"isaacm@codeaurora.org" <isaacm@codeaurora.org>,
	"dianders@chromium.org" <dianders@chromium.org>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] soc: qcom: llcc: Fix dis_cap_alloc and retain_on_pc configuration
Date: Tue, 7 Nov 2023 15:27:54 +0000	[thread overview]
Message-ID: <SN4PR0201MB8806AF236D696E15CDC6400CF9A9A@SN4PR0201MB8806.namprd02.prod.outlook.com> (raw)
In-Reply-To: <d1e3adb5-b179-a119-fc0c-f92c2b84c7c2@quicinc.com>

Hi,

On 11/7/2023 6:46 PM, Mukesh Ojha wrote:
> On 11/7/2023 3:25 AM, Stephen Boyd wrote:
> > Quoting Mukesh Ojha (2023-11-05 22:54:28)
> >>
> >>
> >> On 11/4/2023 1:03 AM, Bjorn Andersson wrote:
> >>> On Fri, Nov 03, 2023 at 04:27:12PM +0530, Atul Dhudase wrote:
> >>>> While programming dis_cap_alloc and retain_on_pc, set a bit 
> >>>> corresponding to a specific SCID without disturbing the 
> >>>> previously configured bits.
> >>>>
> >>>
> >>> As far as I can see, the only invocation of 
> >>> _qcom_llcc_cfg_program() comes from qcom_llcc_cfg_program(), which 
> >>> is only called once, from qcom_llcc_probe(), and here also seems 
> >>> to only be the single write to these two registers.
> >>
> >> It does not look to be single write but the write is for each slice 
> >> in the same register which was overriding other slices values.
> >
> > Can you add that detail to the commit text? What's the seriousness 
> > of the issue? Why should it be backported to stable? Is something 
> > seriously broken because a slice configuration is overwritten? Does 
> > it mean that some allocation made in a slice is being lost over 
> > power collapse (pc) when it shouldn't be?
> 
> @Atul will update the commit text as per suggestion.
> 
> And yes, without this change, retention feature will not work properly.
> 
> -Mukesh

Does this commit text make sense? If so, I will update patch accordingly.

When configuring capacity based allocation and power collapse retention, writing to the same register for each slice caused overwriting of the values for other slices, leading to misconfiguration for majority of the slices.
To address this, only modify the bits associated with each slice while retaining the values of the remaining bits, as they were prior to the Linux configuration.

Thanks,
Atul

  reply	other threads:[~2023-11-07 15:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03 10:57 Atul Dhudase
2023-11-03 11:17 ` Mukesh Ojha
2023-11-03 15:30   ` Mukesh Ojha
2023-11-03 14:48 ` Doug Anderson
2023-11-03 19:33 ` Bjorn Andersson
2023-11-06  6:54   ` Mukesh Ojha
2023-11-06 21:55     ` Stephen Boyd
2023-11-07 13:16       ` Mukesh Ojha
2023-11-07 15:27         ` Atul Dhudase (QUIC) [this message]
2023-11-09 20:34           ` Stephen Boyd
2023-12-05 22:04             ` Doug Anderson
2023-12-06 10:38               ` Mukesh Ojha
2023-11-06 23:01     ` Bjorn Andersson

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=SN4PR0201MB8806AF236D696E15CDC6400CF9A9A@SN4PR0201MB8806.namprd02.prod.outlook.com \
    --to=quic_adhudase@quicinc.com \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=dianders@chromium.org \
    --cc=isaacm@codeaurora.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_bjorande@quicinc.com \
    --cc=quic_mojha@quicinc.com \
    --cc=swboyd@chromium.org \
    /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®