Skip to contentSkip to conversation

Add module support for Arm64 Exynos MCT driver

PATCH Applied Will McVicker 9 participants 45 messages Jun 20, 2025 – Aug 26, 2025

Subsystems (4)

v4 of 7 Applied Latest is v7 →

lore
Share & tools
lore
#0 lore raw

v4 cover Add module support for Arm64 Exynos MCT driver

This series adds support to build the Arm64 Exynos MCT driver as a module. This is only possible on Arm64 SoCs since they can use the Arm architected timer as the clocksource. Once the Exynos MCT module is loaded and the device probes, the MCT is used as the wakeup source for the arch_timer to ensure the device can wakeup from the "c2" idle state.

These patches are originally from the downstream Pixel 6 (gs101) kernel found at [1] and have been adapted for upstream. Not only has the Exynos MCT driver been shipping as a module in the field with Android, but I've also tested this series with the upstream kernel on my Pixel 6 Pro.

In addition, I verified that the Exynos MCT module cannot be unloaded on my Pixel 6. This is due to /sys/module/exynos_mct/refcnt > 0. So if you try, you'll get this:

  root@google-gs:~# rmmod exynos_mct
  rmmod: ERROR: Module exynos_mct is in use
  root@google-gs:~# cat /sys/module/exynos_mct/refcnt
  9

Thanks,
Will

Note1, instructions to build and flash a Pixel 6 device with the upstream kernel can be found at [2].

Note2, this series is based off of krzk/for-next commit a15edf91668b ("Merge branch 'next/dt64' into for-next") with [3] on top.

[1] https://android.googlesource.com/kernel/gs/+log/refs/heads/android-gs-raviole-5.10-android12-d1
[2] https://git.codelinaro.org/linaro/googlelt/pixelscripts/-/blob/clo/main/README.md?ref_type=heads
[3] https://lore.kernel.org/linux-arm-kernel/[email protected]/

Cc Alim Akhtar <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Donghoon Yu <[email protected]>
Cc Hosung Kim <[email protected]>
Cc Rob Herring <[email protected]>
Cc Saravana Kannan <[email protected]>
Cc John Stultz <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Youngmin Nam <[email protected]>
Cc Peter Griffin <[email protected]>
Cc Tudor Ambarus <[email protected]>
Cc André Draszik <[email protected]>
Cc Will Deacon <[email protected]>
Cc Conor Dooley <[email protected]>
Cc Krzysztof Kozlowski <[email protected]>

---
Changes in v4:
- Missed the "v3" string in the previous series for the actual patches
- Re-generated patches with --base a15edf91668beefdb5171c53fa698c9b43dd1e0d for kernel test robot.

Changes in v3:
- Rebased on top of Daniel's timer modularization prep series [3] and krzk/for-next commit a15edf91668b ("Merge branch 'next/dt64' into for-next")
- Added owner references to Exynos MCT clocksource and clockevent objects.
- Dropped #ifdef MODULE conditional section in favor of just using module_platform_driver() which will properly handle setting up the of_device_id table based on if the driver is built-in or a module.
- Update commit message for patch 2 based on John's feedback.
- Dropped DT change from v2 as it was picked up by Krzysztof for CPU Idle.

Changes in v2:
- Re-worked patch v1 5 based on Rob Herring's review to use the compatible data for retrieving the mct_init function pointer.
- Updated the Kconfig logic to disallow building the Exynos MCT driver as a module for ARM32 configurations based on Krzysztof Kozlowski's findings.
- Added comments and clarified commit messages in patches 1 and 2 based on reviews from John Stultz and Youngmin Nam.
- Fixed an issue found during testing that resulted in the device getting stuck on boot. This is included in v2 as patch 5.
- Collected *-by tags
- Rebased to the latest linux-next/master.
---

Donghoon Yu (1):
clocksource/drivers/exynos_mct: Add module support

Hosung Kim (1):
clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

Will McVicker (4):
of/irq: Export of_irq_count for modules clocksource/drivers/exynos_mct: Don't register as a sched_clock on

    arm64

clocksource/drivers/exynos_mct: Fix uninitialized irq name warning
arm64: exynos: Drop select CLKSRC_EXYNOS_MCT

 arch/arm64/Kconfig.platforms     |  1 -
 drivers/clocksource/Kconfig      |  3 +-
 drivers/clocksource/exynos_mct.c | 75 ++++++++++++++++++++++++++------
 drivers/of/irq.c                 |  1 +
 4 files changed, 64 insertions(+), 16 deletions(-)

base-commit: a15edf91668beefdb5171c53fa698c9b43dd1e0d
prerequisite-patch-id: 0c5b7e9fb27295e0c125c537ac80d1eb16cef60d
prerequisite-patch-id: 6a9b683baee83ddc2b2fada31479b27b53469759
prerequisite-patch-id: b9cbd59ff2f4c905001ecb02868d20fb004034cc
prerequisite-patch-id: cdde1a76624089aa818cb35e612f880107bdc073
prerequisite-patch-id: cec67e07038c7aa93a2b53879781626d738cd199
prerequisite-patch-id: 8fda377fcaf407026f04f2a547086cf1ecf4efc9
prerequisite-patch-id: dce925ac224bb361c74fdb23126fab53e7c5c26b

Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
#1 lore raw

PATCH v4 1/6 of/irq: Export of_irq_count for modules

Need to export of_irq_count in preparation for modularizing the Exynos MCT driver which uses this API for setting up the timer IRQs.

---
 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -0
index f8ad79b9b1c9..5adda1dac3cf 100644
@@ -519,6 +519,7 @@ int of_irq_count(struct device_node *dev)
 
 	return nr;
 }
+EXPORT_SYMBOL_GPL(of_irq_count);
 
 /**
  * of_irq_to_resource_table - Fill in resource table with node's IRQ info
Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
merge bot Applied
#2 lore raw

[tip: timers/clocksource] of/irq: Export of_irq_count for modules

The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     2abaaf8cc1104906cb2241a067e380a6295ffada
Gitweb:        https://git.kernel.org/tip/2abaaf8cc1104906cb2241a067e380a6295ffada
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:04 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:50 +02:00

of/irq: Export of_irq_count for modules

Need to export of_irq_count in preparation for modularizing the Exynos MCT driver which uses this API for setting up the timer IRQs.

---
 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -0
index f8ad79b..5adda1d 100644
@@ -519,6 +519,7 @@ int of_irq_count(struct device_node *dev)
 
 	return nr;
 }
+EXPORT_SYMBOL_GPL(of_irq_count);
 
 /**
  * of_irq_to_resource_table - Fill in resource table with node's IRQ info
merge bot Applied
#3 lore raw

[tip: timers/clocksource] of/irq: Export of_irq_count() for modules

In reply to Will McVicker
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     8de1de5a3a8d42975953382068fb5195e9d6e6c6
Gitweb:        https://git.kernel.org/tip/8de1de5a3a8d42975953382068fb5195e9d6e6c6
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:04 -07:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:05:10 +02:00

of/irq: Export of_irq_count() for modules

Need to export of_irq_count() in preparation for modularizing the Exynos MCT driver which uses this API for setting up the timer IRQs.

---
 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -0
index f8ad79b..5adda1d 100644
@@ -519,6 +519,7 @@ int of_irq_count(struct device_node *dev)
 
 	return nr;
 }
+EXPORT_SYMBOL_GPL(of_irq_count);
 
 /**
  * of_irq_to_resource_table - Fill in resource table with node's IRQ info
#4 lore raw

PATCH v4 2/6 clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

In reply to Will McVicker

The MCT register is unfortunately very slow to access, but importantly does not halt in the c2 idle state. So for ARM64, we can improve performance by not registering the MCT for sched_clock, allowing the system to use the faster ARM architected timer for sched_clock instead.

The MCT is still registered as a clocksource, and a clockevent in order to be a wakeup source for the arch_timer to exit the "c2" idle state.

Since ARM32 SoCs don't have an architected timer, the MCT must continue to be used for sched_clock. Detailed discussion on this topic can be found at [1].

[1] https://lore.kernel.org/linux-samsung-soc/[email protected]/

[Original commit from https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727

---
 drivers/clocksource/exynos_mct.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/clocksource/exynos_mct.c +9 -2
index da09f467a6bb..96361d5dc57d 100644
@@ -219,12 +219,18 @@ static struct clocksource mct_frc = {
 	.resume		= exynos4_frc_resume,
 };
 
+/*
+ * Since ARM devices do not have an architected timer, they need to continue
+ * using the MCT as the main clocksource for timekeeping, sched_clock, and the
+ * delay timer. For AARCH64 SoCs, the architected timer is the preferred
+ * clocksource due to it's superior performance.
+ */
+#if defined(CONFIG_ARM)
 static u64 notrace exynos4_read_sched_clock(void)
 {
 	return exynos4_read_count_32();
 }
 
-#if defined(CONFIG_ARM)
 static struct delay_timer exynos4_delay_timer;
 
 static cycles_t exynos4_read_current_timer(void)
@@ -250,12 +256,13 @@ static int __init exynos4_clocksource_init(bool frc_shared)
 	exynos4_delay_timer.read_current_timer = &exynos4_read_current_timer;
 	exynos4_delay_timer.freq = clk_rate;
 	register_current_timer_delay(&exynos4_delay_timer);
+
+	sched_clock_register(exynos4_read_sched_clock, 32, clk_rate);
 #endif
 
 	if (clocksource_register_hz(&mct_frc, clk_rate))
 		panic("%s: can't register clocksource\n", mct_frc.name);
 
-	sched_clock_register(exynos4_read_sched_clock, 32, clk_rate);
 
 	return 0;
 }
Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
merge bot Applied
#5 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     394b981382e6198363cf513f6eb6be4c55b22e44
Gitweb:        https://git.kernel.org/tip/394b981382e6198363cf513f6eb6be4c55b22e44
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:05 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:50 +02:00

clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

The MCT register is unfortunately very slow to access, but importantly does not halt in the c2 idle state. So for ARM64, we can improve performance by not registering the MCT for sched_clock, allowing the system to use the faster ARM architected timer for sched_clock instead.

The MCT is still registered as a clocksource, and a clockevent in order to be a wakeup source for the arch_timer to exit the "c2" idle state.

Since ARM32 SoCs don't have an architected timer, the MCT must continue to be used for sched_clock. Detailed discussion on this topic can be found at [1].

[1] https://lore.kernel.org/linux-samsung-soc/[email protected]/

[Original commit from https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727

---
 drivers/clocksource/exynos_mct.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/clocksource/exynos_mct.c +9 -2
index da09f46..96361d5 100644
@@ -219,12 +219,18 @@ static struct clocksource mct_frc = {
 	.resume		= exynos4_frc_resume,
 };
 
+/*
+ * Since ARM devices do not have an architected timer, they need to continue
+ * using the MCT as the main clocksource for timekeeping, sched_clock, and the
+ * delay timer. For AARCH64 SoCs, the architected timer is the preferred
+ * clocksource due to it's superior performance.
+ */
+#if defined(CONFIG_ARM)
 static u64 notrace exynos4_read_sched_clock(void)
 {
 	return exynos4_read_count_32();
 }
 
-#if defined(CONFIG_ARM)
 static struct delay_timer exynos4_delay_timer;
 
 static cycles_t exynos4_read_current_timer(void)
@@ -250,12 +256,13 @@ static int __init exynos4_clocksource_init(bool frc_shared)
 	exynos4_delay_timer.read_current_timer = &exynos4_read_current_timer;
 	exynos4_delay_timer.freq = clk_rate;
 	register_current_timer_delay(&exynos4_delay_timer);
+
+	sched_clock_register(exynos4_read_sched_clock, 32, clk_rate);
 #endif
 
 	if (clocksource_register_hz(&mct_frc, clk_rate))
 		panic("%s: can't register clocksource\n", mct_frc.name);
 
-	sched_clock_register(exynos4_read_sched_clock, 32, clk_rate);
 
 	return 0;
 }
#6 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 27 lines · * tip-bot2 for Will McVicker <[email protected]> wrote:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     394b981382e6198363cf513f6eb6be4c55b22e44
Gitweb:        https://git.kernel.org/tip/394b981382e6198363cf513f6eb6be4c55b22e44
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:05 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:50 +02:00

clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

The MCT register is unfortunately very slow to access, but importantly does not halt in the c2 idle state. So for ARM64, we can improve performance by not registering the MCT for sched_clock, allowing the system to use the faster ARM architected timer for sched_clock instead.

The MCT is still registered as a clocksource, and a clockevent in order to be a wakeup source for the arch_timer to exit the "c2" idle state.

