All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Sibi Sankar <quic_sibis@quicinc.com>
Cc: Johan Hovold <johan@kernel.org>, <sudeep.holla@arm.com>,
	<cristian.marussi@arm.com>, <andersson@kernel.org>,
	<konrad.dybcio@linaro.org>, <robh+dt@kernel.org>,
	<krzysztof.kozlowski+dt@linaro.org>,
	<dmitry.baryshkov@linaro.org>, <linux-kernel@vger.kernel.org>,
	<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<quic_rgottimu@quicinc.com>, <quic_kshivnan@quicinc.com>,
	<conor+dt@kernel.org>, <quic_nkela@quicinc.com>,
	<quic_psodagud@quicinc.com>, <abel.vesa@linaro.org>
Subject: Re: [PATCH V7 0/2] qcom: x1e80100: Enable CPUFreq
Date: Mon, 06 Jan 2025 14:57:29 +0000	[thread overview]
Message-ID: <864j2couqu.wl-maz@kernel.org> (raw)
In-Reply-To: <f504b325-e4a8-c297-a09f-6a2158fa1a1b@quicinc.com>

On Mon, 06 Jan 2025 12:22:48 +0000,
Sibi Sankar <quic_sibis@quicinc.com> wrote:
> 
> 
> 
> On 12/5/24 21:16, Johan Hovold wrote:
> > On Thu, Dec 05, 2024 at 04:53:05PM +0530, Sibi Sankar wrote:
> >> On 11/5/24 23:42, Marc Zyngier wrote:
> >>> On Tue, 05 Nov 2024 16:57:07 +0000,
> >>> Johan Hovold <johan@kernel.org> wrote:
> >>>> On Fri, Nov 01, 2024 at 02:43:57PM +0000, Marc Zyngier wrote:
> > 
> >>>>> I wonder whether the same sort of reset happen on more "commercial"
> >>>>> systems (such as some of the laptops). You expect that people look at
> >>>>> the cpufreq stuff closely, and don't see things exploding like we are.
> >>>> 
> >>>> I finally got around to getting my Lenovo ThinkPad T14s to boot (it
> >>>> refuses to start the kernel when using GRUB, and it's not due to the
> >>>> known 64 GB memory issue as it only has 32 GB)
> >>> 
> >>> <cry>
> >>> I know the feeling. My devkit can't use GRUB either, so I added a
> >>> hook to the GRUB config to generate EFI scripts that directly execute
> >>> the kernel with initrd, dtb, and command line.
> >>> 
> >>> This is probably the worse firmware I've seen in a very long while.
> >> 
> >> The PERF_LEVEL_GET implementation in the SCP firmware side
> >> is the reason for the crash :|, currently there is a bug
> >> in the kernel that picks up index that we set with LEVEL_SET
> >> with fast channel and that masks the crash. I was told the
> >> crash happens when idle states are enabled and a regular
> >> LEVEL_GET message is triggered from the kernel. This was
> >> fixed a while back but it will take a while to flow back
> >> to all the devices. It should already be out CRD's.
> >> 
> >> Johan,
> >> Now that you are aware of the the limitations can we make
> >> a call on how to deal with this and land cpufreq?
> > 
> > As Marc said, it seems you need to come up with a way to detect and work
> > around the broken firmware.
> 
> The perf protocol version won't have any changes so detecting
> it isn't possible :(

This is just... baffling. Can this be checked against one of the
strings contained in the DMI tables?

> 
> > 
> > We want to get the fast channel issue fixed, but when we merge that fix
> > it will trigger these crashes if we also merge cpufreq support for x1e.
> > 
> > Can you expand the on the PERF_LEVEL_GET issue? Is it possible to
> > implement some workaround for the buggy firmware? Like returning a dummy
> > value? How exactly are things working today? Can't that be used a basis
> > for a quirk?
> 
> The main problem is the X1E firmware supports fast channel level get
> but when queried it says it doesn't support it :|. The PERF_LEVEL_GET
> regular messaging which gets used as a fallback has a bug which causes
> the device to crash. So we either enable cpufreq only on platforms
> that has the fix in place

Again: how do we detect this?

> or live with the warning that certain messages
> don't support fast channel which I don't think will fly. I've also been
> told the crash wouldn't show up if we have all sleep states
> disabled.

So we have the choice between crashing quickly, or sucking power like
mad?

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

  reply	other threads:[~2025-01-06 14:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-30 13:08 [PATCH V7 0/2] qcom: x1e80100: Enable CPUFreq Sibi Sankar
2024-10-30 13:08 ` [PATCH V7 1/2] arm64: dts: qcom: x1e80100: Add cpucp mailbox and sram nodes Sibi Sankar
2024-10-30 13:08 ` [PATCH V7 2/2] arm64: dts: qcom: x1e80100: Enable cpufreq Sibi Sankar
2024-11-01 13:00 ` [PATCH V7 0/2] qcom: x1e80100: Enable CPUFreq Johan Hovold
2024-11-01 14:08   ` Marc Zyngier
2024-11-01 14:19     ` Johan Hovold
2024-11-01 14:43       ` Marc Zyngier
2024-11-05 16:57         ` Johan Hovold
2024-11-05 18:12           ` Marc Zyngier
2024-12-05 11:23             ` Sibi Sankar
2024-12-05 13:44               ` Marc Zyngier
2024-12-05 15:46               ` Johan Hovold
2025-01-06 12:22                 ` Sibi Sankar
2025-01-06 14:57                   ` Marc Zyngier [this message]
2025-01-10  9:52                   ` Johan Hovold
2025-01-17  6:36                     ` Sibi Sankar
2025-05-08 12:20 ` Johan Hovold
2025-05-17  5:57 ` (subset) " 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=864j2couqu.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=abel.vesa@linaro.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=cristian.marussi@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=johan@kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_kshivnan@quicinc.com \
    --cc=quic_nkela@quicinc.com \
    --cc=quic_psodagud@quicinc.com \
    --cc=quic_rgottimu@quicinc.com \
    --cc=quic_sibis@quicinc.com \
    --cc=robh+dt@kernel.org \
    --cc=sudeep.holla@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.