Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp71796iob; Mon, 2 May 2022 13:22:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO3DqwBe11w5ZPVXCHApittBcWxv/TOTOE7tVgTVdIqYmKOHqQfpTYiGcGjYhSP26b8O6f X-Received: by 2002:a17:90b:1bcd:b0:1da:5010:ff44 with SMTP id oa13-20020a17090b1bcd00b001da5010ff44mr950913pjb.1.1651522952608; Mon, 02 May 2022 13:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651522952; cv=none; d=google.com; s=arc-20160816; b=gt8A6zhJTc3tkfhfngC8A/qjbA+c8+OzyAR3l906dlLofk+GN8MJwlYEVAWbdXvdjv IkUZb1V0XtYChBYG0ysj8IuTIsqt002xnNpMv5u1Jw5xPHlrVBWs8i7dQ5ouCN2HlTpa 014LG4Ec4RUm5s4HMFeHmVxozyru0Yr9/NWvwPdCdmZldwcfCF6NnRBrfiXlpDDm2H09 sRaJ69BFNFsPCK5CWAOv8pyUkIhEVOuynqGgp4yK9NksDqLHpuy+6d+aSlNUWZ+jVL8d Tb8I5CBnPXKDD9eLzCevribxjBVTo4bF+25pG/7HpC+sXS68D2QJFgg+63478ivFe5Pa h2Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=9gYARbcsROoRQuSPoSpdSfdzjCUBFI/hupA+J6RCICM=; b=xIKNVw0+tEuCE+IbZJK+FJkUKCs3Hx6vIbsz6M5/F+X2vo1efMepvPGjtm906MGHyR zUU9bIqE3rm2y4lFBfne+o7xt/pglcJaCANTKllADsCYQRTaDXPYBTK+JGwhU4VM4X9H 47+gIc8cyyFy18D6khTdM+JnX1RJRW9DIbb9aZtYyL96Vb4kJzqDXhtBigH7RWRakj02 dg53JosBe3b5io0bjdI0ReweyImlVrF84K47QQk/sXtXRTye4NnA1FwowE0IoFMB4kqP JVYRP7fETwMc9lOseYzSjCjq77jmeR83hSOseLGE0nBV4maqrrBslSEGIS+JD3+DIol2 LXag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=MPIYQZwB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a17090a599200b001d996a5c5e4si220366pji.128.2022.05.02.13.22.15; Mon, 02 May 2022 13:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=MPIYQZwB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377855AbiD2Otv (ORCPT + 99 others); Fri, 29 Apr 2022 10:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377925AbiD2OtY (ORCPT ); Fri, 29 Apr 2022 10:49:24 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA998302E for ; Fri, 29 Apr 2022 07:46:04 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id hf18so5938167qtb.0 for ; Fri, 29 Apr 2022 07:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-transfer-encoding:user-agent:mime-version; bh=9gYARbcsROoRQuSPoSpdSfdzjCUBFI/hupA+J6RCICM=; b=MPIYQZwB0Uh/nZRz3paU+fYelB3PvD9iOyiFKynpzfDgpHL2BlgVCuZYT8qQnGHUyy qhc7Z/odasMpp5DlUG3P/9+W1Mn0t7pvFFqcXOcLPcFp9T1WhUWgO2qxUw0apTR3C62j m2hHEDL4JnVNDAlcPUKx5TovyU60q7sUlhGM6quVBjRgXDQxi3a6iTd2q3jjL0xVWuxb j0cczeIKTJJGIvchVfn879alN1Lv8NzMNI1sV+I/23AH/dnhIzI8UIjiSUAuAYTeIFfi QcgkZ8e0rsLiA7itATS1IDrQaO47fvOLTwINVwWxaIAvHhPt5GKqQtV2KdzC+BQEqQf2 s5UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=9gYARbcsROoRQuSPoSpdSfdzjCUBFI/hupA+J6RCICM=; b=eZQLleZy7mi2IlfJeArcQg8RRbvBP5wS4hhB9MTgxKDrUJ9Et/x4qXO5xBs1P0F15B 2dyw4QMk179ls8m+J87iw6cyW3X6c9pywI+Yo69yg+rKZuhI83NnugluOQ3JDkZiRAh4 MqBR5hDdVNPf4DFsJxyREbB9Uz9m3f/OtGwv7b5t7qsLFHM9FHHPX6/iUqBQOylfsJyn FvW+BbMlebDJ8lpC6Z8ZcGDP6jfapi2MssofkuEK4wBAFspWdbT9iIonDTIapHIQemYP TWQYKRnHfpRXQJCLkDwUcVEQlr+VTwynF0agCM8+q8/qJI4gFC4ESEmkrbxl2C/nLyk5 9o8g== X-Gm-Message-State: AOAM532Bn/2TA7mxcNM2LEBHXI12upgoOyRd7Fz9rs2smIQ9N1693bDF rB4rxqN+fchQba+/ssJSZZsPIQ== X-Received: by 2002:a05:622a:1714:b0:2f3:5758:c789 with SMTP id h20-20020a05622a171400b002f35758c789mr26722108qtk.299.1651243563653; Fri, 29 Apr 2022 07:46:03 -0700 (PDT) Received: from nicolas-tpx395.localdomain (173-246-12-168.qc.cable.ebox.net. [173.246.12.168]) by smtp.gmail.com with ESMTPSA id i14-20020ac85e4e000000b002f364a81d79sm1900279qtx.4.2022.04.29.07.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 07:46:03 -0700 (PDT) Message-ID: <198ce3981ad15844627581f9519cab67ed2a81c1.camel@ndufresne.ca> Subject: Re: [PATCH 0/3] Enable JPEG Encoder on RK3566/RK3568 From: Nicolas Dufresne To: Nicolas Frattaroli , Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Greg Kroah-Hartman , Peter Geis , Michael Riesch , Liang Chen Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Date: Fri, 29 Apr 2022 10:46:01 -0400 In-Reply-To: <20220427224438.335327-1-frattaroli.nicolas@gmail.com> References: <20220427224438.335327-1-frattaroli.nicolas@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.0 (3.44.0-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le jeudi 28 avril 2022 =C3=A0 00:44 +0200, Nicolas Frattaroli a =C3=A9crit= =C2=A0: > Hello, >=20 > the following series adds support for and enables the hardware JPEG > encoder on the RK3566 and RK3568 line of SoCs by Rockchip. >=20 > The JPEG encoder is its own little Hantro instance with seemingly just > the encode functionality. I'm a little suspicious about this statement. I believe the Hantro combo is identical to RK3399 and that you are confusing with Rockchip JPEG encoder h= ere. Here's the source of my suspicion: https://github.com/JeffyCN/rockchip_mirrors/blob/mpp/osal/mpp_soc.cpp#L637 As this get burnt into DT, we really need to get this right. Perhaps we nee= d to run the reference software to verify ? Ping me if you need help with that. >=20 > The first patch modifies the bindings with a new compatible, and adds > the ability to just have a vepu interrupt without a vdpu interrupt. >=20 > The second patch makes the actual driver changes to support this variant. >=20 > The third and final patch makes the necessary device tree changes for > the rk356x device tree file to add both the node for the encoder and > its MMU. >=20 > The series has been tested on a PINE64 Quartz64 Model A with an RK3566 > SoC using GStreamer. >=20 > Regards, > Nicolas Frattaroli >=20 > Nicolas Frattaroli (3): > dt-bindings: media: rockchip-vpu: Add RK3568 JPEG compatible > media: hantro: Add support for RK356x JPEG encoder > arm64: dts: rockchip: Add JPEG encoder node to rk356x >=20 > .../bindings/media/rockchip-vpu.yaml | 2 + > arch/arm64/boot/dts/rockchip/rk356x.dtsi | 21 +++++++ > drivers/staging/media/hantro/hantro_drv.c | 1 + > drivers/staging/media/hantro/hantro_hw.h | 1 + > .../staging/media/hantro/rockchip_vpu_hw.c | 62 +++++++++++++++++++ > 5 files changed, 87 insertions(+) >=20