Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 077A8C49EA5 for ; Sat, 26 Jun 2021 08:33:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D546A61440 for ; Sat, 26 Jun 2021 08:33:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbhFZIgU (ORCPT ); Sat, 26 Jun 2021 04:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbhFZIgT (ORCPT ); Sat, 26 Jun 2021 04:36:19 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE78DC061574 for ; Sat, 26 Jun 2021 01:33:56 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id b3so13388446wrm.6 for ; Sat, 26 Jun 2021 01:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=0BmE1vieJjpmwVPE3TFArQhsrXaHwB+6efFDaJCHBL8=; b=isGByER2yEl0MYzeK0LOmniKQhWYeR+HhU7ZMZsP33vqx7JR6e9F3R68B5Lt5jb5oy Y7WU3pBAOBXcOTOUuuSsTgq3410M8bQ89KPm+G+S51o7w9iCZQhte9o4w28M3rJEzvlY gfYxpQIvS5ElkArj1M34aQ+s6XZUzKoAXgpu4tGO48EB0s1yJ/OEDRfXBqC1wMyoADzY ZVI0yfAymLXvcOnMSFMSITu0ZGiDPDRIG4Lz8eoZJdJkbpq3lr+2yM3C4erYU6PAysZY tEhprTS3kpzJ+cy/+YcoqQWrdk8avvKo5S3EG2+l0vybhs+b1M5VPtto8e6n2BlM6SUV xgmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=0BmE1vieJjpmwVPE3TFArQhsrXaHwB+6efFDaJCHBL8=; b=tN5LyVGDJxMdoChqxbvOwbotQnPmj5kESEKS9QtgYgCQgBVU+bIEdJI5HNirBg+yCR 7gC096XZreUod41/wM0OtG4YcLzNfxwqpc4QObw7vXF4XsGFNq/u2PLWH73GpCiiUj2w 7yDtcdh2XrEW6a/LdH5ecQNPwLdTnxre6Q8C36R7b8WHPTiiVKl5VdQCL5PmHR5q/8cP A1Pug4em712q/8KwSp7XwjknPQJV2pU3bZe1MHYGj9adw9gdU12YIvAiTcrEOYG3qTt0 SDxq4+UjyVgzTxzyMau7Vwqnd43kVwPo1oyvbnSoGwNQPWmdDx8FGNkDCLqNZStGi530 x3kA== X-Gm-Message-State: AOAM531LNpx7/O4bfzN5kDbluJqY4zSxLPlcWaKua7AwX8F9ZRyvfKN+ DyvCKe6yhSQ/YGhMUhICgw== X-Google-Smtp-Source: ABdhPJwR+CAGf0xPnXsVekgBRBoHQUEAfPeUCeRo7NAConWkvU53Cpfndoqnj5pfmWE7I63TAIaY1w== X-Received: by 2002:a5d:5919:: with SMTP id v25mr15338955wrd.319.1624696435125; Sat, 26 Jun 2021 01:33:55 -0700 (PDT) Received: from [192.168.200.247] (ip5b434b8b.dynamic.kabel-deutschland.de. [91.67.75.139]) by smtp.gmail.com with ESMTPSA id k4sm495958wmj.19.2021.06.26.01.33.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Jun 2021 01:33:54 -0700 (PDT) Subject: Re: [PATCH 09/12] media: hantro: Enable H.264 on Rockchip VDPU2 To: Ezequiel Garcia , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, Nicolas Dufresne Cc: Hans Verkuil , Philipp Zabel , Heiko Stuebner , maccraft123mc@gmail.com, Chris Healy , Paul Kocialkowski , Jernej Skrabec , Jonas Karlman , Thierry Reding , Sam Ravnborg , David Airlie , kernel@collabora.com References: <20210624182612.177969-1-ezequiel@collabora.com> <20210624182612.177969-10-ezequiel@collabora.com> <2ae869f3-7f3a-f184-93cc-61fca0f9022f@gmail.com> From: Alex Bee Message-ID: <1979d843-129a-8b48-2926-0f50157974ec@gmail.com> Date: Sat, 26 Jun 2021 10:33:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi Ezequiel, Am 26.06.21 um 02:46 schrieb Ezequiel Garcia: > (Adding Nicolas) > > Hi Alex, > > On Fri, 2021-06-25 at 01:13 +0200, Alex Bee wrote: >> Hi Ezequiel, >> >> Am 24.06.21 um 20:26 schrieb Ezequiel Garcia: >>> Given H.264 support for VDPU2 was just added, let's enable it. >>> For now, this is only enabled on platform that don't have >>> an RKVDEC core, such as RK3328. >> Is there any reason, you do not want to enabe H.264 on RK3399? I know >> H.264 can be done by by rkvdec already, but from what I understand that >> shouldn't be an issue: The first decoder found that meets the >> requirements will be taken. >> > Thanks a lot the review. > > I really doubt userspace stacks are readily supporting that strategy. > > The first decoder device supporting the codec format will be selected, > I doubt features such as profile and levels are checked to decide > which decoder to use. > > I'd rather play safe on the kernel side and avoid offering > two competing devices for the same codec. I wasn't aware of that. Current ffmpeg v4l2_request implementation seems to not do VIDIOC_ENUM_FRAMESIZES - so we might end up being able to decode up to 1920x1088 only if hantro decoder is picked/checked first. Thanks for pointing that out. Alex > Kindly, > Ezequiel >