linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
       [not found] <CGME20250827102650eucas1p1fe270adbf29c649b9ce529e1d45aabc3@eucas1p1.samsung.com>
@ 2025-08-27 10:26 ` Marek Szyprowski
  2025-08-27 11:58   ` Krzysztof Kozlowski
  2025-09-23 10:09   ` Peter Griffin
  0 siblings, 2 replies; 9+ messages in thread
From: Marek Szyprowski @ 2025-08-27 10:26 UTC (permalink / raw)
  To: linux-arm-kernel, linux-samsung-soc
  Cc: Marek Szyprowski, Daniel Lezcano, Thomas Gleixner,
	Krzysztof Kozlowski, Alim Akhtar, Ingo Molnar, Peter Griffin,
	Youngmin Nam

For some unknown reasons forcing percpu interrupts for local timers
breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
flag only when driver is compiled for newer ARM64 architecture.

Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 drivers/clocksource/exynos_mct.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c
index 62febeb4e1de..fece6bbc190e 100644
--- a/drivers/clocksource/exynos_mct.c
+++ b/drivers/clocksource/exynos_mct.c
@@ -603,7 +603,8 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
 			if (request_irq(mct_irq,
 					exynos4_mct_tick_isr,
 					IRQF_TIMER | IRQF_NOBALANCING |
-					IRQF_PERCPU,
+					(IS_ENABLED(CONFIG_ARM64) ?
+					 IRQF_PERCPU : 0),
 					pcpu_mevt->name, pcpu_mevt)) {
 				pr_err("exynos-mct: cannot register IRQ (cpu%d)\n",
 									cpu);
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-08-27 10:26 ` [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64 Marek Szyprowski
@ 2025-08-27 11:58   ` Krzysztof Kozlowski
  2025-09-19 21:31     ` Marek Szyprowski
  2025-09-23 10:09   ` Peter Griffin
  1 sibling, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-27 11:58 UTC (permalink / raw)
  To: Marek Szyprowski, linux-arm-kernel, linux-samsung-soc
  Cc: Daniel Lezcano, Thomas Gleixner, Alim Akhtar, Ingo Molnar,
	Peter Griffin, Youngmin Nam

On 27/08/2025 12:26, Marek Szyprowski wrote:
> For some unknown reasons forcing percpu interrupts for local timers
> breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
> machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
> flag only when driver is compiled for newer ARM64 architecture.
> 
> Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")


I am pretty sure the patch above was not tested on arm32, thus this
workaround seems reasonable.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>



Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-08-27 11:58   ` Krzysztof Kozlowski
@ 2025-09-19 21:31     ` Marek Szyprowski
  2025-09-24  8:41       ` Daniel Lezcano
  0 siblings, 1 reply; 9+ messages in thread
From: Marek Szyprowski @ 2025-09-19 21:31 UTC (permalink / raw)
  To: Krzysztof Kozlowski, linux-arm-kernel, linux-samsung-soc,
	Daniel Lezcano
  Cc: Thomas Gleixner, Alim Akhtar, Ingo Molnar, Peter Griffin,
	Youngmin Nam

On 27.08.2025 13:58, Krzysztof Kozlowski wrote:
> On 27/08/2025 12:26, Marek Szyprowski wrote:
>> For some unknown reasons forcing percpu interrupts for local timers
>> breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
>> machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
>> flag only when driver is compiled for newer ARM64 architecture.
>>
>> Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")
>
> I am pretty sure the patch above was not tested on arm32, thus this
> workaround seems reasonable.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Daniel, any chance to get this merged?

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-08-27 10:26 ` [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64 Marek Szyprowski
  2025-08-27 11:58   ` Krzysztof Kozlowski
@ 2025-09-23 10:09   ` Peter Griffin
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Griffin @ 2025-09-23 10:09 UTC (permalink / raw)
  To: Marek Szyprowski
  Cc: linux-arm-kernel, linux-samsung-soc, Daniel Lezcano,
	Thomas Gleixner, Krzysztof Kozlowski, Alim Akhtar, Ingo Molnar,
	Youngmin Nam

On Wed, 27 Aug 2025 at 11:26, Marek Szyprowski <m.szyprowski@samsung.com> wrote:
>
> For some unknown reasons forcing percpu interrupts for local timers
> breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
> machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
> flag only when driver is compiled for newer ARM64 architecture.
>
> Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---

Reviewed-by: Peter Griffin <peter.griffin@linaro.org>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-09-19 21:31     ` Marek Szyprowski
@ 2025-09-24  8:41       ` Daniel Lezcano
  2025-09-24  8:53         ` Marek Szyprowski
  2025-09-24 17:17         ` William McVicker
  0 siblings, 2 replies; 9+ messages in thread
From: Daniel Lezcano @ 2025-09-24  8:41 UTC (permalink / raw)
  To: Marek Szyprowski, Krzysztof Kozlowski, linux-arm-kernel,
	linux-samsung-soc
  Cc: Thomas Gleixner, Alim Akhtar, Ingo Molnar, Peter Griffin,
	Youngmin Nam, Will McVicker


Hi Marek,

On 19/09/2025 23:31, Marek Szyprowski wrote:
> On 27.08.2025 13:58, Krzysztof Kozlowski wrote:
>> On 27/08/2025 12:26, Marek Szyprowski wrote:
>>> For some unknown reasons forcing percpu interrupts for local timers
>>> breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
>>> machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
>>> flag only when driver is compiled for newer ARM64 architecture.
>>>
>>> Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")
>>
>> I am pretty sure the patch above was not tested on arm32, thus this
>> workaround seems reasonable.
>>
>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> Daniel, any chance to get this merged?

The patch does not apply. However it is not your fault but a glitch in 
the previous pull request and the regression found in the Exynos MCT.

Apparently, Thomas had to drop the entire pull request while I thought 
he dropped only Will's changes.

A pull request with the previous changes for v6.17-rc1 and with the new 
changes for v6.18-rc1 is about to be emitted but without the Exynos MCT 
changes for the modularization. That means your change does not apply 
correctly anymore on the current changes.

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-09-24  8:41       ` Daniel Lezcano
@ 2025-09-24  8:53         ` Marek Szyprowski
  2025-09-24 17:17         ` William McVicker
  1 sibling, 0 replies; 9+ messages in thread
From: Marek Szyprowski @ 2025-09-24  8:53 UTC (permalink / raw)
  To: Daniel Lezcano, Krzysztof Kozlowski, linux-arm-kernel,
	linux-samsung-soc
  Cc: Thomas Gleixner, Alim Akhtar, Ingo Molnar, Peter Griffin,
	Youngmin Nam, Will McVicker

Hi Daniel,

On 24.09.2025 10:41, Daniel Lezcano wrote:
>
> On 19/09/2025 23:31, Marek Szyprowski wrote:
>> On 27.08.2025 13:58, Krzysztof Kozlowski wrote:
>>> On 27/08/2025 12:26, Marek Szyprowski wrote:
>>>> For some unknown reasons forcing percpu interrupts for local timers
>>>> breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
>>>> machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use 
>>>> percpu
>>>> flag only when driver is compiled for newer ARM64 architecture.
>>>>
>>>> Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local 
>>>> timer interrupts as percpu")
>>>
>>> I am pretty sure the patch above was not tested on arm32, thus this
>>> workaround seems reasonable.
>>>
>>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>
>> Daniel, any chance to get this merged?
>
> The patch does not apply. However it is not your fault but a glitch in 
> the previous pull request and the regression found in the Exynos MCT.
>
> Apparently, Thomas had to drop the entire pull request while I thought 
> he dropped only Will's changes.
>
> A pull request with the previous changes for v6.17-rc1 and with the 
> new changes for v6.18-rc1 is about to be emitted but without the 
> Exynos MCT changes for the modularization. That means your change does 
> not apply correctly anymore on the current changes.

Thanks for the information. I've checked and 
https://git.kernel.org/pub/scm/linux/kernel/git/daniel.lezcano/linux.git/commit/?h=timers/drivers/next 
branch indeed doesn't contain the whole Exynos MCT modularization 
patchset, so the $subject patch (which was supposed to fix it) is not 
really needed.

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-09-24  8:41       ` Daniel Lezcano
  2025-09-24  8:53         ` Marek Szyprowski
@ 2025-09-24 17:17         ` William McVicker
  2025-09-25  6:37           ` Marek Szyprowski
  1 sibling, 1 reply; 9+ messages in thread
From: William McVicker @ 2025-09-24 17:17 UTC (permalink / raw)
  To: Daniel Lezcano
  Cc: Marek Szyprowski, Krzysztof Kozlowski, linux-arm-kernel,
	linux-samsung-soc, Thomas Gleixner, Alim Akhtar, Ingo Molnar,
	Peter Griffin, Youngmin Nam

Hi Daniel,

On 09/24/2025, Daniel Lezcano wrote:
> 
> Hi Marek,
> 
> On 19/09/2025 23:31, Marek Szyprowski wrote:
> > On 27.08.2025 13:58, Krzysztof Kozlowski wrote:
> > > On 27/08/2025 12:26, Marek Szyprowski wrote:
> > > > For some unknown reasons forcing percpu interrupts for local timers
> > > > breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
> > > > machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
> > > > flag only when driver is compiled for newer ARM64 architecture.
> > > > 
> > > > Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")
> > > 
> > > I am pretty sure the patch above was not tested on arm32, thus this
> > > workaround seems reasonable.
> > > 
> > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > 
> > Daniel, any chance to get this merged?
> 
> The patch does not apply. However it is not your fault but a glitch in the
> previous pull request and the regression found in the Exynos MCT.
> 
> Apparently, Thomas had to drop the entire pull request while I thought he
> dropped only Will's changes.
> 
> A pull request with the previous changes for v6.17-rc1 and with the new
> changes for v6.18-rc1 is about to be emitted but without the Exynos MCT
> changes for the modularization. That means your change does not apply
> correctly anymore on the current changes.

Is there somewhere I can check to see which changes will be re-sent? I don't
see them in the timers/drivers/next branch. Will it be patches 2-4 plus the
fixes for the section mismatch and this new IRQ fix? Once that's all sorted
out, I'll base the new modularization patches on top of that.

Thanks,
Will


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-09-24 17:17         ` William McVicker
@ 2025-09-25  6:37           ` Marek Szyprowski
  2025-09-25  8:07             ` Daniel Lezcano
  0 siblings, 1 reply; 9+ messages in thread
From: Marek Szyprowski @ 2025-09-25  6:37 UTC (permalink / raw)
  To: William McVicker, Daniel Lezcano
  Cc: Krzysztof Kozlowski, linux-arm-kernel, linux-samsung-soc,
	Thomas Gleixner, Alim Akhtar, Ingo Molnar, Peter Griffin,
	Youngmin Nam

On 24.09.2025 19:17, William McVicker wrote:
> On 09/24/2025, Daniel Lezcano wrote:
>> On 19/09/2025 23:31, Marek Szyprowski wrote:
>>> On 27.08.2025 13:58, Krzysztof Kozlowski wrote:
>>>> On 27/08/2025 12:26, Marek Szyprowski wrote:
>>>>> For some unknown reasons forcing percpu interrupts for local timers
>>>>> breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
>>>>> machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
>>>>> flag only when driver is compiled for newer ARM64 architecture.
>>>>>
>>>>> Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")
>>>> I am pretty sure the patch above was not tested on arm32, thus this
>>>> workaround seems reasonable.
>>>>
>>>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> Daniel, any chance to get this merged?
>> The patch does not apply. However it is not your fault but a glitch in the
>> previous pull request and the regression found in the Exynos MCT.
>>
>> Apparently, Thomas had to drop the entire pull request while I thought he
>> dropped only Will's changes.
>>
>> A pull request with the previous changes for v6.17-rc1 and with the new
>> changes for v6.18-rc1 is about to be emitted but without the Exynos MCT
>> changes for the modularization. That means your change does not apply
>> correctly anymore on the current changes.
> Is there somewhere I can check to see which changes will be re-sent? I don't
> see them in the timers/drivers/next branch. Will it be patches 2-4 plus the
> fixes for the section mismatch and this new IRQ fix? Once that's all sorted
> out, I'll base the new modularization patches on top of that.

The problematic mct patches are still in linux-next, merged via tip tree 
by commit 9703240ef617 ("Merge branch into tip/master: 
'timers/clocksource'"). What are the plans to resolve this?

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64
  2025-09-25  6:37           ` Marek Szyprowski
@ 2025-09-25  8:07             ` Daniel Lezcano
  0 siblings, 0 replies; 9+ messages in thread
From: Daniel Lezcano @ 2025-09-25  8:07 UTC (permalink / raw)
  To: Marek Szyprowski, William McVicker
  Cc: Krzysztof Kozlowski, linux-arm-kernel, linux-samsung-soc,
	Thomas Gleixner, Alim Akhtar, Ingo Molnar, Peter Griffin,
	Youngmin Nam

On 25/09/2025 08:37, Marek Szyprowski wrote:
> On 24.09.2025 19:17, William McVicker wrote:
>> On 09/24/2025, Daniel Lezcano wrote:
>>> On 19/09/2025 23:31, Marek Szyprowski wrote:
>>>> On 27.08.2025 13:58, Krzysztof Kozlowski wrote:
>>>>> On 27/08/2025 12:26, Marek Szyprowski wrote:
>>>>>> For some unknown reasons forcing percpu interrupts for local timers
>>>>>> breaks CPU hotplug for 'little' cores on legacy ARM 32bit Exynos based
>>>>>> machines (for example Exynos5422-based Odroid-XU3/XU4 boards). Use percpu
>>>>>> flag only when driver is compiled for newer ARM64 architecture.
>>>>>>
>>>>>> Fixes: f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu")
>>>>> I am pretty sure the patch above was not tested on arm32, thus this
>>>>> workaround seems reasonable.
>>>>>
>>>>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>>> Daniel, any chance to get this merged?
>>> The patch does not apply. However it is not your fault but a glitch in the
>>> previous pull request and the regression found in the Exynos MCT.
>>>
>>> Apparently, Thomas had to drop the entire pull request while I thought he
>>> dropped only Will's changes.
>>>
>>> A pull request with the previous changes for v6.17-rc1 and with the new
>>> changes for v6.18-rc1 is about to be emitted but without the Exynos MCT
>>> changes for the modularization. That means your change does not apply
>>> correctly anymore on the current changes.
>> Is there somewhere I can check to see which changes will be re-sent? I don't
>> see them in the timers/drivers/next branch. Will it be patches 2-4 plus the
>> fixes for the section mismatch and this new IRQ fix? Once that's all sorted
>> out, I'll base the new modularization patches on top of that.
> 
> The problematic mct patches are still in linux-next, merged via tip tree
> by commit 9703240ef617 ("Merge branch into tip/master:
> 'timers/clocksource'"). What are the plans to resolve this?


Ouch! Thanks for letting me know. Investigating how to sort it out


-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-25  8:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20250827102650eucas1p1fe270adbf29c649b9ce529e1d45aabc3@eucas1p1.samsung.com>
2025-08-27 10:26 ` [PATCH] clocksource/drivers/exynos_mct: Use percpu interrupts only on ARM64 Marek Szyprowski
2025-08-27 11:58   ` Krzysztof Kozlowski
2025-09-19 21:31     ` Marek Szyprowski
2025-09-24  8:41       ` Daniel Lezcano
2025-09-24  8:53         ` Marek Szyprowski
2025-09-24 17:17         ` William McVicker
2025-09-25  6:37           ` Marek Szyprowski
2025-09-25  8:07             ` Daniel Lezcano
2025-09-23 10:09   ` Peter Griffin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).