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=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no 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 A16F1C433E0 for ; Tue, 4 Aug 2020 12:45:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 838762067D for ; Tue, 4 Aug 2020 12:45:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="SUphjhFH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbgHDMps (ORCPT ); Tue, 4 Aug 2020 08:45:48 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:58112 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728323AbgHDMom (ORCPT ); Tue, 4 Aug 2020 08:44:42 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 074CdeRQ110777; Tue, 4 Aug 2020 07:39:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1596544780; bh=q1N2A/Pp9sT+eaD7QF1h9hN8wK3QPQGffVRsrPfYn0s=; h=Subject:From:To:CC:References:Date:In-Reply-To; b=SUphjhFHaOzvR6K1tL7OHdQJ2lgxg11mkoEanxhYXKPwCxluoEny9jrbtYcKaVstt GsHsDgD7xEx3g/JufOOvDxUR/GtsworcnbLiP/vSnHUOLP1AAGhwQJzZRbC5e7Cn5Y DZ7MWTLUn5Ay0pcL4tfwniCs4BRzELhiIAzAjX20= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 074Cdecp117005 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Aug 2020 07:39:40 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 4 Aug 2020 07:39:39 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 4 Aug 2020 07:39:39 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 074CdcUO003160; Tue, 4 Aug 2020 07:39:38 -0500 Subject: Re: [REGRESSION] omapdrm/N900 display broken From: Tomi Valkeinen To: Aaro Koskinen , Laurent Pinchart CC: Tony Lindgren , , References: <20200728181412.GA49617@darkstar.musicnaut.iki.fi> <660b2fe1-343d-b83e-11d2-5a5eb530b83f@ti.com> Message-ID: <448c1441-2cac-44ef-95ef-bb28b512297b@ti.com> Date: Tue, 4 Aug 2020 15:39:37 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <660b2fe1-343d-b83e-11d2-5a5eb530b83f@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/08/2020 15:13, Tomi Valkeinen wrote: > On 28/07/2020 21:14, Aaro Koskinen wrote: >> Hi, >> >> Looks like N900 display support has broken after v5.6. >> >> When using v5.7, or the current mainline (v5.8-rc7), the boot hangs at: >> >> [ 6.269500] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not found, using dummy regulator >> [ 6.321685] DSS: OMAP DSS rev 2.0 >> [ 6.328002] omapdss_dss 48050000.dss: bound 48050400.dispc (ops dispc_component_ops) >> [ 6.336364] omapdss_dss 48050000.dss: bound 48050c00.encoder (ops venc_component_ops) >> [ 6.345153] omapdrm omapdrm.0: DMM not available, disable DMM support >> [ 6.352447] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). >> >> with a blank display. >> >> I tried to bisect this, and the first commit that breaks the display is: >> >> 2f004792adadcf017fde50339b432a26039fff0c is the first bad commit >> commit 2f004792adadcf017fde50339b432a26039fff0c >> Author: Laurent Pinchart >> Date: Wed Feb 26 13:24:57 2020 +0200 >> >> drm/omap: venc: Register a drm_bridge >> >> This commit does not yet hang the kernel, but the display is blank and >> the probe fails: >> >> [ 6.290100] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not foun >> d, using dummy regulator >> [ 6.342346] DSS: OMAP DSS rev 2.0 >> [ 6.348663] omapdss_dss 48050000.dss: bound 48050400.dispc (ops dispc_component_ops) >> [ 6.357025] omapdss_dss 48050000.dss: bound 48050c00.encoder (ops venc_component_ops) >> [ 6.365814] omapdrm omapdrm.0: DMM not available, disable DMM support >> [ 6.372863] omapdrm omapdrm.0: omap_modeset_init failed: ret=-22 >> [ 6.414611] omapdrm: probe of omapdrm.0 failed with error -22 > > Afaics, this is caused by the patch doing > > if (!venc->output.next_bridge) > > instead of > > if (venc->output.next_bridge) > > Fixing that removes the error on beagle xm, but for some reason I don't see TV-out as a DRM output > (but HDMI output works). > >> The hang seems to start with this commit: >> >> commit 8bef8a6d5da81b909a190822b96805a47348146f (HEAD -> master) >> Author: Laurent Pinchart >> Date: Wed Feb 26 13:25:10 2020 +0200 >> >> drm/omap: sdi: Register a drm_bridge >> >> Confusingly, some of the commits between these two commits do provide a >> working display, e.g. 13d2d52f59c0c79398d9c9e2ea3d661a0e5b6bbc ("drm/omap: >> sdi: Sort includes alphabetically") works... > > The venc issue is fixed in "Switch the HDMI and VENC outputs to drm_bridge", which is a few commits > after the "venc: Register a drm_bridge". > > So I'm guessing SDI works until "sdi: Register a drm_bridge", but as omapdrm doesn't probe, you get > no displays. > > Can you try to pinpoint a bit where the hang happens? Maybe add DRM/omapdrm debug prints, or perhaps > sysrq works and it shows a lock that's in deadlock. Also, one data point would be to disable venc, e.g. set venc status to "disabled" in dts. Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki