Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Sibi Sankar <quic_sibis@quicinc.com>
To: Johan Hovold <johan@kernel.org>
Cc: Marc Zyngier <maz@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: Fri, 17 Jan 2025 12:06:29 +0530	[thread overview]
Message-ID: <48cfd337-e691-7f10-71df-f6389e098e67@quicinc.com> (raw)
In-Reply-To: <Z4Dt8E7C6upVtEGV@hovoldconsulting.com>



On 1/10/25 15:22, Johan Hovold wrote:
> On Mon, Jan 06, 2025 at 05:52:48PM +0530, Sibi Sankar wrote:
>> On 12/5/24 21:16, Johan Hovold wrote:
> 
>>> 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 :(
> 
> But there could be other ways, see below.
> 
>>> 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 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.
> 
> We certainly want cpufreq enabled also on the current/older firmware
> which have these bugs.
> 
> Based on the above, it sounds like your fix:
> 
> 	https://lore.kernel.org/lkml/20241030125512.2884761-2-quic_sibis@quicinc.com/
> 
> is correct even if it triggers the crash on machines with buggy firmware.
> 
> Why can't you add a quirk for x1e platforms that makes sure that the
> driver always uses fastchannel level get?

Makes sense but introducing anything like ^^ needs consensus from
the scmi maintainers but for obvious they won't comment on this
thread :| . I'll repeat the same question on another thread.

-Sibi

> 
> You know it is supported (and as has to be used) even if the buggy
> firmware says it's not. Just set the corresponding attribute bit
> unconditionally based on the DT machine compatible (or fall back to the
> current implementation which theoretically other broken fw
> implementations may also be relying on), or similar.
> 
> Johan

  reply	other threads:[~2025-01-17  6:36 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
2025-01-10  9:52                   ` Johan Hovold
2025-01-17  6:36                     ` Sibi Sankar [this message]
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=48cfd337-e691-7f10-71df-f6389e098e67@quicinc.com \
    --to=quic_sibis@quicinc.com \
    --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=maz@kernel.org \
    --cc=quic_kshivnan@quicinc.com \
    --cc=quic_nkela@quicinc.com \
    --cc=quic_psodagud@quicinc.com \
    --cc=quic_rgottimu@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox