Skip to contentSkip to conversation

pull request: linux-firmware: Create MediaTek MT8188 SCP firmware

PATCH In review Moudy Ho 3 participants 4 messages Mar 19, 2025 Arm MediaTek

lore
Share & tools
lore

Moudy Ho

author
#0 lore raw

The following changes since commit 588505068c48fe07b1cfa32c5f3acd4395ec9482:

Merge branch 'copy-firmware' into 'main' (2025-03-18 00:45:21 +0000)

are available in the Git repository at:

https://github.com/MoudyHo/linux_fw_scp v27748

for you to fetch changes up to a5932c0dc930fa54bbbe2360d1eca5f87b2db8bc:

mediatek: Add MT8188 SCP firmware (2025-03-19 14:50:24 +0800)

----------------------------------------------------------------
Moudy Ho (1):
mediatek: Add MT8188 SCP firmware

 WHENCE                  |   2 ++
 mediatek/mt8188/scp.img | Bin 0 -> 636548 bytes
 2 files changed, 2 insertions(+)
 create mode 100644 mediatek/mt8188/scp.img
author
#1 lore raw

PATCH 1/1 mediatek: Add MT8188 SCP firmware

System Control Processor is an RISC-V processor in MediaTek MT8188 SoC. It supports vedio encode/decode, MDP and CrOS EC host command.

Internal version: geralt_scp_v2.0.27748+eb0d73d0d
Release version: v2.0.27748

---
 WHENCE                  |   2 ++
 mediatek/mt8188/scp.img | Bin 0 -> 636548 bytes
 2 files changed, 2 insertions(+)
 create mode 100644 mediatek/mt8188/scp.img
WHENCE +2 -0
index 48e28622..c432744d 100644
@@ -5899,6 +5899,8 @@ File: mediatek/mt8192/scp.img
 Version: v2.0.20536
 File: mediatek/mt8195/scp.img
 Version: v2.0.21961
+File: mediatek/mt8188/scp.img
+Version: v2.0.27748
 
 Licence: Redistributable. See LICENCE.mediatek for details.
 
mediatek/mt8188/scp.img new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..67f5d130986380ee1bad55bd31462441efa2a1e6
GIT binary patch
Signature · 1 line
2.45.2
#2 lore raw

Re: [PATCH] mediatek: Add MT8188 SCP firmware

Merged and pushed out.

https://gitlab.com/kernel-firmware/linux-firmware/-/merge_requests/493

In the future, you don't need to send a PR and a patch. One or the other will work.

josh

Quoted 6,680 lines · Moudy Ho

System Control Processor is an RISC-V processor in MediaTek MT8188 SoC. It supports vedio encode/decode, MDP and CrOS EC host command.

Internal version: geralt_scp_v2.0.27748+eb0d73d0d
Release version: v2.0.27748

---
 WHENCE                  |   2 ++
 mediatek/mt8188/scp.img | Bin 0 -> 636548 bytes
 2 files changed, 2 insertions(+)
 create mode 100644 mediatek/mt8188/scp.img
WHENCE +2 -0
index 48e28622..c432744d 100644
@@ -5899,6 +5899,8 @@ File: mediatek/mt8192/scp.img
 Version: v2.0.20536
 File: mediatek/mt8195/scp.img
 Version: v2.0.21961
+File: mediatek/mt8188/scp.img
+Version: v2.0.27748
 
 Licence: Redistributable. See LICENCE.mediatek for details.
 
mediatek/mt8188/scp.img new file binary +0 -1
new file mode 100644
index 0000000000000000000000000000000000000000..67f5d130986380ee1bad55bd31462441efa2a1e6
GIT binary patch
 
--

2.45.2

#3 lore raw

Re: [PATCH] mediatek: Add MT8188 SCP firmware

In reply to Moudy Ho
Quoted 6 lines · Moudy Ho

System Control Processor is an RISC-V processor in MediaTek MT8188 SoC. It supports vedio encode/decode, MDP and CrOS EC host command.

