Received: by 10.223.176.5 with SMTP id f5csp662817wra; Fri, 9 Feb 2018 05:19:35 -0800 (PST) X-Google-Smtp-Source: AH8x225CDe3kYCNBylCipZ8P1DlNosO0UfcDV/KuCpNh7mx/nUWgn0VZEkAsRtYtvpWLgHtzOVgt X-Received: by 10.99.157.140 with SMTP id i134mr2358115pgd.197.1518182375032; Fri, 09 Feb 2018 05:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518182374; cv=none; d=google.com; s=arc-20160816; b=dWKHrFbX3EDplnUzq6qdLYpbJe9RCs8S0G6YTgVAWegmJWMa1xLRlBG1flXZySOQBv BkQa4HR9w7QoBy7MYiRgT0llZ1FtIv3whEtCNMjQYWcFRAxC2IJBVFvJNce0xVNW5pSS V/Delz2Ctzd0a5tYmDbovnKaBy0E3v6o27Ohn2yxt7AOKTkVIml1Fcuz1xaqgq1QrS5U +tUQQX6dHeITwWcVl+t/lsnyL44nUZ67RRRy4CGM5qGu6EgMx/WpHmTadyVApvXzJ7Cl 2gJK4m4nhUoNJ5wNARC051VyTfPqJ+5f809CeOVUjiu9y2TRI9CzoG9UDVV81QXj+vCC 3sbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:arc-authentication-results; bh=hqpDr5SJZDWfoiE+TZVEDVlVt1fQzrJlWymaJaYOgLM=; b=TLKg24g4RBAcERlyvtzQAavBMXTTWBV5DGJdTvZ2fqN1vzNh47WdnfB1M888ELQX3N p1vDGr0NClJhHG1rqIEejsOX2tnADe/rqBDWhFy02roVHdSdNTW0/Qkag1Kb5+Fe29w/ /lwm5KcPy5d8gc4W/M/qLVkA3A/6KFbMz4Dq91i4gbz0TfABodoa/efckmfZyp2uHVFi 1uw+0r333jsrCxlVWjN7SafvxzdxEeLPQ58CwGrNrvSafZw5ypcp9OsOwyvxN+j5L/mz 5y6ArUiRKFDSG8mUxnJ9Qk5wMIzzj8c4rrtfMOGFEDOprs0YUJ1vTM63R9dTG/2f2ezs m11w== ARC-Authentication-Results: i=1; mx.google.com; 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 n13si1371168pgc.528.2018.02.09.05.19.18; Fri, 09 Feb 2018 05:19:34 -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; 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 S1751098AbeBINSd (ORCPT + 99 others); Fri, 9 Feb 2018 08:18:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:45162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbeBINSb (ORCPT ); Fri, 9 Feb 2018 08:18:31 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8993E2172C; Fri, 9 Feb 2018 13:18:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8993E2172C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=kbingham@kernel.org From: Kieran Bingham To: Laurent Pinchart , mchehab@kernel.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham Cc: Kieran Bingham , "Stable v4.14+" Subject: [PATCH] v4l: vsp1: Fix continuous mode for dual pipelines Date: Fri, 9 Feb 2018 13:18:25 +0000 Message-Id: <1518182305-17988-1-git-send-email-kbingham@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kieran Bingham To allow dual pipelines utilising two WPF entities when available, the VSP was updated to support header-mode display list in continuous pipelines. A small bug in the status check of the command register causes the second pipeline to be directly afflicted by the running of the first; appearing as a perceived performance issue with stuttering display. Fix the vsp1_dl_list_hw_update_pending() call to ensure that the read comparison corresponds to the correct pipeline. Fixes: eaf4bfad6ad8 ("v4l: vsp1: Add support for header display lists in continuous mode") Cc: "Stable v4.14+" Signed-off-by: Kieran Bingham --- drivers/media/platform/vsp1/vsp1_dl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/vsp1/vsp1_dl.c b/drivers/media/platform/vsp1/vsp1_dl.c index 8cd03ee45f79..34b5ed2592f8 100644 --- a/drivers/media/platform/vsp1/vsp1_dl.c +++ b/drivers/media/platform/vsp1/vsp1_dl.c @@ -509,7 +509,8 @@ static bool vsp1_dl_list_hw_update_pending(struct vsp1_dl_manager *dlm) return !!(vsp1_read(vsp1, VI6_DL_BODY_SIZE) & VI6_DL_BODY_SIZE_UPD); else - return !!(vsp1_read(vsp1, VI6_CMD(dlm->index) & VI6_CMD_UPDHDR)); + return !!(vsp1_read(vsp1, VI6_CMD(dlm->index)) + & VI6_CMD_UPDHDR); } static bool vsp1_dl_hw_active(struct vsp1_dl_manager *dlm) -- 2.7.4