Received: by 10.192.165.156 with SMTP id m28csp276181imm; Tue, 17 Apr 2018 09:58:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+/jDHeWQb2if3fac50+3BclwVvylB3YYf7pZ2MSayArp60rqSUIvAdWvSO8lCuqtCLY2tg X-Received: by 10.101.99.154 with SMTP id h26mr2357316pgv.3.1523984314590; Tue, 17 Apr 2018 09:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523984314; cv=none; d=google.com; s=arc-20160816; b=zVklaFeEiYzlWTGwmZ8DwI8Vax9Mg6JMtZNFY/irHRsU2ku24+M9CGNJaIZXFAIN0p DVcIjDK2l6Wo57pw8q9ED//6fNcj1jAnltw2mDOCmGIEb6SZA9v2i4mlUMTipGYJH+pU PDcYQwnwQp88G9T5qU4YcQ00reKEkjS4/mRQhavslNgir3W+i4aCzesC6gJBwIMVQOig cwEuT76ZGuxmdZIVdZpq68NIpjcQDhdOyVQhV+W4+7BkMlXV8STQPsOKSh2GfVFWavCw yXvkTqhf8I/KCNBK4SkWa4l5NNLhk5F71tqsikfcjafC54eUyw0ta/BRa4M0UwT4euth InKA== 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=ZkbgjT2xzC7Qj6ePMxFiYkOrQHjxpYMbNvsAEOTq7kU=; b=0Z5h4xvwvNwPSxxjhPz3g9vp5X0B1qKKppsdx2Xxk7N19AQ8x/gcYp5RsqPLoVpOmL MTyMMBTjy6K2jiCHtQ2i3lG57uCF4ri/Jru/A1aCd7UD3E6omYch3BfmQdYwyw2KNBWT ShpT6+VSVLc58LSI0HRwg3WuBEaZeJl6s2d9rSurbVioFO0hmPxjXeZzfYOjs9Ppz2eV R5JN5nWYT0usXJ7MU9VBMbDP68yniIl9nxsu92TvMGVSHSLPAaORcNNOaiXQme5gDqf0 LmwNQAH1E/Kg5W4+PUNrZSZp6PPtPZaCC029bz5+KTtlgVi/tObKPlEqsp/9Ug1/rC9Q 5ZIA== 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 a73si13252350pfe.23.2018.04.17.09.58.20; Tue, 17 Apr 2018 09:58:34 -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 S1754434AbeDQQzw (ORCPT + 99 others); Tue, 17 Apr 2018 12:55:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:32936 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754284AbeDQQDX (ORCPT ); Tue, 17 Apr 2018 12:03:23 -0400 Received: from localhost (unknown [46.44.180.42]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C840AF06; Tue, 17 Apr 2018 16:03:22 +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.15 13/53] media: v4l: vsp1: Fix header display list status check in continuous mode Date: Tue, 17 Apr 2018 17:58:38 +0200 Message-Id: <20180417155723.780119465@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180417155723.091120060@linuxfoundation.org> References: <20180417155723.091120060@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.15-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 @@ -509,7 +509,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)