Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3715295rwd; Mon, 29 May 2023 15:48:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+Ng/2IvgO7wYkW68UbbwYl8wPDpFJiP1rC2qod0OjfvysC6eOoaAX/mkfmwg7GM33a2kx X-Received: by 2002:a17:902:f684:b0:1b0:e0a:b7ab with SMTP id l4-20020a170902f68400b001b00e0ab7abmr587414plg.31.1685400480282; Mon, 29 May 2023 15:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685400480; cv=none; d=google.com; s=arc-20160816; b=KSygMOzf+Ptyi8YqZGqGP51uhG2NIt/HDS7BVxGw6lYn/srIjqUWVv7xI/bd3EsyKw U8KMYNCfa/wm+8Ql++d4EJrRnuzWBfn+XZpMpOI2EMPiCOaCYb2jyCZkvS+2+dUy/Mt+ 5MR5te7oi9uD3/d8NPAt/6tH5KCYdvMU+g721OPQFG7A1127sgi5lQMb4HemKFhVKvi4 rrRf/KgWO9u/31pe7pNj7Sxs+k2TL1Zc/5oJUpmmDtHe9ADKmMkKJ70vkSxsjgF6ZXEf 36mtQD6sZH4D5/zZMx3yKN+WFnk1xD4K20VT4vdeIVLUSpFB3y5EDkIrBcxW99bw/eia Jkig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=C0e/43VV3+qHkTMO8X4VgO8B2uoSrrlZl/p7IJgpDC4=; b=hFpiOMHOnAs0OXjyrvGjmdyYzUij/wEzwmEBgkUA9nWeTI90fG4yPsveNxM4EU5+ku x6tKmWg0uFq5XoDJUzkp0GXBu9lwhGG1yparHa3S8r3FpBv6t0MvXe0uQePhgXqOGp+E IObWO6PDfbiZGsjnz4xuQ9wybcmMfWJyfp5brxkF0nxnqUT9B143pWgc7uFHzXio6dDv 3jraX/VhjmgODe+1NRxVTjfZLNxNwKBJoWsnts7VmItD/fEz8DGADhAQvsVKjaXku60k nOGDns53UgvHW27zvSdbUq99zymK52Xq2muR4NZYc+yYkFDyqYBtNijnqQQzCVrbldtU AAJA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a170902654900b001adc5bc4d8asi10062067pln.572.2023.05.29.15.47.48; Mon, 29 May 2023 15:48:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbjE2Wht (ORCPT + 99 others); Mon, 29 May 2023 18:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjE2Whm (ORCPT ); Mon, 29 May 2023 18:37:42 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [IPv6:2001:4b7a:2000:18::162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8280F9F for ; Mon, 29 May 2023 15:37:41 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 77E68202E5; Tue, 30 May 2023 00:37:39 +0200 (CEST) Date: Tue, 30 May 2023 00:37:38 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: neil.armstrong@linaro.org, Sam Ravnborg , David Airlie , Daniel Vetter , Caleb Connolly , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abhinav Kumar , Kuogee Hsieh , Jessica Zhang Subject: Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3 Message-ID: References: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> <20230521-drm-panels-sony-v1-3-541c341d6bee@somainline.org> <71675a02-0801-62dc-2673-4a0907636b21@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 On 2023-05-30 01:18:40, Dmitry Baryshkov wrote: > >>>>> + ret = mipi_dsi_dcs_set_display_on(dsi); > >>>>> + if (ret < 0) { > >>>>> + dev_err(dev, "Failed to turn display on: %d\n", ret); > >>>>> + return ret; > >>>>> + } > >>>> > >>>> My usual question: should the mipi_dsi_dcs_exit_sleep_mode() / mipi_dsi_dcs_set_display_on() be moved from prepare() to enable() part? > >>> > >>> > >>> No, prepare is called before the video stream is started and when display is still in LPM mode and the mode hasn't been set. > >>> > >> > >> Yes, that's my point. Shouldn't we enable the panel _after_ starting the stream? > > > > I have never investigated what it takes to split these functions, but > > some of these panels do show some corruption at startup which may be > > circumvented by powering the panel on after starting the video stream? > > > > I'm just not sure where to make the split: downstream does describe a > > qcom,mdss-dsi-on-command and qcom,mdss-dsi-post-panel-on-command, where > > the latter only contains set_display_on() (not exit_sleep_mode()). > > It is documented like: > > > > same as "qcom,mdss-dsi-on-command" except commands are sent after > > displaying an image." > > > > So this seems like the right way to split them up, I'll test this out on > > all submitted panel drivers. > > Interesting enough, Neil suggested that sending all the commands during > pre_enable() is the correct sequence (especially for VIDEO mode panels), > since not all DSI hosts can send commands after switching to the VIDEO mode. Note that all these panels and Driver-ICs are command-mode, and/or programmed to run in command-mode, so there shouldn't be any notion of a VIDEO stream (any command-mode frame is just an "arbitrary command" as far as I understood). - Marijn