Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2923716iob; Fri, 6 May 2022 13:28:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl/VZWAlzzzHjFCQ9F8Z4RSJbK3YUlI21U2h1glLUly+tlii4r7iZg0Dwnrglz9Jr8xAZE X-Received: by 2002:a17:907:3fa2:b0:6f4:b2a6:4992 with SMTP id hr34-20020a1709073fa200b006f4b2a64992mr4828427ejc.224.1651868883457; Fri, 06 May 2022 13:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651868883; cv=none; d=google.com; s=arc-20160816; b=ifermnw8AaEgoSf5et6rmcKzXAI01URu7fOeEI2bBKH3fgWVuCTzS6fwhCgiKD+zy4 j4NSESu+vQzD+3N/k9zegepxiYq2mBk8J4B03stmRXm9TOq6x68bIkJx2LRPJRZaE+8r rq3ervVeOCq7IuV5qHZhDVbAayTV+Ad+tSrDl9g+o/uiPWL9FUvt/4ZZwsMP9+e8jrFZ MAWhgo7+ZTCJMaeQWWwvFAqJQl8r2cvUgZ870zou6nq3T5rxWubMJn7TIu+YcEFWFkSK 0IxRQpvWJxqtC1Y6roo/uI3CStP6KpD9f0YYFffWE8bpgPE2KkaGBSD6bjkxYsJzhgEI ohnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/to596HH+uZEkQ5FeBI67Vd6zmEefFOEf83kygajVyA=; b=I5fs5qxqE7E5WBGR8pwy0hgAxXBPJakVOrQHi3sC87VjYZGgJ5Dg13Jq1cSoYpryIb 6lVmHAX3kfNkYJ5zUIwJGOHlV960C+RlDgOkvt7tB5bvvp+gNEepuzwHEpEaaFGQv2SV Ln8RqePM8yFWgltT4DfBCdPzzKfs6A6fhy5zIcMZD64aLlx1+AnCTdCBcGI3pcqpd1md guLaHLhtCexsskQ84TfIpsWfmvE01cp+4HUByFWcZjNx0HXMov+poan7alzKc0Mj+eC7 hXIO/99xTDma32g1Rd5mllNUSH+PVT5x61ka++fjE4etgJUFsKVFid3WSNZ2rxanf9MQ HsMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WINl7o4+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf24-20020a170906e21800b006f383388773si5006599ejb.889.2022.05.06.13.27.38; Fri, 06 May 2022 13:28:03 -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=@collabora.com header.s=mail header.b=WINl7o4+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386279AbiEEWYe (ORCPT + 99 others); Thu, 5 May 2022 18:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234582AbiEEWY2 (ORCPT ); Thu, 5 May 2022 18:24:28 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03D0A275CF; Thu, 5 May 2022 15:20:46 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 795391F40EB1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651789245; bh=IqgWrsQ7M1kiyWJK+KEWncQxxmyl40O17cMv2BeJAZM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WINl7o4+WequxxSytUZt4txWZtOiVzMn8Oe/yw0ywq6gSVx8l6UxrDz3v0PpGlt6h UDitxFADuW19fZXUk/LzhWjSZwChusaokfIOVdXRSsgUprvXqPj9+sN1EJwgxueAdc OukGQCfmhJINyB7ZUJpneAtEaNF4dvpH2QC+lL3rXrSsUBosL08zBz6cPUdHd8p4xd cT2/UstKbK9OqDqqMn0QtVP/CaD8SkagtmZzuD+Mb1LTLangCsE9DGEfHyxdj/TD2+ 5x5tU/6u3gd7b7E/O12Lbkbb8xJmSvT4QwhrRHN8g7lusGir0xHHUoKh6HMYy/9lO4 kOrFUb8fajxWQ== Date: Thu, 5 May 2022 18:20:34 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Yunfei Dong Cc: Alexandre Courbot , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , 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, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v10, 16/17] media: mediatek: vcodec: support stateless VP9 decoding Message-ID: <20220505222034.fxw6y7wdf7wy3qi4@notapiano> References: <20220426100828.13429-1-yunfei.dong@mediatek.com> <20220426100828.13429-17-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220426100828.13429-17-yunfei.dong@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 On Tue, Apr 26, 2022 at 06:08:27PM +0800, Yunfei Dong wrote: > Add support for VP9 decoding using the stateless API, > as supported by MT8192. And the drivers is lat and core architecture. > > Signed-off-by: Yunfei Dong > Signed-off-by: George Sun > Reviewed-by: AngeloGioacchino Del Regno > --- > .../media/platform/mediatek/vcodec/Makefile | 1 + > .../vcodec/mtk_vcodec_dec_stateless.c | 26 +- > .../platform/mediatek/vcodec/mtk_vcodec_drv.h | 1 + > .../vcodec/vdec/vdec_vp9_req_lat_if.c | 2031 +++++++++++++++++ > .../platform/mediatek/vcodec/vdec_drv_if.c | 4 + > .../platform/mediatek/vcodec/vdec_drv_if.h | 1 + > 6 files changed, 2061 insertions(+), 3 deletions(-) > create mode 100644 drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c > ... > + use_128 = !frame_is_intra && !vsi->frame.uh.last_frame_type; > + v4l2_vp9_adapt_coef_probs(pre_frame_ctx_helper, > + counts_helper, > + use_128, > + frame_is_intra); Hi Yunfei, I'm getting ERROR: modpost: "v4l2_vp9_adapt_noncoef_probs" [drivers/media/platform/mediatek/vcodec/mtk-vcodec-dec.ko] undefined! ERROR: modpost: "v4l2_vp9_adapt_coef_probs" [drivers/media/platform/mediatek/vcodec/mtk-vcodec-dec.ko] undefined! when building this series. Adding select V4L2_VP9 to config VIDEO_MEDIATEK_VCODEC solved the issue. Thanks, N?colas