Received: by 10.213.65.68 with SMTP id h4csp426097imn; Sat, 17 Mar 2018 09:01:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELs5Wnpi0SVYjNyKIz56MOWv091XxilU4rSwcZN9WhzFYXZG8hYU5MKImpdP12SOulrsM79D X-Received: by 10.98.182.26 with SMTP id j26mr5082284pff.223.1521302517638; Sat, 17 Mar 2018 09:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521302517; cv=none; d=google.com; s=arc-20160816; b=pbG6etGVubrNyaj0qWLyRwGgzgFat0oSJ0x6SwW5zZZxDn8XoQ60MET54vuZLRfOAJ S0/0TOJEzAV8ZQZKOqJiqySydOmYgjPyqKzDLHi7XSckB5rJMKclBwjNX/ZI54ubYBAr QAKAWIbGhjCzs7BmPK3h+oQuiO2eK0WEXzn2/vW5RiIwZPtc+jrRwWx4jj64ljxfN/jS pme9n2ILePh0Ho6Ltkpc+cAZDer8YEZwotx88EAJ67vllCxmX2Lmph9RPWyvk8TD1C/F 1oUdP3rP309INeh7F6WZPmW61sa6W+mBTSLtg1hEnXNDgzfeuLQ5rdwGzhGFvyUY5SYE poLg== 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:message-id:date:subject:cc:to:from :arc-authentication-results; bh=CK5zJe3Sq9Yc2dXFwCffQUbGu5RLVe4j+ilXUSo5ZZM=; b=hmtlVqJCUN1iNWHdTH1da7fCj4o4n3zoDXpXs+0DisAoI7eENK4/zaSQdViypV2ic0 QD3ZrOmQg1LiNo4Sog2eGN0gxq6yHcA7CvSyW4jNByf9TtBawhEJXbzhxSy/nQ7GwyOc y3FH4S0RXowvu/TPj3PmBTGkOR2YH5Il7qSfU5tmgb+ojQrS6+elNAKop6lRPB/16tbi bBhk3tbi6pqT5PvdostwWFWYaJBWSBgKi3OtEpNo9D+vxmYdjpZx7na9k1fa7LWcUZqQ d6nOpvaamUbYyncXEbQ+6bpiL/8wXU6wuCIgR6VsKKUVZx4LqPlgxNTbPjze81wO8IdE 2gJQ== 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 j184si6921554pgc.142.2018.03.17.09.01.41; Sat, 17 Mar 2018 09:01:57 -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 S1753616AbeCQQAn convert rfc822-to-8bit (ORCPT + 99 others); Sat, 17 Mar 2018 12:00:43 -0400 Received: from gloria.sntech.de ([95.129.55.99]:60032 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753528AbeCQQAl (ORCPT ); Sat, 17 Mar 2018 12:00:41 -0400 Received: from p57b77d55.dip0.t-ipconnect.de ([87.183.125.85] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1exEFq-0002Ke-Bx; Sat, 17 Mar 2018 17:00:22 +0100 From: Heiko Stuebner To: Archit Taneja Cc: Enric Balletbo i Serra , inki.dae@samsung.com, thierry.reding@gmail.com, hjc@rock-chips.com, seanpaul@chromium.org, airlied@linux.ie, tfiga@chromium.org, dri-devel@lists.freedesktop.org, dianders@chromium.org, a.hajda@samsung.com, ykk@rock-chips.com, kernel@collabora.com, m.szyprowski@samsung.com, linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, rydberg@bitmath.org, krzk@kernel.org, linux-rockchip@lists.infradead.org, kgene@kernel.org, linux-input@vger.kernel.org, orjan.eide@arm.com, wxt@rock-chips.com, jeffy.chen@rock-chips.com, linux-arm-kernel@lists.infradead.org, mark.yao@rock-chips.com, wzz@rock-chips.com, hl@rock-chips.com, jingoohan1@gmail.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, kyungmin.park@samsung.com, Laurent.pinchart@ideasonboard.com, kuankuan.y@gmail.com, hshi@chromium.org, =?ISO-8859-1?Q?St=E9phane?= Marchesin Subject: Re: [PATCH v5 07/36] drm/bridge: analogix_dp: Move enable video into config_video() Date: Sat, 17 Mar 2018 17:00:21 +0100 Message-ID: <1685480.Fci6377Q9J@phil> In-Reply-To: <79009f48-d677-ccc0-4d61-3b379d8448a8@codeaurora.org> References: <20180309222327.18689-1-enric.balletbo@collabora.com> <20180309222327.18689-8-enric.balletbo@collabora.com> <79009f48-d677-ccc0-4d61-3b379d8448a8@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT 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 Hi Archit, Am Mittwoch, 14. März 2018, 06:59:59 CET schrieb Archit Taneja: > On Saturday 10 March 2018 03:52 AM, Enric Balletbo i Serra wrote: > > From: Lin Huang > > > > We need to enable video before analogix_dp_is_video_stream_on(), so > > we can get the right video stream status. > > > > Cc: 征增 王 > > Cc: Stéphane Marchesin > > Signed-off-by: Lin Huang > > Signed-off-by: Sean Paul > > Signed-off-by: Thierry Escande > > Reviewed-by: Andrzej Hajda > > Signed-off-by: Enric Balletbo i Serra > > Tested-by: Marek Szyprowski > > --- > > > > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 11 +++++------ > > 1 file changed, 5 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > > index 5a2e35dc41e3..f9661b410cb9 100644 > > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > > @@ -819,11 +819,10 @@ static int analogix_dp_config_video(struct analogix_dp_device *dp) > > if (analogix_dp_is_slave_video_stream_clock_on(dp) == 0) > > break; > > if (timeout_loop > DP_TIMEOUT_LOOP_COUNT) { > > - dev_err(dp->dev, "Timeout of video streamclk ok\n"); > > + dev_err(dp->dev, "Timeout of slave video streamclk ok\n"); > > return -ETIMEDOUT; > > } > > - > > - usleep_range(1, 2); > > + usleep_range(1000, 1001); > > Could we briefly explain in the commit message why we need to increase > the delay in the timeout loop? Is it a consequence of calling > analogix_dp_start_video() earlier, or is this the preferred time > mentioned in the specs? I asked Lin, the original author of this patch, response quoted below: "There is random "Timeout of video streamclk ok" message happen when debug edp panel, So we extend this time, this time do not define in the spec." So it looks like it was working by chance before and this move triggered some sort of timing issue. Heiko