mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kepplinger-Novakovic Martin <Martin.Kepplinger-Novakovic@ginzinger.com>
To: Leo Yan <leo.yan@arm.com>
Cc: "suzuki.poulose@arm.com" <suzuki.poulose@arm.com>,
	"mike.leach@arm.com" <mike.leach@arm.com>,
	"james.clark@linaro.org" <james.clark@linaro.org>,
	"alexander.shishkin@linux.intel.com"
	<alexander.shishkin@linux.intel.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"coresight@lists.linaro.org" <coresight@lists.linaro.org>,
	Roosen Henri <Henri.Roosen@ginzinger.com>
Subject: Re: [BUG] coresight: during reboot-loop-test, boot hangs during 1st us
Date: Tue, 1 Dec 2026 07:15:35 +0000	[thread overview]
Message-ID: <dfb4856f1ad8b81c4a500a8013947b06c1ed23ae.camel@ginzinger.com> (raw)
In-Reply-To: <20261125100048.GB7209@e132581.arm.com>

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

  reply	other threads:[~2026-12-01  7:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 11:10 Kepplinger-Novakovic Martin
2026-11-19 14:49 ` Leo Yan
2026-11-25  6:56   ` Kepplinger-Novakovic Martin
2026-11-25 10:00     ` Leo Yan
2026-12-01  7:15       ` Kepplinger-Novakovic Martin [this message]
2026-12-01  8:56         ` Leo Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dfb4856f1ad8b81c4a500a8013947b06c1ed23ae.camel@ginzinger.com \
    --to=martin.kepplinger-novakovic@ginzinger.com \
    --cc=Henri.Roosen@ginzinger.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=coresight@lists.linaro.org \
    --cc=james.clark@linaro.org \
    --cc=leo.yan@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.leach@arm.com \
    --cc=suzuki.poulose@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®