Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2356557pxb; Sun, 30 Jan 2022 13:26:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzElWt8BKOPY5y/O5YQd+vJdVvdV3Aka4LHD3X5ahUq1xWNb2cZteXFK70tx4SEHlZEkzhz X-Received: by 2002:a17:902:da89:: with SMTP id j9mr17471639plx.66.1643577987366; Sun, 30 Jan 2022 13:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643577987; cv=none; d=google.com; s=arc-20160816; b=IfvLrj4g1/9QdpvtsB+l2xwyYUC7EOZX2inzkEkm+owADHK2HeSjk+518RgagdIVRj WIQXs1yG+xytPa0V/1s8/qKcPLk4LYKRjMvXenpBkKHRzAQFpc9Py8//Z4dLmu+U4A+9 uqe3b2VD5+nuRboG7uiteSumbLhxSU7h3kGAiAQ9CJiCkSA4Jm8i9CwwdBEZsZzA9rKw ZSpXy2O0WhiXDoNS7xEpfVENClFdGddZDP2Armyxf9g1vurRcC3KfcG0VSGptMAgsfHm dvMEooBhwvxs1vikqoStDPy4uZBP6JwKBOtkw9w6SLeXktMlX98XTM3Mw1YfRxpHpCIZ TxeA== 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=uypjABlKlRqOtWav+y8mpHvTXG67kXdmS8Ai4X2uC08=; b=Z1DGmA8EE/WTFEVWQZKQ6n0luqaSi+qSzQVHD9GmHCY9F4Ff9fJXH5OfxjKqSo02Ok oP02vcs8ub7vwakLj0NxzY5/cj/Sj29LUehCEvSfd2CMyatKh0/HkYEhEdSUphug2sY2 GNih0Us6Y/MQJHf+U/FRLJHgvG3AZX7DZpbuS62CKWiRFg1+zinQwNPBjl/vGpH6IAOi 1579EYG5p+sXSj249pPF/yT8IGKwGAvcQ8DWpzz9DN9Z5dV5hiHNsQgCTrzII/XKhPzr c8jODULypf+6Comos3j+8jsgp7Qq/esL6q33UnOr3bUcgAWtRtceqDHwrksY9b0yqlYh UjEQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pc3si11260866pjb.67.2022.01.30.13.26.16; Sun, 30 Jan 2022 13:26:27 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244618AbiA1KNR (ORCPT + 99 others); Fri, 28 Jan 2022 05:13:17 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:37538 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244542AbiA1KNO (ORCPT ); Fri, 28 Jan 2022 05:13:14 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id E136CB818E0; Fri, 28 Jan 2022 10:13:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 358F4C340E0; Fri, 28 Jan 2022 10:13:10 +0000 (UTC) Message-ID: <040ba85c-6cdd-8053-30ed-194548d23a18@xs4all.nl> Date: Fri, 28 Jan 2022 11:13:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer Content-Language: en-US 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 References: <20200502194052.485-1-andriy.gelman@gmail.com> From: Hans Verkuil In-Reply-To: <20200502194052.485-1-andriy.gelman@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I'm going through a bunch of (very) old patches in my patchwork TODO list that for one reason or another I never processed. This patch is one of them. I don't feel comfortable merging this, given the follow-ups that were posted. If someone wants to get this in anyway, then please make a new patch. I'm marking it as 'Changes Requested' in patchwork. 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); > } >