Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp626409rwd; Thu, 25 May 2023 01:19:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+GPuXuaueYaWtLP7G3cZp0U9/Rg2CnzkBTxT4F2jmw4ZcUfUUBpWBiwexdfXXQMgbm6LQ X-Received: by 2002:a05:6a20:549c:b0:10e:786c:821e with SMTP id i28-20020a056a20549c00b0010e786c821emr4108697pzk.25.1685002752486; Thu, 25 May 2023 01:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685002752; cv=none; d=google.com; s=arc-20160816; b=DOAj8ARVseVLw+P9ObwjTgeBZR9/LXKqrwXQpoIqbSl4KIWQ5OOsHNO0UCj24w74w1 tye6p+G+HjxCWElTV9f+Mr/uGaxOCtVPm2QbTlqT/vR6CEJiUH3Ls+aWa5eFk8T9vcPA bc++wkboXtBxhNv3/c6uj5RV6QJswaDizLCSJ05Qssktn9zAIt75JTMQR0xYTrzONGQC deeXBfqPhhYyQmCQVA03U94YlL5D5wco6xWs8247u+Oc9FHJ90+B1yExsUHuXxbzjE6M bcRodZjp4Me5ioSkGR8KqzOIlAd+9y156YpI7Z+bNC9tCI3d7m1jLlkaW8wZSCDdQhSk GlIA== 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:dkim-signature; bh=N/ifTiJpCJUUIHeZ0UgMO46fNp22gqLE0Eoes8csjpw=; b=BuFGEIEQXI8rG2tdxUHyqtnKLifgoFnriY+DwwWoymJemaf0qTo6GofkKRGjoUPH45 X41EgsVH7vOoiL1PgmbkW0YvsIGuKqzaAT5AA1k+WgDSMPdMasVPmY5PS5CO4pBIlKDQ tVheY9fm9ZIQgdUJagg1UcLcSYGT38TAot3sl3fN3GmBUURfAgJBTb/RBzPmZo1wb0JF A0L8rAVYWU9E1Js37Tz43nw+FW+vjdBtMGokRkj2eltxLKUMSmcaCvedCUl21eaB3G3I OFLERHukXo7nc5rREUpKplcPpmAic7LDYmTg2d8sgi562CPilB9CIrNuQLE3RGdVr+Ba S1Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JuHzM1OY; 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=QUARANTINE sp=QUARANTINE 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 h28-20020a056a00001c00b00647514cfd36si949938pfk.242.2023.05.25.01.18.57; Thu, 25 May 2023 01:19:12 -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=JuHzM1OY; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239208AbjEYIMy (ORCPT + 99 others); Thu, 25 May 2023 04:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238018AbjEYIMw (ORCPT ); Thu, 25 May 2023 04:12:52 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 603481A6; Thu, 25 May 2023 01:12:47 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab] (unknown [IPv6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 067D76605835; Thu, 25 May 2023 09:12:44 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685002365; bh=TcK2/fChHQbciGa6WppN3XkreiKbw8YDT890PFyTALo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JuHzM1OYaoL5FfWPmjozV9vKwhGTr28mcWL1gkElk87Lylsc453P261U7dxp8tLlI xLw3kNh2XUi6TyCRUEpHsehymwuDvRqls2vlwori0e/rjQqAH0PwNEatdjH6NGn+PA 6v2Q3zgs09y+UyYz6r5UPc3sp3ZPFaZHLPi6yTgZA6l9NXK2PP1o83fIz5q2R7sF+U e35mHYNYhU7nyQ7jFxido5NNacLqOUr18QJt+gpS0sJwQ85WtWdDTlghCzguxxtCeP O8eogRNJNNefde99VSKnaYpo9FDgKdTDLoLBv8Cvo7GDGWYwK48abo549b1GC09Vb2 jjopLKEHD0XMg== Message-ID: Date: Thu, 25 May 2023 10:12:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v4,4/4] media: mediatek: vcodec: using empty lat buffer as the last one Content-Language: en-US To: Yunfei Dong , Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , Benjamin Gaignard , =?UTF-8?Q?N=c3=adcolas_F_=2e_R_=2e_A_=2e_Prado?= , Nathan Hebert Cc: Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , 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 References: <20230525014009.23345-1-yunfei.dong@mediatek.com> <20230525014009.23345-5-yunfei.dong@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230525014009.23345-5-yunfei.dong@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Il 25/05/23 03:40, Yunfei Dong ha scritto: > Adding one empty lat buffer with parameter 'is_empty_flag = true' > used to flush core work queue decode. > > Queue the empty lat buffer to core list when driver need to flush decode. > It's mean core already decode all existed lat buffer when get empty lat > buffer, then wake up core decode done event, the driver will exit when getting > core dec done event. > > Fixes: d227af847ac2 ("media: mediatek: vcodec: add core decode done event") > Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno