Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4153528pxm; Tue, 1 Mar 2022 12:25:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJweg0ttUq3aFDzDvSiTRhh1Glpo8s8mHHvJNlTRoY66rP/zoBVZa7vX1d98DTnBUvMF3gBA X-Received: by 2002:a65:4646:0:b0:375:7999:e83c with SMTP id k6-20020a654646000000b003757999e83cmr22794633pgr.144.1646166316210; Tue, 01 Mar 2022 12:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646166316; cv=none; d=google.com; s=arc-20160816; b=OmPy/cyv+pPo4yD4qwtQU+LAO4mpQFD1+wRFCH1rdO7dPK1CjyRMREBBe6ksAz9IuK HSb7xKeC/vK6CjM4eZPZkQB7qKluAt2p4WQAG9nEy3V7XB5rcXBGK8CpBouYgfO2ubUF sVPgkaocI1PTWS7AuB7a8PUsQ0EM8py+8y0UsYsutrOeg2UJoneh1KMf4EmSZMh4ms/j 7oDZLobIXk4VWH7zNBr6ocF4btftLekJq2HMq6wdTK0SGxsI+jd8EKJ3l9nYvPaLaZDq 5Quzx0kcbv0vSXAPjyuHjj9YusgmczBzZbfKiiAVgM1EFC/PefFcptEi4SfsNQTvyuNr lGig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=GsGl1dGldgnpdLEXcvxrxYAF/SUgWFg5pNG0AUKw04w=; b=mUZ7DXJjDLbTiaAYIiQl3LC0lDp/VPJ6XosFKCiff5HOeM5Rcv1UDvp9xGvoWkAW7U 04WIGKAL8/fExy/qUHmblzt5Zs8yLCRIqKfvDNWLCqahX5MMgCqf/zfrHPsGy+99g1ZC bzE1ocJPD/RfX5XrfnTv/z5UqKiZ0Wu9GQLgCMs/AhVjTYcm/IqQedZ5XvGWf6p/eEMM CLQGD2SyYihR78+9xvMjkpgClztY8gwR8Ja2OjwXODT5xwzC/3Ui/fGbuot0o5UBZSRi CS5tDaY0WWKENMUlrSBO7Q4BE42hBPq2/tWREv1ssMILzOoi3f8Rv3kaeuolFVW2gKrP uq9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=v5QG28VL; 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 m1-20020a17090ade0100b001bed9d42ad9si3291837pjv.135.2022.03.01.12.24.59; Tue, 01 Mar 2022 12:25:16 -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=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=v5QG28VL; 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 S229907AbiCATDQ (ORCPT + 99 others); Tue, 1 Mar 2022 14:03:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237272AbiCATDF (ORCPT ); Tue, 1 Mar 2022 14:03:05 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69FBF654AD for ; Tue, 1 Mar 2022 11:02:24 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id f21so13669632qke.13 for ; Tue, 01 Mar 2022 11:02:24 -0800 (PST) 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 :user-agent:mime-version:content-transfer-encoding; bh=GsGl1dGldgnpdLEXcvxrxYAF/SUgWFg5pNG0AUKw04w=; b=v5QG28VLIZmA6C+9VU64CfSfh9FZ13n2yEH89RDA/5CBUpVZQ6ZijmlreX4/EXQMrP dFKg1MxqW13FfKMGIq81pTFUPEEQNIv92eat+lBY0ISh7pgFQd8V9lQrQt7Vp6SwVr0F P3YdCNICRmkCtBsdq2cantzryx93X8fr91clLV8S81Xs4f1eyVL1TV+Ide4FznDwmJTO 3iXMvrZtgPOZjcPX4qKd5C0Ju4QlRA62+nmhwW0FlYQNeMzy4PYj5oS3SPKCzAW7Tsf0 5hGvQU6x5Fd+AEaDjpN5WIb3SmB9S4DAFdcJuxbm2mmAlmRPbqRm/0e41O2jbrBmyz93 As0A== 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:user-agent:mime-version:content-transfer-encoding; bh=GsGl1dGldgnpdLEXcvxrxYAF/SUgWFg5pNG0AUKw04w=; b=BxDfhlKyRQJ+vldVRyPbtG2kHYxpwfYsXDx7IY5xNsKj0PSwIZekkJ9hrk5HyqRbFN OW8va6kwX+hIRcSDGkMDlmvFMQI5nsgaMWdtOKLfpdrq2Fcp9+OXpB1nxMJD966n+1RD +sweMoLWJMlrSxhl8vS7NsPJnTZqBCmxL6ktcD74DY8LZzpL+IzgNd+vgsySt7H3qQBl 7BQOp1LKZHznYseDRi25imOo/1QQZ7beQXYTYYAMu3fg3sRnr6z+vcz6oC/40d82hlij 5j8Du+9n1YrfECYyrSp1DD7IOmjYkC0hTe7Yg9bB01gBthTSQ3CGCGMkHZVKR2iOi8Ku idnw== X-Gm-Message-State: AOAM533q1pv0AsEED4pCyk+fyPuXUorSbpEhSCfVmJgkTItYt9tBk1ja Enf49Jg/XJMyDFDCOIHt6pvK6A== X-Received: by 2002:a05:620a:22a6:b0:662:e97d:c7bc with SMTP id p6-20020a05620a22a600b00662e97dc7bcmr6914032qkh.486.1646161343508; Tue, 01 Mar 2022 11:02:23 -0800 (PST) Received: from nicolas-tpx395.localdomain (173-246-12-168.qc.cable.ebox.net. [173.246.12.168]) by smtp.gmail.com with ESMTPSA id i128-20020a378686000000b00648ddd8a5c0sm6790641qkd.100.2022.03.01.11.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 11:02:22 -0800 (PST) Message-ID: <90c57ac742bad5cd75ae76e01e6042739b4e8012.camel@ndufresne.ca> Subject: Re: [PATCH v7, 09/15] media: mtk-vcodec: disable vp8 4K capability From: Nicolas Dufresne To: Yunfei Dong , Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , AngeloGioacchino Del Regno , Benjamin Gaignard , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa Cc: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Daniel Vetter , dri-devel , Irui Wang , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srv_heupstream@mediatek.com, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Date: Tue, 01 Mar 2022 14:02:21 -0500 In-Reply-To: <20220223034008.15781-10-yunfei.dong@mediatek.com> References: <20220223034008.15781-1-yunfei.dong@mediatek.com> <20220223034008.15781-10-yunfei.dong@mediatek.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.3 (3.42.3-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, T_SCC_BODY_TEXT_LINE 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 mercredi 23 février 2022 à 11:40 +0800, Yunfei Dong a écrit : > For vp8 not support 4K, need to disable it. This patch will need to be changed after you have moved this code into the proper ioctl. > > Signed-off-by: Yunfei Dong > --- > drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c > index bae43938ee37..ba188d16f0fb 100644 > --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c > +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c > @@ -532,7 +532,8 @@ static int vidioc_enum_framesizes(struct file *file, void *priv, > fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; > fsize->stepwise = dec_pdata->vdec_framesizes[i].stepwise; > if (!(ctx->dev->dec_capability & > - VCODEC_CAPABILITY_4K_DISABLED)) { > + VCODEC_CAPABILITY_4K_DISABLED) && > + fsize->pixel_format != V4L2_PIX_FMT_VP8_FRAME) { > mtk_v4l2_debug(3, "4K is enabled"); > fsize->stepwise.max_width = > VCODEC_DEC_4K_CODED_WIDTH;