Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1240180pxp; Thu, 10 Mar 2022 01:19:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpakP6cLqSOTk95EfJB+q0SPLdrvZ5tr1WIKbiLsYPjahFP9spD+K4LeSfQ3wG4CjRG9gI X-Received: by 2002:a05:6402:35cf:b0:416:99af:e3f8 with SMTP id z15-20020a05640235cf00b0041699afe3f8mr3269075edc.275.1646903963782; Thu, 10 Mar 2022 01:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646903963; cv=none; d=google.com; s=arc-20160816; b=Mz++w/VCG4IzbtSCztHqCOcPOUiSW80QjZOxRSWrIvbCrD2xAFtvfP1bEoTNMaHwQ5 fXKw7I5Os7X8wOOD/ykxXysiFY/3PTK4NKiSEpLvCigu2M5szGe3q7HbD1nmrYZai2oy +bJfY9olMWOSZqewaRMugA86HLX6lXR9HAcqa9IGjYYHtMgyZnkqjoHWeyiauuvXqwGg wlgj6Vg8z8VEEjeSHqGt/cUZft+bGMM2qpJgE8OUHv9A07Nt2zKQJPWig6IDk1f8ymAL j3kV2badQyNnzvPpvBoZThvK5M5clztNuO+s9B7EUm4EAsHB5lKRILXU0lN73JrqjT+G exBg== 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=g02VUi9lshGZqdo5/cYz41hUNMH+xzDGxn419kRsSDM=; b=cgNK1UYR2IxnwI7VaY0Wm+nnCcz5yJ9tZj2kZ2sc8zyfYcNyY/wmVSLQv1z2zkhIAD fqjm16uuMjLAtKiScv/QoeQn4s3xNuUL1Y3t9ZqdhlktjtUXobbtHN37c6m64TGy/jLb mOyVsoLMnqatRdfdMnHY8kSzkGnln/5f948JgDlm/GS+XHpaKQ/lXykXZ5gdjj2RnP8Z aE4eflpfnA3Q+e6aoEGaab2Ks5fimvAU0HWGCJG5jQvmzJBaOFHuH1Jq+aYAeKOweulf kobscCrpcfl5BVwGcKhH0+/FilWlTBX3ctBCkH3ZGouyvfALgnG9npzAWeq/rcvZ5BCc tN/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AYw+oqeY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a056402440a00b00415b3c87f2csi3441672eda.6.2022.03.10.01.19.01; Thu, 10 Mar 2022 01:19:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AYw+oqeY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239349AbiCJDzG (ORCPT + 99 others); Wed, 9 Mar 2022 22:55:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234822AbiCJDzG (ORCPT ); Wed, 9 Mar 2022 22:55:06 -0500 Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5139CD884A for ; Wed, 9 Mar 2022 19:54:05 -0800 (PST) Received: by mail-vs1-xe30.google.com with SMTP id a186so4641013vsc.3 for ; Wed, 09 Mar 2022 19:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=g02VUi9lshGZqdo5/cYz41hUNMH+xzDGxn419kRsSDM=; b=AYw+oqeYvhX8+fR3qZ+SBNAQ94dLDTiQJCgtCnnyNYe9OsEd9rQhku9ryCoJ+oQnYu wChUwbZ9MI/D1Elro+3Y/6In02ApdqcE0JVL1a2Cx9Y+NiN91Q8w7vp+jol87kzx9Mkz L108U0YzcM0PkD4zNPuhqO9LvWwZzeL54U3+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=g02VUi9lshGZqdo5/cYz41hUNMH+xzDGxn419kRsSDM=; b=iLtYT77mtKfV+toZcEM5AKqMlbykwLuH09YrQj/X3uZs1Bw0R4bkNra9YB9Or++ZGS suiiIvvXsnL/8vgASlAHe2WH5wHjgWF2YbEEI4A88Vxzf0YoQbvHU7+D+sRgPCmmxmYv sL3k6lCxeyYlOcLhrX05NTddHx4RiWO7R3WWBmdXxDdHbrGctZZjUEF4pbexLUuoXyc4 3wPaXH+/AOq/uTGx9ahSTcLYdDA4oZXAmEarGuG0zCsp2ASU89wunWKMzoqvASVgkQAA U/mHOCgvVMO2kwZlgl8/jdb3YnrDYCYS6bHAVVuEy77CQtIGPEFzuGV2c4M55LO4kdbP c1bA== X-Gm-Message-State: AOAM533fLmXN1K1w7tKXQI65qLvUiez0utoukJdGqdeUD2Nses4rK3C1 XsGxAO3jo25MEw2HilmJHNwpS9ryjvbgj2dY6W4Ybw== X-Received: by 2002:a67:df98:0:b0:320:8446:7c6d with SMTP id x24-20020a67df98000000b0032084467c6dmr1276863vsk.16.1646884444142; Wed, 09 Mar 2022 19:54:04 -0800 (PST) MIME-Version: 1.0 References: <1646388956-8033-1-git-send-email-xinlei.lee@mediatek.com> <90f28179a3cffcaf28640066079391e31783a9f7.camel@mediatek.com> In-Reply-To: <90f28179a3cffcaf28640066079391e31783a9f7.camel@mediatek.com> From: Hsin-Yi Wang Date: Thu, 10 Mar 2022 11:53:37 +0800 Message-ID: Subject: Re: [PATCH v2, 0/4] Cooperate with DSI RX devices to modify dsi funcs and delay mipi high to cooperate with panel sequence To: "xinlei.lee" Cc: Benjamin Gaignard , chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com, jitao.shi@mediatek.com, allen-kh.cheng@mediatek.com, Rex-BC.Chen@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 10, 2022 at 11:33 AM xinlei.lee wrote= : > > On Tue, 2022-03-08 at 11:00 +0100, Benjamin Gaignard wrote: > > Le 08/03/2022 =C3=A0 10:12, Hsin-Yi Wang a =C3=A9crit : > > > On Fri, Mar 4, 2022 at 7:25 PM Benjamin Gaignard > > > wrote: > > > > > > > > Le 04/03/2022 =C3=A0 11:15, xinlei.lee@mediatek.com a =C3=A9crit : > > > > > From: Xinlei Lee > > > > > > > > > > In upstream-v5.8, dsi_enable will operate panel_enable, but > > > > > this > > > > > modification has been moved in v5.9. In order to ensure the > > > > > timing of > > > > > dsi_power_on/off and the timing of pulling up/down the MIPI > > > > > signal, > > > > > the modification of v5.9 is synchronized in this series of > > > > > patches. > > > > > > > > Hello, > > > > > > > > I'm trying to debug an issue on mt8183 kukui krane sku176 device. > > > > The problem is that boe-tv101wum-nl6 panel isn't working. > > > > At boot time I can see these logs: > > > > panel-boe-tv101wum-nl6 14014000.dsi.0: failed to write command 1 > > > > panel-boe-tv101wum-nl6 14014000.dsi.0: failed to init panel: -62 > > > > and a DSI interrupt time out. > > > > > > > > Since I believe the problem is link to DSI/panel enabling > > > > sequence > > > > I have try this series but that doesn't solve the issue. > > > > I notice that when going out of deep sleep mode panel is > > > > functional. > > > > > > > > May you have any idea to debug/solve this problem ? > > > > > > > > > > Hi Benjamin, > > > > > > I think this might not be related to this series. Which kernel are > > > you using? > > > I tried the krane sku176 with linux-next 5.17-rc6 > > > (519dd6c19986696f59847ff8bf930436ccffd9a1 (tag: next-20220307, > > > linux-next/master) with or without this series, both can get the > > > display on. > > > > > > dsi related message: > > > [ 0.206330] mediatek-drm mediatek-drm.1.auto: Adding component > > > match for /soc/dsi@14014000 > > > [ 4.567577] panel-boe-tv101wum-nl6 14014000.dsi.0: supply pp3300 > > > not found, using dummy regulator > > > [ 4.567732] panel-boe-tv101wum-nl6 14014000.dsi.0: GPIO lookup > > > for > > > consumer enable > > > [ 4.567738] panel-boe-tv101wum-nl6 14014000.dsi.0: using device > > > tree for GPIO lookup > > > [ 4.567757] of_get_named_gpiod_flags: parsed 'enable-gpios' > > > property of node '/soc/dsi@14014000/panel@0[0]' - status (0) > > > [ 4.585884] panel-boe-tv101wum-nl6 14014000.dsi.0: supply pp3300 > > > not found, using dummy regulator > > > [ 4.586037] panel-boe-tv101wum-nl6 14014000.dsi.0: GPIO lookup > > > for > > > consumer enable > > > [ 4.586042] panel-boe-tv101wum-nl6 14014000.dsi.0: using device > > > tree for GPIO lookup > > > [ 4.586059] of_get_named_gpiod_flags: parsed 'enable-gpios' > > > property of node '/soc/dsi@14014000/panel@0[0]' - status (0) > > > [ 4.587430] mediatek-drm mediatek-drm.1.auto: bound 14014000.dsi > > > (ops 0xffffffd369a752b8) > > > > > > > > > Maybe some config is not enabled? > > > > I using 5.17.0-rc1-next-20220127 kernel tag. > > The configs look similar. > > > > I have the follow log at boot time: > > > > [ 1.533384] phy phy-11e50000.dsi-phy.2: Looking up phy-supply from > > device tree > > [ 1.533402] phy phy-11e50000.dsi-phy.2: Looking up phy-supply > > property in node /soc/dsi-phy@11e50000 failed > > [ 3.173068] mediatek-drm mediatek-drm.1.auto: Adding component > > match for /soc/dsi@14014000 > > [ 4.671806] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > avdd-supply from device tree > > [ 4.680348] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > avee-supply from device tree > > [ 4.688784] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > pp3300-supply from device tree > > [ 4.697816] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > pp1800-supply from device tree > > [ 4.842346] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > avdd-supply from device tree > > [ 4.854573] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > avee-supply from device tree > > [ 4.862976] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > pp3300-supply from device tree > > [ 4.871568] panel-boe-tv101wum-nl6 14014000.dsi.0: Looking up > > pp1800-supply from device tree > > [ 4.964021] mediatek-drm mediatek-drm.1.auto: bound 14014000.dsi > > (ops mtk_dsi_component_ops) > > ... > > [ 38.273437] [drm] Wait DSI IRQ(0x00000002) Timeout > > [ 38.281584] panel-boe-tv101wum-nl6 14014000.dsi.0: failed to write > > command 1 > > [ 38.288651] panel-boe-tv101wum-nl6 14014000.dsi.0: failed to init > > panel: -62 > > ... > > [ 70.113674] mediatek-drm mediatek-drm.1.auto: [drm] *ERROR* > > flip_done timed out > > [ 70.121054] mediatek-drm mediatek-drm.1.auto: [drm] *ERROR* > > [CRTC:45:crtc-0] commit wait timed out > > [ 70.130037] [drm:mtk_drm_crtc_atomic_begin] *ERROR* new event > > while there is still a pending event > > [ 70.241222] ------------[ cut here ]------------ > > [ 70.245898] [CRTC:45:crtc-0] vblank wait timed out > > [ 70.250729] WARNING: CPU: 7 PID: 397 at > > drivers/gpu/drm/drm_atomic_helper.c:1529 > > drm_atomic_helper_wait_for_vblanks.part.0+0x290/0x24 > > [ 70.262815] Modules linked in: hci_uart btqca btbcm bluetooth > > cdc_ether usbnet r8152 mtk_mdp3 hid_multitouch mtk_jpeg panfrost > > cros_6 > > [ 70.309348] CPU: 7 PID: 397 Comm: gnome-shell Tainted: > > G W 5.17.0-rc1-next-20220127+ #57 > > [ 70.318731] Hardware name: MediaTek krane sku176 board (DT) > > [ 70.324293] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS > > BTYPE=3D--) > > [ 70.331244] pc : > > drm_atomic_helper_wait_for_vblanks.part.0+0x290/0x2b4 > > [ 70.337762] lr : > > drm_atomic_helper_wait_for_vblanks.part.0+0x290/0x2b4 > > [ 70.344279] sp : ffff8000092339e0 > > [ 70.347583] x29: ffff8000092339e0 x28: 0000000000000001 x27: > > 0000000000000000 > > [ 70.354713] x26: 0000000000000000 x25: ffffc7e8feee4660 x24: > > 0000000000000038 > > [ 70.361842] x23: ffff6fe702b0d000 x22: 0000000000000001 x21: > > ffff6fe7030d5080 > > [ 70.368970] x20: ffff6fe709d7d700 x19: 0000000000000000 x18: > > 0000000000000030 > > [ 70.376099] x17: 000000040044ffff x16: 00400032b5503510 x15: > > ffffffffffffffff > > [ 70.383227] x14: ffffc7e8ffa99220 x13: 000000000000094b x12: > > 0000000000000319 > > [ 70.390354] x11: 6e616c6276205d30 x10: ffffc7e8ffb49220 x9 : > > 00000000ffffe000 > > [ 70.397483] x8 : ffffc7e8ffa99220 x7 : 0000000000000001 x6 : > > 0000000000000000 > > [ 70.404611] x5 : 0000000000000000 x4 : ffff6fe73b5e4cf8 x3 : > > ffff6fe73b5f0840 > > [ 70.411738] x2 : 0000000000000000 x1 : 0000000000000000 x0 : > > ffff6fe702f20000 > > [ 70.418866] Call trace: > > [ 70.421301] drm_atomic_helper_wait_for_vblanks.part.0+0x290/0x2b4 > > [ 70.427472] drm_atomic_helper_commit_tail_rpm+0x88/0xac > > [ 70.432775] commit_tail+0xa0/0x17c > > [ 70.436254] drm_atomic_helper_commit+0x190/0x3a0 > > [ 70.440949] drm_atomic_commit+0x5c/0x6c > > [ 70.444864] drm_mode_gamma_set_ioctl+0x45c/0x640 > > [ 70.449560] drm_ioctl_kernel+0xc4/0x174 > > [ 70.453475] drm_ioctl+0x238/0x45c > > [ 70.456868] __arm64_sys_ioctl+0xac/0xf0 > > [ 70.460786] invoke_syscall+0x48/0x114 > > [ 70.464529] el0_svc_common.constprop.0+0x60/0x11c > > [ 70.469312] do_el0_svc+0x28/0x90 > > [ 70.472619] el0_svc+0x4c/0x100 > > [ 70.475754] el0t_64_sync_handler+0xec/0xf0 > > [ 70.479928] el0t_64_sync+0x1a0/0x1a4 > > [ 70.483582] irq event stamp: 0 > > [ 70.486625] hardirqs last enabled at (0): [<0000000000000000>] > > 0x0 > > [ 70.492883] hardirqs last disabled at (0): [] > > copy_process+0x658/0x197c > > [ 70.501053] softirqs last enabled at (0): [] > > copy_process+0x658/0x197c > > [ 70.509219] softirqs last disabled at (0): [<0000000000000000>] > > 0x0 > > [ 70.515475] ---[ end trace 0000000000000000 ]--- > > > > Regards, > > Benjamin > > > > > > > > > > > > > > > Regards, > > > > Benjamin > > > > > > > > > Changes since v1: > > > > > 1. Dsi sequence marked with patch adjustment > > > > > 2. Fixes: mtk_dsi: Use the drm_panel_bridge > > > > > > > > > > Jitao Shi (3): > > > > > drm/mediatek: Adjust the timing of mipi signal from LP00 to > > > > > LP11 > > > > > drm/mediatek: Separate poweron/poweroff from enable/disable > > > > > and define > > > > > new funcs > > > > > drm/mediatek: keep dsi as LP00 before dcs cmds transfer > > > > > > > > > > Xinlei Lee (1): > > > > > drm/mediatek: Add pull-down MIPI operation in > > > > > mtk_dsi_poweroff > > > > > function > > > > > > > > > > drivers/gpu/drm/mediatek/mtk_dsi.c | 73 > > > > > ++++++++++++++++++++---------- > > > > > 1 file changed, 49 insertions(+), 24 deletions(-) > > > > > > > > > > > > > _______________________________________________ > > > > Linux-mediatek mailing list > > > > Linux-mediatek@lists.infradead.org > > > > http://lists.infradead.org/mailman/listinfo/linux-mediatek > > > > > > > > _______________________________________________ > > > > Linux-mediatek mailing list > > > > Linux-mediatek@lists.infradead.org > > > > http://lists.infradead.org/mailman/listinfo/linux-mediatek > > Hi Benjamin: > > I confirmed with hsin-yi that if she doesn't add these patches, the > screen of tv101 should work normally. My local test can also be > displayed. > panel-boe-tv101wum-nl6 14014000.dsi.0: failed to write command 1 > =3D>From this log, it can be seen that the initial code issued by the > platform was unsuccessful, and it cannot be ruled out that the panel is > no problem. > It is recommended to grab the latest kukui kernel on google CPFE or try > another platform to test. hi Xinlei, Please test with linux-next as well besides testing on downstream kernel. > > Best Regards! > xinlei >