Received: by 10.223.176.5 with SMTP id f5csp671628wra; Fri, 9 Feb 2018 05:28:17 -0800 (PST) X-Google-Smtp-Source: AH8x2273Rh/qS6CBQVxRt1JyexHEqH/3KsHuazHe7GjUf0f5jgJ9e9wZ+P0WcO67qcWaUBxVqVc2 X-Received: by 10.101.80.69 with SMTP id k5mr2395521pgo.431.1518182896906; Fri, 09 Feb 2018 05:28:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518182896; cv=none; d=google.com; s=arc-20160816; b=iUZdT2hGXKg/UGXuK1jTJYVB9Noh3iX0uBYrExRHpAMc5ZTS2HHTlGzOrEZMQkkEBr fKlJGb/72X10MDZQ57Hkr5frdNt12Mf7dhKDPO9EVQOkAvp3qBHrCg6o4vd67OSx+p66 wycceX2yMkY1OcjEF0NINUXXL7Gzr0s3WQDAYGc7J/kjbtNAYf9MRfT9Ld0kcNnVzbqx XHCrvM5Jni4FRl5DHu5USSdSvrXlrvjZQWWdjGwX9hCPXJ3ZbDOnHrimSljwraNeEezi sVd2q0MPuqdEdyPz7+5qZjBUzIl3U/Ok1vLXZMdzWJnSnzx7TXgVXYoow4gIpFunK6WE kEiA== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=++inDIq83bzsCWWitQxaOPWC0bpPxF9nqRQouHZECAY=; b=sEWPesWpYWIgRmWRjzCrLnhrAQcE/29x2huQ12GuMoHy4pznTN6Lte+NeYmaNpzsKQ iM9cmg9qxByxnmQx6/Dxqk4SYPmpyWbRPD1QZ2PQPnIJNGutaNyfTfoj9G+KA8EBlJHk nxwfty50Jn7OqegLKeIcsWKQji/GBk4yfcNwwi5QJFV+YzB/mJK3y3EM5w+e5BMcza/x EJ/mXFfymGn72+1KDmrUYP0WonoPw9z98j03N6wgP7UYYseARWpkQsUYbjaJiZqLjh1K AaV5+ybi85mCZrJ+EGt98djh0tWhTcFQInkARIqHZ7sje8aKirL3WHPVB1UFIR5hxF3v vm7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sC6vNSMP; 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 t25si1375907pge.368.2018.02.09.05.28.02; Fri, 09 Feb 2018 05:28:16 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=sC6vNSMP; 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 S1752172AbeBIN1I (ORCPT + 99 others); Fri, 9 Feb 2018 08:27:08 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:33004 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751151AbeBIN1H (ORCPT ); Fri, 9 Feb 2018 08:27:07 -0500 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id E72CF20064; Fri, 9 Feb 2018 14:25:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1518182741; bh=mnQyIIahpjUI6Lk/byo2f9uqnf4nstu4Qrcj/ZN7HLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sC6vNSMPCGRKVJtw71YRJQpwhym1+VmOoLmofVgfX/rrHl7ps231VVerRd7FK0Q3Y lNISLu1+ObxoWJI9PFEnJsNDOerbLen9CNdI4CTD38/KCa4XS+BVmFS5YajWO5ty6L bt9pgmU/EW6lEsNfH4mxe4DydyKU9xsnTqHp5li4= From: Laurent Pinchart To: Kieran Bingham Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , Kieran Bingham , "Stable v4.14+" Subject: Re: [PATCH] v4l: vsp1: Fix continuous mode for dual pipelines Date: Fri, 09 Feb 2018 15:27:36 +0200 Message-ID: <2830648.6d5UhGC3vQ@avalon> Organization: Ideas on Board Oy In-Reply-To: <1518182305-17988-1-git-send-email-kbingham@kernel.org> References: <1518182305-17988-1-git-send-email-kbingham@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, Thank you for the patch. On Friday, 9 February 2018 15:18:25 EET Kieran Bingham wrote: > 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 Good catch ! The patch looks good to me, but I wonder if we shouldn't write the subject line as "v4l: vsp1: Fix header display list status check in continuous mode". Sure, we're fixing continuous mode for dual pipelines, but that's more of a side effect, it's header display lists that are broken as a whole in continuous mode, even if we only use that for dual pipelines right now. Apart from that, Reviewed-by: Laurent Pinchart Please let me know if you'd like to rewrite the commit message. > --- > 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); /me feels so ashamed. > } > > static bool vsp1_dl_hw_active(struct vsp1_dl_manager *dlm) -- Regards, Laurent Pinchart