Internal version: geralt_scp_v2.0.27748+eb0d73d0d
Release version: v2.0.27748

Thanks Moudy.

Indeed I've verified this firmware has working MDP for format conversion and stateless video decoding, and that it works with the dual core SCP description. I've tested the series in [1] and [2]. I'll attach results below for completeness' sake.

There's some color differences with some of the formats on the MDP (particularly RGB->YUV), and H.264 decoding doesn't work at all, but otherwise results look good. Glad to see this firmware going upstream.

Thanks,
Nícolas

[1] https://lore.kernel.org/all/[email protected]
[2] https://lore.kernel.org/all/[email protected]/

SCP boot snippet:

  [    2.811141] remoteproc remoteproc0: Booting fw image mediatek/mt8188/scp.img, size 636548
  [    2.812230] platform 10500000.scp: IPI buf addr 0x000cfb40
  [    2.866395] platform 10500000.scp: SCP is ready. FW version geralt_scp_v2.0.27748+eb0d73d0d
  [    2.866395] platform 10500000.scp: creating channel cros-ec-rpmsg addr 0xd
  [    2.867483] remoteproc remoteproc0: remote processor scp is now up

Stateless video decoding:

fluster run -d GStreamer-VP8-V4L2SL-Gst1.0 -ts VP8-TEST-VECTORS
Ran 57/61 tests successfully in 1.856 secs
fluster run -d GStreamer-VP9-V4L2SL-Gst1.0 -ts VP9-TEST-VECTORS
Ran 254/305 tests successfully in 46.863 secs
fluster run -d GStreamer-VP9-V4L2SL-Gst1.0 -ts VP9-TEST-VECTORS-HIGH
Ran 0/6 tests successfully in 2.158 secs
fluster run -d GStreamer-H.264-V4L2SL-Gst1.0 -ts JVT-FR-EXT
Ran 0/69 tests successfully in 115.867 secs
fluster run -d GStreamer-H.264-V4L2SL-Gst1.0 -ts JVT-AVC_V1
Ran 0/135 tests successfully in 286.906 secs
fluster run -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-RExt
Ran 0/49 tests successfully in 21.856 secs
fluster run -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-MV-HEVC
Ran 6/9 tests successfully in 3.129 secs
fluster run -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-HEVC_V1
Ran 142/147 tests successfully in 35.726 secs
fluster run -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-SCC
Ran 0/15 tests successfully in 28.171 secs
fluster run -d GStreamer-AV1-V4L2SL-Gst1.0 -ts CHROMIUM-8bit-AV1-TEST-VECTORS
Ran 11/13 tests successfully in 1.542 secs
fluster run -d GStreamer-AV1-V4L2SL-Gst1.0 -ts CHROMIUM-10bit-AV1-TEST-VECTORS
Ran 22/23 tests successfully in 0.899 secs
fluster run -d GStreamer-AV1-V4L2SL-Gst1.0 -ts AV1-TEST-VECTORS
Ran 237/239 tests successfully in 6.598 secs

Stateless video decoding with single job:

