From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Alexey Romanov <avromanov@sberdevices.ru>,
narmstrong@baylibre.com, trini@konsulko.com, sjg@chromium.org
Cc: u-boot-amlogic@groups.io, u-boot@lists.denx.de,
kernel@sberdevices.ru, Alexey Romanov <avromanov@sberdevices.ru>
Subject: Re: [PATCH v4 3/5] doc/usage: cmd: documentation for meson/sm command
Date: Tue, 10 Jan 2023 14:42:05 +0100 [thread overview]
Message-ID: <878ria8q1e.fsf@baylibre.com> (raw)
In-Reply-To: <20230110105650.54580-4-avromanov@sberdevices.ru>
On Tue, Jan 10, 2023 at 13:56, Alexey Romanov <avromanov@sberdevices.ru> wrote:
> Added docs for Meson Security Monitor command.
>
> Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
> ---
> doc/usage/cmd/sm.rst | 44 ++++++++++++++++++++++++++++++++++++++++++++
> doc/usage/index.rst | 1 +
> 2 files changed, 45 insertions(+)
> create mode 100644 doc/usage/cmd/sm.rst
>
> diff --git a/doc/usage/cmd/sm.rst b/doc/usage/cmd/sm.rst
> new file mode 100644
> index 00000000000..c41227f4b3b
> --- /dev/null
> +++ b/doc/usage/cmd/sm.rst
> @@ -0,0 +1,44 @@
> +.. SPDX-License-Identifier: GPL-2.0+:
> +
> +sm command
> +==========
> +
> +Synopis
> +-------
> +
> +::
> +
> + sm serial <address>
> + sm reboot_reason [name]
> + sm efuseread <offset> <size> <address>
> + sm efusewrite <offset> <size> <address>
> + sm efusedump <offset> <size>
> +
> +Description
> +-----------
> +
> +The sm command is used to request services from the secure monitor. User
> +can call secure monitor to request special TEE function, for example chip
> +serial number info, reboot reason, etc.
> +
> +sm serial
> + Retrieve chip unique serial number from sm and write it to memory on
> + appropriate address.
> +
> +sm reboot_reason
> + Print reboot reason to the console, if parameter [name] isn't specified.
> + If parameter specified, set reboot reason string to environment variable
> + with this name.
> +
> +sm efuseread
> + Read <size> bytes starting from <offset> from efuse memory bank and write
> + result to the address <address>.
> +
> +sm efusewrite
> + Write into efuse memory bank, starting from <offset>, the <size> bytes
> + of data, located at address <address>.
> +
> +Configuration
> +-------------
> +
> +To use the sm command you must specify CONFIG_CMD_MESON=y
> diff --git a/doc/usage/index.rst b/doc/usage/index.rst
> index 770418434ad..e34b98dae24 100644
> --- a/doc/usage/index.rst
> +++ b/doc/usage/index.rst
> @@ -61,6 +61,7 @@ Shell commands
> cmd/true
> cmd/ums
> cmd/wdt
> + cmd/sm
>
> Booting OS
> ----------
> --
> 2.25.1
next prev parent reply other threads:[~2023-01-10 13:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-10 10:56 [PATCH v4 0/5] arch-meson: introduce efusedump command Alexey Romanov
2023-01-10 10:56 ` [PATCH v4 1/5] asm/arch-meson: add missing meson_sm_write_efuse signature Alexey Romanov
2023-01-10 13:40 ` Mattijs Korpershoek
2023-01-10 10:56 ` [PATCH v4 2/5] arm/mach-meson: move smc commands in cmd/meson Alexey Romanov
2023-01-10 10:56 ` [PATCH v4 3/5] doc/usage: cmd: documentation for meson/sm command Alexey Romanov
2023-01-10 13:42 ` Mattijs Korpershoek [this message]
2023-01-10 10:56 ` [PATCH v4 4/5] cmd/arm: meson: sm: introduce efusedump command Alexey Romanov
2023-01-10 10:56 ` [PATCH v4 5/5] doc/usage: cmd: sm: documentation efusedump cmd Alexey Romanov
2023-01-10 13:42 ` Mattijs Korpershoek
2023-01-10 14:27 ` [PATCH v4 0/5] arch-meson: introduce efusedump command Neil Armstrong
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=878ria8q1e.fsf@baylibre.com \
--to=mkorpershoek@baylibre.com \
--cc=avromanov@sberdevices.ru \
--cc=kernel@sberdevices.ru \
--cc=narmstrong@baylibre.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot-amlogic@groups.io \
--cc=u-boot@lists.denx.de \
/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