Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp250570pxk; Thu, 17 Sep 2020 01:52:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydrPaNQssHd1TPC2x8DqHQH02PypRMZSATM9QlOx2eE/Yp/Ur10RgmEl2FSt0i+QOF6wYc X-Received: by 2002:a17:906:2619:: with SMTP id h25mr7268380ejc.142.1600332765622; Thu, 17 Sep 2020 01:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600332765; cv=none; d=google.com; s=arc-20160816; b=f3AJYGD4X+mzVR43t1XGX4DoYi6346pAwou40suQFrXTDDg1qTfYCIuYLn9SerJCAP JawU75zVzoBW48I7sZu0A8QX1+iEnapdlvLKmRb2IAI1gXJyuWrdAn4qTo43DFYJuF48 cCrwnimvqm/TdpOs07qEnG/IhIofFeyakzNztSY0kRSd2c00KXfCslULMKyFGXMiNxWH uwCEuz2hs4UlqPQs+NfFzm9IXfpYfJRoEuhrXxasXT0oMNYc61HfO/Ynjq6pC6ZSoXlD qmq6Hfya5XiGRbm982MIPlwgxzpPseeDqT3/7BdZnsB66z0EAsjfuPQmj1YVolj07FJh 7Bbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=FGGfh7jhrNlQmwwZoXn5URUJwAP31ZNmRR24iAOJumo=; b=bgZ4NjOWB6o1zWq7mN5+o4E2U8lCQLGSnXeEyCGlmu5xpP5LBs+enmLR3mQRyoG4tE v2PqKLQ9fkfb7NWhHM4fF3JqKtbHJI/fzuraKezntRpcjrXnur2g3w3BkdkRV/PrRzgL oVYlk8BEpQUqZOkWXGnDUglB1DpkbP8PCgwWBF50rmNfgr21/oEXqQk/9OroTQBQ5GOW Rdn5EmmzsV0A/Z5jtOEKONdO59vpRhlqd2jdakKin+6nUCOX+VHkt+GQkejt2m5RyIgF xhduA5E6stuYB6UDaD/0NcKAr4dPxOK0x0nmMCE85dh6On5Npz2UhxVdxPzv7aoR/DwJ Vgpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=JvNYembF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si14981337edb.410.2020.09.17.01.52.22; Thu, 17 Sep 2020 01:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=JvNYembF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726588AbgIQIsf (ORCPT + 99 others); Thu, 17 Sep 2020 04:48:35 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:40765 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbgIQIsa (ORCPT ); Thu, 17 Sep 2020 04:48:30 -0400 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud8.xs4all.net with ESMTPA id IpaZkLCWrPTBMIpaaklCZD; Thu, 17 Sep 2020 10:48:24 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1600332504; bh=FGGfh7jhrNlQmwwZoXn5URUJwAP31ZNmRR24iAOJumo=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=JvNYembFkkAhGAZ8dN+vXmDFZsHMHNmic8W0rbLg6fJNrTrsSd+ot7Jjz6P0mhT5o IAZWe/FEbfl9JvTwgcXv/ENPPcZ1rYtqm820WfYZDuoaMGx+HALyiwXDXfr2Wbqi5U M00javSYvNRyeuAJWWRiJ8W2zRs/lXIUs1yTIvuAgTAWK+cT+YFWg7E9BR1il0g988 Met91hPCmxFEcuAt4+aic+Tc15qZdfI4hR/O3amqgvidJWV+3qeSBRqSHyoTskCJId MsKLayrGEJzq3OwKRXZKdyqyjUQYpCZ3N61OOrbf9BnRFVOwV1E9xO0MY1Rj1tB4hP YTDtZGR0CkouA== Subject: Re: [PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer To: Andriy Gelman Cc: Kyungmin Park , Kamil Debski , Jeongtae Park , Andrzej Hajda , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Sylwester Nawrocki , Tomasz Figa , Nicolas Dufresne References: <20200502194052.485-1-andriy.gelman@gmail.com> From: Hans Verkuil Message-ID: <0210ef98-b075-322d-dc3a-adf3dccd3a92@xs4all.nl> Date: Thu, 17 Sep 2020 10:48:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200502194052.485-1-andriy.gelman@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfEUIpir7Ikuif51JPR0IdmdnmoQrwFeVAxZVhJd5QweV3UW944PQu8Mh5b9o6+gH+RkTZyICGmRrFMScfWc4FUFklaDZosxGds04g0NiPTdlwRlXu/rj k/lTU4TPJkR1r/3srOG2CsdU/zJvlHQ0SXylvNpc5Grvbbl5UQFpEsmoihDju9Wuvy4O72v18pKVRXHHoxWmUZTrIZA34zh70AhRiQmGU83dyTxXu9c2MqKa cTcnCiL7S0QDgE9u9sEbnYNsbpy3TQ2wvys7RbGlzmLg1SlZ1yXUKYuUALFkDup43MA/6BfSZZ/ndTB5cLs5MfyvMUkef4sLQG8MraK76Acjhr3J89mXvngf TdwkRs/RuxINL8GRDSViHLCiLq5utINYMow1METgqj88eubOC3dpwfrAwGqRTCP2zi4EGItg5BExVqicpcRaooTeAjZ5lfr7ZB8Q4BihfpmQFe6jUkOVZsgk uNhKrMiYixObA6SEH1wQ9mVVupJgzV7+Jn89+iuNcmqbGvA3ugLCQdEjkaXokyQQpbhIJ+DEXBWzQMEAIXcOG2z7iPB+9agCgepgnRdgbesnLCZwK/kKKaC5 GfgAmMQw/nyvexYwQS4RGB6GBVQgDziM5uTubrdzOH+sSVrdObvu3A4pk9MkVE7wkU0= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added Sylwester and Tomasz. I'd like to have an Ack of a driver maintainer before merging. Regards, Hans On 02/05/2020 21:40, Andriy Gelman wrote: > From: Andriy Gelman > > As per V4L2 api, the final buffer should set V4L2_BUF_FLAG_LAST flag. > > Signed-off-by: Andriy Gelman > --- > drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c > index 5c2a23b953a4..b3d9b3a523fe 100644 > --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c > +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c > @@ -614,6 +614,7 @@ static void s5p_mfc_handle_stream_complete(struct s5p_mfc_ctx *ctx) > list_del(&mb_entry->list); > ctx->dst_queue_cnt--; > vb2_set_plane_payload(&mb_entry->b->vb2_buf, 0, 0); > + mb_entry->b->flags |= V4L2_BUF_FLAG_LAST; > vb2_buffer_done(&mb_entry->b->vb2_buf, VB2_BUF_STATE_DONE); > } > >