fluster run -j 1 -d GStreamer-VP8-V4L2SL-Gst1.0 -ts VP8-TEST-VECTORS
Ran 61/61 tests successfully in 8.476 secs
fluster run -j 1 -d GStreamer-VP9-V4L2SL-Gst1.0 -ts VP9-TEST-VECTORS
Ran 265/305 tests successfully in 169.501 secs
fluster run -j 1 -d GStreamer-VP9-V4L2SL-Gst1.0 -ts VP9-TEST-VECTORS-HIGH
Ran 1/6 tests successfully in 2.813 secs
fluster run -j 1 -d GStreamer-H.264-V4L2SL-Gst1.0 -ts JVT-FR-EXT
Ran 0/69 tests successfully in 143.806 secs
fluster run -j 1 -d GStreamer-H.264-V4L2SL-Gst1.0 -ts JVT-AVC_V1
Ran 0/135 tests successfully in 244.404 secs
fluster run -j 1 -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-RExt
Ran 2/49 tests successfully in 60.082 secs
fluster run -j 1 -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-MV-HEVC
Ran 6/9 tests successfully in 11.999 secs
fluster run -j 1 -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-HEVC_V1
Ran 142/147 tests successfully in 119.169 secs
fluster run -j 1 -d GStreamer-H.265-V4L2SL-Gst1.0 -ts JCT-VC-SCC
Ran 0/15 tests successfully in 48.755 secs
fluster run -j 1 -d GStreamer-AV1-V4L2SL-Gst1.0 -ts CHROMIUM-8bit-AV1-TEST-VECTORS
Ran 11/13 tests successfully in 6.151 secs
fluster run -j 1 -d GStreamer-AV1-V4L2SL-Gst1.0 -ts CHROMIUM-10bit-AV1-TEST-VECTORS
Ran 22/23 tests successfully in 4.718 secs
fluster run -j 1 -d GStreamer-AV1-V4L2SL-Gst1.0 -ts AV1-TEST-VECTORS
Ran 237/239 tests successfully in 45.509 secs

MDP format conversion and comparison to reference using avvideocompare:

Command used:

    gst-launch-1.0 videotestsrc num-buffers=1 ! video/x-raw,framerate=30/1,width=1920,height=1080,format=ARGB ! videoconvert ! tee name=t \
      t. ! queue ! videoconvert ! video/x-raw,framerate=30/1,width="$W_IN",height="$H_IN",format="$FORMAT_IN" ! v4l2convert ! video/x-raw,framerate=30/1,width="$W_OUT",height="$H_OUT",format="$FORMAT_OUT" ! videoconvert ! video/x-raw,framerate=30/1,width=1920,height=1080,format=ARGB ! cmp. \
      t. ! queue ! cmp. \
      avvideocompare name=cmp stats-file=mdp-stats.txt ! videoconvert ! pngenc ! filesink location=mdp-output-$FORMAT_IN-${W_IN}x$H_IN-$FORMAT_OUT-${W_OUT}x$H_OUT.png >/dev/null

