Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Leo Yan <leo.yan@arm.com>
To: Kepplinger-Novakovic Martin <Martin.Kepplinger-Novakovic@ginzinger.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: Wed, 25 Nov 2026 10:00:48 +0000	[thread overview]
Message-ID: <20261125100048.GB7209@e132581.arm.com> (raw)
In-Reply-To: <d1ca1f8533228923a400a22ce91a870f8a92369f.camel@ginzinger.com>

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


      parent reply	other threads:[~2026-11-25 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=20261125100048.GB7209@e132581.arm.com \
    --to=leo.yan@arm.com \
    --cc=Henri.Roosen@ginzinger.com \
    --cc=Martin.Kepplinger-Novakovic@ginzinger.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=coresight@lists.linaro.org \
    --cc=james.clark@linaro.org \
    --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