Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5531654rwb; Wed, 17 Aug 2022 20:38:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7k7k5DqsvOD90iG2LRFIiJRnbaJEObpLkHRnJZItqfyOwS+kinu2aWeree03c9vXlbUFx/ X-Received: by 2002:aa7:80d3:0:b0:52b:9237:a355 with SMTP id a19-20020aa780d3000000b0052b9237a355mr1128568pfn.73.1660793938115; Wed, 17 Aug 2022 20:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660793938; cv=none; d=google.com; s=arc-20160816; b=fSJ20F1RjM0zmG6FzKOd3KdDKtfXUCpAJ0hd+SKiaiBN55q15g9mbbo1HblKJ0G+27 Hd+xo+As3agy0BulPlhB0ntJR673UcbmkjrKYpkKplLOvRWPGceUHUNj39N4wyVV+mSg Rd2Pvo6VxXHotdIoihg+JdCIMLgo+7L0Vn9NmY5OzevvKQ2O26Jmrs2yMkAjBSUBAnuW 2eqnF3AEp2ep3c8babCOjOuLoTF60bEH8WaWts4VBIrmRqLD5RU83S7guasZfajND/Jr Ca/oR2Q+VvHjzzpDB90QCgqq/jY6UhliMPQeh2PTN4qpwUbSTNtm1CWAtOd8qKeZjG5+ JW/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BiYFqunK9O7/TlJUzZAQB9ZJLp/cE2IuaFTnRLRISWs=; b=U2Ayxlqu/lbr4zFMbeRJ9dGINZ2YwcEMb4APs/pJ5QCfP3VGLci78TUs9UIRjqxZUM vqg5Wo4kM2iNLUYRX5/1ZRvTa3pqbgEJRAbqUxWlbh/HyJfXAmQ3qttv5qKlnNsjpA1X fo3PTxE4/YjFvEtRG7r9ijujd0ZkBiDIS6Aw4mFMtbIoSU+0/M0cmFcsvvpfIrLptPaO bFqKg51I2RIagm98UVopZ7b4pfo1rfEi3JvMOjMYFB1o3QqeU4onOVNse/VM6cHLHlgQ 58kLgr2Xz8WPe1vj5DkksfUVlaagMym4FS/TNkvOcSGJLTKQ/XgmuB/t7mxkUpQhQpuJ H4bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="esuEf/fx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a635d10000000b0040de79f8b78si436707pgb.500.2022.08.17.20.38.41; Wed, 17 Aug 2022 20:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="esuEf/fx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243095AbiHRDT0 (ORCPT + 99 others); Wed, 17 Aug 2022 23:19:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243087AbiHRDTW (ORCPT ); Wed, 17 Aug 2022 23:19:22 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 783C8474F8 for ; Wed, 17 Aug 2022 20:19:18 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-32fd97c199fso8640457b3.6 for ; Wed, 17 Aug 2022 20:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=BiYFqunK9O7/TlJUzZAQB9ZJLp/cE2IuaFTnRLRISWs=; b=esuEf/fxu4uMu25CRGKsrCc/zg82eolon2uic4JRTW6xeMpPNbejM4O6Zp9WSC5f3K ZZgJGtq0/m2e2TCm89SgluhBVi9OxkknhsKwvN3EnF5V7ycQywxJNTl9eNzYZnrvqq0K wAPiPJSeCPgLINXG++WtqF1qONG0ft/BGc5Cuqjrvjo+xoxK6grv1FR4wIhBRnbu7Muq XoOO3zKGsZjjSzMvcwwpa5kvI5DR5JYgwrUZVolsl7B5GkHiHdnLG0N93DTZfx5kS4aP tRyZjJ9Jzr5VNwShR60/X0SJo3f8yjwylHcFHQmKi/1QUcjz9PiJySQrS2xwVvbOuTg4 CYNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=BiYFqunK9O7/TlJUzZAQB9ZJLp/cE2IuaFTnRLRISWs=; b=auuX56rK5hW74HPw+oW9nTlDlIW1vIcvC1V0M/6U4eE1B1z+vdJMhK1ZVXoIGHTKDp Y+H3uGx2vt7aSb4fkgs2NzUwKJ32WDVsO/rbqTbLCYGkFB1Rrzz2Buc0YZKANtLBXQwS wPYQ1yGmgWaPBb8kbaE5hipTll8JKQuWpOLxdN8cSgldfeg9RhtBzFX741WEqjQsW662 THBmqSKY2/gwCNmwlrk7Sk6O6lP0GwHPAIsb4BgGtLLjZ50fZwQi2Z+ClDFYxbqjnrPU rNkaMIG12/ghnG3bdyDuih7HZvNh2B8Qj9rQc5u8cnY/1L+R60GIJq+Ddqtdr6H5B1qd aMfw== X-Gm-Message-State: ACgBeo13vxbIqK/Um+H+oHATQQnlw8fWcxB/Q1w5gKHMkkpJERxM3cwo ufBwrp8luWnMg4WCCnBBjFL//x9khiaBXYFAH3iHDw== X-Received: by 2002:a25:4288:0:b0:692:8c1e:2e7e with SMTP id p130-20020a254288000000b006928c1e2e7emr1170829yba.479.1660792757464; Wed, 17 Aug 2022 20:19:17 -0700 (PDT) MIME-Version: 1.0 References: <20220815093905.134164-1-hsinyi@chromium.org> In-Reply-To: From: Rock Chiu Date: Thu, 18 Aug 2022 11:19:06 +0800 Message-ID: Subject: Re: [PATCH] drm/bridge: ps8640: Add double reset T4 and T5 to power-on sequence To: Hsin-Yi Wang Cc: Doug Anderson , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org How does T4/T5 impact the real case? We talked previously the T4/T5 shouldn't cause user impact. Do we have testing data from ODM? Rock Chiu Hsin-Yi Wang =E6=96=BC 2022=E5=B9=B48=E6=9C=8818=E6= =97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=8810:43=E5=AF=AB=E9=81=93=EF=BC= =9A > > On Thu, Aug 18, 2022 at 6:54 AM Doug Anderson wro= te: > > > > Hi, > > > > On Mon, Aug 15, 2022 at 2:39 AM Hsin-Yi Wang wrot= e: > > > > > > The double reset power-on sequence is a workaround for the hardware > > > flaw in some chip that SPI Clock output glitch and cause internal MPU > > > unable to read firmware correctly. The sequence is suggested in ps864= 0 > > > application note. > > > > > > Signed-off-by: Hsin-Yi Wang > > > --- > > > drivers/gpu/drm/bridge/parade-ps8640.c | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > > > diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm= /bridge/parade-ps8640.c > > > index 49107a6cdac18..d7483c13c569b 100644 > > > --- a/drivers/gpu/drm/bridge/parade-ps8640.c > > > +++ b/drivers/gpu/drm/bridge/parade-ps8640.c > > > @@ -375,6 +375,11 @@ static int __maybe_unused ps8640_resume(struct d= evice *dev) > > > gpiod_set_value(ps_bridge->gpio_reset, 1); > > > usleep_range(2000, 2500); > > > gpiod_set_value(ps_bridge->gpio_reset, 0); > > > + /* Double reset for T4 and T5 */ > > > + msleep(50); > > > + gpiod_set_value(ps_bridge->gpio_reset, 1); > > > + msleep(50); > > > + gpiod_set_value(ps_bridge->gpio_reset, 0); > > > > We really need another 100 ms here? ps8640 is already quite slow at > > powering itself up and that has a real user impact. Why was it only > > 2.5 ms for the first reset and 50 ms for the second? > > > > The T4 and T5 are required by Parade. I'm wondering if they can > shorten the 200ms below: > > /* > * Mystery 200 ms delay for the "MCU to be ready". It's unclear if > * this is truly necessary since the MCU will already signal that > * things are "good to go" by signaling HPD on "gpio 9". See > * _ps8640_wait_hpd_asserted(). For now we'll keep this mystery delay > * just in case. > */ > msleep(200); > > Does this have to wait 200ms? Can it shorten to 100 due to the > additional 100ms from T4 and T5? > > > -Doug