From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Peng Fan <peng.fan@oss.nxp.com>
Cc: Alexander Stein <alexander.stein@ew.tq-group.com>,
Sudeep Holla <sudeep.holla@kernel.org>,
Cristian Marussi <cristian.marussi@arm.com>,
Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
linux-arm-kernel@lists.infradead.org, arm-scmi@vger.kernel.org,
imx@lists.linux.dev, linux-kernel@vger.kernel.org,
Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH 2/2] firmware: imx: sm-misc: Print boot/shutdown reasons
Date: Thu, 5 Mar 2026 11:48:31 +0100 [thread overview]
Message-ID: <aalff2CtcIeln0NG@pengutronix.de> (raw)
In-Reply-To: <aalZV981HAneFWiC@shlinux89>
Hi all,
On Thu, Mar 05, 2026 at 06:22:15PM +0800, Peng Fan wrote:
> Hi Alexander,
>
> Thanks for giving a look.
>
> On Thu, Mar 05, 2026 at 08:44:26AM +0100, Alexander Stein wrote:
> >Hi,
> >
> >Am Donnerstag, 5. März 2026, 02:56:45 CET schrieb Peng Fan (OSS):
> >> From: Peng Fan <peng.fan@nxp.com>
> >>
> >> Add reset reason string table for i.MX95 and introduce a helper
> >> (scmi_imx_misc_get_reason) to query and print both system and LM
> >> (Logical Machine) reset reasons via the SCMI MISC protocol.
> >>
> >> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> >> ---
> [...]
> >> + if (boot.valid)
> >> + dev_info(&sdev->dev, "%s Boot reason: %s, origin: %d, errid: %d\n",
> >> + system ? "SYS" : "LM", rst[boot.reason],
> >> + boot.orig_valid ? boot.origin : -1,
> >> + boot.err_valid ? boot.errid : -1);
> >> + if (shutdown.valid)
> >> + dev_info(&sdev->dev, "%s shutdown reason: %s, origin: %d, errid: %d\n",
> >> + system ? "SYS" : "LM", rst[shutdown.reason],
> >> + shutdown.orig_valid ? shutdown.origin : -1,
> >> + shutdown.err_valid ? shutdown.errid : -1);
> >
> >Is there a way to query this from userspace programs instead of printing into kernel log?
>
> I not add sysfs or debugfs to get the information in this patchset, since our
> customer only want the information could be shown in kernel boot log.
>
> But I could add also sysfs interface to allow userspace get the information if
> you need this feature.
I started to working on corresponding framework:
https://lore.kernel.org/all/20250618120255.3141862-1-o.rempel@pengutronix.de/
but it is stalled due to devicetree decisions. I wont to respin the
discussion tomorrow
Best Regards,
Oleksij
next prev parent reply other threads:[~2026-03-05 10:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 1:56 [PATCH 0/2] firmware: arm_scmi: imx: Support getting reset reason Peng Fan (OSS)
2026-03-05 1:56 ` [PATCH 1/2] firmware: arm_scmi: imx: Support getting reset reason of MISC protocol Peng Fan (OSS)
2026-03-05 6:52 ` Daniel Baluta
2026-03-05 10:18 ` Peng Fan
2026-03-18 15:25 ` Sudeep Holla
2026-03-18 16:09 ` Daniel Baluta
2026-03-05 1:56 ` [PATCH 2/2] firmware: imx: sm-misc: Print boot/shutdown reasons Peng Fan (OSS)
2026-03-05 7:44 ` Alexander Stein
2026-03-05 10:22 ` Peng Fan
2026-03-05 10:48 ` Oleksij Rempel [this message]
2026-03-10 5:10 ` Peng Fan
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=aalff2CtcIeln0NG@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=Frank.Li@nxp.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=arm-scmi@vger.kernel.org \
--cc=cristian.marussi@arm.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=peng.fan@oss.nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=sudeep.holla@kernel.org \
/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