Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13426255ybl; Sun, 29 Dec 2019 11:35:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyMkaE8xlX0rh25gJslBQ2k2nG/XdEic+gm31HcHbiU8dkcVuJqTm0fyKMR7CT8UTJ8NfI+ X-Received: by 2002:a9d:6516:: with SMTP id i22mr52178837otl.94.1577648141680; Sun, 29 Dec 2019 11:35:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577648141; cv=none; d=google.com; s=arc-20160816; b=V4GAQdIREIq5dJ8nq4+00y8j3KCvAcvn/p8OoarjCtPUr5E4s0kdQakUzafgfoiqlO Kw8HDHCw6DvAhHc3CawCbkMo5oFCC8RBQPigpogDhzD8r2waOuEd9+g1PzP0dcDUaWSX GXaW7CyrJ61CHNLkc8awMP7sx8d3GnfzrY4Wne8Xq32NBxKsjwgVEgl4gFiJR4/9LkEA DyphMp0899XVmh5Iwbdjq1PlxhB+tldzAbLE68HL94L7eLjz93bS87/rTRQfzrM0Cqt8 WKEjGl6DQafQ6xYScliudPFzTltNIauQbuABBj9UbXP8Vv2QJhsWS6MXL8N0NZQifug8 b9ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7t0Ey0QxzNHc9fdMrsDXCT3PfDpTT3ciHVLWp8URsVo=; b=ML2RU9j1oCXG0DpnBOFxn5gjvZHoH5lxCD5i1Zn3ApdxT8MUyuroqOWoa7uTt3q29Y 1JweZQK6mUwrAIHT44bNbXxudUYrwwQNpoglT6Qgi9Zf0y2DaUhlgH65LmpXYvL4xTmv gkBujy6StKzrozMCJZBrRPsDWeQqEYeq4HySeWb5npaoROWJF1MWtE+Q5LEKp7Qogjuq uAIk5OW0k0/zfVenPt7zhpJR50M153WaSNe9rQdDGxWVsP5rDoSBGwXJTOAYlsOBXU6M FapWxHI86zYc4kJq2pPshDS+n3QFOfvxaBdbXTWOYDGWw8cfwbICytQeAgR1fu9wMy4X CavQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GF3bQnRA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si4134809oic.185.2019.12.29.11.35.31; Sun, 29 Dec 2019 11:35:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GF3bQnRA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728942AbfL2RaT (ORCPT + 99 others); Sun, 29 Dec 2019 12:30:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:55890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728841AbfL2RaL (ORCPT ); Sun, 29 Dec 2019 12:30:11 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 53C32207FD; Sun, 29 Dec 2019 17:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577640610; bh=bRiTr0pAkMxZdtoMqYh2qB+IdnyGATTp4oikFJ93oDQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GF3bQnRAps6kTLKtHeSyWgZq2lLr8vBtxRrqN9FasFFbYsghBm5MB2kQE4PLeIq+T ENIE1kACe/GWsCN3mZv35LLFGtx7q4/H+hRQJgoaM/+E5P3vp1eVmc27MavGGrwKgK KIHS/B28GwtnuzVNO7+N5pIOU+G/wbxUqJnSiLjg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benoit Parrot , Tomi Valkeinen , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 066/219] media: ti-vpe: vpe: fix a v4l2-compliance failure about frame sequence number Date: Sun, 29 Dec 2019 18:17:48 +0100 Message-Id: <20191229162516.498390883@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229162508.458551679@linuxfoundation.org> References: <20191229162508.458551679@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Benoit Parrot [ Upstream commit 2444846c0dbfa4ead21b621e4300ec32c90fbf38 ] v4l2-compliance fails with this message: fail: v4l2-test-buffers.cpp(294): \ (int)g_sequence() < seq.last_seq + 1 fail: v4l2-test-buffers.cpp(740): \ buf.check(m2m_q, last_m2m_seq) fail: v4l2-test-buffers.cpp(974): \ captureBufs(node, q, m2m_q, frame_count, true) test MMAP: FAIL The driver is failing to update the source frame sequence number in the vb2 buffer object. Only the destination frame sequence was being updated. This is only a reporting issue if the user space app actually cares about the frame sequence number. But it is fixed nonetheless. Signed-off-by: Benoit Parrot Reviewed-by: Tomi Valkeinen Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/ti-vpe/vpe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 76d699e94b00..15f0b0bb89c0 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers/media/platform/ti-vpe/vpe.c @@ -1431,6 +1431,7 @@ static irqreturn_t vpe_irq(int irq_vpe, void *data) d_vb->timecode = s_vb->timecode; d_vb->sequence = ctx->sequence; + s_vb->sequence = ctx->sequence; d_q_data = &ctx->q_data[Q_DATA_DST]; if (d_q_data->flags & Q_IS_INTERLACED) { -- 2.20.1