Received: by 10.192.165.156 with SMTP id m28csp259588imm; Tue, 17 Apr 2018 09:40:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/XQVA652ZjKVxYgzi9WObHf+a3pKdS0V0/NZ+n2Lj95DSdysnDjHvvx2ogBSy5KWjMOqh6 X-Received: by 10.99.114.78 with SMTP id c14mr2322832pgn.195.1523983237670; Tue, 17 Apr 2018 09:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523983237; cv=none; d=google.com; s=arc-20160816; b=ccijwYaiVd8ISjn3uPj3YVow+WdYxEbnzSi0I1vlTz68shpB3XXU1o/GW564CpzDRM bQswUBDL6xNuU/bIWH9ncGp2BCHGG9QlqK7aSNn7L0Tz2cDVxBnHzJrGA9XWi2zGuRpg kwwmfiz/Wb8liQe3n33NAKwkKyAMxiFp8TeJwM5jAFDGRrbpLPlVvmvXF7gOcZ20pyaO KS1yt/pOmS6Wh4OrsoypvN17D+C5f61wnAuQ+tRtTYl+J8BjysW/mh1K7adKMz0qfZCi kmoZULxTAXwyW4P0pR3DCbQhmUdijSZ41WA/Xi9uAv5E6hT7El4/LO+vu5LHgj0dMaiu kxOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=D/9nfwdTy/YRGTdp/OU6eV1qVEFlDXfTwTChas/R5R0=; b=p89hHE5a07YvCaaeqWwa9FNgxdydpE3WwIPzQzbutQ4uStK9LcaLda6LnbhARx0M2s 2O1uVc3d60GtWBR9eIx/0lqc5n+vMkvBOzxKhLQXKB4qAqKvuDATcVGzdh1Ffyfn1d04 ENrIlUlW6kMiEgrGi7GaCtcmh5PdGqaAGHmVE+FsiA4n+72MqDGfjWJt8dHflTW8PZKF UlzES5rTB6Jj1q62RaAggP8fxnGV+Mh0zh789SSSW/e4uYml8bUydVKj4f0fvoEAyJMB fe98sRQmEs964fIC7XrLkaZt1BUJUdlx2qev4kP+tFjD5TgfARKXlTikRJRRbiOyEOgg LN1w== 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 g15-v6si1670648pln.526.2018.04.17.09.40.23; Tue, 17 Apr 2018 09:40:37 -0700 (PDT) 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 S1755146AbeDQQi7 (ORCPT + 99 others); Tue, 17 Apr 2018 12:38:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34888 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754816AbeDQQGs (ORCPT ); Tue, 17 Apr 2018 12:06:48 -0400 Received: from localhost (unknown [46.44.180.42]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 14A8DE38; Tue, 17 Apr 2018 16:06:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kieran Bingham , Laurent Pinchart , Mauro Carvalho Chehab Subject: [PATCH 4.14 09/49] media: v4l: vsp1: Fix header display list status check in continuous mode Date: Tue, 17 Apr 2018 17:58:48 +0200 Message-Id: <20180417155715.453427333@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180417155715.032245882@linuxfoundation.org> References: <20180417155715.032245882@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kieran Bingham commit 613928e85317b945c863bb893f5737d2f22f5425 upstream. 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 Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/vsp1/vsp1_dl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/media/platform/vsp1/vsp1_dl.c +++ b/drivers/media/platform/vsp1/vsp1_dl.c @@ -508,7 +508,8 @@ static bool vsp1_dl_list_hw_update_pendi 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 void vsp1_dl_list_hw_enqueue(struct vsp1_dl_list *dl)