Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5622983pxv; Wed, 7 Jul 2021 08:02:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5MWn2/rehomSbR+ZY7Nosem2b/L3K09nOU4tBNCNw/KrYCTszOJOC4n9OTkt4bmZULd9l X-Received: by 2002:a5d:9648:: with SMTP id d8mr19702588ios.171.1625670154885; Wed, 07 Jul 2021 08:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625670154; cv=none; d=google.com; s=arc-20160816; b=HVwSy5jsvb/ts17d8YvB65BfUgfYg0JcDeN/v9cKHVAbdnjRkOPy+uLk6NwXHrPMwF SrupiDtqecZLStMPczUR9pi1+okgld1SdVfV6i5zBloPKKXsbmpeI4T4K8HVV9SpMgx7 tAaPg2zsL/hEOW/1RrvHxvljXJKndn/CdsCa2WqPCOi20nDbPThTfa5T85VZWy1GndXv mRf+OqR1fORUjXj7g4sk3Rdo78RhsDKqMVQAByQVWTegA+XTFiuNTPDVwYRoL2NDZ/rF J00hjklvyku750F45dms5q1jqFdaj++fzf68jB2UXd5BxqMd/HY0V5A6uLJzqYmCdkrq 1mew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MB3vaPYH8IUJJ4smzWLXCiLXomMWw6lQvlc8ROThqwU=; b=DxKEXqM2TaQAa3qNMNpKN9QRRyW7pYllv0P6a0zzNBgQr+AyCFJNMhvkopaSql78j1 Rv5DTYFyqAVDp+/FzgQBS0sdte7byPYF/jIPvP2+wcNbuKsBfvTeQ23O2fJjmzE29eu8 sRW6iLhiHyqbxXd7pJaaBszxEPyu0AD72OY/Ab8NSrkk2xn57hyHtUlDm0j8Y4N8mvgn 3MGSpDFPU1T7Us8NIcI27XoFfrKfwddzwEtpiQvOsfVytO6sVun+wOhVkMPPgHM6SuBv fkU5HM0hNLMbNPXOJp9SF99Xhmak7pyVAM5Vp/Ge6ALR7kx5mNA25xeYCGYIHytn/CbL OxwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ntguiwzc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si9576192ioj.45.2021.07.07.08.02.22; Wed, 07 Jul 2021 08:02:34 -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=@kernel.org header.s=k20201202 header.b=ntguiwzc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232208AbhGGPEL (ORCPT + 99 others); Wed, 7 Jul 2021 11:04:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:33686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232135AbhGGPEF (ORCPT ); Wed, 7 Jul 2021 11:04:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 140F061CCB for ; Wed, 7 Jul 2021 14:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625669951; bh=Ld0W/CO5KSH5eewJQxSXvg+l75fMEAzgdAszdXdVTd8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ntguiwzcJYY3n/YJQHFdemX2SZy4jLgEc2m+XLtWj2yf+mglGmuj7yGVYwsotMVHY 4YX+jk2yx/4W3i/vU5uS/k0DIi2TO1ibA2yJPhdTUFek21HiuOLsFBzYfafnoO/FmZ EPKV2wOyHIVaC9cyG0qQk8G204epqC0hbqzNewR7EjTF1idF85IktL4xfl+QUm02qE jCfDdxX9HoAhqSfNvRM0kYOMetpYQtX63nl5F0rfpd19sWwCSjoiMxXom6MgzuWNuH Vyiz56KknKW3QcGds6h39hMxcnnmqPGwjB7wbn5Z6MQhk+s+ba8LMzODsbDnOgSmCg 4KtsrUEpijVDA== Received: by mail-ej1-f49.google.com with SMTP id gb6so3747349ejc.5 for ; Wed, 07 Jul 2021 07:59:11 -0700 (PDT) X-Gm-Message-State: AOAM533bMFN9iMNq/cmAXMKrp2etcs7L8NeTNMhqEEmk4SSLerq2ZrzM BNXLx46yVDXUAetHPM46PuIkSgQmiyMfwbwgqg== X-Received: by 2002:a17:906:4745:: with SMTP id j5mr4539593ejs.75.1625669949495; Wed, 07 Jul 2021 07:59:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Chun-Kuang Hu Date: Wed, 7 Jul 2021 22:58:58 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Re: BUG: MTK DRM/HDMI broken on 5.13 (mt7623/bpi-r2) To: Frank Wunderlich Cc: Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , DRI Development , linux-kernel , Chun-Kuang Hu , Philipp Zabel , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Frank: Frank Wunderlich =E6=96=BC 2021=E5=B9=B47=E6=9C= =886=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=887:54=E5=AF=AB=E9=81=93= =EF=BC=9A > > Hi Daniel > > > Gesendet: Dienstag, 06. Juli 2021 um 13:20 Uhr > > Von: "Daniel Vetter" > > An: "Frank Wunderlich" > > Cc: "Maarten Lankhorst" , "Maxime Ri= pard" , "Thomas Zimmermann" , "Dav= id Airlie" , "Daniel Vetter" , dri-devel= @lists.freedesktop.org, linux-kernel@vger.kernel.org, "Chun-Kuang Hu" , "Philipp Zabel" , linux-media= tek@lists.infradead.org, "Matthias Brugger" > > Betreff: Re: BUG: MTK DRM/HDMI broken on 5.13 (mt7623/bpi-r2) > > > > 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,mt= 7623) 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 160x6= 4 > > > [ 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 whil= e there is > > > still a pending event > > > [ 69.106385] ------------[ cut here ]------------ > > > [ 69.106392] WARNING: CPU: 2 PID: 7 at drivers/gpu/drm/drm_atomic_h= elper.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 (af= ter > > > defining 5.13 as bad and the 2e4773915223 as good, second step is bef= ore > > > the good commit till the end, last steps are 5.11...). sorry, i'm sti= ll > > > 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 yo= u > > might expect. Just trust git bisect, it's doing the right thing, and ma= ke > > sure you test exactly the kernel you're supposed to test. Compiling wit= h > > CONFIG_LOCALVERSION_AUTO helps a lot to make sure you're really booting > > into the right sha1. > > my build-script adds sha1 to filename (for tftp-usage) and kernelinfo (un= ame -a) > > > > the fix is targeting to 5.12-rc2, is guess because CK Hu's tree is ba= sed > > > 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. > > how to find the real breaking commit? > > > > 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 > > it is still broken, as i did not found the root cause...only a guess base= d on errors in dmesg...git bisect points me afair to mt76 wifi-driver which= is completely unrelated...as i said, the fix i defined as "last good" was = no more there after 2nd bisect step. > > The fix i set as last good was fixing 5.12 issue (handling connector/crea= ting bridge without it), but 5.13 has a new one (atomic timeout,drivers/gpu= /drm/drm_atomic{,_helper}.c) which i cannot trace to the breaking commit. > > regards Frank > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek