Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2903839pxb; Thu, 10 Feb 2022 08:03:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7JCA0G7fruQ3mrkSxuZR+kYJJyc1O28UFug5L56urzweJBNXmjKxHkrxZtfDHm0N/aZ1u X-Received: by 2002:a17:907:160d:: with SMTP id hb13mr6958105ejc.173.1644508998490; Thu, 10 Feb 2022 08:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644508998; cv=none; d=google.com; s=arc-20160816; b=kxuc4O5bnusgUU3AoJtOavVxFmip6GmGhIiPwfh5p3h87cCZPeszEIm+uNohtrbWKz xFAAAsdQxJzcWxgozvvzv3/pgldTMbmuIhddv/PBRyJUInnWNvjvu4kBUtSkY8j2/udp N90sTU8aLFEwWlWTe+29C/lL8mYTgLYlj3WDwaXj/6OGWHFAzckObPbRkfiDrwwJNy5t K3LmUK7ZA9j3rU5h5xSBaVJoum+EP/uicEad/5/hD+SOIlCXAvQwT98cDT/lN8hHrvy3 3YylzRrPHj0YRsKf2rPOO2HHVxJ5aXKsAflHaXQUqbJZS/0I+EJGFOat5vRLrN9hksms 3VCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=G+YDDnr2slUFHsUM/IlbFGkS85HzAaIxJtVEmZjhqMI=; b=MnGXpfbKYmlaH0KH9CPmdQBYeQi7U2e9M3FX7NYIu2hH3u0eaLqFYYzDitvYTfGB8x SUmCBcxYNk9vOdhzBBaoXlGyt02uTbCZp6ecKbhnwBYIDaVCo3KpRUpbpkFVRteJJgxH Sf35BTawm/B8Tx5rwpGrvNhYixXFXV/FVFxllL6/pV5OAYoeBNoTijiH+oMgzofK9rOp mpYwBR+SUi+DQwkXYgK/N16RepNee5t6mqHYcMQJOEja01mVMg28Lqb5UxgQrSjjj6kR /tC5Z+ELa0w/Kh7zj90gD5LUJi4VVDwjwGLGy5mHXUCzQ1VOqdXmOXKO4b1yw1Gr7INz Y4Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=fFvqalnJ; 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 14si14264546ejj.778.2022.02.10.08.02.52; Thu, 10 Feb 2022 08:03:18 -0800 (PST) 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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=fFvqalnJ; 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 S238790AbiBJJe7 (ORCPT + 99 others); Thu, 10 Feb 2022 04:34:59 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235553AbiBJJez (ORCPT ); Thu, 10 Feb 2022 04:34:55 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05B2210BB for ; Thu, 10 Feb 2022 01:34:57 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id o24so5763098wro.3 for ; Thu, 10 Feb 2022 01:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:organization:in-reply-to:content-transfer-encoding; bh=G+YDDnr2slUFHsUM/IlbFGkS85HzAaIxJtVEmZjhqMI=; b=fFvqalnJA8sWVtzDVywLCenoPVSbM4BhkZK9XFrkh6Uhpi+h4y/LKiKPi0+ZpMMW/Z 8oUWKgTy+/vB6iqVkziuScLT+kEEaPx4cW97cxs178WEC9/LpV1PbchEV0yhArLeUKei Mlqk8nmMSwVxPZPMdo7PhJzx9J9flAKp6V/antjKCI6D9JvcSZIa993aC67gdMa40vNi iKaOYZWoizEF4zUNkT7BdkzPJ0w9QQSZNiE4Tkh/yi1bZG8tc6HGVwyxPS8oH35Nuysb fBd++IIZ5lX81lBwDZ4ywBPbYiCD3/fndjabl0NGgG41OW1NKXnrFD1wVZveXOfhwjmg bMNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:organization:in-reply-to :content-transfer-encoding; bh=G+YDDnr2slUFHsUM/IlbFGkS85HzAaIxJtVEmZjhqMI=; b=HsxnmpJChPxoNINRDJxZCk4MkHirDaqVGGs2L6ExM3+xCPFMXIoC1P7M8U742vyDes UlYOw9u4wGbmuDEgyG6XOezIuwT0nAgsLUJr2hCdP6mrmg+SLiIOn2kmftycr0a4ylJZ Dn1o3BhiYaNY3lu+wrY15XH4WixBJj/jsm1/lQeRej/+5v3ZDzk4u1GMSIn4xQuRQE7o ptN7F1aF2HLICHfqKWSxkz4Cgnw8rcb2Uv3FVIK5vqcWSqvH9GITXEynA0GDblOIPVF0 J3j/U94PXRCZHQShAGauP1VqGs8vHHx96CmqOxsMFPxQZ/pojPonuE43uhK/6bn9xSP0 8vvA== X-Gm-Message-State: AOAM5306WDDzT5c1Z47Qo4w6Zq6vQTkJDOVLQqbqrd3kBaARAPLefbj9 yzlHQVUC+Z6cLO8ob/dO1fMeKg== X-Received: by 2002:a5d:4c85:: with SMTP id z5mr5695114wrs.225.1644485695484; Thu, 10 Feb 2022 01:34:55 -0800 (PST) Received: from ?IPV6:2001:861:44c0:66c0:76d9:bf0e:e516:58a9? ([2001:861:44c0:66c0:76d9:bf0e:e516:58a9]) by smtp.gmail.com with ESMTPSA id x5sm9483363wrv.63.2022.02.10.01.34.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 01:34:54 -0800 (PST) Message-ID: <640ef0b2-fcba-50a6-71c2-8156181682b0@baylibre.com> Date: Thu, 10 Feb 2022 10:34:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] drivers: meson: vdec: add VP9 support to GXM Content-Language: en-US To: Christian Hewitt , Mauro Carvalho Chehab , Greg Kroah-Hartman , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-media@vger.kernel.org, linux-amlogic@lists.infradead.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220209153150.30688-1-christianshewitt@gmail.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: <20220209153150.30688-1-christianshewitt@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 09/02/2022 16:31, Christian Hewitt wrote: > VP9 support for GXM appears to have been missed from the original > codec submission [0] but it works well, so let's add support. > > [0] https://github.com/torvalds/linux/commit/00c43088aa680989407b6afbda295f67b3f123f1 > > Signed-off-by: Christian Hewitt > --- > Tested with LibreELEC 11 nightly 'AMLGX' dev images for Khadas VIM2 > and WeTek Core2 GXM devices which can be found here [1]. The images > combine Linux 5.16.y [2] with Kodi v20 [3] and FFmpeg 4.4 [4] which > notably includes many V4L2 refinements for stability and usability. > > [1] https://test.libreelec.tv/ > [2] https://github.com/chewitt/linux/commits/amlogic-5.16.y > [3] https://github.com/xbmc/xbmc/ > [4] https://github.com/jc-kynesim/rpi-ffmpeg/commits/dev/4.4/rpi_import_1 > > drivers/staging/media/meson/vdec/vdec_platform.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/staging/media/meson/vdec/vdec_platform.c b/drivers/staging/media/meson/vdec/vdec_platform.c > index eabbebab2da2..88c9d72e1c83 100644 > --- a/drivers/staging/media/meson/vdec/vdec_platform.c > +++ b/drivers/staging/media/meson/vdec/vdec_platform.c > @@ -103,6 +103,18 @@ static const struct amvdec_format vdec_formats_gxl[] = { > > static const struct amvdec_format vdec_formats_gxm[] = { > { > + .pixfmt = V4L2_PIX_FMT_VP9, > + .min_buffers = 16, > + .max_buffers = 24, > + .max_width = 3840, > + .max_height = 2160, > + .vdec_ops = &vdec_hevc_ops, > + .codec_ops = &codec_vp9_ops, > + .firmware_path = "meson/vdec/gxl_vp9.bin", > + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, 0 }, > + .flags = V4L2_FMT_FLAG_COMPRESSED | > + V4L2_FMT_FLAG_DYN_RESOLUTION, > + }, { > .pixfmt = V4L2_PIX_FMT_H264, > .min_buffers = 2, > .max_buffers = 24, Acked-by: Neil Armstrong