Results:

    mdp-output-RGB-1920x1080-RGB-1920x1080.png
    n:1 R:1.000000 G:1.000000 B:1.000000 All:1.000000 (inf)
    mdp-output-RGB-1920x1080-BGR-1920x1080.png
    n:1 R:0.711601 G:0.999968 B:0.665514 All:0.792361 (6.826908)
    mdp-output-RGB-1920x1080-GRAY8-1920x1080.png
    n:1 R:0.523243 G:0.623202 B:0.537468 All:0.561304 (3.578367)
    mdp-output-RGB-1920x1080-RGB16-1920x1080.png
    n:1 R:0.999621 G:0.999665 B:0.999600 All:0.999629 (34.303583)
    mdp-output-RGB-1920x1080-BGRA-1920x1080.png
    n:1 R:0.711601 G:0.999968 B:0.665514 All:0.792361 (6.826908)
    mdp-output-RGB-1920x1080-ARGB-1920x1080.png
    n:1 R:0.711601 G:0.999968 B:0.665514 All:0.792361 (6.826908)
    mdp-output-RGB-1920x1080-UYVY-1920x1080.png
    n:1 R:0.976468 G:0.775003 B:0.976679 All:0.909383 (10.427914)
    mdp-output-RGB-1920x1080-YUY2-1920x1080.png
    n:1 R:0.976468 G:0.775003 B:0.976679 All:0.909383 (10.427914)
    mdp-output-RGB-1920x1080-YVYU-1920x1080.png
    n:1 R:0.976468 G:0.775003 B:0.976679 All:0.909383 (10.427914)
    mdp-output-RGB-1920x1080-Y42B-1920x1080.png
    n:1 R:0.976468 G:0.775003 B:0.976679 All:0.909383 (10.427914)
    mdp-output-RGB-1920x1080-I420-1920x1080.png
    n:1 R:0.978219 G:0.775121 B:0.977282 All:0.910207 (10.467595)
    mdp-output-RGB-1920x1080-YV12-1920x1080.png
    n:1 R:0.978219 G:0.775121 B:0.977282 All:0.910207 (10.467595)
    mdp-output-RGB-1920x1080-NV12-1920x1080.png
    n:1 R:0.971726 G:0.773995 B:0.972451 All:0.906057 (10.271370)
    mdp-output-RGB-1920x1080-NV21-1920x1080.png
    n:1 R:0.971726 G:0.773995 B:0.972451 All:0.906057 (10.271370)
    mdp-output-RGB-1920x1080-NV16-1920x1080.png
    n:1 R:0.976468 G:0.775003 B:0.976679 All:0.909383 (10.427914)
    mdp-output-RGB-1920x1080-NV61-1920x1080.png
    n:1 R:0.976468 G:0.775003 B:0.976679 All:0.909383 (10.427914)
    mdp-output-YVYU-1920x1080-YVYU-1920x1080.png
    n:1 R:0.987354 G:0.989508 B:0.988062 All:0.988308 (19.321067)
    mdp-output-YVYU-1920x1080-RGB-1920x1080.png
    n:1 R:0.928199 G:0.993958 B:0.844533 All:0.922230 (11.091892)
    mdp-output-YVYU-1920x1080-GRAY8-1920x1080.png
    n:1 R:0.448041 G:0.540839 B:0.474512 All:0.487797 (2.905581)
    mdp-output-YVYU-1920x1080-RGB16-1920x1080.png
    n:1 R:0.997089 G:0.993692 B:0.996848 All:0.995876 (23.847107)
    mdp-output-YVYU-1920x1080-BGR-1920x1080.png
    n:1 R:0.928199 G:0.993958 B:0.844533 All:0.922230 (11.091892)
    mdp-output-YVYU-1920x1080-BGRA-1920x1080.png
    n:1 R:0.928199 G:0.993958 B:0.844533 All:0.922230 (11.091892)
    mdp-output-YVYU-1920x1080-ARGB-1920x1080.png
    n:1 R:0.928199 G:0.993958 B:0.844533 All:0.922230 (11.091892)
    mdp-output-YVYU-1920x1080-UYVY-1920x1080.png
    n:1 R:0.991598 G:0.642711 B:0.991576 All:0.875295 (9.041151)
    mdp-output-YVYU-1920x1080-YUY2-1920x1080.png
    n:1 R:0.991598 G:0.642711 B:0.991576 All:0.875295 (9.041151)
    mdp-output-YVYU-1920x1080-YVYU-1920x1080.png
    n:1 R:0.987354 G:0.989508 B:0.988062 All:0.988308 (19.321067)
    mdp-output-YVYU-1920x1080-Y42B-1920x1080.png
    n:1 R:0.991598 G:0.642711 B:0.991576 All:0.875295 (9.041151)
    mdp-output-YVYU-1920x1080-I420-1920x1080.png
    n:1 R:0.997424 G:0.644937 B:0.996892 All:0.879751 (9.199194)
    mdp-output-YVYU-1920x1080-YV12-1920x1080.png
    n:1 R:0.997424 G:0.644937 B:0.996892 All:0.879751 (9.199194)
    mdp-output-YVYU-1920x1080-NV12-1920x1080.png
    n:1 R:0.984776 G:0.641210 B:0.985780 All:0.870588 (8.880271)
    mdp-output-YVYU-1920x1080-NV21-1920x1080.png
    n:1 R:0.984776 G:0.641210 B:0.985780 All:0.870588 (8.880271)
    mdp-output-YVYU-1920x1080-NV16-1920x1080.png
    n:1 R:0.991598 G:0.642711 B:0.991576 All:0.875295 (9.041151)
    mdp-output-YVYU-1920x1080-NV61-1920x1080.png
    n:1 R:0.991598 G:0.642711 B:0.991576 All:0.875295 (9.041151)