Since ARM32 SoCs don't have an architected timer, the MCT must continue to be used for sched_clock. Detailed discussion on this topic can be found at [1].

[1] https://lore.kernel.org/linux-samsung-soc/[email protected]/

[Original commit from https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727

Quoted 8 lines

The whole SOB chain of this commit is messy and has several serious problems:

1)

This commit has misattributed authorship: the first SOB is:

but the Author field is not Donghoon Yu:

Author: Will McVicker <[email protected]>

2)

The Reviewed-by tag is misapplied:

Quoted 2 lines

When someone passes along a patch, it's implicit that they have reviewed it.

3)

There's also a stray Tested-by tag by one of the SOB entries:

Quoted 3 lines

When someone passes along a patch, it's implicit that they not only have reviewed the patch, but have also tested it to a certain extent
...

4)

Why is the 'Link' tag just in the middle of the SOB chain, instead at the end of it?

Presumably this is the proper SOB chain:

Quoted 8 lines

Author: Donghoon Yu <[email protected]>

Correct?

Thanks,

Ingo

#7 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 2 lines · Ingo Molnar

The whole SOB chain of this commit is messy and has several serious problems:

Not just this commit, but most of the other commits in tip:timers/clocksource have various problems in their tag sections ... I only checked these more closely:

5d86e479193b clocksource/drivers/exynos_mct: Add module support 60618eec98f0 clocksource/drivers/exynos_mct: Fix uninitialized irq name warning 10934da577f6 clocksource/drivers/exynos_mct: Set local timer interrupts as percpu 394b981382e6 clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

but all of them have various problems. And literally all 23 commits have the Link tag misplaced in the middle of the tag section.

Thanks,

Ingo

#8 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 9 lines · Ingo Molnar
Quoted 2 lines · Ingo Molnar

The whole SOB chain of this commit is messy and has several serious problems:

Not just this commit, but most of the other commits in tip:timers/clocksource have various problems in their tag sections ... I only checked these more closely:

Quoted 7 lines

5d86e479193b clocksource/drivers/exynos_mct: Add module support 60618eec98f0 clocksource/drivers/exynos_mct: Fix uninitialized irq name warning 10934da577f6 clocksource/drivers/exynos_mct: Set local timer interrupts as percpu 394b981382e6 clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

but all of them have various problems. And literally all 23 commits have the Link tag misplaced in the middle of the tag section.

Duh. I did not check when pulling that lot.

#9 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

In reply to Ingo Molnar
Quoted 44 lines · Ingo Molnar
Quoted 27 lines · * tip-bot2 for Will McVicker <[email protected]> wrote:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     394b981382e6198363cf513f6eb6be4c55b22e44
Gitweb:        https://git.kernel.org/tip/394b981382e6198363cf513f6eb6be4c55b22e44
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:05 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:50 +02:00

clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

The MCT register is unfortunately very slow to access, but importantly does not halt in the c2 idle state. So for ARM64, we can improve performance by not registering the MCT for sched_clock, allowing the system to use the faster ARM architected timer for sched_clock instead.

The MCT is still registered as a clocksource, and a clockevent in order to be a wakeup source for the arch_timer to exit the "c2" idle state.

Since ARM32 SoCs don't have an architected timer, the MCT must continue to be used for sched_clock. Detailed discussion on this topic can be found at [1].

[1] https://lore.kernel.org/linux-samsung-soc/[email protected]/

[Original commit from https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727

Quoted 8 lines

The whole SOB chain of this commit is messy and has several serious problems:

1)

Quoted 7 lines

This commit has misattributed authorship: the first SOB is:

but the Author field is not Donghoon Yu:

Author: Will McVicker <[email protected]>

Yes, you are right. I should have pay more attention to author / sob, thanks for spotting it.

Quoted 9 lines

2)

The Reviewed-by tag is misapplied:

Quoted 2 lines

When someone passes along a patch, it's implicit that they have reviewed it.

Well my understanding of the SOB chain for these is the Signed-off-by from Youngmin is in the delivery path because it went first to the AOSP, then carried on to Linux by Will. Then Reviewed-by Youngmin letting us know the port from AOSP to Linux is ok.

Quoted 10 lines

3)

There's also a stray Tested-by tag by one of the SOB entries:

Quoted 3 lines

When someone passes along a patch, it's implicit that they not only have reviewed the patch, but have also tested it to a certain extent

In this specific case where the original commit is from AOSP, this chain seems to make sense. Souns like:

"I was in the original commit delivery path"
"I reviewed this patch carried to Linux"
"I tested it on Linux"

Quoted 5 lines

...

4)

Why is the 'Link' tag just in the middle of the SOB chain, instead at the end of it?

I don't know. Link must be at the end It is stated somewhere in the documentation?

I use git b4 -s <msg-id> and the tool adds the Link then my sign off.

Quoted 12 lines

Presumably this is the proper SOB chain:

Quoted 8 lines

Author: Donghoon Yu <[email protected]>

Correct?

Signature · 5 lines
<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
Tested-by Youngmin Nam Reviewed-by Youngmin Nam Reviewed-by Nícolas F. R. A. Prado Acked-by Conor Dooley Tested-by Caleb James DeLisle Acked-by Conor Dooley Reviewed-by Jon Hunter Reviewed-by Jon Hunter Reviewed-by Peter Griffin Reviewed-by Youngmin Nam Reviewed-by Peter Griffin Reviewed-by Youngmin Nam Reviewed-by Linus Walleij Reviewed-by Youngmin Nam Reviewed-by AngeloGioacchino Del Regno Acked-by Rob Herring (Arm) Reviewed-by Will McVicker Reviewed-by Thomas Gleixner Reviewed-by Carlos Llamas Reviewed-by Will McVicker Reviewed-by Will McVicker Reviewed-by Will McVicker Reviewed-by Will McVicker Acked-by Chen-Yu Tsai Reviewed-by Will McVicker Reviewed-by Will McVicker
#10 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 82 lines · Daniel Lezcano
Quoted 44 lines · Ingo Molnar
Quoted 27 lines · * tip-bot2 for Will McVicker <[email protected]> wrote:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     394b981382e6198363cf513f6eb6be4c55b22e44
Gitweb:        https://git.kernel.org/tip/394b981382e6198363cf513f6eb6be4c55b22e44
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:05 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:50 +02:00

clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

The MCT register is unfortunately very slow to access, but importantly does not halt in the c2 idle state. So for ARM64, we can improve performance by not registering the MCT for sched_clock, allowing the system to use the faster ARM architected timer for sched_clock instead.

The MCT is still registered as a clocksource, and a clockevent in order to be a wakeup source for the arch_timer to exit the "c2" idle state.

Since ARM32 SoCs don't have an architected timer, the MCT must continue to be used for sched_clock. Detailed discussion on this topic can be found at [1].

[1] https://lore.kernel.org/linux-samsung-soc/[email protected]/

[Original commit from https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727

Quoted 8 lines

The whole SOB chain of this commit is messy and has several serious problems:

1)

Quoted 7 lines

This commit has misattributed authorship: the first SOB is:

but the Author field is not Donghoon Yu:

Author: Will McVicker <[email protected]>

Yes, you are right. I should have pay more attention to author / sob, thanks for spotting it.

Quoted 9 lines

2)

The Reviewed-by tag is misapplied:

Quoted 2 lines

When someone passes along a patch, it's implicit that they have reviewed it.

Well my understanding of the SOB chain for these is the Signed-off-by from Youngmin is in the delivery path because it went first to the AOSP, then carried on to Linux by Will. Then Reviewed-by Youngmin letting us know the port from AOSP to Linux is ok.

Quoted 10 lines

3)

There's also a stray Tested-by tag by one of the SOB entries:

Quoted 3 lines

When someone passes along a patch, it's implicit that they not only have reviewed the patch, but have also tested it to a certain extent

Quoted 6 lines

In this specific case where the original commit is from AOSP, this chain seems to make sense. Souns like:

"I was in the original commit delivery path"
"I reviewed this patch carried to Linux"
"I tested it on Linux"

Yeah, so then this should be documented by adding a comment to the tag itself:

Otherwise it's just confusing as to why there's duplicate SOB and Reviewed-by entries.

But as long as the porting was basically just a cherry-pick, these extra tags are probably superfluous. If there was a conflict resolved by one of the maintainers along the SOB chain, that should be marked explicitly, which I see was already done in some cases:

    [ dlezcano : Fixed conflict with [email protected] ]
Quoted 10 lines
Quoted 5 lines

...

4)

Why is the 'Link' tag just in the middle of the SOB chain, instead at the end of it?

I don't know. Link must be at the end It is stated somewhere in the documentation?

I use git b4 -s <msg-id> and the tool adds the Link then my sign off.

Yeah, so using tools and not looking at the end result will often just create a random tag order that looks messy.

On preferred tag ordering, see:

Documentation/process/maintainer-tip.rst

Ordering of commit tags
^^^^^^^^^^^^^^^^^^^^^^^
...

'Link' is at the end of the list of tags.

There's some logic to the -tip tag ordering (more important tags go before less important tags), but it's mostly just an arbitrary order that we try to stick to within -tip.

Quoted 4 lines
Quoted 4 lines

Presumably this is the proper SOB chain:

Quoted 1 line

Author: Donghoon Yu <[email protected]>

Quoted 10 lines
Quoted 8 lines
Quoted 6 lines

Correct?

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

I've attached a delta-patch of the changelog changes below - note that I skipped the commit IDs to make the diff easier to read.

Thanks,

Ingo

===================>
--- 2025-07-25 12:15:26.024284067 +0200
+++ 2025-07-25 12:15:18.761435799 +0200
@@ -10,6 +10,7 @@ Date: Tue Jul 15 14:18:33 2025 +0200
the module loading.

Fix this by adding the __init_or_module annotation for the functions:
+
- mct_init_dt()
- mct_init_spi()
- mct_init_dt()
@@ -17,9 +18,10 @@ Date: Tue Jul 15 14:18:33 2025 +0200
Compiled on ARM32 + MODULES=no, ARM64 + MODULES=yes, ARM64 + MODULES=no

- Link: https://lore.kernel.org/r/[email protected]
- Reviewed-by: Will McVicker <[email protected]>

+    Signed-off-by: Ingo Molnar <[email protected]>
+    Reviewed-by: Will McVicker <[email protected]>
+    Link: https://lore.kernel.org/r/[email protected]

Author: AngeloGioacchino Del Regno <[email protected]>
Date: Wed Jun 11 13:07:58 2025 +0200
@@ -30,11 +32,12 @@ Date: Wed Jun 11 13:07:58 2025 +0200
with MT6765.

-    Acked-by: Rob Herring (Arm) <[email protected]>
+    Signed-off-by: Daniel Lezcano <[email protected]>
+    Signed-off-by: Ingo Molnar <[email protected]>

+ Acked-by: Rob Herring (Arm) <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Chen Ni <[email protected]>
Date: Tue Jun 3 14:04:50 2025 +0800
@@ -52,9 +55,10 @@ Date: Tue Jun 3 14:04:50 2025 +0800
Compile tested only.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Frank Li <[email protected]>
Date: Wed May 28 12:53:50 2025 -0400
@@ -67,9 +71,10 @@ Date: Wed May 28 12:53:50 2025 -0400
devices, which have existed for over 15 years.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Arnd Bergmann <[email protected]>
Date: Fri Jun 20 13:19:35 2025 +0200
@@ -79,19 +84,21 @@ Date: Fri Jun 20 13:19:35 2025 +0200
The newly added function causes a build failure on 32-bit targets with older compiler version such as gcc-10:

- arm-linux-gnueabi-ld: drivers/clocksource/timer-tegra186.o: in function `tegra186_wdt_get_timeleft':
- timer-tegra186.c:(.text+0x3c2): undefined reference to `__aeabi_uldivmod'
+ arm-linux-gnueabi-ld: drivers/clocksource/timer-tegra186.o: in function `tegra186_wdt_get_timeleft':
+ timer-tegra186.c:(.text+0x3c2): undefined reference to `__aeabi_uldivmod'

The calculation can trivially be changed to avoid the division entirely, as USEC_PER_SEC is a multiple of 5. Change both such calculation for consistency, even though gcc apparently managed to optimize the other one properly already.

+ [ dlezcano : Fixed conflict with [email protected] ]
+

Fixes 28c842c8b0f5 ("clocksource/drivers/timer-tegra186: Add WDIOC_GETTIMELEFT support")

- Link: https://lore.kernel.org/r/[email protected]
- [dlezcano] : Fixed conflict with [email protected]

+ Signed-off-by: Ingo Molnar <[email protected]>
+ Link: https://lore.kernel.org/r/[email protected]

