From: Krzysztof Kozlowski <krzk@kernel.org>
To: Will Deacon <will@kernel.org>
Cc: "Mostafa Saleh" <smostafa@google.com>,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
alim.akhtar@samsung.com,
"Peter Griffin" <peter.griffin@linaro.org>,
"André Draszik" <andre.draszik@linaro.org>
Subject: Re: [PATCH] soc: samsung: exynos-pmu: Fix for CONFIG_DEBUG_PREEMPT
Date: Tue, 9 Sep 2025 19:49:03 +0200 [thread overview]
Message-ID: <81d4dfd8-7e6b-44e1-859a-c993ad174a5d@kernel.org> (raw)
In-Reply-To: <aMBd8NT78_Svcy71@willie-the-truck>
On 09/09/2025 19:03, Will Deacon wrote:
> On Tue, Sep 09, 2025 at 05:43:16PM +0200, Krzysztof Kozlowski wrote:
>> On 09/09/2025 12:15, Will Deacon wrote:
>>> Krzysztof,
>>>
>>> On Sat, Sep 06, 2025 at 09:07:02AM +0200, Krzysztof Kozlowski wrote:
>>>> On 05/09/2025 19:43, Mostafa Saleh wrote:
>>>>>>>
>>>>>>> As this value is only read once, it doesn't require to be stable, so
>>>>>>
>>>>>> Why it does not need to be stable? Onlining wrong CPU number is not
>>>>>> desired...
>>>>>>
>>>>>>> just use "raw_smp_processor_id" instead.
>>>>>>
>>>>>> You might be just hiding some other real issue, because above stacktrace
>>>>>> is from gs101_cpuhp_pmu_online() which IRQs disabled and preemption
>>>>>> disabled. Provide analysis of the warning, instead of just making it
>>>>>> disappear.
>>>>>
>>>>> Not sure I understand, how is preemption disabled? that wouldn't fire
>>>>> in that case.
>>>>
>>>> Because there is explicit preempt_disable().
>>>
>>> Where do you see that?
>>
>> I did look at the code.
>>
>> All the calls I saw (including calltrace from commit msg) were under raw
>> spinlock and raw spinlock does:
>>
>> preempt_disable();
>
> The backtrace doesn't contain a raw spinlock. As Peter subsequently
How backtrace could contain spinlock? Backtrace points you the calls and
clearly in these calls in the source code there is raw spinlock.
> pointed out, the reported issue has been fixed in linux-next and there's
Not in Linux next, but in maintainer tree. Who is going to apply the
patch? Maintainer. On what tree? Maintainer's tree.
> a raw spinlock there but since the report is from vanilla -rc4, it
> doesn't have that fix.
So that's the argument - instead of trying maintainer's tree or
linux-next, or even trying to put some effort and investigate why
maintainer claims that "gs101_cpuhp_pmu_online() which IRQs disabled and
preemption disabled." you just respond "there is no fix in rc release".
I gave the technical objection based on reading code.
Contributor instead of checking this or doing basic work - developing on
tree which has fixes, just bounced back. And you complain that I "could
try a bit harder to fill". Keep such comments to yourself.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-09-09 17:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-05 16:24 Mostafa Saleh
2025-09-05 17:09 ` Krzysztof Kozlowski
2025-09-05 17:43 ` Mostafa Saleh
2025-09-06 7:07 ` Krzysztof Kozlowski
2025-09-09 10:15 ` Will Deacon
2025-09-09 15:43 ` Krzysztof Kozlowski
2025-09-09 15:50 ` Krzysztof Kozlowski
2025-09-09 17:03 ` Will Deacon
2025-09-09 17:49 ` Krzysztof Kozlowski [this message]
2025-09-09 11:14 ` Peter Griffin
2025-09-09 19:03 ` Mostafa Saleh
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=81d4dfd8-7e6b-44e1-859a-c993ad174a5d@kernel.org \
--to=krzk@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=andre.draszik@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=peter.griffin@linaro.org \
--cc=smostafa@google.com \
--cc=will@kernel.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®