Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5603561rwd; Wed, 24 May 2023 04:25:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QEbOIer1mf9uQ2ozUEp4Cc5EN7ehJaC98l2/lNs0qaQy8edF1HPqCr/GOaX/iEepxm6Jw X-Received: by 2002:a17:903:2287:b0:1a3:cd4c:8d08 with SMTP id b7-20020a170903228700b001a3cd4c8d08mr20410001plh.38.1684927551921; Wed, 24 May 2023 04:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684927551; cv=none; d=google.com; s=arc-20160816; b=EgKEM9x6GQ9+1iSj5wkechwQkTZiVj2K5kOIGYX92g5z/oqVJn8roZV7PVR6PKmCCC XzfdReABwDsWtzBoRBdeA17Y0XWl8X6Puf0wypEgZVPCjhhq5NHK5xPIL164m4oHwczw 9Rw6DXYUW+39Azn98fk/8lFmOwsiudNhSzmsXuF0ghawl+DtDQQuCPa6RN3EmQfDQ9lO ok0JzQ+wB9LJ6SJ6tgUfp6x+Ik6gep65vEFwoJJrm4bnwGBWkFqu5b/IdRNnD62+MxZk bcaTKZjo6aa/s0+vlWj5oP/ycBJcYSTS1SZUqn9NAo/Z0NAouxd44bgJAoMCgjbxRo8y v0JQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=YxGEm52AvJQJv4ciKECm3nSZmJWqySsuztricuVBJH4=; b=wEtOEoARaLhPi9pfXmfT0vhXBGsf+3n7vzT+JNfOhJcbtjchMwHHuVRARqFTj3WCrE uzgCzwa4fFaK4DbYCqpMJ4hE9T9eJPYkaArsnIKMrVq1hZWBqkNutL6NVNYlTgdbeCRI QGgb0Q1oJ34U1OEOFqyqTE8HQCmK1XeGMccamNt7z+QvKzmoD6oW/FjMavt5sPUdn6os S/P23K0lyrOrpfKYJtJHoTKHanktQj6GMFIEp1qnu+WiVukGPOedAp4MHAQIREzC8u9N r8SQNThNs/UApdYekBd1MLezMWtmb6tKu5pj9WvjzEaS2QBsfQ7n57utXzIzX2selmbC D2SA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a170902b78b00b001ac7ea55768si454000pls.499.2023.05.24.04.25.37; Wed, 24 May 2023 04:25:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232417AbjEXLBa (ORCPT + 99 others); Wed, 24 May 2023 07:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjEXLB2 (ORCPT ); Wed, 24 May 2023 07:01:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C77FB7; Wed, 24 May 2023 04:01:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E674363163; Wed, 24 May 2023 11:01:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 593D6C433D2; Wed, 24 May 2023 11:01:23 +0000 (UTC) Message-ID: <6a9db92e-a52e-c427-8a8b-fbec4715c0a9@xs4all.nl> Date: Wed, 24 May 2023 13:01:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v7,0/2] media: mediatek: vcodec: add hevc stateless decoder driver in MT8195 Content-Language: en-US To: =?UTF-8?B?WXVuZmVpIERvbmcgKOiRo+S6kemjnik=?= Cc: "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "frkoenig@chromium.org" , "stevecho@chromium.org" , "wenst@chromium.org" , "nhebert@chromium.org" , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , "nicolas.dufresne@collabora.com" , "daniel@ffwll.ch" , Project_Global_Chrome_Upstream_Group , "benjamin.gaignard@collabora.com" , "hsinyi@chromium.org" , "linux-arm-kernel@lists.infradead.org" , "angelogioacchino.delregno@collabora.com" , "nfraprado@collabora.com" References: <20230524080739.17264-1-yunfei.dong@mediatek.com> <44558245fdfc49e33d3a6478e30069ba4b6d3b3e.camel@mediatek.com> From: Hans Verkuil In-Reply-To: <44558245fdfc49e33d3a6478e30069ba4b6d3b3e.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 Hi Yunfei, On 24/05/2023 12:16, Yunfei Dong (董云飞) wrote: > Hi Hans, > > Thanks for your suggestion. > > I don't understand your means very well, need to confirm with you > again. > > hevc(v7) --- > media: mediatek: vcodec: support stateless hevc decoder > plt(v3) ----> media: mediatek: vcodec: Fix decoder under flow and plt > test fails randomly > > Whether hevc and plt patches merged together? > > Whether you mean I need to post v8 for hevc patch based on plt patch as > below order? > hevc(v7) > plt(v3) > media stage HEAD > > I cherry pick all patches, won't get conflict. > > Or I need to post hevc patch based on media stage HEAD? > hevc(v7) > media stage HEAD When testing I found a problem with the plt v3 series, so I decided to drop that and take this hevc v7 series instead. So you can ignore this email. I'll make a separate email describing the problem with the plt series. Regards, Hans > > Best Regards, > Yunfei Dong > > On Wed, 2023-05-24 at 11:27 +0200, Hans Verkuil wrote: >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> >> >> Hi Yunfei, >> >> On 24/05/2023 10:07, Yunfei Dong wrote: >>> Add hevc stateless decoder driver to support hardware decode in >>> MT8195, and the driver >>> need num_delta_pocs_of_ref_rps_idx value to parse slice header >>> short_term_ref_pic_set(). >>> >>> patch 1 add num_delta_pocs_of_ref_rps_idx field. >>> patch 2 add hevc stateless decoder driver. >> >> This series clashes with this older series from you: >> >> > https://urldefense.com/v3/__https://patchwork.linuxtv.org/project/linux-media/cover/20230424060130.18395-1-yunfei.dong@mediatek.com/__;!!CTRNKA9wMg0ARbw!ndi-6i9h2KkGhm1Sgg4aAXrI3iYVMKtyxR2bjt-HCujIL5d9-OfSzfJnlvwmVuIRCwgdZtlP4z0zNU1fvCD9WPQvpeyKDyUK$ >> >> Can you post a v8 that sits on top of that older series? >> >> Regards, >> >> Hans >> >>> --- >>> Changed from v6: >>> - fix AngeloGioacchino's suggestion. >>> >>> Changed from v5: >>> - checkpatch/kernel-doc pass/build pass. >>> - fix warning: struct vdec_av1_slice_fb -> struct >>> vdec_hevc_slice_fb. >>> - fix warning: remove unused comment for param "trans_start" and >>> "trans_end" >>> >>> Changed from v4: >>> - fix some comments according to Nathan's suggestion. >>> >>> Changed from v3: >>> - add the dependency patch to this patch series for patch 1. >>> >>> Changed from v2: >>> - fix one build warning. >>> - add the dependency patch link. >>> >>> Changed from v1: >>> - fix build error when build 32bit system. >>> - hevc fluster test result: 132/147 (not support: 10bit => 11 and >>> resolution => 4). >>> --- >>> Benjamin Gaignard (1): >>> media: uapi: HEVC: Add num_delta_pocs_of_ref_rps_idx field >>> >>> Yunfei Dong (1): >>> media: mediatek: vcodec: support stateless hevc decoder >>> >>> .../media/v4l/ext-ctrls-codec-stateless.rst | 7 + >>> .../media/platform/mediatek/vcodec/Makefile | 1 + >>> .../vcodec/mtk_vcodec_dec_stateless.c | 59 +- >>> .../platform/mediatek/vcodec/mtk_vcodec_drv.h | 1 + >>> .../vcodec/vdec/vdec_hevc_req_multi_if.c | 1097 >>> +++++++++++++++++ >>> .../platform/mediatek/vcodec/vdec_drv_if.c | 4 + >>> .../platform/mediatek/vcodec/vdec_drv_if.h | 1 + >>> include/uapi/linux/v4l2-controls.h | 6 +- >>> 8 files changed, 1174 insertions(+), 2 deletions(-) >>> create mode 100644 >>> drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if. >>> c >>> >> >>