Author: Guenter Roeck <[email protected]>
Date: Sat Jun 14 10:55:56 2025 -0700
@@ -102,35 +109,37 @@ Date: Sat Jun 14 10:55:56 2025 -0700
remaining watchdog timeout. Simplify to use 32-bit operations, and add comments explaining why there will be no overflow.

- Cc: Pohsun Su <[email protected]>
- Cc: Robert Lin <[email protected]>

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

+ Cc: Pohsun Su <[email protected]>
+ Cc: Robert Lin <[email protected]>

     Link: https://lore.kernel.org/r/[email protected]

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Guenter Roeck <[email protected]>
Date: Sat Jun 14 10:55:55 2025 -0700

clocksource/drivers/timer-tegra186: Avoid 64-bit divide operation

- Building the driver on xtensa fails with
+ Building the driver on xtensa fails with:

- tensa-linux-ld: drivers/clocksource/timer-tegra186.o:
+ tensa-linux-ld: drivers/clocksource/timer-tegra186.o:
in function `tegra186_timer_remove':
- timer-tegra186.c:(.text+0x350):
+ timer-tegra186.c:(.text+0x350):
undefined reference to `__udivdi3'

Avoid the problem by rearranging the offending code to avoid the 64-bit divide operation.

Fixes 28c842c8b0f5 ("clocksource/drivers/timer-tegra186: Add WDIOC_GETTIMELEFT support")

- Cc: Pohsun Su <[email protected]>
- Cc: Robert Lin <[email protected]>

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

+ Cc: Pohsun Su <[email protected]>
+ Cc: Robert Lin <[email protected]>

     Link: https://lore.kernel.org/r/[email protected]

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Will McVicker <[email protected]>
Date: Fri Jun 20 11:17:09 2025 -0700
@@ -143,11 +152,12 @@ Date: Fri Jun 20 11:17:09 2025 -0700
automatically. This allows platforms like Android to build the driver as a module if desired.

- Reviewed-by: Youngmin Nam <[email protected]>
- Tested-by: Youngmin Nam <[email protected]>

- Link: https://lore.kernel.org/r/[email protected]

+    Signed-off-by: Ingo Molnar <[email protected]>
+    Tested-by: Youngmin Nam <[email protected]>
+    Reviewed-by: Youngmin Nam <[email protected]>
+    Link: https://lore.kernel.org/r/[email protected]

Author: Donghoon Yu <[email protected]>
Date: Fri Jun 20 11:17:08 2025 -0700
@@ -159,19 +169,21 @@ Date: Fri Jun 20 11:17:08 2025 -0700
tick timer. Once the MCT driver is loaded, it can be used as the wakeup source for the arch_timer.

+ Original commit from:
+
+ https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]
+

-    [original commit from https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]
-    Reviewed-by: Youngmin Nam <[email protected]>
-    Tested-by: Youngmin Nam <[email protected]>

- Link: https://lore.kernel.org/r/[email protected]

+ Signed-off-by: Ingo Molnar <[email protected]>
+ Link: https://lore.kernel.org/r/[email protected]

Author: Will McVicker <[email protected]>
Date: Fri Jun 20 11:17:07 2025 -0700

- clocksource/drivers/exynos_mct: Fix uninitialized irq name warning
+ clocksource/drivers/exynos_mct: Fix uninitialized IRQ name warning

The Exynos MCT driver doesn't set the clocksource name until the CPU hotplug state is setup which happens after the IRQs are requested. This
@@ -217,32 +229,37 @@ Date: Fri Jun 20 11:17:07 2025 -0700

     [  T430]  load_module+0x1de0/0x2500
     [  T430]  init_module_from_file+0x8c/0xdc
+    Signed-off-by: Will McVicker <[email protected]>
+    Signed-off-by: Daniel Lezcano <[email protected]>
+    Signed-off-by: Ingo Molnar <[email protected]>
+    Tested-by: Youngmin Nam <[email protected]>

- Tested-by: Youngmin Nam <[email protected]>
- Signed-off-by: Will McVicker <[email protected]>

     Link: https://lore.kernel.org/r/[email protected]

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Hosung Kim <[email protected]>
Date: Fri Jun 20 11:17:06 2025 -0700

clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

- To allow the CPU to handle it's own clock events, we need to set the
+ To allow the CPU to handle its own clock events, we need to set the
IRQF_PERCPU flag. This prevents the local timer interrupts from migrating to other CPUs.

+ Original commit from:
+
+ https://android.googlesource.com/kernel/gs/+/03267fad19f093bac979ca78309483e9eb3a8d16
+

-    [Original commit from https://android.googlesource.com/kernel/gs/+/03267fad19f093bac979ca78309483e9eb3a8d16]
+    Signed-off-by: Will McVicker <[email protected]>
+    Signed-off-by: Daniel Lezcano <[email protected]>
+    Signed-off-by: Ingo Molnar <[email protected]>
+    Tested-by: Youngmin Nam <[email protected]>

- Tested-by: Youngmin Nam <[email protected]>
- Signed-off-by: Will McVicker <[email protected]>

     Link: https://lore.kernel.org/r/[email protected]

- Signed-off-by: Daniel Lezcano <[email protected]>

-Author: Will McVicker <[email protected]>
+Author: Donghoon Yu <[email protected]>
Date: Fri Jun 20 11:17:05 2025 -0700

clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64
@@ -257,42 +274,44 @@ Date: Fri Jun 20 11:17:05 2025 -0700

Since ARM32 SoCs don't have an architected timer, the MCT must continue to be used for sched_clock. Detailed discussion on this topic can be
- found at [1].
+ found at:
+
+ https://lore.kernel.org/linux-samsung-soc/[email protected]/

- [1] https://lore.kernel.org/linux-samsung-soc/[email protected]/
+ Original commit from:

- [Original commit from https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727
+ https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727

-    Reviewed-by: Youngmin Nam <[email protected]>
-    Acked-by: John Stultz <[email protected]>
-    Tested-by: Youngmin Nam <[email protected]>

- Link: https://lore.kernel.org/r/[email protected]

+    Signed-off-by: Ingo Molnar <[email protected]>
+    Acked-by: John Stultz <[email protected]>
+    Link: https://lore.kernel.org/r/[email protected]

Author: Will McVicker <[email protected]>
Date: Fri Jun 20 11:17:04 2025 -0700

- of/irq: Export of_irq_count for modules
+ of/irq: Export of_irq_count() for modules

- Need to export of_irq_count in preparation for modularizing the Exynos
+ Need to export of_irq_count() in preparation for modularizing the Exynos
MCT driver which uses this API for setting up the timer IRQs.

-    Acked-by: Rob Herring (Arm) <[email protected]>
-    Acked-by: Arnd Bergmann <[email protected]>
+    Signed-off-by: Will McVicker <[email protected]>
+    Signed-off-by: Daniel Lezcano <[email protected]>
+    Signed-off-by: Ingo Molnar <[email protected]>
+    Tested-by: Youngmin Nam <[email protected]>
-    Tested-by: Youngmin Nam <[email protected]>
-    Signed-off-by: Will McVicker <[email protected]>
+    Acked-by: Rob Herring (Arm) <[email protected]>
+    Acked-by: Arnd Bergmann <[email protected]>
     Link: https://lore.kernel.org/r/[email protected]

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Ben Zong-You Xie <[email protected]>
Date: Fri Jul 11 21:30:21 2025 +0800

- dt-bindings: timer: add Andes machine timer
+ dt-bindings: timer: Add Andes machine timer

Add the DT binding documentation for Andes machine timer.

@@ -301,43 +320,47 @@ Date: Fri Jul 11 21:30:21 2025 +0800
the implementation of the machine timer, and it contains memory-mapped registers (mtime and mtimecmp). This device supports up to 32 cores.

- Acked-by: Conor Dooley <[email protected]>

- Link: https://lore.kernel.org/r/[email protected]

+    Signed-off-by: Ingo Molnar <[email protected]>
+    Acked-by: Conor Dooley <[email protected]>
+    Link: https://lore.kernel.org/r/[email protected]

Author: Frank Li <[email protected]>
Date: Fri May 23 10:14:37 2025 -0400

- dt-bindings: timer: fsl,ftm-timer: use items for reg
+ dt-bindings: timer: fsl,ftm-timer: Use 'items' for 'reg'

The original txt binding doc is:
+
reg : Specifies base physical address and size of the register sets for
the clock event device and clock source device.

-    And existed dts provide two reg MMIO spaces. So change to use items to
-    descript reg property.
+    And existing DTS drivers provide two 'reg' MMIO spaces. So change
+    this driver to use 'items' to describe the 'reg' property.

- Update examples.
+ Update examples as well.

Fixes 8fc30d8f8e86 ("dt-bindings: timer: fsl,ftm-timer: Convert to dtschema")

- Reviewed-by: Krzysztof Kozlowski <[email protected]>

- Link: https://lore.kernel.org/r/[email protected]

+    Signed-off-by: Ingo Molnar <[email protected]>
+    Reviewed-by: Krzysztof Kozlowski <[email protected]>
+    Link: https://lore.kernel.org/r/[email protected]

Author: Max Shevchenko <[email protected]>
Date: Wed Jul 2 13:50:40 2025 +0300

- dt-bindings: timer: mediatek: add MT6572
+ dt-bindings: timer: mediatek: Add MT6572

Add a compatible string for timer on the MT6572 SoC.

+    Signed-off-by: Max Shevchenko <[email protected]>
+    Signed-off-by: Daniel Lezcano <[email protected]>
+    Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Max Shevchenko <[email protected]>

     Link: https://lore.kernel.org/r/[email protected]

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Rob Herring (Arm) <[email protected]>
Date: Wed Jun 11 18:26:20 2025 -0500
@@ -349,30 +372,32 @@ Date: Wed Jun 11 18:26:20 2025 -0500
interrupts can also be anywhere from 1 to 8. The clock-names order was reversed compared to what's used.

- Reviewed-by: Linus Walleij <[email protected]>

- Link: https://lore.kernel.org/r/[email protected]

+    Signed-off-by: Ingo Molnar <[email protected]>
+    Reviewed-by: Linus Walleij <[email protected]>
+    Link: https://lore.kernel.org/r/[email protected]

Author: Daniel Lezcano <[email protected]>
Date: Mon Jun 2 17:18:51 2025 +0200

- time/sched_clock: Export symbol for sched_clock register function
+ time/sched_clock: Export symbol for sched_clock_register() function

- The timer drivers could be converted into modules. The different
+ Timer drivers could be converted into modules. The different
functions to register the clocksource or the clockevent are already
- exporting their symbols for modules but the sched_clock_register()
+ exporting their symbols for modules, but the sched_clock_register()
function is missing.

- Export the symbols so the drivers using this function can be converted
+ Export the symbol so the drivers using this function can be converted
into modules.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Acked-by: John Stultz <[email protected]>

+ Acked-by: John Stultz <[email protected]>

     Link: https://lore.kernel.org/r/[email protected]

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Daniel Lezcano <[email protected]>
Date: Mon Jun 2 17:18:50 2025 +0200
@@ -381,7 +406,7 @@ Date: Mon Jun 2 17:18:50 2025 +0200

The conversion to modules requires a correct handling of the module refcount in order to prevent to unload it if it is in use. That is
- especially true with the clockevents where there is no function to
+ especially true with clockevents where there is no function to
unregister them.

The core time framework correctly handles the module refcount with the
@@ -391,9 +416,10 @@ Date: Mon Jun 2 17:18:50 2025 +0200
stupid things happening when the driver will be converted into a module.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Daniel Lezcano <[email protected]>
Date: Mon Jun 2 17:18:49 2025 +0200
@@ -402,7 +428,7 @@ Date: Mon Jun 2 17:18:49 2025 +0200

The conversion to modules requires a correct handling of the module refcount in order to prevent to unload it if it is in use. That is
- especially true with the clockevents where there is no function to
+ especially true with clockevents where there is no function to
unregister them.

The core time framework correctly handles the module refcount with the
@@ -412,9 +438,10 @@ Date: Mon Jun 2 17:18:49 2025 +0200
stupid things happening when the driver will be converted into a module.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Daniel Lezcano <[email protected]>
Date: Mon Jun 2 17:18:48 2025 +0200
@@ -423,7 +450,7 @@ Date: Mon Jun 2 17:18:48 2025 +0200

The conversion to modules requires a correct handling of the module refcount in order to prevent to unload it if it is in use. That is
- especially true with the clockevents where there is no function to
+ especially true with clockevents where there is no function to
unregister them.

The core time framework correctly handles the module refcount with the
@@ -433,9 +460,10 @@ Date: Mon Jun 2 17:18:48 2025 +0200
stupid things happening when the driver will be converted into a module.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Daniel Lezcano <[email protected]>
Date: Mon Jun 2 17:18:47 2025 +0200
@@ -444,7 +472,7 @@ Date: Mon Jun 2 17:18:47 2025 +0200

The conversion to modules requires a correct handling of the module refcount in order to prevent to unload it if it is in use. That is
- especially true with the clockevents where there is no function to
+ especially true with clockevents where there is no function to
unregister them.

The core time framework correctly handles the module refcount with the
@@ -454,10 +482,11 @@ Date: Mon Jun 2 17:18:47 2025 +0200
stupid things happening when the driver will be converted into a module.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Daniel Lezcano <[email protected]>
Date: Mon Jun 2 17:18:46 2025 +0200
@@ -466,7 +495,7 @@ Date: Mon Jun 2 17:18:46 2025 +0200

The conversion to modules requires a correct handling of the module refcount in order to prevent to unload it if it is in use. That is
- especially true with the clockevents where there is no function to
+ especially true with clockevents where there is no function to
unregister them.

The core time framework correctly handles the module refcount with the
@@ -476,9 +505,10 @@ Date: Mon Jun 2 17:18:46 2025 +0200
stupid things happening when the driver will be converted into a module.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

Author: Daniel Lezcano <[email protected]>
Date: Mon Jun 2 17:18:45 2025 +0200
@@ -487,7 +517,7 @@ Date: Mon Jun 2 17:18:45 2025 +0200

The conversion to modules requires a correct handling of the module refcount in order to prevent to unload it if it is in use. That is
- especially true with the clockevents where there is no function to
+ especially true with clockevents where there is no function to
unregister them.

The core time framework correctly handles the module refcount with the
@@ -497,6 +527,7 @@ Date: Mon Jun 2 17:18:45 2025 +0200
stupid things happening when the driver will be converted into a module.

+ Signed-off-by: Daniel Lezcano <[email protected]>
+ Signed-off-by: Ingo Molnar <[email protected]>

- Signed-off-by: Daniel Lezcano <[email protected]>

#11 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 2 lines · Ingo Molnar

* Daniel Lezcano <[email protected]> wrote:

[ ... ]

Quoted 28 lines
Quoted 11 lines
Quoted 10 lines

3)

There's also a stray Tested-by tag by one of the SOB entries:

Quoted 3 lines

When someone passes along a patch, it's implicit that they not only have reviewed the patch, but have also tested it to a certain extent

Quoted 6 lines

In this specific case where the original commit is from AOSP, this chain seems to make sense. Souns like:

"I was in the original commit delivery path"
"I reviewed this patch carried to Linux"
"I tested it on Linux"

Yeah, so then this should be documented by adding a comment to the tag itself:

Quoted 2 lines

Otherwise it's just confusing as to why there's duplicate SOB and Reviewed-by entries.

Yes, I agree it is more clear.

Quoted 6 lines

But as long as the porting was basically just a cherry-pick, these extra tags are probably superfluous. If there was a conflict resolved by one of the maintainers along the SOB chain, that should be marked explicitly, which I see was already done in some cases:

     [ dlezcano : Fixed conflict with [email protected] ]

Ok, noted for the next time.

Quoted 20 lines
Quoted 8 lines
Quoted 3 lines

4)

