Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp720669rwe; Thu, 25 Aug 2022 08:06:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7yclILv9+SvCTNDwXoEH92KBPONLhwPwDM07k7QDLmgOQTLxkN/QxGj1CoCunemZIG0rkb X-Received: by 2002:a17:907:a0c7:b0:739:7ea:88ec with SMTP id hw7-20020a170907a0c700b0073907ea88ecmr2726299ejc.363.1661440016211; Thu, 25 Aug 2022 08:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661440016; cv=none; d=google.com; s=arc-20160816; b=dewWPcOrT+fhF6st8nbJ5uvQRqPmRzA+F7D05r5g6zP3T/17K4x/KNLvDZT6Kq5GVJ R3AoNzXOl0xaMYIrH9G3nJyR0NvTL3SftCDrVT7XinBiLat9ilHsQWJlXdU7RPepAhlS dpJhdJwvSPBRjukwJvH14DTdfNtDTqORwK/p/EwoJA34aufosqe4gQRZGg6IFCATKXuJ +cGwqty288JvzhaI/Gn+ZCrMfJa/GSBTvc2CV+PuhFhHywpY5U85SughP8YBDGYHqyfM KdjHtklAffxvBtknpDR5vkz6PSs3XqEnFVnkSathkfx3lzE8X2jcQJyFufwPpegMCrO7 V4FQ== 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=qTOBWtrX+pjJ3ahFlS9FAQk7EKs/QTk29vxbSTY4jaY=; b=ingAf5FBEAPsATdtUD8jUCrXxs383bX07iAZ4NhbrvEK6PKJlmpQV6lJLGbLea6Z28 ebdtrOMFHAjQpkeZKH+kLmzfWafDdH5WIswpZB7sHlkKzJln0LGLwb/bprjEUVLX5k2H 5vfqE36Un48EZPasrp207eTOeIgE9MITGN3jR3MVonPJOEHvUSOPIG8/5oKdB0yG2tq8 OKqZ9XXrssysTZiWmrOTC3//joGTbMHkjBI1dH9BSLlcUlPgCN/Ob4rDnBgf9Hf89g1V mdjHvbD0DyQUuZD9dKLXEyUJcKb4u80BnVa2E0dPC3YUTtCVlF57BiDn3d8dN8HlYZah WDvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HkRRkzc9; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr10-20020a170907720a00b007309e370ecbsi489362ejc.146.2022.08.25.08.06.30; Thu, 25 Aug 2022 08:06:56 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=HkRRkzc9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240693AbiHYPCS (ORCPT + 99 others); Thu, 25 Aug 2022 11:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233563AbiHYPCQ (ORCPT ); Thu, 25 Aug 2022 11:02:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D73F75D0FA for ; Thu, 25 Aug 2022 08:02:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 71202615A7 for ; Thu, 25 Aug 2022 15:02:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC3B8C433D6 for ; Thu, 25 Aug 2022 15:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661439734; bh=wjzgRFEte1JYnIbn0TO9+w6aujcip3bCGZB7ym5Hwqc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HkRRkzc9iafdkf9TMuKnfqx+MEHwzecpp3cFlYHeVXNhCy0CydbQiOhMjHVpUe1oY z8ppkiRKmmBFXy8f/xvVskAEuR1DQ1GbwTz1qoYisg/Y8P4wll3wAnJK/wKYTf0nXf xsJRoaTa+1V6PkhjmQOey5EARkduy8bSNR2rHEEQDuXpbw3h2n92Z92JFsPqEHUa/0 1jKFsx0C/45mNLfBD0fpSBeWj375DsH5odKJKfTgMGAhCTSA93C0jFG1ptbeqrC8fr N2BvGI2buJudq0B41JKkljHZXQK/DCwDHSvY+vz7rLCQM2dc+APZ8lGhH/E0tvXNZM /qTPFWo3Z3XIw== Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-11c896b879bso25204863fac.3 for ; Thu, 25 Aug 2022 08:02:14 -0700 (PDT) X-Gm-Message-State: ACgBeo1nmPo8tBFEzQOtgfdXPJQowydHDr/vDG4etWwyLV0htAp0Uto5 R5nKSSm4DIy5DLdRyvOGEttjVxSI/u/oodP65g== X-Received: by 2002:a05:6870:4690:b0:11c:d599:4f41 with SMTP id a16-20020a056870469000b0011cd5994f41mr5866261oap.69.1661439733913; Thu, 25 Aug 2022 08:02:13 -0700 (PDT) MIME-Version: 1.0 References: <20220721172727.14624-1-angelogioacchino.delregno@collabora.com> In-Reply-To: From: Chun-Kuang Hu Date: Thu, 25 Aug 2022 23:01:54 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/mediatek: dsi: Add atomic {destroy, duplicate}_state, reset callbacks To: Chen-Yu Tsai Cc: Chun-Kuang Hu , Jitao Shi , AngeloGioacchino Del Regno , David Airlie , linux-kernel , DRI Development , Rex-BC Chen , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Linux ARM , xinlei.lee@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Chen-Yu Tsai =E6=96=BC 2022=E5=B9=B48=E6=9C=8819=E6=97= =A5 =E9=80=B1=E4=BA=94 =E6=99=9A=E4=B8=8A9:29=E5=AF=AB=E9=81=93=EF=BC=9A > > On Fri, Jul 22, 2022 at 1:27 AM AngeloGioacchino Del Regno > wrote: > > > > Add callbacks for atomic_destroy_state, atomic_duplicate_state and > > atomic_reset to restore functionality of the DSI driver: this solves > > vblank timeouts when another bridge is present in the chain. > > > > Tested bridge chain: DSI <=3D> ANX7625 =3D> aux-bus panel > > Applied to mediatek-drm-fixes [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-fixes Regards, Chun-Kuang. > > Fixes: 7f6335c6a258 ("drm/mediatek: Modify dsi funcs to atomic operatio= ns") > > Signed-off-by: AngeloGioacchino Del Regno > > This patch is now needed on top of v6.0-rc1, otherwise booting will > stall for a while waiting for display vblank, which never happens > because the DSI pipeline is not configured correctly. > > ChenYu > > > --- > > > > Note: The commit that has been mentioned in the Fixes tag should > > *not* have my Reviewed-by tag, as the author changed it but > > erroneously retained the tag that I had released for an > > earlier version of that commit (which was fine, but the new > > version broke mtk_dsi!). > > > > drivers/gpu/drm/mediatek/mtk_dsi.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/media= tek/mtk_dsi.c > > index 9cc406e1eee1..5b624e0f5b0a 100644 > > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > > @@ -808,10 +808,13 @@ static void mtk_dsi_bridge_atomic_post_disable(st= ruct drm_bridge *bridge, > > > > static const struct drm_bridge_funcs mtk_dsi_bridge_funcs =3D { > > .attach =3D mtk_dsi_bridge_attach, > > + .atomic_destroy_state =3D drm_atomic_helper_bridge_destroy_stat= e, > > .atomic_disable =3D mtk_dsi_bridge_atomic_disable, > > + .atomic_duplicate_state =3D drm_atomic_helper_bridge_duplicate_= state, > > .atomic_enable =3D mtk_dsi_bridge_atomic_enable, > > .atomic_pre_enable =3D mtk_dsi_bridge_atomic_pre_enable, > > .atomic_post_disable =3D mtk_dsi_bridge_atomic_post_disable, > > + .atomic_reset =3D drm_atomic_helper_bridge_reset, > > .mode_set =3D mtk_dsi_bridge_mode_set, > > }; > > > > -- > > 2.35.1 > >