From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEC90C43387 for ; Tue, 15 Jan 2019 15:57:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7CC6B20645 for ; Tue, 15 Jan 2019 15:57:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bkU0AySb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CC6B20645 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8XUW1ZN9yRANXT0jZKM1/oXb6xPMaUMDC1+N8HLW+mc=; b=bkU0AySbb7XzU/ TRILeqbqOq31/Vt20ztcESxcN0w3oYKa7JsomxEnF+eCOor6znPZB1W+7+8Am/hZtbGgzTeEGTIuB Hqa8klpI2nS4/TGnk86q5o1piHaYk06pl7H5yAbUhSa4yGJ5B/s4p1CWvaJIhB1UtiYK8NKdxDB+B T2s3kYmGtRGZ4mRmi7R5jJF+QKeJbiX9zfT/w5lh/QOcvRrgb9wK4/peWoOzu0PTTX7nuFLjJykkL lTEjAFj/EPhH0TzylFdaOPHlCtplSstmzZCP/v/b3u/Jbqkctvi5Ac+/UvH27CSjZEU0f7Nx0fs+E /ftVlzZeZWMQTg4Y+ecw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjR5Y-0005Ob-7i; Tue, 15 Jan 2019 15:57:16 +0000 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjR5K-0005EI-Qq for linux-arm-kernel@lists.infradead.org; Tue, 15 Jan 2019 15:57:04 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id 53DC4209EF; Tue, 15 Jan 2019 16:57:00 +0100 (CET) Received: from localhost (build.bootlin.com [163.172.53.213]) by mail.bootlin.com (Postfix) with ESMTPSA id 1AA3620A2E; Tue, 15 Jan 2019 16:56:50 +0100 (CET) Date: Tue, 15 Jan 2019 10:49:51 +0100 From: Maxime Ripard To: Priit Laes Subject: Re: HDMI/DVI spurious failure Message-ID: <20190115094951.e7jnjpibj5tcp5pz@flea> References: <20190114132934.rywqqtjarbf6fgcr@plaes.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190114132934.rywqqtjarbf6fgcr@plaes.org> User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190115_075703_136778_CE368534 X-CRM114-Status: GOOD ( 14.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Chen-Yu Tsai , Jonathan Liu , dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, (Sending those kind of bug reports to linux-sunxi doesn't really work, you should Cc at least the ML involved in the development of the driver at fault). On Mon, Jan 14, 2019 at 01:29:34PM +0000, Priit Laes wrote: > I have a somewhat curious case with one HDMI/DVI screen that fails > to initialize properly every 6-7 boots. The display itself is also > somewhat flawed (missing HPD pin and the VSYNC/HSYNC pulse width > is set to 0 in EDID), but I suspect there could be some issues > regarding timing in A20 HDMI driver in Linux. > > HW: Olinuxino Lime2 eMMC > > The same display works out of the box on Raspberry Pi. And I > haven't seen it failing in u-boot on A20 Lime2 hw. > > I have disabled HDMI support in U-boot (there's another issue > with simplefb handover to modesetting, but I currently try to > leave u-boot out of the equation), so kernel itselfs sets up > the display. > Basically the only differences I have found are some timing > differences in DRM logs and following discrepancey in clock > tree when comparing failing and working boots: > > --- clks-failing.dump 2019-01-14 14:45:24.026279493 +0200 > +++ clks-ok.dump 2019-01-14 14:29:59.799715126 +0200 > @@ -6,7 +6,7 @@ > mii_phy_tx 0 0 0 25000000 0 0 50000 > osc32k 0 0 0 32768 0 0 50000 > osc24M 2 2 1 24000000 0 0 50000 > - hosc 5 5 1 24000000 0 0 50000 > + hosc 6 6 1 24000000 0 0 50000 > out-b 0 0 0 32000 0 0 50000 > out-a 0 0 0 32000 0 0 50000 > hdmi1-slow 0 0 0 24000000 0 0 50000 > @@ -52,10 +52,10 @@ > apb1-i2c1 1 1 0 24000000 0 0 50000 > apb1-i2c0 1 1 0 24000000 0 0 50000 > pll-gpu 0 0 0 1200000000 0 0 50000 > - pll-video1 0 0 0 327000000 0 0 50000 > - pll-video1-2x 0 0 0 654000000 0 0 50000 > - hdmi-tmds 0 0 0 25153846 0 0 50000 > - hdmi-ddc 0 0 0 89835 0 0 50000 > + pll-video1 1 1 0 327000000 0 0 50000 > + pll-video1-2x 1 1 0 654000000 0 0 50000 > + hdmi-tmds 1 1 0 25153846 0 0 50000 > + hdmi-ddc 1 1 0 89835 0 0 50000 > pll-periph-base 3 3 0 1200000000 0 0 50000 > mbus 1 1 0 300000000 0 0 50000 > pll-periph-sata 1 1 0 100000000 0 0 50000 > > > Any hints what else to debug? It doesn't look related to the clock rate itself, since it doesn't change between the two cases. However, in one case the DDC clock is enabled and in the other it's disabled. Was it taken at the same time? Maybe you can try with that patch? http://code.bulix.org/z7jmkm-555344?raw Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel