From patchwork Thu Dec 2 04:16:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12651685 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B900C433F5 for ; Thu, 2 Dec 2021 04:18:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355376AbhLBEVT (ORCPT ); Wed, 1 Dec 2021 23:21:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355289AbhLBEVD (ORCPT ); Wed, 1 Dec 2021 23:21:03 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9058CC061574; Wed, 1 Dec 2021 20:17:38 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id k21so33790250ioh.4; Wed, 01 Dec 2021 20:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qPKRVwQNVkeF/2oHH9nBkzmtasV/VsF5J8RVzD1HMKo=; b=Aq4IF80sKC/8Nq8jG04N1gWMBtSXqubOSOku8KlTeCFN+5a3qnWSGbAeo8be+KzAM0 lUNnQVW7Du7W7T2UK5JDDltBHd2klfq5rm8LRWj51/wYCA3xGeRFmKp+XKufK6QfoJd3 umg5LLYu8uT5O8g1lu6lRHLFNM8mnDke5hO6Vgc3Km+I1d+Cb0y1dOby0VyEEXUv5HTm 7FlFSnStWTENCIooxmhmseRZ1+kXUPzIjmJCaPoDLIwmmwPD2M718j/Pi3jLN/TH8GX/ K7hP6wpxPI/+lkgVVhjAm1V2EangV9aShZaOGMnJsExHsdq/7IBusxq2Lxu4mbm8AAMT 5Sig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qPKRVwQNVkeF/2oHH9nBkzmtasV/VsF5J8RVzD1HMKo=; b=MmdnUwQlKkZYbevOcYyqUfmQtfO+g5xcVkdIcmmuQXmZUvp8XTx0QWsNkofJFKdxMw dlIX+S2MrszG8nnXQ4HUD9YNd/vN9NNojY4aA0OlcugBWTkFc42LIlwpTlJCZcNadtUk 5xCOnHrbSWO9w4hQCWANI+le8f8JMRne2zQQvHAaJ2rfyrtW9Oa1X6VR5jF54JjPa+DW CrFq92UPWRtmssWbj/+eu5shXd+lGol9dlswsqLqHjAsA/XVuYW2USSa3P7XcJsCvrvZ OFX6gK7fXhsQt0b3cDgoupjqdUgbugN5AFQaSe8nzqWYD0mJOm/58/uAfr+hkvE51c+d MpHA== X-Gm-Message-State: AOAM532e3SIRXGn+Gyv2y86H4WEkJXuj+8CnOITT5fvvFqQl6nFgZgXB sTY4LDweRelAbCIs92Ls6fDubIDqwMYykrsN X-Google-Smtp-Source: ABdhPJxU4grEfANbv0EA6rQMSvRxuU7fvEMYT9BFGz6z7/Gf0+x1CBURE4kpWtALUj5mk0dVs+XXlQ== X-Received: by 2002:a5d:97c3:: with SMTP id k3mr13150301ios.191.1638418657366; Wed, 01 Dec 2021 20:17:37 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:c405:2c26:c2b8:506e]) by smtp.gmail.com with ESMTPSA id t14sm1030603ilh.62.2021.12.01.20.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 20:17:36 -0800 (PST) From: Adam Ford To: linux-media@vger.kernel.org Cc: ezequiel@vanguardiasur.com.ar, tharvey@gateworks.com, nicolas@ndufresne.ca, aford@beaconembedded.com, hverkuil-cisco@xs4all.nl, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev Subject: [RFC V3 0/2] arm64: imx8mm: Enable Hantro VPUs Date: Wed, 1 Dec 2021 22:16:25 -0600 Message-Id: <20211202041627.291625-1-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The i.MX8M has two Hantro video decoders, called G1 and G2 which appear to be related to the video decoders used on the i.MX8MQ, but because of how the Mini handles the power domains, the VPU driver does not need to handle all the functions, so a new compatible flag is required. V3 is rebased from git://linuxtv.org/hverkuil/media_tree.git for-v5.17c This branch has support for VP9. I set cma=512M, but this may not be enough memory as some tests appeard to run out of memory V3 of this series has several changes: Update imx8m_vpu_hw to add missing 'reg' reference names for G2 and include references to VP9 Update device tree to remove IMX8MQ_VPU_RESET, remove some duplicate vpu clock parenting Fix missing reg-names from vpu_g2 node. Apply patch [1] to manage the power domains powering down. [1] - https://lore.kernel.org/linux-arm-kernel/20211016210547.171717-1-marex@denx.de/t/ With the above, the following Fluster scores are produced: G1: ./fluster.py run -dGStreamer-H.264-V4L2SL-Gst1.0 Ran 90/135 tests successfully in 74.406 secs ./fluster.py run -d GStreamer-VP8-V4L2SL-Gst1.0 Ran 55/61 tests successfully in 8.080 secs G2: ./fluster.py run -d GStreamer-VP9-V4L2SL-Gst1.0 Ran 127/303 tests successfully in 203.873 secs Fluster and G-Streamer were both built from their respective git repos using their respective master/main branches. Adam Ford (2): media: hantro: Add support for i.MX8M Mini arm64: dts: imx8mm: Enable VPU-G1 and VPU-G2 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 41 +++++++++++++ drivers/staging/media/hantro/hantro_drv.c | 2 + drivers/staging/media/hantro/hantro_hw.h | 2 + drivers/staging/media/hantro/imx8m_vpu_hw.c | 65 +++++++++++++++++++++ 4 files changed, 110 insertions(+) Tested-By: Tim Harvey