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

From: Kepplinger-Novakovic Martin

Date: Tue Dec 01 2026 - 02:15:52 EST


Am Mittwoch, dem 25.11.2026 um 10:00 +0000 schrieb Leo Yan:
> 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

Hi Leo,

The most interesting part first: with nohlt it reboots indefinitely again! (30000+ over the
last few days)

About DCSS: I'm on imx8mp where there is no dcss and the calls only come from the drivercore
because DCSS is configured-in (which is wrong but should not matter). I verified that it doesn't
reach dcss_clk_enable and write and so on.

Since the previous email with attachments didn't reach the list, here's the last few lines from a previous
hang. That printed 2 lines more than the metioned hang below:

[ 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

I saw the same hang when adding clk_ignore_unused to the parameters:

[ 7.328587] calling arm_smmu_init+0x0/0x6c @ 1
[ 7.328953] initcall arm_smmu_init+0x0/0x6c returned 0 after 354 usecs
[ 7.328963] calling arm_smmu_driver_init+0x0/0x2c @ 1
[ 7.329077] initcall arm_smmu_driver_init+0x0/0x2c returned 0 after 102 usecs
[ 7.329087] calling drm_core_init+0x0/0xbc @ 1
[ 7.329156] initcall drm_core_init+0x0/0xbc returned 0 after 57 usecs
[ 7.329167] calling drm_display_helper_module_init+0x0/0x8 @ 1

The whole dmesg print is basically exactly the same, it only stops at either calling
or returning of drm_display_helper_module_init, or calling dcss_platform_driver_init.

My feeling is that it might be misleading to focus on the exact line it's hanging here
but I have no idea.

Given that "nohlt" fixes the issue, do you have any changes to test that would
make sense to you? Can anybody reproduce this?

thank you very much for talking the time,

martin