Why is the 'Link' tag just in the middle of the SOB chain, instead at the end of it?

I don't know. Link must be at the end It is stated somewhere in the documentation?

I use git b4 -s <msg-id> and the tool adds the Link then my sign off.

Yeah, so using tools and not looking at the end result will often just create a random tag order that looks messy.

On preferred tag ordering, see:

   Documentation/process/maintainer-tip.rst

   Ordering of commit tags
   ^^^^^^^^^^^^^^^^^^^^^^^
   ...
Quoted 5 lines

'Link' is at the end of the list of tags.

There's some logic to the -tip tag ordering (more important tags go before less important tags), but it's mostly just an arbitrary order that we try to stick to within -tip.

Thanks for the pointer !

Quoted 15 lines
Quoted 4 lines
Quoted 4 lines

Presumably this is the proper SOB chain:

Quoted 1 line

Author: Donghoon Yu <[email protected]>

Quoted 10 lines
Quoted 8 lines
Quoted 6 lines

Correct?

Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support
commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/[email protected]/

[2] https://lore.kernel.org/all/[email protected]/

Quoted 2 lines

I've attached a delta-patch of the changelog changes below - note that I skipped the commit IDs to make the diff easier to read.

I have one question regarding the 'handler', when there is a message like:

[ handler: I did some changes ]

...

Does the 'handler' have to match the email name ?

For example below, there is:

[ dlezcano : Fixed conflict with [email protected] ]

Is this form ok, or should it be:

[ daniel.lezcano: Fixed conflict with [email protected] ]

?

Review Date: Tue Jul 15 14:18:33 2025 +0200 · line 13

Quoted 8 lines

===================>
--- 2025-07-25 12:15:26.024284067 +0200
+++ 2025-07-25 12:15:18.761435799 +0200

(quoted diff) +1 -0
@@ -10,6 +10,7 @@ Date:   Tue Jul 15 14:18:33 2025 +0200
      the module loading.
 
      Fix this by adding the __init_or_module annotation for the functions:
+

If my understanding of the documentation is correct, it seems to me the delta is ok. Until now, I was relying on the tool to put the different tags in the correct order, I thought it was in the arrival order.

Thanks for fixing this. Is there an existing script checking the tags order is correct regarding the tip criteria ?

Thanks
-- Daniel

Signature · 5 lines
<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
#12 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Hi Ingo,

just a gentle ping for the question below about dropping the two patches.

On 25/07/2025 15:15, Daniel Lezcano wrote:

[ ... ]

Quoted 16 lines
Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support
commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/20250725090349.87730-2- [email protected]/

[2] https://lore.kernel.org/all/bccb77b9-7cdc-4965- [email protected]/

[ ... ]

Signature · 5 lines
<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
#13 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 26 lines · Daniel Lezcano

just a gentle ping for the question below about dropping the two patches.

On 25/07/2025 15:15, Daniel Lezcano wrote:

[ ... ]

Quoted 20 lines
Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/20250725090349.87730-2-
[email protected]/

[2] https://lore.kernel.org/all/bccb77b9-7cdc-4965-
[email protected]/

Grrr.

I've already sent the pull request for the pile. Let me ask Linus not to pull and I revert them on top.

Also please reset your clockevents branch so next does not have the conflicting SHAs

Thanks,

tglx

#14 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 25 lines · Thomas Gleixner
Quoted 24 lines · Daniel Lezcano

just a gentle ping for the question below about dropping the two patches.

On 25/07/2025 15:15, Daniel Lezcano wrote:

[ ... ]

Quoted 18 lines
Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/20250725090349.87730-2-
[email protected]/

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

[2] https://lore.kernel.org/all/bccb77b9-7cdc-4965-
[email protected]/

Grrr.

I've already sent the pull request for the pile. Let me ask Linus not to pull and I revert them on top.

That requires to revert 2798e90b4e09 ("arm64: exynos: Drop select CLKSRC_EXYNOS_MCT") as well, no?

Thanks,

tglx

#15 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 30 lines · Thomas Gleixner
Quoted 28 lines · Thomas Gleixner
Quoted 26 lines · Daniel Lezcano

just a gentle ping for the question below about dropping the two patches.

On 25/07/2025 15:15, Daniel Lezcano wrote:

[ ... ]

Quoted 20 lines
Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/20250725090349.87730-2-
[email protected]/

[2] https://lore.kernel.org/all/bccb77b9-7cdc-4965-
[email protected]/

Quoted 7 lines
Quoted 4 lines

Grrr.

I've already sent the pull request for the pile. Let me ask Linus not to pull and I revert them on top.

That requires to revert 2798e90b4e09 ("arm64: exynos: Drop select CLKSRC_EXYNOS_MCT") as well, no?

Yes, indeed, I missed that.

Best regards,
Krzysztof

#16 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

In reply to Thomas Gleixner
Quoted 28 lines · Thomas Gleixner
Quoted 26 lines · Daniel Lezcano

just a gentle ping for the question below about dropping the two patches.

On 25/07/2025 15:15, Daniel Lezcano wrote:

[ ... ]

Quoted 20 lines
Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/20250725090349.87730-2-
[email protected]/

[2] https://lore.kernel.org/all/bccb77b9-7cdc-4965-
[email protected]/

Quoted 7 lines

Grrr.

I've already sent the pull request for the pile. Let me ask Linus not to pull and I revert them on top.

Also please reset your clockevents branch so next does not have the conflicting SHAs

There is revert otherwise above [1]

Branch reset to v6.16-rc5

Signature · 5 lines
<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
#17 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 31 lines · Daniel Lezcano
Quoted 30 lines · Thomas Gleixner
Quoted 26 lines · Daniel Lezcano

just a gentle ping for the question below about dropping the two patches.

On 25/07/2025 15:15, Daniel Lezcano wrote:

[ ... ]

Quoted 20 lines
Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/20250725090349.87730-2-
[email protected]/

[2] https://lore.kernel.org/all/bccb77b9-7cdc-4965-
[email protected]/

Grrr.

Quoted 7 lines
Quoted 5 lines

I've already sent the pull request for the pile. Let me ask Linus not to pull and I revert them on top.

Also please reset your clockevents branch so next does not have the conflicting SHAs

There is revert otherwise above [1]

It's incomplete :)

I just reverted all three exynos mct related changes on top of the timers/clocksource branch and pushed the result out.

Thanks,

tglx

#18 lore raw

Re: [tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

Quoted 38 lines · Thomas Gleixner
Quoted 37 lines · Daniel Lezcano
Quoted 35 lines · Thomas Gleixner
Quoted 26 lines · Daniel Lezcano

just a gentle ping for the question below about dropping the two patches.

On 25/07/2025 15:15, Daniel Lezcano wrote:

[ ... ]

Quoted 20 lines
Quoted 5 lines

So I got no answer for this question, but I suppose my assumption is correct - so I've rebased the tip:timers/clocksource commits to fix the misattribution and a number of other problems, and also fixed various typos, spelling mistakes and inconsistencies in the changelogs while at it. Let me know if I got something wrong.

If the rebase is possible, I suggest to take the opportunity to remove the following patches:

commit 5d86e479193b - clocksource/drivers/exynos_mct: Add module support commit 7e477e9c4eb4 - clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Because of:

[1] https://lore.kernel.org/all/20250725090349.87730-2-
[email protected]/

[2] https://lore.kernel.org/all/bccb77b9-7cdc-4965-
[email protected]/

Grrr.

I've already sent the pull request for the pile. Let me ask Linus not to pull and I revert them on top.

Also please reset your clockevents branch so next does not have the conflicting SHAs

Quoted 6 lines
Quoted 1 line

There is revert otherwise above [1]

It's incomplete :)

I just reverted all three exynos mct related changes on top of the timers/clocksource branch and pushed the result out.

Thanks, sorry for the mess

Signature · 5 lines
<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
merge bot Applied
#19 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

In reply to Will McVicker
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     57eac487dfd1d4342812a78138559f9f1d1d5c08
Gitweb:        https://git.kernel.org/tip/57eac487dfd1d4342812a78138559f9f1d1d5c08
Author:        Donghoon Yu <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:05 -07:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:05:32 +02:00

clocksource/drivers/exynos_mct: Don't register as a sched_clock on arm64

The MCT register is unfortunately very slow to access, but importantly does not halt in the c2 idle state. So for ARM64, we can improve performance by not registering the MCT for sched_clock, allowing the system to use the faster ARM architected timer for sched_clock instead.

The MCT is still registered as a clocksource, and a clockevent in order to be a wakeup source for the arch_timer to exit the "c2" idle state.

Since ARM32 SoCs don't have an architected timer, the MCT must continue to be used for sched_clock. Detailed discussion on this topic can be found at:

https://lore.kernel.org/linux-samsung-soc/[email protected]/

Original commit from:

https://android.googlesource.com/kernel/gs/+/630817f7080e92c5e0216095ff52f6eb8dd00727

---
 drivers/clocksource/exynos_mct.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/clocksource/exynos_mct.c +9 -2
index da09f46..96361d5 100644
@@ -219,12 +219,18 @@ static struct clocksource mct_frc = {
 	.resume		= exynos4_frc_resume,
 };
 
+/*
+ * Since ARM devices do not have an architected timer, they need to continue
+ * using the MCT as the main clocksource for timekeeping, sched_clock, and the
+ * delay timer. For AARCH64 SoCs, the architected timer is the preferred
+ * clocksource due to it's superior performance.
+ */
+#if defined(CONFIG_ARM)
 static u64 notrace exynos4_read_sched_clock(void)
 {
 	return exynos4_read_count_32();
 }
 
-#if defined(CONFIG_ARM)
 static struct delay_timer exynos4_delay_timer;
 
 static cycles_t exynos4_read_current_timer(void)
@@ -250,12 +256,13 @@ static int __init exynos4_clocksource_init(bool frc_shared)
 	exynos4_delay_timer.read_current_timer = &exynos4_read_current_timer;
 	exynos4_delay_timer.freq = clk_rate;
 	register_current_timer_delay(&exynos4_delay_timer);
+
+	sched_clock_register(exynos4_read_sched_clock, 32, clk_rate);
 #endif
 
 	if (clocksource_register_hz(&mct_frc, clk_rate))
 		panic("%s: can't register clocksource\n", mct_frc.name);
 
-	sched_clock_register(exynos4_read_sched_clock, 32, clk_rate);
 
 	return 0;
 }
