Re: [BUG] coresight: during reboot-loop-test, boot hangs during 1st us

From: Leo Yan

Date: Wed Nov 25 2026 - 05:00:58 EST


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