From mboxrd@z Thu Jan 1 00:00:00 1970 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 647F4C433FE for ; Fri, 17 Dec 2021 17:27:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239885AbhLQR1N (ORCPT ); Fri, 17 Dec 2021 12:27:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239911AbhLQR1K (ORCPT ); Fri, 17 Dec 2021 12:27:10 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4546C06173F for ; Fri, 17 Dec 2021 09:27:09 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id n16so1678829plc.2 for ; Fri, 17 Dec 2021 09:27:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=94lytwgo2pGPKoCz7cXjNIBQaFpmuX64JbTjaHifeEo=; b=R/D+giI9xp6G3jBIYNNDmBdzy8vtLbErm1zXG1RUpUrVR7TplNui48kHW1HA7L4AXr 8xYSnKLB/KktrXYjS5rcAfBqUAG3k7JMmlN3Z4cmdNnjLxA9G6f7hSVmW97x+QlbZyju 7CvKfsGCnO0A37sh//tlbNDCgdjk8Xg81hQQ6WPJ0QwNNKGFHiLM/MCpZz0HfgyuwjnR r+8tQosxe7KhEgBHoCAes46E4VMj/3CvCDjxGTyyKl3Y2yVCxn2IHJQo/ssx/0fJQPzn mt2f/cAHhVIXZMu9HYc9cR14FshrILqP0+1mmNqnZKov6JMTkdYmxRaLTBcmxCMsHEfe 6WxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=94lytwgo2pGPKoCz7cXjNIBQaFpmuX64JbTjaHifeEo=; b=2E9AnwOKlegRJl4IiuKp0hKScbDkuRz+H2FF40UU2SiYc/1wFoesFZutjrpccign/P 67TJd6CJLaH7tDsctNOps0EQuUKVK97SB1mMba/lfwrPYEbkUzkzUD+gy99kmweI8B7c nmmrOUO3sv3mPImrfIcApDhlAL8W8jQeR5jTjzrqUjjCPoGzStwYFISI88F7hJzBMhY4 zhP2HYK6YApU+EPucN4ErwbtE8f9FabZzi1m2z+jfON5DIAdj0COAIPFLt/xp9bkX0IG 2HB1NUfVYpIuvtmqg+gU1cLhoYfnzUqtGwY+O1b4rnHRlW2KJht1CgL5fnCVn2t62xzp bwwg== X-Gm-Message-State: AOAM532bOFjTffJc6U11Sw23VnWAbVqa8Wc6ay6EsvdZE1FL/i9Y1Mbm 5gkR9u/v4hbNONpAPRTjbLkl086+94VBbIp5b2RAkQ== X-Google-Smtp-Source: ABdhPJxh6drjRqJyeeghVLdXC+QG2CUejhvUilM6pihIKCowBomy2bFqr6Blk7qvQTT9UHKElHVBCV9i+77UTKQoPfE= X-Received: by 2002:a17:902:c214:b0:148:a798:7aa with SMTP id 20-20020a170902c21400b00148a79807aamr4115431pll.90.1639762029356; Fri, 17 Dec 2021 09:27:09 -0800 (PST) MIME-Version: 1.0 References: <20211106183802.893285-1-aford173@gmail.com> <718f7f6d6cd564d031c1963f1590c62d549ae725.camel@ndufresne.ca> <8db00a4b6faa99c940d9bc86e17161eb0db5efe3.camel@ndufresne.ca> <7f94eaacfddb8c5434c17f1e069ea87a17657ce9.camel@ndufresne.ca> <8438070708d16c34c0f79aba19e67fa343adb169.camel@ndufresne.ca> In-Reply-To: <8438070708d16c34c0f79aba19e67fa343adb169.camel@ndufresne.ca> From: Tim Harvey Date: Fri, 17 Dec 2021 09:26:58 -0800 Message-ID: Subject: Re: [RFC 0/5] arm64: imx8mm: Enable Hantro VPUs To: Nicolas Dufresne Cc: Adam Ford , Ezequiel Garcia , linux-media , Schrempf Frieder , Marek Vasut , Jagan Teki , Adam Ford-BE , cstevens@beaconembedded.com, Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , Heiko Stuebner , Lucas Stach , Joakim Zhang , Alice Guo , Peng Fan , "open list:HANTRO VPU CODEC DRIVER" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , "open list:STAGING SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Fri, Dec 17, 2021 at 9:13 AM Nicolas Dufresne wro= te: > > Le vendredi 17 d=C3=A9cembre 2021 =C3=A0 07:15 -0600, Adam Ford a =C3=A9c= rit : > > On Thu, Dec 16, 2021 at 10:49 PM Ezequiel Garcia > > wrote: > > > > > > Hi Adam, > > > > > > > > > > > I will post a V2 last today with the Mini's post-processing removed= . > > > > Someone, I apologize that I forget who, mentioned it was fused out = of > > > > the Mini, so the testing I've been doing was with that removed and = I > > > > removed the H1 encoder since the Mini doesn't support JPEG encoding= . > > > > > > > [...] > > > > > > Resurrecting this thread here. IMX8MMRM Rev. 0, 02/2019 mentions > > > post-processor features for G1 and G2. > > > > > > Have you checked the fuse and synth registers to see if they throw > > > any useful information about the hardware? For instance, > > > comparing PP fuse register (SWREG99) and > > > Synthesis configuration register post-processor (SWREG100) > > > in both 8MQ and 8MM could be useful. > > > > > > As I mentioned on my previous mail, even if G1 PP is disabled > > > on the Mini, I would imagine the G2 can do linear NV12 (aka raster-sc= an) > > > which in our hantro driver jargon is a "post-processed" format :-) > > > > You're likely right. I was going on memory from an e-mail from > > Nicloas Defresne who wrote: > > > > "I will check the patchset, but you need in the mini-variant to disable= the G1 > > post processor, because this block was fused out. We didn't make it opt= ional > > from the start as according to the V1 of the TRM it was there, but that= error > > was corrected in V3." > > > > In my head I assumed the G2 was affected as well, but when I double > > checked his email, and based on the above statement, the G2 > > post-processing is probably there, so I'll run some tests with the G2 > > post-processing enabled. I'll also double check those registers on > > both to confirm what they read. I am not sure when I'll have time > > because I leave for London next week, and I won't return until early > > January, but I'll do what I can. > > Sorry if this was a bit ambiguous, indeed I meant the G1 only. I've learn= ed > later that the design of the Mini is that there is a good pre-processor i= n the > H1 block (encoder), so for the targeted use-cases this shall be sufficien= t for > most users (the output of the G1 is suitable for GPU and Display already,= so the > post processor is not strictly needed). > Nicolas, Does this mean that if the IMX8MM G2 may be able to output a wider array of pixel formats and that the H1 encoder may be able to accept a wider array of pixel formats? Is this code already in place in the hantro driver and it just needs to be enabled if the IMX8MM can handle it or is there code to be written? I'm not clear if anyone is working on IMX8MM VPU H1 support. You had mentioned that some support [1] and [2] can be derived from the RK3288 using the Google ChromeOS method (a v4l2 plugin that simulates in userspace a stateful encoder). I'm not sure if this is worth pursuing if others are working on stateless encode support in kernel and gstreamer. Best Regards, Tim [1] libv4l plugins / https://chromium.googlesource.com/chromiumos/third_party/libv4lplugins/+/re= fs/heads/master [2] Kernel Driver / https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-= 4.4/drivers/media/platform/rockchip-vpu/