#20 lore raw

PATCH v4 3/6 clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

In reply to Will McVicker

From: Hosung Kim <[email protected]>

To allow the CPU to handle it's own clock events, we need to set the IRQF_PERCPU flag. This prevents the local timer interrupts from migrating to other CPUs.

[Original commit from https://android.googlesource.com/kernel/gs/+/03267fad19f093bac979ca78309483e9eb3a8d16]
---
 drivers/clocksource/exynos_mct.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/exynos_mct.c +2 -1
index 96361d5dc57d..a5ef7d64b1c2 100644
@@ -596,7 +596,8 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
 			irq_set_status_flags(mct_irq, IRQ_NOAUTOEN);
 			if (request_irq(mct_irq,
 					exynos4_mct_tick_isr,
-					IRQF_TIMER | IRQF_NOBALANCING,
+					IRQF_TIMER | IRQF_NOBALANCING |
+					IRQF_PERCPU,
 					pcpu_mevt->name, pcpu_mevt)) {
 				pr_err("exynos-mct: cannot register IRQ (cpu%d)\n",
 									cpu);
Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
merge bot Applied
#21 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     10934da577f627a97db18cf05dbe0c3c1b4a68d6
Gitweb:        https://git.kernel.org/tip/10934da577f627a97db18cf05dbe0c3c1b4a68d6
Author:        Hosung Kim <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:06 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:50 +02:00

clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

To allow the CPU to handle it's own clock events, we need to set the IRQF_PERCPU flag. This prevents the local timer interrupts from migrating to other CPUs.

[Original commit from https://android.googlesource.com/kernel/gs/+/03267fad19f093bac979ca78309483e9eb3a8d16]
---
 drivers/clocksource/exynos_mct.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/exynos_mct.c +2 -1
index 96361d5..a5ef7d6 100644
@@ -596,7 +596,8 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
 			irq_set_status_flags(mct_irq, IRQ_NOAUTOEN);
 			if (request_irq(mct_irq,
 					exynos4_mct_tick_isr,
-					IRQF_TIMER | IRQF_NOBALANCING,
+					IRQF_TIMER | IRQF_NOBALANCING |
+					IRQF_PERCPU,
 					pcpu_mevt->name, pcpu_mevt)) {
 				pr_err("exynos-mct: cannot register IRQ (cpu%d)\n",
 									cpu);
merge bot Applied
#22 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

In reply to Will McVicker
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     f3cec54ee3bfd50b90b9f3b7110b9357be97babe
Gitweb:        https://git.kernel.org/tip/f3cec54ee3bfd50b90b9f3b7110b9357be97babe
Author:        Hosung Kim <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:06 -07:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:05:39 +02:00

clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

To allow the CPU to handle its own clock events, we need to set the IRQF_PERCPU flag. This prevents the local timer interrupts from migrating to other CPUs.

Original commit from:

https://android.googlesource.com/kernel/gs/+/03267fad19f093bac979ca78309483e9eb3a8d16

---
 drivers/clocksource/exynos_mct.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/exynos_mct.c +2 -1
index 96361d5..a5ef7d6 100644
@@ -596,7 +596,8 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
 			irq_set_status_flags(mct_irq, IRQ_NOAUTOEN);
 			if (request_irq(mct_irq,
 					exynos4_mct_tick_isr,
-					IRQF_TIMER | IRQF_NOBALANCING,
+					IRQF_TIMER | IRQF_NOBALANCING |
+					IRQF_PERCPU,
 					pcpu_mevt->name, pcpu_mevt)) {
 				pr_err("exynos-mct: cannot register IRQ (cpu%d)\n",
 									cpu);
#23 lore raw

Re: [PATCH v4 3/6] clocksource/drivers/exynos_mct: Set local timer interrupts as percpu

In reply to Will McVicker
Quoted 6 lines · Will McVicker

From: Hosung Kim <[email protected]>

To allow the CPU to handle it's own clock events, we need to set the IRQF_PERCPU flag. This prevents the local timer interrupts from migrating to other CPUs.

Quoted 6 lines
[Original commit from https://android.googlesource.com/kernel/gs/+/03267fad19f093bac979ca78309483e9eb3a8d16]

This patch has been merged some time ago to v6.17-rc1 as commit f3cec54ee3bf ("clocksource/drivers/exynos_mct: Set local timer interrupts as percpu"). Recently I found that it breaks CPU hotplug support for some 'little' cores on Exynos5422 based boards, like OdroidXU3/XU4:

# for i in /sys/devices/system/cpu/cpu[1-9]; do echo 0 >$i/online; done
# for i in /sys/devices/system/cpu/cpu[1-9]; do echo 1 >$i/online; done
[  117.100195] CPU2: failed to come online
-bash: echo: write error: Input/output error
[  118.140426] CPU3: failed to come online
-bash: echo: write error: Input/output error
[  118.148428] CPU4: detected I-Cache line size mismatch, workaround 
enabled
[  118.169613] CPU5: detected I-Cache line size mismatch, workaround 
enabled
[  118.216802] CPU6: detected I-Cache line size mismatch, workaround 
enabled
[  118.283725] CPU7: detected I-Cache line size mismatch, workaround 
enabled
#

Frankly speaking I have no idea why this happens. CPU hotplug was always broken for the CPU0, but this is not relevant for this case. Maybe this PERCPU flag should be applied only on ARM64-based boards to avoid affecting legacy ARM 32bit cases?

Quoted 9 lines
---
  drivers/clocksource/exynos_mct.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/exynos_mct.c +0 -0
index 96361d5dc57d..a5ef7d64b1c2 100644

drivers/clocksource/exynos_mct.c static int __init exynos4_timer_interrupts(struct device_node *np, · line 603

Quoted 9 lines
drivers/clocksource/exynos_mct.c +2 -1
@@ -596,7 +596,8 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
  			irq_set_status_flags(mct_irq, IRQ_NOAUTOEN);
  			if (request_irq(mct_irq,
  					exynos4_mct_tick_isr,
-					IRQF_TIMER | IRQF_NOBALANCING,
+					IRQF_TIMER | IRQF_NOBALANCING |
+					IRQF_PERCPU,
  					pcpu_mevt->name, pcpu_mevt)) {
  				pr_err("exynos-mct: cannot register IRQ (cpu%d)\n",
  									cpu);

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
#24 lore raw

PATCH v4 4/6 clocksource/drivers/exynos_mct: Fix uninitialized irq name warning

In reply to Will McVicker

The Exynos MCT driver doesn't set the clocksource name until the CPU hotplug state is setup which happens after the IRQs are requested. This results in an empty IRQ name which leads to the below warning at proc_create() time. When this happens, the userdata partition fails to mount and the device gets stuck in an endless loop printing the error:

root '/dev/disk/by-partlabel/userdata' doesn't exist or does not contain a /dev.

To fix this, we just need to initialize the name before requesting the IRQs.

Warning from Pixel 6 kernel log:

[  T430] name len 0
[  T430] WARNING: CPU: 6 PID: 430 at fs/proc/generic.c:407 __proc_create+0x258/0x2b4
[  T430] Modules linked in: dwc3_exynos(E+)
[  T430]  ufs_exynos(E+) phy_exynos_ufs(E)
[  T430]  phy_exynos5_usbdrd(E) exynos_usi(E+) exynos_mct(E+) s3c2410_wdt(E)
[  T430]  arm_dsu_pmu(E) simplefb(E)
[  T430] CPU: 6 UID: 0 PID: 430 Comm: (udev-worker) Tainted:
         ... 6.14.0-next-20250331-4k-00008-g59adf909e40e #1 ...
[  T430] Tainted: [W]=WARN, [E]=UNSIGNED_MODULE
[  T430] Hardware name: Raven (DT)
[...]
[  T430] Call trace:
[  T430]  __proc_create+0x258/0x2b4 (P)
[  T430]  proc_mkdir+0x40/0xa0
[  T430]  register_handler_proc+0x118/0x140
[  T430]  __setup_irq+0x460/0x6d0
[  T430]  request_threaded_irq+0xcc/0x1b0
[  T430]  mct_init_dt+0x244/0x604 [exynos_mct ...]
[  T430]  mct_init_spi+0x18/0x34 [exynos_mct ...]
[  T430]  exynos4_mct_probe+0x30/0x4c [exynos_mct ...]
[  T430]  platform_probe+0x6c/0xe4
[  T430]  really_probe+0xf4/0x38c
[...]
[  T430]  driver_register+0x6c/0x140
[  T430]  __platform_driver_register+0x28/0x38
[  T430]  exynos4_mct_driver_init+0x24/0xfe8 [exynos_mct ...]
[  T430]  do_one_initcall+0x84/0x3c0
[  T430]  do_init_module+0x58/0x208
[  T430]  load_module+0x1de0/0x2500
[  T430]  init_module_from_file+0x8c/0xdc
---
 drivers/clocksource/exynos_mct.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/clocksource/exynos_mct.c +8 -2
index a5ef7d64b1c2..62febeb4e1de 100644
@@ -465,8 +465,6 @@ static int exynos4_mct_starting_cpu(unsigned int cpu)
 		per_cpu_ptr(&percpu_mct_tick, cpu);
 	struct clock_event_device *evt = &mevt->evt;
 
-	snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d", cpu);
-
 	evt->name = mevt->name;
 	evt->cpumask = cpumask_of(cpu);
 	evt->set_next_event = exynos4_tick_set_next_event;
@@ -567,6 +565,14 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
 	for (i = MCT_L0_IRQ; i < nr_irqs; i++)
 		mct_irqs[i] = irq_of_parse_and_map(np, i);
 
+	for_each_possible_cpu(cpu) {
+		struct mct_clock_event_device *mevt =
+		    per_cpu_ptr(&percpu_mct_tick, cpu);
+
+		snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d",
+			 cpu);
+	}
+
 	if (mct_int_type == MCT_INT_PPI) {
 
 		err = request_percpu_irq(mct_irqs[MCT_L0_IRQ],
Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
merge bot Applied
#25 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Fix uninitialized irq name warning

The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     60618eec98f059ad688251f5c9990e6929e14632
Gitweb:        https://git.kernel.org/tip/60618eec98f059ad688251f5c9990e6929e14632
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:07 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:51 +02:00

clocksource/drivers/exynos_mct: Fix uninitialized irq name warning

The Exynos MCT driver doesn't set the clocksource name until the CPU hotplug state is setup which happens after the IRQs are requested. This results in an empty IRQ name which leads to the below warning at proc_create() time. When this happens, the userdata partition fails to mount and the device gets stuck in an endless loop printing the error:

root '/dev/disk/by-partlabel/userdata' doesn't exist or does not contain a /dev.

To fix this, we just need to initialize the name before requesting the IRQs.

Warning from Pixel 6 kernel log:

[  T430] name len 0
[  T430] WARNING: CPU: 6 PID: 430 at fs/proc/generic.c:407 __proc_create+0x258/0x2b4
[  T430] Modules linked in: dwc3_exynos(E+)
[  T430]  ufs_exynos(E+) phy_exynos_ufs(E)
[  T430]  phy_exynos5_usbdrd(E) exynos_usi(E+) exynos_mct(E+) s3c2410_wdt(E)
[  T430]  arm_dsu_pmu(E) simplefb(E)
[  T430] CPU: 6 UID: 0 PID: 430 Comm: (udev-worker) Tainted:
         ... 6.14.0-next-20250331-4k-00008-g59adf909e40e #1 ...
[  T430] Tainted: [W]=WARN, [E]=UNSIGNED_MODULE
[  T430] Hardware name: Raven (DT)
[...]
[  T430] Call trace:
[  T430]  __proc_create+0x258/0x2b4 (P)
[  T430]  proc_mkdir+0x40/0xa0
[  T430]  register_handler_proc+0x118/0x140
[  T430]  __setup_irq+0x460/0x6d0
[  T430]  request_threaded_irq+0xcc/0x1b0
[  T430]  mct_init_dt+0x244/0x604 [exynos_mct ...]
[  T430]  mct_init_spi+0x18/0x34 [exynos_mct ...]
[  T430]  exynos4_mct_probe+0x30/0x4c [exynos_mct ...]
[  T430]  platform_probe+0x6c/0xe4
[  T430]  really_probe+0xf4/0x38c
[...]
[  T430]  driver_register+0x6c/0x140
[  T430]  __platform_driver_register+0x28/0x38
[  T430]  exynos4_mct_driver_init+0x24/0xfe8 [exynos_mct ...]
[  T430]  do_one_initcall+0x84/0x3c0
[  T430]  do_init_module+0x58/0x208
[  T430]  load_module+0x1de0/0x2500
[  T430]  init_module_from_file+0x8c/0xdc
---
 drivers/clocksource/exynos_mct.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/clocksource/exynos_mct.c +8 -2
index a5ef7d6..62febeb 100644
@@ -465,8 +465,6 @@ static int exynos4_mct_starting_cpu(unsigned int cpu)
 		per_cpu_ptr(&percpu_mct_tick, cpu);
 	struct clock_event_device *evt = &mevt->evt;
 
-	snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d", cpu);
-
 	evt->name = mevt->name;
 	evt->cpumask = cpumask_of(cpu);
 	evt->set_next_event = exynos4_tick_set_next_event;
@@ -567,6 +565,14 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
 	for (i = MCT_L0_IRQ; i < nr_irqs; i++)
 		mct_irqs[i] = irq_of_parse_and_map(np, i);
 
+	for_each_possible_cpu(cpu) {
+		struct mct_clock_event_device *mevt =
+		    per_cpu_ptr(&percpu_mct_tick, cpu);
+
+		snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d",
+			 cpu);
+	}
+
 	if (mct_int_type == MCT_INT_PPI) {
 
 		err = request_percpu_irq(mct_irqs[MCT_L0_IRQ],
merge bot Applied
#26 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Fix uninitialized IRQ name warning

In reply to Will McVicker
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     32abb4c011457219ee7cd5188efba65ea7030187
Gitweb:        https://git.kernel.org/tip/32abb4c011457219ee7cd5188efba65ea7030187
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:07 -07:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:06:04 +02:00

clocksource/drivers/exynos_mct: Fix uninitialized IRQ name warning

The Exynos MCT driver doesn't set the clocksource name until the CPU hotplug state is setup which happens after the IRQs are requested. This results in an empty IRQ name which leads to the below warning at proc_create() time. When this happens, the userdata partition fails to mount and the device gets stuck in an endless loop printing the error:

root '/dev/disk/by-partlabel/userdata' doesn't exist or does not contain a /dev.

To fix this, we just need to initialize the name before requesting the IRQs.

Warning from Pixel 6 kernel log:

[  T430] name len 0
[  T430] WARNING: CPU: 6 PID: 430 at fs/proc/generic.c:407 __proc_create+0x258/0x2b4
[  T430] Modules linked in: dwc3_exynos(E+)
[  T430]  ufs_exynos(E+) phy_exynos_ufs(E)
[  T430]  phy_exynos5_usbdrd(E) exynos_usi(E+) exynos_mct(E+) s3c2410_wdt(E)
[  T430]  arm_dsu_pmu(E) simplefb(E)
[  T430] CPU: 6 UID: 0 PID: 430 Comm: (udev-worker) Tainted:
         ... 6.14.0-next-20250331-4k-00008-g59adf909e40e #1 ...
[  T430] Tainted: [W]=WARN, [E]=UNSIGNED_MODULE
[  T430] Hardware name: Raven (DT)
[...]
[  T430] Call trace:
[  T430]  __proc_create+0x258/0x2b4 (P)
[  T430]  proc_mkdir+0x40/0xa0
[  T430]  register_handler_proc+0x118/0x140
[  T430]  __setup_irq+0x460/0x6d0
[  T430]  request_threaded_irq+0xcc/0x1b0
[  T430]  mct_init_dt+0x244/0x604 [exynos_mct ...]
[  T430]  mct_init_spi+0x18/0x34 [exynos_mct ...]
[  T430]  exynos4_mct_probe+0x30/0x4c [exynos_mct ...]
[  T430]  platform_probe+0x6c/0xe4
[  T430]  really_probe+0xf4/0x38c
[...]
[  T430]  driver_register+0x6c/0x140
[  T430]  __platform_driver_register+0x28/0x38
[  T430]  exynos4_mct_driver_init+0x24/0xfe8 [exynos_mct ...]
[  T430]  do_one_initcall+0x84/0x3c0
[  T430]  do_init_module+0x58/0x208
[  T430]  load_module+0x1de0/0x2500
[  T430]  init_module_from_file+0x8c/0xdc
---
 drivers/clocksource/exynos_mct.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/clocksource/exynos_mct.c +8 -2
index a5ef7d6..62febeb 100644
@@ -465,8 +465,6 @@ static int exynos4_mct_starting_cpu(unsigned int cpu)
 		per_cpu_ptr(&percpu_mct_tick, cpu);
 	struct clock_event_device *evt = &mevt->evt;
 
-	snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d", cpu);
-
 	evt->name = mevt->name;
 	evt->cpumask = cpumask_of(cpu);
 	evt->set_next_event = exynos4_tick_set_next_event;
@@ -567,6 +565,14 @@ static int __init exynos4_timer_interrupts(struct device_node *np,
 	for (i = MCT_L0_IRQ; i < nr_irqs; i++)
 		mct_irqs[i] = irq_of_parse_and_map(np, i);
 
+	for_each_possible_cpu(cpu) {
+		struct mct_clock_event_device *mevt =
+		    per_cpu_ptr(&percpu_mct_tick, cpu);
+
+		snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d",
+			 cpu);
+	}
+
 	if (mct_int_type == MCT_INT_PPI) {
 
 		err = request_percpu_irq(mct_irqs[MCT_L0_IRQ],
#27 lore raw

PATCH v4 5/6 clocksource/drivers/exynos_mct: Add module support

In reply to Will McVicker

From: Donghoon Yu <[email protected]>

On Arm64 platforms the Exynos MCT driver can be built as a module. On boot (and even after boot) the arch_timer is used as the clocksource and tick timer. Once the MCT driver is loaded, it can be used as the wakeup source for the arch_timer.

[original commit from https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]
---
 drivers/clocksource/Kconfig      |  3 +-
 drivers/clocksource/exynos_mct.c | 51 ++++++++++++++++++++++++++------
 2 files changed, 44 insertions(+), 10 deletions(-)
drivers/clocksource/Kconfig +2 -1
index 645f517a1ac2..d657c8ddc96b 100644
@@ -451,7 +451,8 @@ config ATMEL_TCB_CLKSRC
 	  Support for Timer Counter Blocks on Atmel SoCs.
 
 config CLKSRC_EXYNOS_MCT
-	bool "Exynos multi core timer driver" if COMPILE_TEST
+	tristate "Exynos multi core timer driver" if ARM64
+	default y if ARCH_EXYNOS || COMPILE_TEST
 	depends on ARM || ARM64
 	depends on ARCH_ARTPEC || ARCH_EXYNOS || COMPILE_TEST
 	help
drivers/clocksource/exynos_mct.c +42 -9

112 lines not on this page · raw message

Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
#28 lore raw

Re: [PATCH v4 5/6] clocksource/drivers/exynos_mct: Add module support

Quoted 14 lines · Will McVicker

From: Donghoon Yu <[email protected]>

On Arm64 platforms the Exynos MCT driver can be built as a module. On boot (and even after boot) the arch_timer is used as the clocksource and tick timer. Once the MCT driver is loaded, it can be used as the wakeup source for the arch_timer.

[original commit from https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]

---

...

Quoted 1 line

-static int __init mct_init_spi(struct device_node *np)

__init_or_module

drivers/clocksource/exynos_mct.c static int __init mct_init_dt(struct device_node *np, unsigned int int_type) · line 714

Quoted 12 lines
drivers/clocksource/exynos_mct.c +2 -3
+static int mct_init_spi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_SPI);
 }
 
-static int __init mct_init_ppi(struct device_node *np)
+static int mct_init_ppi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_PPI);
 }
-TIMER_OF_DECLARE(exynos4210, "samsung,exynos4210-mct", mct_init_spi);
-TIMER_OF_DECLARE(exynos4412, "samsung,exynos4412-mct", mct_init_ppi);

Are you sure this is not going to hurt the ARM platforms ? Here the timer is enabled very early in the boot process while with this change the timer will be available later.

Quoted 33 lines
drivers/clocksource/exynos_mct.c +30 -0
+static int exynos4_mct_probe(struct platform_device *pdev)
+{
+	struct device *dev = &pdev->dev;
+	int (*mct_init)(struct device_node *np);
+
+	mct_init = of_device_get_match_data(dev);
+	if (!mct_init)
+		return -EINVAL;
+
+	return mct_init(dev->of_node);
+}
+
+static const struct of_device_id exynos4_mct_match_table[] = {
+	{ .compatible = "samsung,exynos4210-mct", .data = &mct_init_spi, },
+	{ .compatible = "samsung,exynos4412-mct", .data = &mct_init_ppi, },
+	{}
+};
+MODULE_DEVICE_TABLE(of, exynos4_mct_match_table);
+
+static struct platform_driver exynos4_mct_driver = {
+	.probe		= exynos4_mct_probe,
+	.driver		= {
+		.name	= "exynos-mct",
+		.of_match_table = exynos4_mct_match_table,
+	},
+};
+module_platform_driver(exynos4_mct_driver);
+
+MODULE_DESCRIPTION("Exynos Multi Core Timer Driver");
+MODULE_LICENSE("GPL");
Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
Signature · 5 lines
 <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
#29 lore raw

Re: [PATCH v4 5/6] clocksource/drivers/exynos_mct: Add module support

Quoted 16 lines · Daniel Lezcano
Quoted 7 lines · Will McVicker

From: Donghoon Yu <[email protected]>

On Arm64 platforms the Exynos MCT driver can be built as a module. On boot (and even after boot) the arch_timer is used as the clocksource and tick timer. Once the MCT driver is loaded, it can be used as the wakeup source for the arch_timer.

Quoted 7 lines
[original commit from https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]

---

Quoted 5 lines

...

Quoted 1 line

-static int __init mct_init_spi(struct device_node *np)

__init_or_module

Thanks, I'll update in v5.

Quoted 6 lines
Quoted 6 lines
drivers/clocksource/exynos_mct.c +1 -0
+static int mct_init_spi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_SPI);
 }
Quoted 11 lines

drivers/clocksource/exynos_mct.c static int __init mct_init_dt(struct device_node *np, unsigned int int_type) · line 714

Quoted 7 lines
drivers/clocksource/exynos_mct.c +1 -3
-static int __init mct_init_ppi(struct device_node *np)
+static int mct_init_ppi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_PPI);
 }
-TIMER_OF_DECLARE(exynos4210, "samsung,exynos4210-mct", mct_init_spi);
-TIMER_OF_DECLARE(exynos4412, "samsung,exynos4412-mct", mct_init_ppi);

Are you sure this is not going to hurt the ARM platforms ? Here the timer is enabled very early in the boot process while with this change the timer will be available later.

I took a second look at the TIMER_OF_DECLARE() macro and FWICT the timer will only be enabled "very early" via timer_probe() if "MODULE" is not defined which is only defined when this specific driver is compiled as a module. Note, this "MODULE" define is not the same as the Kconfig option "CONFIG_MODULES". That is why in my v1 and v2 patch [1] I had:

#ifdef MODULE
...
module_platform_driver(exynos4_mct_driver);
#else
TIMER_OF_DECLARE(...)
TIMER_OF_DECLARE(...)
#endif

However, I dropped that since Saravana mentioned that we should not be using TIMER_OF_DECLARE() for drivers that can be modules. I don't have an ARM Exynos device to verify dropping TIMER_OF_DECLARE() is safe. So if you and Saravana agree, I can work on creating a patch to define TIMER_OF_DECLARE_MODULE() like you proposed in [2] to handle this for all the drivers that are used for both ARM and ARM64 SoCs.

Thanks,
Will

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

<snip>

#30 lore raw

Re: [PATCH v4 5/6] clocksource/drivers/exynos_mct: Add module support

Hi Will,

sorry I missed to add you in Cc but the following proposal help in the module conversion:

https://lore.kernel.org/all/[email protected]/

Quoted 71 lines · William McVicker
Quoted 16 lines · Daniel Lezcano
Quoted 7 lines · Will McVicker

From: Donghoon Yu <[email protected]>

On Arm64 platforms the Exynos MCT driver can be built as a module. On boot (and even after boot) the arch_timer is used as the clocksource and tick timer. Once the MCT driver is loaded, it can be used as the wakeup source for the arch_timer.

Quoted 7 lines
[original commit from https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]

---

Quoted 5 lines

...

Quoted 1 line

-static int __init mct_init_spi(struct device_node *np)

__init_or_module

Thanks, I'll update in v5.

Quoted 6 lines
Quoted 6 lines

+static int mct_init_spi(struct device_node *np)
{
return mct_init_dt(np, MCT_INT_SPI);
}

Quoted 11 lines

drivers/clocksource/exynos_mct.c static int __init mct_init_dt(struct device_node *np, unsigned int int_type) · line 714

Quoted 7 lines
drivers/clocksource/exynos_mct.c +1 -3
-static int __init mct_init_ppi(struct device_node *np)
+static int mct_init_ppi(struct device_node *np)
  {
  	return mct_init_dt(np, MCT_INT_PPI);
  }
-TIMER_OF_DECLARE(exynos4210, "samsung,exynos4210-mct", mct_init_spi);
-TIMER_OF_DECLARE(exynos4412, "samsung,exynos4412-mct", mct_init_ppi);

Are you sure this is not going to hurt the ARM platforms ? Here the timer is enabled very early in the boot process while with this change the timer will be available later.

I took a second look at the TIMER_OF_DECLARE() macro and FWICT the timer will only be enabled "very early" via timer_probe() if "MODULE" is not defined which is only defined when this specific driver is compiled as a module. Note, this "MODULE" define is not the same as the Kconfig option "CONFIG_MODULES". That is why in my v1 and v2 patch [1] I had:

  #ifdef MODULE
    ...
    module_platform_driver(exynos4_mct_driver);
  #else
    TIMER_OF_DECLARE(...)
    TIMER_OF_DECLARE(...)
  #endif

However, I dropped that since Saravana mentioned that we should not be using TIMER_OF_DECLARE() for drivers that can be modules. I don't have an ARM Exynos device to verify dropping TIMER_OF_DECLARE() is safe. So if you and Saravana agree, I can work on creating a patch to define TIMER_OF_DECLARE_MODULE() like you proposed in [2] to handle this for all the drivers that are used for both ARM and ARM64 SoCs.

Thanks,
Will

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

<snip>

Signature · 5 lines
<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
#31 lore raw

PATCH 1/1 clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

In reply to Will McVicker

The function register_current_timer_delay() when compiling on ARM32 fails with a section mismatch. That is resulting from the module conversion where the function exynos4_clocksource_init() is called from mct_init_dt(). This one had its __init annotation removed to for the module loading.

Fix this by adding the __init_or_module annotation for the functions:
- mct_init_dt()
- mct_init_spi()
- mct_init_dt()

Compiled on ARM32 + MODULES=no, ARM64 + MODULES=yes, ARM64 + MODULES=no

---
 drivers/clocksource/exynos_mct.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clocksource/exynos_mct.c +3 -3
index 5075ebe052a7..80d263ee046d 100644
@@ -657,7 +657,7 @@ static int exynos4_timer_interrupts(struct device_node *np,
 	return err;
 }
 
-static int mct_init_dt(struct device_node *np, unsigned int int_type)
+static __init_or_module int mct_init_dt(struct device_node *np, unsigned int int_type)
 {
 	bool frc_shared = of_property_read_bool(np, "samsung,frc-shared");
 	u32 local_idx[MCT_NR_LOCAL] = {0};
@@ -705,12 +705,12 @@ static int mct_init_dt(struct device_node *np, unsigned int int_type)
 	return exynos4_clockevent_init();
 }
 
-static int mct_init_spi(struct device_node *np)
+static __init_or_module int mct_init_spi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_SPI);
 }
 
-static int mct_init_ppi(struct device_node *np)
+static __init_or_module int mct_init_ppi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_PPI);
 }
