From patchwork Tue Aug 20 12:56:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AC63C531DF for ; Tue, 20 Aug 2024 12:56:51 +0000 (UTC) Received: from smtp-1908.mail.infomaniak.ch (smtp-1908.mail.infomaniak.ch [185.125.25.8]) by mx.groups.io with SMTP id smtpd.web11.18664.1724158610576076212 for ; Tue, 20 Aug 2024 05:56:50 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 185.125.25.8, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cJ4K1Vz4tQ; Tue, 20 Aug 2024 14:56:48 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cJ2LGpzvXr; Tue, 20 Aug 2024 14:56:48 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:24 +0200 Subject: [meta-rockchip PATCH 1/9] gstreamer-plugins-bad: build v4l2codecs if SoC has a VPU MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-1-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:56:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/525 From: Quentin Schulz v4l2codecs is the gstreamer plugin for V4L2 stateless video hardware decoding. The Rockchip SoCs that have a VPU all seems to be based on Hantro, a stateless encoding/decoding VPU. Therefore, let's enable VPU decoding in Gstreamer whenever possible, when the SoC supports it. Signed-off-by: Quentin Schulz --- recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend new file mode 100644 index 0000000..a9f40eb --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend @@ -0,0 +1 @@ +PACKAGECONFIG:append:rockchip = "${@' v4l2codecs' if bb.utils.to_boolean(d.getVar('HAS_HANTRO'), False) else ''}" From patchwork Tue Aug 20 12:56:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48002 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CB15C5321E for ; Tue, 20 Aug 2024 12:56:51 +0000 (UTC) Received: from smtp-1908.mail.infomaniak.ch (smtp-1908.mail.infomaniak.ch [185.125.25.8]) by mx.groups.io with SMTP id smtpd.web10.18517.1724158610456373777 for ; Tue, 20 Aug 2024 05:56:50 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 185.125.25.8, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cJ6H2szFPD; Tue, 20 Aug 2024 14:56:48 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cJ4FNBzvG9; Tue, 20 Aug 2024 14:56:48 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:25 +0200 Subject: [meta-rockchip PATCH 2/9] px30: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-2-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:56:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/524 From: Quentin Schulz PX30 has a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was tested with weston on a PX30 Ringneck with Haikou+Haikou Video Demo adapter: $ gst-launch-1.0 filesrc location=$FILE ! parsebin ! v4l2slh264dec ! waylandsink with FILE storing the path to any h264 file, e.g. https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_h264.mov https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov Needed packages are: - weston - gstreamer1.0-plugins-bad (for waylandsink and v4l2slh264dec) - gstreamer1.0-plugins-base (for parsebin) CPU load was ~3% according to top for both 720p and 1080p file (see above), a few frames are dropped every other second for 1080p but otherwise smooth. Signed-off-by: Quentin Schulz --- conf/machine/include/px30.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/px30.inc b/conf/machine/include/px30.inc index d78409e..ef325c3 100644 --- a/conf/machine/include/px30.inc +++ b/conf/machine/include/px30.inc @@ -19,3 +19,5 @@ TFA_BUILD_TARGET = "bl31" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000" + +HAS_HANTRO = "1" From patchwork Tue Aug 20 12:56:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CCDCC3DA4A for ; Tue, 20 Aug 2024 12:56:51 +0000 (UTC) Received: from smtp-bc0f.mail.infomaniak.ch (smtp-bc0f.mail.infomaniak.ch [45.157.188.15]) by mx.groups.io with SMTP id smtpd.web11.18663.1724158610421466717 for ; Tue, 20 Aug 2024 05:56:51 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 45.157.188.15, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cK11Bkzlv9; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cJ6Ck6ztBM; Tue, 20 Aug 2024 14:56:48 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:26 +0200 Subject: [meta-rockchip PATCH 3/9] rk3399: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-3-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:56:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/526 From: Quentin Schulz RK3399 has a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was tested with weston on an RK3399 Puma with Haikou: $ gst-launch-1.0 filesrc location=$FILE ! parsebin ! v4l2slh264dec ! waylandsink with FILE storing the path to any h264 file, e.g. https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov https://download.blender.org/demo/movies/BBB/bbb_sunflower_2160p_30fps_normal.mp4.zip Needed packages are: - weston - gstreamer1.0-plugins-bad (for waylandsink and v4l2codecs) - gstreamer1.0-plugins-base (for parsebin) CPU load was ~1-3% according to top for the files above. Signed-off-by: Quentin Schulz --- conf/machine/include/rk3399.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/rk3399.inc b/conf/machine/include/rk3399.inc index 47f0560..8650d0a 100644 --- a/conf/machine/include/rk3399.inc +++ b/conf/machine/include/rk3399.inc @@ -20,3 +20,5 @@ TFA_BUILD_TARGET = "bl31" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000" + +HAS_HANTRO = "1" From patchwork Tue Aug 20 12:56:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59245C531DF for ; Tue, 20 Aug 2024 12:57:01 +0000 (UTC) Received: from smtp-8fac.mail.infomaniak.ch (smtp-8fac.mail.infomaniak.ch [83.166.143.172]) by mx.groups.io with SMTP id smtpd.web10.18518.1724158611057769765 for ; Tue, 20 Aug 2024 05:56:51 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 83.166.143.172, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cK3hvgzDfn; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cK0x0VzstR; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:27 +0200 Subject: [meta-rockchip PATCH 4/9] rk3066: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-4-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:57:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/527 From: Quentin Schulz RK3066 has a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was not tested. Signed-off-by: Quentin Schulz --- conf/machine/include/rk3066.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/rk3066.inc b/conf/machine/include/rk3066.inc index 026d5b5..d865fec 100644 --- a/conf/machine/include/rk3066.inc +++ b/conf/machine/include/rk3066.inc @@ -12,3 +12,5 @@ SERIAL_CONSOLES = "115200;ttyS2" KBUILD_DEFCONFIG = "multi_v7_defconfig" KERNEL_FEATURES:append:rk3066 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" KERNEL_IMAGETYPE ?= "zImage" + +HAS_HANTRO = "1" From patchwork Tue Aug 20 12:56:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48009 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AB20C5472D for ; Tue, 20 Aug 2024 12:57:01 +0000 (UTC) Received: from smtp-42ab.mail.infomaniak.ch (smtp-42ab.mail.infomaniak.ch [84.16.66.171]) by mx.groups.io with SMTP id smtpd.web11.18665.1724158611240836170 for ; Tue, 20 Aug 2024 05:56:51 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 84.16.66.171, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cK5M7Zzjvc; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cK3HGpzw2s; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:28 +0200 Subject: [meta-rockchip PATCH 5/9] rk3188: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-5-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:57:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/528 From: Quentin Schulz RK3188 has a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was not tested. Signed-off-by: Quentin Schulz --- conf/machine/include/rk3188.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/rk3188.inc b/conf/machine/include/rk3188.inc index 0120e2f..9593c6d 100644 --- a/conf/machine/include/rk3188.inc +++ b/conf/machine/include/rk3188.inc @@ -12,3 +12,5 @@ SERIAL_CONSOLES = "115200;ttyFIQ0" KBUILD_DEFCONFIG = "multi_v7_defconfig" KERNEL_FEATURES:append:rk3188 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" KERNEL_IMAGETYPE ?= "zImage" + +HAS_HANTRO = "1" From patchwork Tue Aug 20 12:56:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48008 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6713EC5472C for ; Tue, 20 Aug 2024 12:57:01 +0000 (UTC) Received: from smtp-42a8.mail.infomaniak.ch (smtp-42a8.mail.infomaniak.ch [84.16.66.168]) by mx.groups.io with SMTP id smtpd.web11.18666.1724158611580560031 for ; Tue, 20 Aug 2024 05:56:51 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 84.16.66.168, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cL0BXYzHZh; Tue, 20 Aug 2024 14:56:50 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cK5Dv1ztqC; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:29 +0200 Subject: [meta-rockchip PATCH 6/9] rk3288: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-6-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:57:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/529 From: Quentin Schulz RK3288 has a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was not tested. Signed-off-by: Quentin Schulz --- conf/machine/include/rk3288.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/rk3288.inc b/conf/machine/include/rk3288.inc index 684e864..8fc3a06 100644 --- a/conf/machine/include/rk3288.inc +++ b/conf/machine/include/rk3288.inc @@ -14,3 +14,5 @@ KERNEL_FEATURES:append:rk3288 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" KERNEL_IMAGETYPE ?= "zImage" UBOOT_SUFFIX ?= "bin" + +HAS_HANTRO = "1" From patchwork Tue Aug 20 12:56:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66EAEC5321E for ; Tue, 20 Aug 2024 12:57:01 +0000 (UTC) Received: from smtp-42ad.mail.infomaniak.ch (smtp-42ad.mail.infomaniak.ch [84.16.66.173]) by mx.groups.io with SMTP id smtpd.web11.18667.1724158611973747579 for ; Tue, 20 Aug 2024 05:56:52 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 84.16.66.173, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cL3hBDzhFM; Tue, 20 Aug 2024 14:56:50 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cL0DCMzvt9; Tue, 20 Aug 2024 14:56:49 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:30 +0200 Subject: [meta-rockchip PATCH 7/9] rk3328: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-7-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:57:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/530 From: Quentin Schulz RK3328 has a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was not tested. Signed-off-by: Quentin Schulz --- conf/machine/include/rk3328.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/rk3328.inc b/conf/machine/include/rk3328.inc index 4ecd681..24d9ff2 100644 --- a/conf/machine/include/rk3328.inc +++ b/conf/machine/include/rk3328.inc @@ -20,3 +20,5 @@ TFA_BUILD_TARGET = "bl31" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000" + +HAS_HANTRO = "1" From patchwork Tue Aug 20 12:56:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48006 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 607AFC531DC for ; Tue, 20 Aug 2024 12:57:01 +0000 (UTC) Received: from smtp-1908.mail.infomaniak.ch (smtp-1908.mail.infomaniak.ch [185.125.25.8]) by mx.groups.io with SMTP id smtpd.web11.18668.1724158612185931879 for ; Tue, 20 Aug 2024 05:56:52 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 185.125.25.8, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cL5jK1zFCB; Tue, 20 Aug 2024 14:56:50 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cL3dsYzt5N; Tue, 20 Aug 2024 14:56:50 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:31 +0200 Subject: [meta-rockchip PATCH 8/9] rk356x: enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-8-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:57:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/531 From: Quentin Schulz RK3566/RK3568 have a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was not tested. Signed-off-by: Quentin Schulz --- conf/machine/include/rk3566.inc | 2 ++ conf/machine/include/rk3568.inc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/conf/machine/include/rk3566.inc b/conf/machine/include/rk3566.inc index 586d688..c09c7e0 100644 --- a/conf/machine/include/rk3566.inc +++ b/conf/machine/include/rk3566.inc @@ -19,3 +19,5 @@ PREFERRED_PROVIDER_optee-os = "rockchip-rkbin" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000" + +HAS_HANTRO = "1" diff --git a/conf/machine/include/rk3568.inc b/conf/machine/include/rk3568.inc index 1da212a..2a66432 100644 --- a/conf/machine/include/rk3568.inc +++ b/conf/machine/include/rk3568.inc @@ -19,3 +19,5 @@ PREFERRED_PROVIDER_optee-os = "rockchip-rkbin" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000" + +HAS_HANTRO = "1" From patchwork Tue Aug 20 12:56:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 48004 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59207C3DA4A for ; Tue, 20 Aug 2024 12:57:01 +0000 (UTC) Received: from smtp-42ab.mail.infomaniak.ch (smtp-42ab.mail.infomaniak.ch [84.16.66.171]) by mx.groups.io with SMTP id smtpd.web11.18670.1724158612609580320 for ; Tue, 20 Aug 2024 05:56:52 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: 0leil.net, ip: 84.16.66.171, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Wp8cM255qzkLJ; Tue, 20 Aug 2024 14:56:51 +0200 (CEST) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Wp8cL5crszvbW; Tue, 20 Aug 2024 14:56:50 +0200 (CEST) From: Quentin Schulz Date: Tue, 20 Aug 2024 14:56:32 +0200 Subject: [meta-rockchip PATCH 9/9] rk3588(s): enable gstreamer v4l2codecs support MIME-Version: 1.0 Message-Id: <20240820-gst-hantro-v1-9-335c4eaf8e8b@cherry.de> References: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> In-Reply-To: <20240820-gst-hantro-v1-0-335c4eaf8e8b@cherry.de> To: yocto-patches@lists.yoctoproject.org Cc: Quentin Schulz X-Mailer: b4 0.14.0 X-Infomaniak-Routing: alpha List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 20 Aug 2024 12:57:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/532 From: Quentin Schulz RK3588/RK3588s have a Hantro VPU, so let's set HAS_HANTRO so that gstreamer v4l2codecs plugin can be built. This was tested on a RK3588 Tiger with Haikou+Haikou Video Demo adapter - on a downstream v6.6 (upstream-based, not Rockchip BSP-based) with DSI patches - : $ gst-launch-1.0 filesrc location=$FILE ! parsebin ! v4l2slav1dec ! fakesink with FILE storing the path to any AV1 file, e.g. http://download.opencontent.netflix.com.s3.amazonaws.com/AV1/cmaf/spark-8b-59.94fps/spark_606kbps_432p.mp4 https://woolyss.com/f/av1-nosound-chimera.mp4 https://woolyss.com/f/av1-opus-sita.webm Needed packages are: - gstreamer1.0-plugins-bad (for fakesink and v4l2slav1dec) - gstreamer1.0-plugins-base (for parsebin) CPU load was 0% according to top for all of the aforementioned files. For some reason though, waylandsink is very choppy. Combining fpsdisplaysink with fakesink shows a ~60fps when decoding the 432p file, ~24fps for the two others. Note that 10b-depth isn't supported (at least in my setup). Signed-off-by: Quentin Schulz --- conf/machine/include/rk3588s.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/machine/include/rk3588s.inc b/conf/machine/include/rk3588s.inc index cd84461..c96f8f5 100644 --- a/conf/machine/include/rk3588s.inc +++ b/conf/machine/include/rk3588s.inc @@ -18,3 +18,5 @@ PREFERRED_PROVIDER_optee-os = "rockchip-rkbin" UBOOT_SUFFIX ?= "itb" UBOOT_ENTRYPOINT ?= "0x06000000" + +HAS_HANTRO = "1"