Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4620124yba; Wed, 10 Apr 2019 01:03:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrEp293RP7kd+XaINUEeTFQiR0bOjNKMa1FveQENXCg5KAy9mo10Psz5XDNj9vyhBxBEwH X-Received: by 2002:a65:43c3:: with SMTP id n3mr40526221pgp.375.1554883411002; Wed, 10 Apr 2019 01:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554883410; cv=none; d=google.com; s=arc-20160816; b=erm4bRgGdvrmWd6bucBgKSfF3vQREL2NWeWC+V1cEjNpjWB+nRAMF14ZIxt0buaJ23 RN3vEZemsp1n3brHM7FSyRPq7w3MlaXsnCdbOIgsxvPIRGqL9gdrpuV9NtR+PMECn2NP +0jr8ik+rNeQr1H/ceWLGVZJ7z0tF0lWugjbpoKI3umVxC5+ioSQVLYvMT09tnj4dtCQ ZgetFipjHsbq7fTvtgACYOhSf9REOMSLjutWK1JACIEmYuIBOD71+X+pInvmpc1zhyg4 JCgUQY4yGEVCHyIFuSQFeG73NsDRkhMkzUdIvVtHE++9D1lNKtMkNSdOJ5bewCRwUQW0 96hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JyF8Y8lqtTJiU7zBDRtefa/bIG2gPtY3Rz9qH5PAR9U=; b=DItjTWShebvHn1a80GYQn31iTBir2F3JsvZmdBaluVURa2uqBOoL/pHLFoAg2tYUwq JsPBQqcjxDCMz5VMZzuibdvv/4fEHpmI6hALB2arZ415QwTph2psiICgcENP2rHHelL3 as18U7YMM5CGjMytRPu//svUeiG6HwK7TVpJq1SasJFly6JjsCdSomDcPaMDECVcqgt+ rpF6kOX4ODkdPnZ5z5oUm9TFZxkL7Etc6b/+3OZvd3OYk7e46el6dkbdkJOlU/sNkEA2 FGHNVr8D74FgSMCOXMxvCnsglPmzsIawf+NopQgTqSbEZ9RIw5nSbcpvYFJnllHu95bz D0Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@boundarydevices-com.20150623.gappssmtp.com header.s=20150623 header.b=fYVqrLWm; 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 q77si32059728pfa.102.2019.04.10.01.03.15; Wed, 10 Apr 2019 01:03:30 -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; dkim=pass header.i=@boundarydevices-com.20150623.gappssmtp.com header.s=20150623 header.b=fYVqrLWm; 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 S1728877AbfDJHgC (ORCPT + 99 others); Wed, 10 Apr 2019 03:36:02 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:39792 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728013AbfDJHgC (ORCPT ); Wed, 10 Apr 2019 03:36:02 -0400 Received: by mail-qt1-f193.google.com with SMTP id t28so1736963qte.6 for ; Wed, 10 Apr 2019 00:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JyF8Y8lqtTJiU7zBDRtefa/bIG2gPtY3Rz9qH5PAR9U=; b=fYVqrLWmBybiD3LRsjwCfu9cXQe2fiUlCS5X32h/AuMYAO1yUafWQVJ+zHAcmI5H3P 4h1+ipPqGL2ASOOns7tXZr7FwPiKQx1mV4lSaivYnNI8G7n+p1qbgwZb6CAPtXUJuIC2 pP2AFtvwTVNFsXFhiRBgro0IGeaKHkilH71yDJJ4fTyHIptJXZwrvMQ4TrdEhT2t/Om6 2M0cHrwFbEseYZYpjZz1P1DSi0FIU4xrGMVEmhg5WuSnvw8sh26aPITEoA8WIBDJa8Uq y8b4VQEsGwNFzx4ADwZyqFd4yitAvKxkM7s7CWkNlwiapHM1nHOKBe+PA2FrKIDt68q6 +94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JyF8Y8lqtTJiU7zBDRtefa/bIG2gPtY3Rz9qH5PAR9U=; b=BUrgRwImfwXI3JVm6gOlkWF/xoRx9S1jhwCl0NQw1EZKc4tPnnJpFKISjzbqrC9p/B 9UMcr9RR9xIC4UZ6S6l70UtcBmnxILAGdPjJiSPaXZWx7oE2hs3X6isn0oCI30QuP09D wlTuRA1EFuT+stD5OA3GW+CWn+rqffy0a6Y7Pr9qUD9cvojdDBntnOx38QPMFiwDtAPR lQV/PDz6pwdfghrJrPFi6dJV1QScY4QRVqdFR0uzGcVV6IuNRaBZHHN7lBCEGzhBOy+w aU0jzrxvvvV4DBLMTTkHOPiMax6SL2/kglwcYubYNviguamF3C5kfJDmNAAETmd+Pe66 GMWg== X-Gm-Message-State: APjAAAW7ToqHV6/7KmfpC0EaGmFPohGoOlW70GaryJURx3bQO1+Fnctn QlrUxR0juntEiOkS2oSZpDz+M0BnIwBC3CiDidms0w== X-Received: by 2002:a0c:b505:: with SMTP id d5mr34229775qve.62.1554881760979; Wed, 10 Apr 2019 00:36:00 -0700 (PDT) MIME-Version: 1.0 References: <20190408175319.9106-1-robert.foss@collabora.com> <4fd506a1-c961-0569-6d39-283758f363d9@collabora.com> In-Reply-To: <4fd506a1-c961-0569-6d39-283758f363d9@collabora.com> From: Gary Bisson Date: Wed, 10 Apr 2019 09:35:50 +0200 Message-ID: Subject: Re: [PATCH] ARM: dts: imx6qdl-nitrogen6_max: Disable LVDS channels To: Robert Foss Cc: Fabio Estevam , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , Rob Herring , Mark Rutland , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , Troy Kisky 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, On Tue, Apr 9, 2019 at 2:07 AM Robert Foss wrote: > > Hey Fabio, > > On 4/8/19 10:37 PM, Fabio Estevam wrote: > > Hi Robert, > > > > [Adding Gary] Adding Troy, I'm no longer a full-time employee at Boundary Devices. > > On Mon, Apr 8, 2019 at 2:54 PM Robert Foss wrote: > >> > >> If a LVDS device is not connected, having the LVDS channels > >> enabled will prevent imx-ldb from probing correctly even > >> if other CRTCs are connected. > >> > >> Signed-off-by: Robert Foss > >> --- > >> arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >> > >> diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi > >> index 39200e5dc896..5b413cf4c250 100644 > >> --- a/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi > >> +++ b/arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi > >> @@ -703,7 +703,7 @@ > >> status = "okay"; > >> > >> lvds-channel@0 { > >> - status = "okay"; > >> + status = "disabled"; > >> > >> port@4 { > >> reg = <4>; > >> @@ -715,7 +715,7 @@ > >> }; > >> > >> lvds-channel@1 { > >> - status = "okay"; > >> + status = "disabled"; > > > > I am not sure I understood what you are trying to fix. > > If CONFIG_DRM_IMX_LDB is enabled, LVDS DT channels are enabled > and no LVDS-panels are connected the imx-ldb driver will > fail to bind. > > This is a problem, since it will prevent other actually connected > display output from being used, even if they bind properly. > > > > > Could you please share some logs when imx-ldb fails to probe correctly? > > > [ 2.119563] component_bind_all() trying to bind: ldb > [ 2.124600] imx-drm display-subsystem: binding ldb (ops imx_ldb_ops) > [ 2.146169] drm_of_find_panel_or_bridge() np->name=lvds-channel np->type= > [ 2.153709] drm_of_find_panel_or_bridge() no panel found for remote > [ 2.160081] drm_of_find_panel_or_bridge() bridge needed > [ 2.162043] drm_of_find_panel_or_bridge() bridge not found > [ 2.165331] drm_of_find_panel_or_bridge() failed > [ 2.170023] imx-drm display-subsystem: failed to bind ldb (ops imx_ldb_ops): -517 > > This at the same time as HDMI binds properly: > > [ 4.458954] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with > HDCP (DWC HDMI 3D TX PHY) > [ 4.469633] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops) > > Which in the end causes the IMX driver to not initialize properly > and ignore the HDMI connection that bound properly. > This in turn prevents us from having any graphical output while there > is no LVDS panel connected. Does this happen if the LVDS is disabled in cmdline? (adding "video=LVDS-1:d") Note that a bootscript was written for mainline kernel that takes care of display configuration [1]. Currently this bootscript disables all the displays that aren't used. It was tested with HDMI, where LVDS and LCD display are disabled, and it *used to* work. If this doesn't work then there's most likely a regression somewhere. Regards, Gary [1] https://github.com/boundarydevices/u-boot-imx6/blob/boundary-v2018.07/board/boundary/bootscripts/bootscript-mainline.txt#L90