Signature · 1 line
2.43.0
author Reviewed-by on v1 1/1
#32 lore raw

Re: [PATCH] clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Quoted 11 lines · Daniel Lezcano

The function register_current_timer_delay() when compiling on ARM32 fails with a section mismatch. That is resulting from the module conversion where the function exynos4_clocksource_init() is called from mct_init_dt(). This one had its __init annotation removed to for the module loading.

Fix this by adding the __init_or_module annotation for the functions:
- mct_init_dt()
- mct_init_spi()
- mct_init_dt()

Quoted 4 lines

Compiled on ARM32 + MODULES=no, ARM64 + MODULES=yes, ARM64 + MODULES=no

Quoted 35 lines
---
 drivers/clocksource/exynos_mct.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clocksource/exynos_mct.c +3 -3
index 5075ebe052a7..80d263ee046d 100644
@@ -657,7 +657,7 @@ static int exynos4_timer_interrupts(struct device_node *np,
 	return err;
 }
 
-static int mct_init_dt(struct device_node *np, unsigned int int_type)
+static __init_or_module int mct_init_dt(struct device_node *np, unsigned int int_type)
 {
 	bool frc_shared = of_property_read_bool(np, "samsung,frc-shared");
 	u32 local_idx[MCT_NR_LOCAL] = {0};
@@ -705,12 +705,12 @@ static int mct_init_dt(struct device_node *np, unsigned int int_type)
 	return exynos4_clockevent_init();
 }
 
