Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1616196rwb; Fri, 19 Aug 2022 06:43:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6GB9MFBneM/PF6hmXQJPefoPCa5ER0p0hBtic+Ylrzijz9dsNeiaCblnuGcOk5HLs6Xzw+ X-Received: by 2002:a17:906:58d6:b0:733:77c:5ed1 with SMTP id e22-20020a17090658d600b00733077c5ed1mr4973884ejs.454.1660916633804; Fri, 19 Aug 2022 06:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660916633; cv=none; d=google.com; s=arc-20160816; b=h33b+gKXvgoUTjX6YJJiIVRMPGKgurE9wJYf3xXbijzWpFj3gye9ln+EyloTE44Xyw NSsXrlfS2Z8L01NgYg4IpLnQjQmv6fK+pvRYqAJXz6GFUuyIBFHA4vhscn7PLNv3jrgL ONUAT1q+MYILWyHZD8DfC+OeX9bubHO2dq/Rt8rbFumo5JxSE6aW0iJZYpfw68axv4kX GwHxwXB+eRQz1loQmZft+OfgPSDicQVDJ+52T8zEo/xbHLJmFqW81/rcbcpWwiAgS3wA vu8VWxQsdOj7jxYOnzDXNoUM/TgC6dv+5ISn+oZ/JkG7cu0ZRKdLxD8TyvIwqWIV56Ll 3MDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EcVjTGn7kbtsskUzpli5enhaWEJ97X0D7MTunymKgDA=; b=bc1ZKEhioc2DnC1KbcHfpmc+bVOApRFFgnfsednjLg9ZXHbSgyxegb5b/ctOXTCKE9 JDOyqozoyYHG+G5LuEuZHCt+KU833vHC0grCyGa1P9nhzsQ8GIN6FgQfdv4dWYc2SHB+ wy92xF9Z2xCpWJlC/m7jSCXDHcfzgI1YIspIYydwmw8k0r45wqM7WmcMmklke8zD79P0 zMXgHbfObylnUIr6NBAYjf+oEIyY9MVktDReBt1PUnrdUh0vmy/yEllem8jY4zCckM8f CHhObuuDqz9HZJR5+ZlO1jD9CdW0ZPstOA5Q6Ko074nVLnPTV1PXp5ryqS17Bfov47W8 YOow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EFINGNzL; 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 hq35-20020a1709073f2300b0073d283b4e9asi1317630ejc.607.2022.08.19.06.43.27; Fri, 19 Aug 2022 06:43:53 -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=@chromium.org header.s=google header.b=EFINGNzL; 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 S1349376AbiHSN3B (ORCPT + 99 others); Fri, 19 Aug 2022 09:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349377AbiHSN26 (ORCPT ); Fri, 19 Aug 2022 09:28:58 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24E0C61D8F for ; Fri, 19 Aug 2022 06:28:57 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id o22so5658088edc.10 for ; Fri, 19 Aug 2022 06:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=EcVjTGn7kbtsskUzpli5enhaWEJ97X0D7MTunymKgDA=; b=EFINGNzLMYGWNtRBOvem2NfAjEGK5CsDlouqgDIseNqvAWaE/67j8+xZEQr5fzwv50 50O6DLABl/kbDSCNvLyErR7bNIUV7/S6PM5SuRZMqq8otAu0mRiY7BDFSa/U5ZLJ5eOP UgNDmX4snUTIH3fPqVyJdhA0C4d1pM2cfBFr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=EcVjTGn7kbtsskUzpli5enhaWEJ97X0D7MTunymKgDA=; b=LSDqFyqezETbO1em317BAHBIt9+QAfn2zNZx/Q6GLf418imnADSYk5MBzaXzd0IWCs p3fwLmmXF7qRUyO78/8/bwciGu2aqAm/zV9DT+6xS+NCVwB5yh65KocDBeUBRClYYjTb Mg2J1gKTU5+H6LeoDfBYfbLk9YMF5H/ayw4kUrqXm4R0SqB5G35EpyaXbHk7cqX47DcL yczQ40UAg+iz0E1aIfryA9Zw59FCVGqKln5hlgnN2ybSdtlLO0XLvjk7wMedavod5z/K HkwaGtwwYLSJUB7fvC5TLSJ6oZ305VQ6pUjAko9RvyfKvD+j+OeMXa4CO2tTzZ/jOFid ofDA== X-Gm-Message-State: ACgBeo3Y4F6d5+0cF3r9jdVdGKKjpGC5tMw+EolHiwLxLdPmx72GzFEh EWqV+sibK3+RmwnfRRcCLmHPM6GDet+5x/hkYok03g== X-Received: by 2002:a05:6402:4029:b0:443:a5f5:5324 with SMTP id d41-20020a056402402900b00443a5f55324mr6289038eda.51.1660915735800; Fri, 19 Aug 2022 06:28:55 -0700 (PDT) MIME-Version: 1.0 References: <20220721172727.14624-1-angelogioacchino.delregno@collabora.com> In-Reply-To: <20220721172727.14624-1-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Fri, 19 Aug 2022 21:28:44 +0800 Message-ID: Subject: Re: [PATCH] drm/mediatek: dsi: Add atomic {destroy, duplicate}_state, reset callbacks To: chunkuang.hu@kernel.org Cc: jitao.shi@mediatek.com, AngeloGioacchino Del Regno , airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, rex-bc.chen@mediatek.com, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org, xinlei.lee@mediatek.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 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 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 <=> ANX7625 => aux-bus panel > > Fixes: 7f6335c6a258 ("drm/mediatek: Modify dsi funcs to atomic operations") > 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/mediatek/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(struct drm_bridge *bridge, > > static const struct drm_bridge_funcs mtk_dsi_bridge_funcs = { > .attach = mtk_dsi_bridge_attach, > + .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, > .atomic_disable = mtk_dsi_bridge_atomic_disable, > + .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, > .atomic_enable = mtk_dsi_bridge_atomic_enable, > .atomic_pre_enable = mtk_dsi_bridge_atomic_pre_enable, > .atomic_post_disable = mtk_dsi_bridge_atomic_post_disable, > + .atomic_reset = drm_atomic_helper_bridge_reset, > .mode_set = mtk_dsi_bridge_mode_set, > }; > > -- > 2.35.1 >