Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11799833pjo; Thu, 2 Jan 2020 14:29:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwSeX2xZDZ5sUoXo88UFHYrje0wNykAk54zvOM/GklJbXRITSCe8Bn5p1H9rgL2PMbLnsvM X-Received: by 2002:a05:6830:1707:: with SMTP id 7mr68919902otk.235.1578004184055; Thu, 02 Jan 2020 14:29:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578004184; cv=none; d=google.com; s=arc-20160816; b=buyRm7gGvkB1oHdnOxH3CNS/keOonhAmq1aYg6bO/O6Kepb+LDhcnrAAAb5bgrreAC SQsWzdYtOK6/2Ur2L0BGo1dNczvz9fcoXCklVmtNaEtrwozgd44Z7Y3E9X2UuHPsn+NP DKakJaN8K2Zyrem6D18PCTvPzuswrTcDCKPhR9CTM8Op2Q+nCA/nWmbWBgl3pktdYiHr Oht7SIWmbXf8JB1Rh1HdeFy1Ho5PQJbTSMxqp/ZyY07iEyxtsTkLimW28LXXWritRTZx bC2PV621r15bfnz3B9tKiFUR59CXYQn0do/rT4ul8QUY5WV+mdfAgJ494Wmk/Ad7Niw7 AM/A== 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=R4CXQ7pqSXgKAid66UX0ryCm+HEe850fQjcjC3dlCpw=; b=lyn5EHytcm73coNdxmaoFfTXTY3gzUZ/tai+3aC7tVREo/InGHIm/ErMWTAKq1aBq/ zs57v8uKxdfbCgBp3XYoSin9n6+wDR95yQdHgsjBKalZZrPA52x73hBW0cFGbkUL9/5d v5NhLA2YMr1IA67rH5erICGgePAhKlEfj7GB0U/a+wO0rtNj/etTjH3FRsfeHR48D/0Q hoUlvcnTlsgeJ76emnqaODi3ZpQ67GRSEj+SeZHK54xQcfjLo6mIHpXPWtQnEdtE8JPa WZXIsLc8NMENIRSH0OOtp2/0OKgm2CJh+7/luY0yPzLnEpF1aB6F5zSz2g4o0WYmXCGh GC4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c8Z+SNCH; 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 h7si26457972otm.165.2020.01.02.14.29.32; Thu, 02 Jan 2020 14:29:44 -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=c8Z+SNCH; 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 S1729827AbgABW2B (ORCPT + 99 others); Thu, 2 Jan 2020 17:28:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:57142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729818AbgABW2A (ORCPT ); Thu, 2 Jan 2020 17:28:00 -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 1615F20863; Thu, 2 Jan 2020 22:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578004079; bh=Jz4+tiQoA3soK8mhbo9Lb7ejNwOo5S1DZL385cqGIac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c8Z+SNCHBUBRsHbkBR62aPNPvmxOlqNxgtGVBv3wqU/AhoTYDO4L0fW16FjvIOG+8 lcnzQZl9gpnjc8mZDhApzBGp+Piay6n1GOp8mZZjtEYOT7iiCe5vIsBg842LQg+88n FLuIp0m8y820r6gDpoiMS0CCNd4xgGw0K5Pf5nWw= 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.9 029/171] media: ti-vpe: vpe: fix a v4l2-compliance failure about frame sequence number Date: Thu, 2 Jan 2020 23:06:00 +0100 Message-Id: <20200102220551.106012580@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220546.960200039@linuxfoundation.org> References: <20200102220546.960200039@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 da308fa6561f..067548e14e11 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers/media/platform/ti-vpe/vpe.c @@ -1298,6 +1298,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_DATA_INTERLACED) { -- 2.20.1