-static int mct_init_spi(struct device_node *np)
+static __init_or_module int mct_init_spi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_SPI);
 }
 
-static int mct_init_ppi(struct device_node *np)
+static __init_or_module int mct_init_ppi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_PPI);
 }
Signature · 1 line
2.43.0

Thanks Daniel for catching this! Sorry I missed it.

Regards,
Will

#33 lore raw

Re: [PATCH] clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

In reply to Daniel Lezcano
Quoted 13 lines · Daniel Lezcano
drivers/clocksource/exynos_mct.c +1 -1
index 5075ebe052a7..80d263ee046d 100644
@@ -657,7 +657,7 @@ static int exynos4_timer_interrupts(struct device_node *np,
 	return err;
 }
 
-static int mct_init_dt(struct device_node *np, unsigned int int_type)
+static __init_or_module int mct_init_dt(struct device_node *np, 
 unsigned int int_type)
 {
 	bool frc_shared = of_property_read_bool(np, "samsung,frc-shared");
Quoted 1 line

u32 local_idx[MCT_NR_LOCAL] = {0};

Something still feels off here, though I'm not sure what the best solution would be. Some observations:

- The exynos4_mct_probe() function is listed as permanent, but it indirectly calls an __init_or_module function, which is not technically allowed but does not produce a warning here because of the indirection.

- if the driver is built-in and the platform_driver picks up the device, it can be manually unbound and rebound, but the mct_init_dt() will be discarded at this point.

- In a loadable module, you cannot call register_current_timer_delay(), since this causes a link failure.

- unloading the module fails to undo the registration, so the next call to delay(), sched_clock(), ktime_get() or an interrupt ends up in invalid memory.

I think the driver should use an explicit init function calling platform_driver_probe(), so the probe is only done at initcall time and both unbinding and unloading are prevented.

Arnd

merge bot Applied
#34 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

In reply to Daniel Lezcano
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     7e477e9c4eb412cbcaeae3ed4fff22035dc943eb
Gitweb:        https://git.kernel.org/tip/7e477e9c4eb412cbcaeae3ed4fff22035dc943eb
Author:        Daniel Lezcano <[email protected]>
AuthorDate:    Tue, 15 Jul 2025 14:18:33 +02:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 19:46:23 +02:00

clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

The function register_current_timer_delay() when compiling on ARM32 fails with a section mismatch. That is resulting from the module conversion where the function exynos4_clocksource_init() is called from mct_init_dt(). This one had its __init annotation removed to for the module loading.

Fix this by adding the __init_or_module annotation for the functions:
- mct_init_dt()
- mct_init_spi()
- mct_init_dt()

Compiled on ARM32 + MODULES=no, ARM64 + MODULES=yes, ARM64 + MODULES=no

---
 drivers/clocksource/exynos_mct.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clocksource/exynos_mct.c +3 -3
index 5075ebe..80d263e 100644
@@ -657,7 +657,7 @@ out_irq:
 	return err;
 }
 
-static int mct_init_dt(struct device_node *np, unsigned int int_type)
+static __init_or_module int mct_init_dt(struct device_node *np, unsigned int int_type)
 {
 	bool frc_shared = of_property_read_bool(np, "samsung,frc-shared");
 	u32 local_idx[MCT_NR_LOCAL] = {0};
@@ -705,12 +705,12 @@ static int mct_init_dt(struct device_node *np, unsigned int int_type)
 	return exynos4_clockevent_init();
 }
 
-static int mct_init_spi(struct device_node *np)
+static __init_or_module int mct_init_spi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_SPI);
 }
 
-static int mct_init_ppi(struct device_node *np)
+static __init_or_module int mct_init_ppi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_PPI);
 }
#35 lore raw

Re: [PATCH] clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

In reply to Daniel Lezcano
Quoted 11 lines · Daniel Lezcano

The function register_current_timer_delay() when compiling on ARM32 fails with a section mismatch. That is resulting from the module conversion where the function exynos4_clocksource_init() is called from mct_init_dt(). This one had its __init annotation removed to for the module loading.

Fix this by adding the __init_or_module annotation for the functions:
- mct_init_dt()
- mct_init_spi()
- mct_init_dt()

Quoted 7 lines

Compiled on ARM32 + MODULES=no, ARM64 + MODULES=yes, ARM64 + MODULES=no

---
 drivers/clocksource/exynos_mct.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Did anyone applied this or any other fix?

Next builds are still broken.
https://krzk.eu/#/builders/12/builds/3365

Please revert untested patches if there is no consensus for fixes

It's really surprising that original patchset was not even built by defconfigs (and I assume it was not even asked to be built by LKP).

Best regards,
Krzysztof

#36 lore raw

Re: [PATCH] clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

Quoted 20 lines · Krzysztof Kozlowski
Quoted 11 lines · Daniel Lezcano

The function register_current_timer_delay() when compiling on ARM32 fails with a section mismatch. That is resulting from the module conversion where the function exynos4_clocksource_init() is called from mct_init_dt(). This one had its __init annotation removed to for the module loading.

Fix this by adding the __init_or_module annotation for the functions:
- mct_init_dt()
- mct_init_spi()
- mct_init_dt()

Quoted 7 lines

Compiled on ARM32 + MODULES=no, ARM64 + MODULES=yes, ARM64 + MODULES=no

---
 drivers/clocksource/exynos_mct.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 4 lines

Did anyone applied this or any other fix?

Next builds are still broken.
https://krzk.eu/#/builders/12/builds/3365

... and first failure was 9 (!) days ago:
https://krzk.eu/#/builders/12/builds/3350

Best regards,
Krzysztof

merge bot Applied
#37 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

In reply to Daniel Lezcano
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     85198c87e4842f1239b4ad93586cf629583f480d
Gitweb:        https://git.kernel.org/tip/85198c87e4842f1239b4ad93586cf629583f480d
Author:        Daniel Lezcano <[email protected]>
AuthorDate:    Tue, 15 Jul 2025 14:18:33 +02:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:07:30 +02:00

clocksource/drivers/exynos_mct: Fix section mismatch from the module conversion

The function register_current_timer_delay() when compiling on ARM32 fails with a section mismatch. That is resulting from the module conversion where the function exynos4_clocksource_init() is called from mct_init_dt(). This one had its __init annotation removed to for the module loading.

Fix this by adding the __init_or_module annotation for the functions:

- mct_init_dt()
- mct_init_spi()
- mct_init_dt()

Compiled on ARM32 + MODULES=no, ARM64 + MODULES=yes, ARM64 + MODULES=no

---
 drivers/clocksource/exynos_mct.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clocksource/exynos_mct.c +3 -3
index 5075ebe..80d263e 100644
@@ -657,7 +657,7 @@ out_irq:
 	return err;
 }
 
-static int mct_init_dt(struct device_node *np, unsigned int int_type)
+static __init_or_module int mct_init_dt(struct device_node *np, unsigned int int_type)
 {
 	bool frc_shared = of_property_read_bool(np, "samsung,frc-shared");
 	u32 local_idx[MCT_NR_LOCAL] = {0};
@@ -705,12 +705,12 @@ static int mct_init_dt(struct device_node *np, unsigned int int_type)
 	return exynos4_clockevent_init();
 }
 
