Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4721211pxv; Tue, 6 Jul 2021 07:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykf2/J1KohUh2DWgEuyU2v/IxSGtarKqkGiVnq9IdpRvpLwpkf9poCUd1VRxPpZppKkIdf X-Received: by 2002:aa7:c38d:: with SMTP id k13mr1165264edq.178.1625582369085; Tue, 06 Jul 2021 07:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625582369; cv=none; d=google.com; s=arc-20160816; b=b0F7hD8aBJJBbvKGnqKByGe944ssQ0GNMllwAeQDSpA835mcjIx9riTMKVZ7515ESV 5NkH7odHgpLLQxO7g+CuqSQnrpfpBWwLxPtpYELddn/Y159aEJ16WRUAWV1UTHjaUvnP bKPqdmQLtE8vSC0yV7IPFXXJO1n9Ups/NpZH0q7fCwh4F0tVlIgOK+kb/8A7WqeRAztB QmqBcu1fQusdGPSn5E6K/tz+h9Ej1hG62AnV8iFog9cHUIiM4GXE2JIxf973ab3ij33i 0h/RennDNkgRDUIEqhzD07HO/OoogN5KAgZVbdH0lo7JFR26nSil/OLQKkbZxyk7Pbq4 n9SQ== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jy7B1eNocEomHYb8Q2ONw/tio4h/NyFzZ4ujY4LjXSg=; b=OKLq50Fokc2NHiDf9bGfARzl4hDszL4Ztl4KdapsKILhX1KXZtO2Tx6mHEuYFlHp5v KC9gvfAXQp37LmlkDPTdLuY0b163Zg26UvnTkGb38jVFHi2b70LtPPbyX7OxCcaAU4Dj LXRNZhkMLM+cHFpxqo9wjFLMhmn2fdLVgSnpL2pf8Z+WkUDMU5VEz+nctpjhPzeL59W4 V1/ErMsOnO30M4t+W6gaYMpFbFKwGpe+ROH2TANYOAn8EHhtpLhu7LcLeCQBQXD2GL0Q oIAZbjBjy09LeV2NyXNdHQw0uA+9Mkx2IOejiukO15BAShYT5012gHRlHtflnhNc/eL/ Qi3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Q54tcSgw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si17421678ejm.280.2021.07.06.07.39.03; Tue, 06 Jul 2021 07:39:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Q54tcSgw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242953AbhGFMDF (ORCPT + 99 others); Tue, 6 Jul 2021 08:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237380AbhGFLgH (ORCPT ); Tue, 6 Jul 2021 07:36:07 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C0EAC0225A5 for ; Tue, 6 Jul 2021 04:20:54 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id g8-20020a1c9d080000b02901f13dd1672aso1392145wme.0 for ; Tue, 06 Jul 2021 04:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=jy7B1eNocEomHYb8Q2ONw/tio4h/NyFzZ4ujY4LjXSg=; b=Q54tcSgwVwzQfNcMewf3KLLck3MfQ5g9qHYgEqOW7xKjh3VZLSssHbR3i/nwnA6iwA ti6CIAD02mte+bGvVkh5FPnyoaSu+9EexjAQCDvgcmmLY6SJFqvAA9AFdY91AbKflcPO g1Dr4k8lKrw3SIPKnDeZvopgkM4moOlfVv1pk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=jy7B1eNocEomHYb8Q2ONw/tio4h/NyFzZ4ujY4LjXSg=; b=R9do9PTmuUaJHZry7KYnswXqXh7hdKFd0+TKmDVlChI4OdGVqYksrkuFPOGjK01QzZ ZbaCa9eBCt4PSxLuQ+dYuQ6EpURIB7WcGuyBrxzukkpDorQ6/4aLywuMdbG8gcjcuzOA IWqwjHcpookhg+/DvXHfps8IVpPTs7XDj2NeH2VJ5x0HF3l4h5EmdCsFlYEY6dhlY00N WLq3uu2E1G6IhASA+MepFXJTcAS+Z806WZd1WD0JsXvQ+yKjiy62PVMQ3/l0+k5qyQEf iiw+7U0/+l9Srn1Pnya14FJE/mODE6ouYIR89kWneOo82QQs7dzsAfTVk2bEobEfY7n8 xErQ== X-Gm-Message-State: AOAM5333XU7nb/HS9tjvDFn18Y7Ps7zkp26Y/Qqb+WDvnLnFgNrcp3fJ Y7krltZTZnZkpUjekLoGAtcGwQ== X-Received: by 2002:a7b:c0c1:: with SMTP id s1mr17752031wmh.70.1625570453124; Tue, 06 Jul 2021 04:20:53 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id r18sm18222326wmh.23.2021.07.06.04.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 04:20:52 -0700 (PDT) Date: Tue, 6 Jul 2021 13:20:50 +0200 From: Daniel Vetter To: Frank Wunderlich Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chun-Kuang Hu , Philipp Zabel , linux-mediatek@lists.infradead.org, Matthias Brugger Subject: Re: BUG: MTK DRM/HDMI broken on 5.13 (mt7623/bpi-r2) Message-ID: Mail-Followup-To: Frank Wunderlich , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chun-Kuang Hu , Philipp Zabel , linux-mediatek@lists.infradead.org, Matthias Brugger References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.10.0-7-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 06, 2021 at 11:54:39AM +0200, Frank Wunderlich wrote: > Hi, > > i've noticed that HDMI is broken at least on my board (Bananapi-r2,mt7623) on 5.13. > > after some research i noticed that it is working till > > commit 2e477391522354e763aa62ee3e281c1ad9e8eb1b > Author: Dafna Hirschfeld > Date: Tue Mar 30 13:09:02 2021 +0200 > > drm/mediatek: Don't support hdmi connector creation > > > which is the last of mtk-drm-next-5.13 [1] so i guess a problem with core-patches > > dmesg shows the following: > > [ 7.071342] mediatek-drm mediatek-drm.1.auto: bound 14007000.ovl (ops mtk_dis > p_ovl_component_ops) > [ 7.080330] mediatek-drm mediatek-drm.1.auto: bound 14008000.rdma (ops mtk_di > sp_rdma_component_ops) > [ 7.089429] mediatek-drm mediatek-drm.1.auto: bound 1400b000.color (ops mtk_d > isp_color_component_ops) > [ 7.098689] mediatek-drm mediatek-drm.1.auto: bound 14012000.rdma (ops mtk_di > sp_rdma_component_ops) > [ 7.107814] mediatek-drm mediatek-drm.1.auto: bound 14014000.dpi (ops mtk_dpi > _component_ops) > [ 7.116338] mediatek-drm mediatek-drm.1.auto: Not creating crtc 1 because com > ponent 9 is disabled or missing > .... > [ 38.403957] Console: switching to colour frame buffer device 160x64 > [ 48.516398] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out > [ 48.516422] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:41:cr > tc-0] commit wait timed out > [ 58.756384] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out > [ 58.756399] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR: > 32:HDMI-A-1] commit wait timed out > [ 68.996384] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out > [ 68.996399] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [PLANE:33:p > lane-0] commit wait timed out > [ 68.996423] [drm:mtk_drm_crtc_atomic_begin] *ERROR* new event while there is > still a pending event > [ 69.106385] ------------[ cut here ]------------ > [ 69.106392] WARNING: CPU: 2 PID: 7 at drivers/gpu/drm/drm_atomic_helper.c:151 > 1 drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8 > [ 69.106414] [CRTC:41:crtc-0] vblank wait timed out > > so i guess the breaking commit may be this: > > $ git logone -S"drm_crtc_commit_wait" -- drivers/gpu/drm/ > b99c2c95412c 2021-01-11 drm: Introduce a drm_crtc_commit_wait helper > > in drivers/gpu/drm/drm_atomic{,_helper}.c > > but i cannot confirm it because my git bisect does strange things (after > defining 5.13 as bad and the 2e4773915223 as good, second step is before > the good commit till the end, last steps are 5.11...). sorry, i'm still > new to bisect. drm history runs in parallel with the main tree, so occasionally the version that's reported as baseline is confusing and older than what you might expect. Just trust git bisect, it's doing the right thing, and make sure you test exactly the kernel you're supposed to test. Compiling with CONFIG_LOCALVERSION_AUTO helps a lot to make sure you're really booting into the right sha1. > the fix is targeting to 5.12-rc2, is guess because CK Hu's tree is based > on this...but the fix was not included in 5.12-rc2 (only after > 5.12.0...got it by merging 5.12.14) Yeah that can also happen because of all the non-linear trees involved in linux development. > maybe you can help me? So now I'm confused, you're talking about a fix, or is it still broken in latest upstream? -Daniel > > regards Frank > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next-5.13 -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch