From: Zhentao Guo <zhentao.guo@amlogic.com>
To: Ferass El Hafidi <funderscore@postmarketos.org>,
linux-amlogic@lists.infradead.org,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v6 0/6] Add Amlogic stateless H.264 video decoder for S4
Date: Mon, 27 Jul 2026 10:43:33 +0800 [thread overview]
Message-ID: <f00f7e3a-68b6-441a-af6f-ceccd2053080@amlogic.com> (raw)
In-Reply-To: <tiocog.2cefvi325on5y@postmarketos.org>
Hi Feras,
>
> Hi Zhentao,
>
> On Fri, 24 Jul 2026 07:04, Zhentao Guo via B4 Relay
> <devnull+zhentao.guo.amlogic.com@kernel.org> wrote:
>> Introduce initial driver support for Amlogic's new video acceleration
>> hardware architecture, designed for video stream decoding.
>>
>> Compared to the current Amlogic video decoder hardware architecture,
>> this new implementation eliminates the Esparser hardware component,
>> enabling direct vb2 buffer input. The driver is designed to support
>> the V4L2 M2M stateless decoder API. The initial phase includes support
>> for H.264 decoding on Amlogic S805X2 platform.
>>
>> The driver needs to work alongside with a signed firmware. The
>> loading process of
>> the signed fw is as follow.
>
> Is the firmware still signed on devices that do not have secure boot
> enabled? (which means none of their boot chain is signed)
> Do the signing checks take place in BL32 or elsewhere?
The firmware mentioned is not enabled in the chips without the secure
boot . In other words, this policy is not effective for the legacy
platform like SM1/G12.
Yes, the signing check process happens in BL32.
>
>> Stage1: Decypt and decompose the full firmware package when the
>> driver is probed.
>> +---------------------+ +---------------------+
>> | Decoder Driver | | TEE Shared Memory |
>> | (Kernel Space) | | |
>> | +---------------+ | | +---------------+ |
>> | | video_ucode | | | | firmware | |
>> | | .bin | | Copy payload to SHM | | payload | |
>> | | (from fs) | | ---------------------> | | (Secure RAM) | |
>> | +---------------+ | | +---------------+ |
>> +---------------------+ +----------+----------+
>> |
>> | PTA
>> Invocation
>> v
>> +-------------------------------+
>> | BL32 |
>> | +-------------------------+ |
>> | | Decrypt Firmware | |
>> | +-----------+-------------+ |
>> | | |
>> | v |
>> | +-------------------------+ |
>> | | Decompose the full | |
>> | | firmware pacakge | |
>> | +-----------+-------------+ |
>> | | |
>> | v |
>> | +-------------------------+ |
>> | | Store decomposed .bin | |
>> | | in Secure Memory | |
>> | +-------------------------+ |
>> +-------------------------------+
>>
>
> Is BL32 strictly needed to load that firmware? I know on at least
> older SoCs
> (sm1 and older) BL32 is not required for booting and amlogic-based
> SBCs are
> often used without BL32. So once this gets ported to older SoCs, would
> it have a hard-dependency on BL32? And if yes, can upstream Arm Trusted
> Firmware-A BL32 be used instead of the Amlogic blob?
At least on S4 and newer SoC platforms, loading this firmware strictly
requires the closed-source BL32 provided by Amlogic. If this solution is
ported to older SoCs, it will also have a dependency on BL32.
The upstream Arm Trusted Firmware-A BL32 cannot be used either, as it
lacks the capability to verify firmware signatures.
I understand your concerns, but this is primarily for the security of
encrypted data. Amlogic SoCs do not have a dedicated CPU for processing
encrypted data, both encrypted and clear data eventually converge on the
AMRISC micro-core for processing (the firmware mentioned above is what
drives this core). Therefore, we need to encrypt the firmware to prevent
it from being reverse-engineered, which would otherwise lead to the risk
of encrypted data leakage.
>
> Best regards,
> Ferass
Best regards,
Zhentao
next prev parent reply other threads:[~2026-07-27 2:44 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 7:04 [PATCH v6 0/6] Add Amlogic stateless H.264 video decoder for S4 Zhentao Guo via B4 Relay
2026-07-24 7:04 ` [PATCH v6 1/6] firmware: meson: sm: Add video firmware loading SMC call Zhentao Guo via B4 Relay
2026-07-25 7:13 ` Piotr Oniszczuk
2026-07-27 2:57 ` Zhentao Guo
2026-07-24 7:04 ` [PATCH v6 2/6] firmware: meson: sm: video firmware loading via secure monitor Zhentao Guo via B4 Relay
2026-07-24 10:22 ` Ferass El Hafidi
2026-07-24 7:04 ` [PATCH v6 3/6] media: dt-bindings: Add Amlogic V4L2 video decoder Zhentao Guo via B4 Relay
2026-07-27 6:23 ` Krzysztof Kozlowski
2026-07-27 6:32 ` Zhentao Guo
2026-07-24 7:04 ` [PATCH v6 5/6] arm64: dts: amlogic: Add video decoder driver support for S4 SOCs Zhentao Guo via B4 Relay
2026-07-24 7:04 ` [PATCH v6 6/6] arm64: defconfig: Enable CONFIG_VIDEO_AMLOGIC_VDEC Zhentao Guo via B4 Relay
2026-07-27 6:24 ` Krzysztof Kozlowski
2026-07-27 6:26 ` Krzysztof Kozlowski
2026-07-27 6:36 ` Zhentao Guo
2026-07-27 7:02 ` Krzysztof Kozlowski
2026-07-27 7:19 ` Zhentao Guo
2026-07-24 10:13 ` [PATCH v6 0/6] Add Amlogic stateless H.264 video decoder for S4 Ferass El Hafidi
2026-07-27 2:43 ` Zhentao Guo [this message]
[not found] ` <20260724-b4-s4-vdec-upstream-v6-4-6072a7ee7428@amlogic.com>
2026-07-27 6:31 ` [PATCH v6 4/6] decoder: Add V4L2 stateless H.264 decoder driver Krzysztof Kozlowski
2026-07-27 7:12 ` Zhentao Guo
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=f00f7e3a-68b6-441a-af6f-ceccd2053080@amlogic.com \
--to=zhentao.guo@amlogic.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=funderscore@postmarketos.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=mchehab@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@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