-static int mct_init_spi(struct device_node *np)
+static __init_or_module int mct_init_spi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_SPI);
 }
 
-static int mct_init_ppi(struct device_node *np)
+static __init_or_module int mct_init_ppi(struct device_node *np)
 {
 	return mct_init_dt(np, MCT_INT_PPI);
 }
merge bot Applied
#38 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Add module support

In reply to Will McVicker
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     5d86e479193babb6487c33bc01a464c54933eba6
Gitweb:        https://git.kernel.org/tip/5d86e479193babb6487c33bc01a464c54933eba6
Author:        Donghoon Yu <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:08 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:51 +02:00

clocksource/drivers/exynos_mct: Add module support

On Arm64 platforms the Exynos MCT driver can be built as a module. On boot (and even after boot) the arch_timer is used as the clocksource and tick timer. Once the MCT driver is loaded, it can be used as the wakeup source for the arch_timer.

[original commit from https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]
---
 drivers/clocksource/Kconfig      |  3 +-
 drivers/clocksource/exynos_mct.c | 51 +++++++++++++++++++++++++------
 2 files changed, 44 insertions(+), 10 deletions(-)
drivers/clocksource/Kconfig +2 -1
index 645f517..d657c8d 100644
@@ -451,7 +451,8 @@ config ATMEL_TCB_CLKSRC
 	  Support for Timer Counter Blocks on Atmel SoCs.
 
 config CLKSRC_EXYNOS_MCT
-	bool "Exynos multi core timer driver" if COMPILE_TEST
+	tristate "Exynos multi core timer driver" if ARM64
+	default y if ARCH_EXYNOS || COMPILE_TEST
 	depends on ARM || ARM64
 	depends on ARCH_ARTPEC || ARCH_EXYNOS || COMPILE_TEST
 	help
drivers/clocksource/exynos_mct.c +42 -9

112 lines not on this page · raw message

#39 lore raw

Re: [PATCH v4 5/6] clocksource/drivers/exynos_mct: Add module support

In reply to Will McVicker

Hi Will,

On 20/06/2025 20:17, Will McVicker wrote:

[ ... ]

drivers/clocksource/exynos_mct.c static int __init mct_init_dt(struct device_node *np, unsigned int int_type) · line 714

Quoted 2 lines
drivers/clocksource/exynos_mct.c +0 -2
-TIMER_OF_DECLARE(exynos4210, "samsung,exynos4210-mct", mct_init_spi);
-TIMER_OF_DECLARE(exynos4412, "samsung,exynos4412-mct", mct_init_ppi);

Was these changes tested on the ARM32 Exynos platforms ? Especially did you check if there is no boot time regression ?

Quoted 30 lines
drivers/clocksource/exynos_mct.c +30 -0
+static int exynos4_mct_probe(struct platform_device *pdev)
+{
+	struct device *dev = &pdev->dev;
+	int (*mct_init)(struct device_node *np);
+
+	mct_init = of_device_get_match_data(dev);
+	if (!mct_init)
+		return -EINVAL;
+
+	return mct_init(dev->of_node);
+}
+
+static const struct of_device_id exynos4_mct_match_table[] = {
+	{ .compatible = "samsung,exynos4210-mct", .data = &mct_init_spi, },
+	{ .compatible = "samsung,exynos4412-mct", .data = &mct_init_ppi, },
+	{}
+};
+MODULE_DEVICE_TABLE(of, exynos4_mct_match_table);
+
+static struct platform_driver exynos4_mct_driver = {
+	.probe		= exynos4_mct_probe,
+	.driver		= {
+		.name	= "exynos-mct",
+		.of_match_table = exynos4_mct_match_table,
+	},
+};
+module_platform_driver(exynos4_mct_driver);
+
+MODULE_DESCRIPTION("Exynos Multi Core Timer Driver");
+MODULE_LICENSE("GPL");
Signature · 5 lines
<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
merge bot Applied
#40 lore raw

[tip: timers/clocksource] clocksource/drivers/exynos_mct: Add module support

In reply to Will McVicker
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     338007c44c7f97a068c455fef5a49a49cc9389de
Gitweb:        https://git.kernel.org/tip/338007c44c7f97a068c455fef5a49a49cc9389de
Author:        Donghoon Yu <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:08 -07:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:06:18 +02:00

clocksource/drivers/exynos_mct: Add module support

On Arm64 platforms the Exynos MCT driver can be built as a module. On boot (and even after boot) the arch_timer is used as the clocksource and tick timer. Once the MCT driver is loaded, it can be used as the wakeup source for the arch_timer.

Original commit from:

https://android.googlesource.com/kernel/gs/+/8a52a8288ec7d88ff78f0b37480dbb0e9c65bbfd]

---
 drivers/clocksource/Kconfig      |  3 +-
 drivers/clocksource/exynos_mct.c | 51 +++++++++++++++++++++++++------
 2 files changed, 44 insertions(+), 10 deletions(-)
drivers/clocksource/Kconfig +2 -1
index 645f517..d657c8d 100644
@@ -451,7 +451,8 @@ config ATMEL_TCB_CLKSRC
 	  Support for Timer Counter Blocks on Atmel SoCs.
 
 config CLKSRC_EXYNOS_MCT
-	bool "Exynos multi core timer driver" if COMPILE_TEST
+	tristate "Exynos multi core timer driver" if ARM64
+	default y if ARCH_EXYNOS || COMPILE_TEST
 	depends on ARM || ARM64
 	depends on ARCH_ARTPEC || ARCH_EXYNOS || COMPILE_TEST
 	help
drivers/clocksource/exynos_mct.c +42 -9

112 lines not on this page · raw message

#41 lore raw

PATCH v4 6/6 arm64: exynos: Drop select CLKSRC_EXYNOS_MCT

In reply to Will McVicker

Since the Exynos MCT driver can be built as a module for some Arm64 SoCs like gs101, drop force-selecting it as a built-in driver by ARCH_EXYNOS and instead depend on default y if ARCH_EXYNOS to select it automatically. This allows platforms like Android to build the driver as a module if desired.

---
 arch/arm64/Kconfig.platforms | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/Kconfig.platforms +0 -1
index a541bb029aa4..46825b02d099 100644
@@ -109,7 +109,6 @@ config ARCH_BLAIZE
 config ARCH_EXYNOS
 	bool "Samsung Exynos SoC family"
 	select COMMON_CLK_SAMSUNG
-	select CLKSRC_EXYNOS_MCT
 	select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS
 	select EXYNOS_PMU
 	select PINCTRL
Signature · 1 line
2.50.0.rc2.761.g2dc52ea45b-goog
merge bot Applied
#42 lore raw

[tip: timers/clocksource] arm64: exynos: Drop select CLKSRC_EXYNOS_MCT

The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     aa896540ee8caff1a61431673f53199bbc980d76
Gitweb:        https://git.kernel.org/tip/aa896540ee8caff1a61431673f53199bbc980d76
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:09 -07:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:00:51 +02:00

arm64: exynos: Drop select CLKSRC_EXYNOS_MCT

Since the Exynos MCT driver can be built as a module for some Arm64 SoCs like gs101, drop force-selecting it as a built-in driver by ARCH_EXYNOS and instead depend on default y if ARCH_EXYNOS to select it automatically. This allows platforms like Android to build the driver as a module if desired.

---
 arch/arm64/Kconfig.platforms | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/Kconfig.platforms +0 -1
index a541bb0..46825b0 100644
@@ -109,7 +109,6 @@ config ARCH_BLAIZE
 config ARCH_EXYNOS
 	bool "Samsung Exynos SoC family"
 	select COMMON_CLK_SAMSUNG
-	select CLKSRC_EXYNOS_MCT
 	select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS
 	select EXYNOS_PMU
 	select PINCTRL
merge bot Applied
#43 lore raw

[tip: timers/clocksource] arm64: exynos: Drop select CLKSRC_EXYNOS_MCT

In reply to Will McVicker
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     2798e90b4e095940e3736312499a0fb562f3ee60
Gitweb:        https://git.kernel.org/tip/2798e90b4e095940e3736312499a0fb562f3ee60
Author:        Will McVicker <[email protected]>
AuthorDate:    Fri, 20 Jun 2025 11:17:09 -07:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:06:22 +02:00

arm64: exynos: Drop select CLKSRC_EXYNOS_MCT

Since the Exynos MCT driver can be built as a module for some Arm64 SoCs like gs101, drop force-selecting it as a built-in driver by ARCH_EXYNOS and instead depend on default y if ARCH_EXYNOS to select it automatically. This allows platforms like Android to build the driver as a module if desired.

---
 arch/arm64/Kconfig.platforms | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/Kconfig.platforms +0 -1
index a541bb0..46825b0 100644
@@ -109,7 +109,6 @@ config ARCH_BLAIZE
 config ARCH_EXYNOS
 	bool "Samsung Exynos SoC family"
 	select COMMON_CLK_SAMSUNG
-	select CLKSRC_EXYNOS_MCT
 	select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS
 	select EXYNOS_PMU
 	select PINCTRL
#44 lore raw
In reply to Will McVicker
Quoted 70 lines · Will McVicker

This series adds support to build the Arm64 Exynos MCT driver as a module. This is only possible on Arm64 SoCs since they can use the Arm architected timer as the clocksource. Once the Exynos MCT module is loaded and the device probes, the MCT is used as the wakeup source for the arch_timer to ensure the device can wakeup from the "c2" idle state.

These patches are originally from the downstream Pixel 6 (gs101) kernel found at [1] and have been adapted for upstream. Not only has the Exynos MCT driver been shipping as a module in the field with Android, but I've also tested this series with the upstream kernel on my Pixel 6 Pro.

In addition, I verified that the Exynos MCT module cannot be unloaded on my Pixel 6. This is due to /sys/module/exynos_mct/refcnt > 0. So if you try, you'll get this:

  root@google-gs:~# rmmod exynos_mct
  rmmod: ERROR: Module exynos_mct is in use
  root@google-gs:~# cat /sys/module/exynos_mct/refcnt
  9

Thanks,
Will

Note1, instructions to build and flash a Pixel 6 device with the upstream kernel can be found at [2].

Note2, this series is based off of krzk/for-next commit a15edf91668b ("Merge branch 'next/dt64' into for-next") with [3] on top.

[1] https://android.googlesource.com/kernel/gs/+log/refs/heads/android-gs-raviole-5.10-android12-d1
[2] https://git.codelinaro.org/linaro/googlelt/pixelscripts/-/blob/clo/main/README.md?ref_type=heads
[3] https://lore.kernel.org/linux-arm-kernel/[email protected]/

Cc Alim Akhtar <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Donghoon Yu <[email protected]>
Cc Hosung Kim <[email protected]>
Cc Rob Herring <[email protected]>
Cc Saravana Kannan <[email protected]>
Cc John Stultz <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Youngmin Nam <[email protected]>
Cc Peter Griffin <[email protected]>
Cc Tudor Ambarus <[email protected]>
Cc André Draszik <[email protected]>
Cc Will Deacon <[email protected]>
Cc Conor Dooley <[email protected]>
Cc Krzysztof Kozlowski <[email protected]>

---
Changes in v4:
- Missed the "v3" string in the previous series for the actual patches
- Re-generated patches with --base a15edf91668beefdb5171c53fa698c9b43dd1e0d for kernel test robot.

Changes in v3:
- Rebased on top of Daniel's timer modularization prep series [3] and krzk/for-next commit a15edf91668b ("Merge branch 'next/dt64' into for-next")
- Added owner references to Exynos MCT clocksource and clockevent objects.
- Dropped #ifdef MODULE conditional section in favor of just using module_platform_driver() which will properly handle setting up the of_device_id table based on if the driver is built-in or a module.
- Update commit message for patch 2 based on John's feedback.
- Dropped DT change from v2 as it was picked up by Krzysztof for CPU Idle.

Quoted 12 lines

Changes in v2:
- Re-worked patch v1 5 based on Rob Herring's review to use the compatible data for retrieving the mct_init function pointer.
- Updated the Kconfig logic to disallow building the Exynos MCT driver as a module for ARM32 configurations based on Krzysztof Kozlowski's findings.
- Added comments and clarified commit messages in patches 1 and 2 based on reviews from John Stultz and Youngmin Nam.
- Fixed an issue found during testing that resulted in the device getting stuck on boot. This is included in v2 as patch 5.
- Collected *-by tags
- Rebased to the latest linux-next/master.
---

Applied, thanks

-- Daniel

Signature · 5 lines
 <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