Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1045516iob; Fri, 13 May 2022 20:55:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtGaZYRpoQjmJkwAEm9Y5/0Ch4yMkPjtBC+HXdaBOdHemBgySeTtJnRbvWm4rj/HUK2/rs X-Received: by 2002:adf:fd4a:0:b0:20a:cee3:5abf with SMTP id h10-20020adffd4a000000b0020acee35abfmr6237855wrs.522.1652500540774; Fri, 13 May 2022 20:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500540; cv=none; d=google.com; s=arc-20160816; b=ts4JIVe1JCRML/lspOATO0Rrkb9Rlsx08t34G/WGwD1J3+pBUCBtbdxj6KMBLvFXpE MfEKmmGorHLJr7uR6UVl4e0DCb90Ibjtjv8+W85C03jGx1lkD06ye386qwNUVqIgpxPl qzlUFzsnlcE0upLFmAau+ch0UIHV31+T/OYpqYgKKAAtUEyceTXkzpd/gJQyyVa7Akmw YZI9iCBb42r//iXlayCWLDaQJoDunDnTC7wR6fK4ZyFp5FV4JjjQR0HUW5w9lc1ZkgKY J50EZvGnT+1zCjT0rKAWjL5CN3je0OL8oXcpJABPNAgGMxGhm66X7zkIfeH58BcOSsYb qEVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+Jt3cP1a7pSTmIordOsQBiND5m8bbi2YpKIrE+mPhkM=; b=cdO00kcwKm/gq/9WcbtT+AHFpLE7ytvwo1PJJyPh5bN7JSAP2tXfa230zn9C7mIg+Z 4G+PCrhVBTfg/Chmt9jxtCj9llT1hInkvyP+gqpgeJ+P5MAm9jrIklLNzYF+6XyFIZyk ebcNaNCyLZ2O1nvvPdHdR3YjXmh5zpDqzTjDf+mleq3TZv9SbrbIIbsh6dxA33bap8zW Pw8OxkgACYk+rkeM3qoKKZbIp/rEGOS+EvzVYCeC0c6qu4bACgpa54LXF+Dmy591Pfph eNAzdRresiD/nJc/+bsC45k3EnlWGfsXhtljGAl8hBf22azozjFMVgtBZd0YOI08Hd9X NlPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fqLHlnbO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g17-20020adff411000000b0020ac51c34e1si3843104wro.780.2022.05.13.20.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:55:40 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fqLHlnbO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B1292FADF5; Fri, 13 May 2022 17:27:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359273AbiELWpQ (ORCPT + 99 others); Thu, 12 May 2022 18:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244764AbiELWpO (ORCPT ); Thu, 12 May 2022 18:45:14 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B906283A07 for ; Thu, 12 May 2022 15:45:13 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id g23so7865820edy.13 for ; Thu, 12 May 2022 15:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Jt3cP1a7pSTmIordOsQBiND5m8bbi2YpKIrE+mPhkM=; b=fqLHlnbObR2B44qlvG2vcl1goZgmgi7lfvQPG31LMzu9dt0+k98fCuYxRp94SkCDAO 8T//3rqQrm8abKiJG3ZpIqAEadAUaaZKBzJ1E5YeB616jpa3OcM1h/xN0LwxtbEK8ceX K8z+UHj0qDRBrbvGthUjD4T+4NAKxStiQFaEc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+Jt3cP1a7pSTmIordOsQBiND5m8bbi2YpKIrE+mPhkM=; b=GjiM2/csAfXPTVj+EjVW35cvYXEte4jKmPCJdfRFtF/4wqwYMxcxL7wQ56Kn2P3y0v vox8lVOk2RvVJboFrYPjlEotADs0TpjMV3XgUrNc4qOvyDrMC8PcFL6jr60N0x2mZDpB jYhtHZ6OHoTUY87vkxUPlhEMU41nXRsAcxILPH2jOEM867aOYNPa1eO0QCTGdac5FG9q kOv2Jzk7G6FLD0QKXB48Ku0VkEkzRv9I+K70kyIHhi4xVHpDxAccZlYeS7A1wZh/7YvZ lOZo8QO4PPAn2qifyeAi+dBaXnAGl34C2+2DmWAQN1fAhVB9UBxXD15uPHwxSKeCKZb3 K49Q== X-Gm-Message-State: AOAM530okwZo/RZJNvsisjAu2G+BrpaQN2yeqJcRMJ0eeT5zD6pqBUsI v0VGprLkW9hu/FKi1pcgMISJel+LYyYbq0OR X-Received: by 2002:a05:6402:3484:b0:428:1a5e:3d48 with SMTP id v4-20020a056402348400b004281a5e3d48mr37723335edc.401.1652395511693; Thu, 12 May 2022 15:45:11 -0700 (PDT) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com. [209.85.221.52]) by smtp.gmail.com with ESMTPSA id jx8-20020a170907760800b006f3ef214da1sm193717ejc.7.2022.05.12.15.45.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 15:45:11 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id k2so9157774wrd.5 for ; Thu, 12 May 2022 15:45:11 -0700 (PDT) X-Received: by 2002:adf:f50d:0:b0:20a:e096:ef with SMTP id q13-20020adff50d000000b0020ae09600efmr1411987wro.679.1652395510552; Thu, 12 May 2022 15:45:10 -0700 (PDT) MIME-Version: 1.0 References: <20220512145954.v4.1.Ia196e35ad985059e77b038a41662faae9e26f411@changeid> In-Reply-To: From: Doug Anderson Date: Thu, 12 May 2022 15:44:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] drm/msm/dsi: don't powerup at modeset time for parade-ps8640 To: Abhinav Kumar Cc: Dmitry Baryshkov , Rob Clark , Dave Stevenson , David Airlie , freedreno , LKML , dri-devel , Stephen Boyd , Vinod Koul , linux-arm-msm , Bjorn Andersson , Sean Paul Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi, On Thu, May 12, 2022 at 3:34 PM Abhinav Kumar wrote: > > On 5/12/2022 3:16 PM, Dmitry Baryshkov wrote: > > On 13/05/2022 01:00, Douglas Anderson wrote: > >> Commit 7d8e9a90509f ("drm/msm/dsi: move DSI host powerup to modeset > >> time") caused sc7180 Chromebooks that use the parade-ps8640 bridge > >> chip to fail to turn the display back on after it turns off. > >> > >> Unfortunately, it doesn't look easy to fix the parade-ps8640 driver to > >> handle the new power sequence. The Linux driver has almost nothing in > >> it and most of the logic for this bridge chip is in black-box firmware > >> that the bridge chip uses. > >> > >> Also unfortunately, reverting the patch will break "tc358762". > >> > >> The long term solution here is probably Dave Stevenson's series [1] > >> that would give more flexibility. However, that is likely not a quick > >> fix. > >> > >> For the short term, we'll look at the compatible of the next bridge in > >> the chain and go back to the old way for the Parade PS8640 bridge > >> chip. If it's found that other bridge chips also need this workaround > >> then we can add them to the list or consider inverting the condition. > >> > >> [1] > >> https://lore.kernel.org/r/cover.1646406653.git.dave.stevenson@raspberrypi.com > >> > >> > >> Fixes: 7d8e9a90509f ("drm/msm/dsi: move DSI host powerup to modeset > >> time") > >> Suggested-by: Rob Clark > >> Signed-off-by: Douglas Anderson > > > > Reviewed-by: Dmitry Baryshkov > > > Yes, I think this is a better solution than a full revert > > Reviewed-by: Abhinav Kumar > > I am curious to know why this doesnt work for parade but will not hold > this patch back for that. We are initializing and turning on DSI PHY now > before turning on the bridge chip which is actually better as we are > putting PHY in a good state. > > So this should have been better, but somehow doesn't work. I can't really explain it, but mostly because the Parade chip is just a big black box. There have been several times when an OEM using this bridge chip had one problem or another with getting the display to turn on, then the parade FAE would make some magic tweak to the firmware and it would be fixed. The current way that the Linux driver is working is with pretty much zero configuration so I think this chip bakes in a bunch of assumptions about the timings / signal coming from the MIPI DSI side. It doesn't surprise me that changing the order like this would confuse it. In theory I believe the Parade chip can run in a less "automatic" mode where everything is configured and controlled by Linux. I'd really have preferred if we could have gotten that done, but it didn't end up happening. :( -Doug