* [BUG] coresight: during reboot-loop-test, boot hangs during 1st us
@ 2026-11-19 11:10 Kepplinger-Novakovic Martin
2026-11-19 14:49 ` Leo Yan
0 siblings, 1 reply; 3+ messages in thread
From: Kepplinger-Novakovic Martin @ 2026-11-19 11:10 UTC (permalink / raw)
To: suzuki.poulose@arm.com, mike.leach@arm.com,
james.clark@linaro.org, leo.yan@arm.com,
alexander.shishkin@linux.intel.com
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, coresight@lists.linaro.org,
Roosen Henri
hi Suzuki, Mike and others,
I don't really know the coresight hardware but with CORESIGHT enabled, when I do
"reboot tests" on imx8mp, I see the kernel hang after (randomly) 200 to 2000 (sometimes
a hang was seen even later) reboots at *about* the line below. But indeed not exactly
that line. sometimes it stops 4-7 lines earlier!
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.18.63-ge-26.10+-ge_bep4-eta-1-00195-gb8bebc692f96 (root@ginzinger) (aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot
-gf002287f) 13.4.0, GNU ld (GNU Binutils) 2.43.1) #41 SMP PREEMPT Thu Nov 12 09:08:03 CET 2026
[ 0.000000] KASLR disabled due to lack of seed
[ 0.000000] Machine model: BE-P4 i.MX8MPlus in NDM
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x7fdb6e80-0x7fdb9b7f]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] cma: Reserved 32 MiB at 0x000000007cc00000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
The kernel does not panic. It hangs. The problem goes away and it reboots indefinitely
when I disable coresight in the config.
I sometimes need to run an old v5.10-imx based kernel, where I've *not* reproduced
this hang with coresight enabled.
Was there a regression in mainline or does NXP have a fix in their tree? Have you see
something like this before?
I'm happy to test a patch,
thank you,
martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] coresight: during reboot-loop-test, boot hangs during 1st us
2026-11-19 11:10 [BUG] coresight: during reboot-loop-test, boot hangs during 1st us Kepplinger-Novakovic Martin
@ 2026-11-19 14:49 ` Leo Yan
[not found] ` <d1ca1f8533228923a400a22ce91a870f8a92369f.camel@ginzinger.com>
0 siblings, 1 reply; 3+ messages in thread
From: Leo Yan @ 2026-11-19 14:49 UTC (permalink / raw)
To: Kepplinger-Novakovic Martin
Cc: suzuki.poulose@arm.com, mike.leach@arm.com,
james.clark@linaro.org, alexander.shishkin@linux.intel.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, coresight@lists.linaro.org,
Roosen Henri
Hi,
On Thu, Nov 19, 2026 at 11:10:50AM +0000, Kepplinger-Novakovic Martin wrote:
> hi Suzuki, Mike and others,
>
> I don't really know the coresight hardware but with CORESIGHT enabled, when I do
> "reboot tests" on imx8mp, I see the kernel hang after (randomly) 200 to 2000 (sometimes
> a hang was seen even later) reboots at *about* the line below. But indeed not exactly
> that line. sometimes it stops 4-7 lines earlier!
Could you enable earlycon together with ignore_loglevel and initcall_debug?
So far, the info is too limited to give any useful hints.
> [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
> [ 0.000000] Linux version 6.18.63-ge-26.10+-ge_bep4-eta-1-00195-gb8bebc692f96 (root@ginzinger) (aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot
> -gf002287f) 13.4.0, GNU ld (GNU Binutils) 2.43.1) #41 SMP PREEMPT Thu Nov 12 09:08:03 CET 2026
> [ 0.000000] KASLR disabled due to lack of seed
> [ 0.000000] Machine model: BE-P4 i.MX8MPlus in NDM
> [ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
> [ 0.000000] NODE_DATA(0) allocated [mem 0x7fdb6e80-0x7fdb9b7f]
> [ 0.000000] Zone ranges:
> [ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
> [ 0.000000] DMA32 empty
> [ 0.000000] Normal empty
> [ 0.000000] Movable zone start for each node
> [ 0.000000] Early memory node ranges
> [ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff]
> [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
> [ 0.000000] cma: Reserved 32 MiB at 0x000000007cc00000
> [ 0.000000] psci: probing for conduit method from DT.
> [ 0.000000] psci: PSCIv1.1 detected in firmware.
> [ 0.000000] psci: Using standard PSCI v0.2 function IDs
> [ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
>
> The kernel does not panic. It hangs. The problem goes away and it reboots indefinitely
> when I disable coresight in the config.
Could you confirm what exactly CoreSight modules have been enabled?
> I sometimes need to run an old v5.10-imx based kernel, where I've *not* reproduced
> this hang with coresight enabled.
>
> Was there a regression in mainline or does NXP have a fix in their tree? Have you see
> something like this before?
I am not aware of a CoreSight regression. I cannot comment on NXP
board as I don't have it.
As separate diagnostic tests, could you try clk_ignore_unused and
nohlt, one at a time, to see whether unused-clock disabling or
CPU idle affects reproduction?
Thanks,
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] coresight: during reboot-loop-test, boot hangs during 1st us
[not found] ` <d1ca1f8533228923a400a22ce91a870f8a92369f.camel@ginzinger.com>
@ 2026-11-25 10:00 ` Leo Yan
0 siblings, 0 replies; 3+ messages in thread
From: Leo Yan @ 2026-11-25 10:00 UTC (permalink / raw)
To: Kepplinger-Novakovic Martin
Cc: suzuki.poulose@arm.com, mike.leach@arm.com,
james.clark@linaro.org, alexander.shishkin@linux.intel.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, coresight@lists.linaro.org,
Roosen Henri
On Wed, Nov 25, 2026 at 06:56:06AM +0000, Kepplinger-Novakovic Martin wrote:
...
> The 2 hangs differ only in 1 line! The last line here "dcss"
> was only printed in 1 of the 2. Other than that, they are identical up to the
> return of drm_display_helper_module_init:
>
> [ 7.328547] calling arm_smmu_init+0x0/0x6c @ 1
> [ 7.328935] initcall arm_smmu_init+0x0/0x6c returned 0 after 377 usecs
> [ 7.328948] calling arm_smmu_driver_init+0x0/0x2c @ 1
> [ 7.329065] initcall arm_smmu_driver_init+0x0/0x2c returned 0 after 108 usecs
> [ 7.329077] calling drm_core_init+0x0/0xbc @ 1
> [ 7.329131] initcall drm_core_init+0x0/0xbc returned 0 after 42 usecs
> [ 7.329143] calling drm_display_helper_module_init+0x0/0x8 @ 1
> [ 7.329155] initcall drm_display_helper_module_init+0x0/0x8 returned 0 after 0 usecs
> [ 7.329167] calling dcss_platform_driver_init+0x0/0x38 @ 1
CoreSight initialization appears to have completed. One possibility is
that runtime PM then disabled a clock or power domain that a later
driver needs.
Seems to me, dcss_platform_driver_init() is suspicious. If it is
dependent on clocks used by CoreSight, this can be the cause.
> > Could you confirm what exactly CoreSight modules have been enabled?
>
> of course:
>
> CONFIG_CORESIGHT=y
> CONFIG_CORESIGHT_LINKS_AND_SINKS=y
> CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y
> CONFIG_CORESIGHT_SOURCE_ETM4X=y
Thanks, that matches the logs.
> > As separate diagnostic tests, could you try clk_ignore_unused and
> > nohlt, one at a time, to see whether unused-clock disabling or
> > CPU idle affects reproduction?
>
> I'll do that as a follow up later.
AI reminds on clk_ignore_unused: "if dcss_platform_driver_init() itself
hangs, the kernel never reaches the clock cleanup. Runtime PM can
disable a clock before that point. I’d first check whether the DCSS
probe reaches its first write to DCSS_BLKCTL_CONTROL0 and whether the
required clocks are enabled at that point." It makes sense to me.
Thanks,
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-25 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 11:10 [BUG] coresight: during reboot-loop-test, boot hangs during 1st us Kepplinger-Novakovic Martin
2026-11-19 14:49 ` Leo Yan
[not found] ` <d1ca1f8533228923a400a22ce91a870f8a92369f.camel@ginzinger.com>
2026-11-25 10:00 ` Leo Yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox