Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4304859iog; Tue, 28 Jun 2022 13:21:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tONXtg7mJoSjwIPj0uhPajmRSY2aeuIgxoQkp4MtrgDohNEaFUi0j61YBXX+/5WLZ3KWGP X-Received: by 2002:a05:6402:3553:b0:434:ef34:664f with SMTP id f19-20020a056402355300b00434ef34664fmr26074525edd.236.1656447678160; Tue, 28 Jun 2022 13:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656447678; cv=none; d=google.com; s=arc-20160816; b=b0YaChvxzBcqiCmDgJ/Ct5uzaMhhPS3H/90EaMVL1IaQrqvBCsIWcv/Q127oyFDWhI p57keVvNtIYBAV5pEq2RH/Exnr99F1wM70aK/5xLkMkjF9gtDfj4Ifc4T4UrM8ymzUrj jRFUEzU9O0wZRnAgr8QeWXDGtIHsR/GO8WI1pq0Sg4Z7N7GMLVSvM+gpbtD2xoJLy2Bx OpgK1hnC5luRG4ehfRjJmbSosd2aZB/iObPxgjpRBgCqUAw103veAMdD2ucPz6h343Vv Blt0qRyT9PnU4RHh45Sh/mBlvpS3ee8vccrH7vDU4IGwPk2MeiNfjM3DBENrYbSknKmQ 5hkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=I2/+5dhRyxuL3Gg1aHlNPvG7vh2LZmL80DGuAx1dO9M=; b=0XErx+ClV7L50EZ3MMHjy8L7Iyo9QHkGX8AKHk2xZj8G+k1N7QChPVtu8qKHHKoWmg GMW7XtsOpm2DqFYxB/KWX76AkSWtczb1tmJ62hBGL/FCYwul/7ogsPFO4Rlxt9lMZWUQ Rh0EgQEw1BvmAdVokLiURvivyKay5+UBrmi/yXZxuOWg+zIXfpKmYZ4n2ngE97qtEVYv J29QS6+FmFZyLjW9oaBPVuoyuUaC/tmaII9d7VQ4T6R7zDmmZ+iRDCBkOnUFaE9ljMZE OcBzpPLSo/TGZRiWWu4MgWz9Dcio/QmInC5Y5WzhnllTz2YRAl/vgS1I8gwHcan2z3FA wW5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="v3/T1HH6"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a056402350d00b004377eecc472si1051978edd.461.2022.06.28.13.20.42; Tue, 28 Jun 2022 13:21:18 -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=@linaro.org header.s=google header.b="v3/T1HH6"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbiF1USw (ORCPT + 99 others); Tue, 28 Jun 2022 16:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232181AbiF1USV (ORCPT ); Tue, 28 Jun 2022 16:18:21 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B1A23ED14 for ; Tue, 28 Jun 2022 13:14:04 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id a13so24234873lfr.10 for ; Tue, 28 Jun 2022 13:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:user-agent:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=I2/+5dhRyxuL3Gg1aHlNPvG7vh2LZmL80DGuAx1dO9M=; b=v3/T1HH6xPCsUlhJlqTNwOl2XQgII4I7NrSNEm49EGWF7H8o48QfRduFpQHTuyrvYB L+eYialYzpCRveZPv0LJjUlUsxFY+7/aiuTfmBCaU2a4Q873qI+HQ+va/lF/9f30KV8l mmr3lb0W0+vlo9X5zk7RGZuDTb7Moy+8oPaOhVI7PIvbB1oo9ajzQQIBnxKcbD9BVwYi OMU3PZEmtEtWQMMWYTLjJYgsfhd879dmueMMW2+6JYH/GL/WShJO5AQmVAcvKZquP4i3 drc8JzRa1TDSf/+8sWC3nbT072L6DGSsDWrHiO9Fc8W6FOYZbxhkF3rYDTArdJ5oeNn4 9sqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:user-agent:in-reply-to :references:message-id:mime-version:content-transfer-encoding; bh=I2/+5dhRyxuL3Gg1aHlNPvG7vh2LZmL80DGuAx1dO9M=; b=L3KTEhPXCnhK39FSLSbE0uqTxiROm7MQoym7jCvbTiQbkX38pbg0H2SlDdAAObID5p McMjBJn9ASnxLxGU3B2JpmdGLgEGblaftfsDmTJCf2FQyP76ZVJF+nNh5YrkQfF5tMKY Av5DVmOu4T5gbHj/IgdW7a1axVzbbdEx8PxRUCw/U/OA3aALfk/WBwQbZANMvhjogB9D XFwa2W/AkimEZaZf8hfWHvYjS7gW97X6UEmwiHaAgpLyHqfEVi+coz6hZDulJ+jV8vSS +Mw1TbJGlwG9wNE8iiOrBAuUvx/sRciPHhw3JF9+xseWEPJCDAX0PFyQ1SE/gmU7uIqU WPSQ== X-Gm-Message-State: AJIora/fsOomzAZPfoEtVA1Y/jmTWBzlH0LnKjxsYrpHsjm8ArwBBEmS o9G6vFspknvnyYysDFpb3bjGoA== X-Received: by 2002:a05:6512:3f84:b0:47f:673c:31b7 with SMTP id x4-20020a0565123f8400b0047f673c31b7mr13979453lfa.473.1656447242387; Tue, 28 Jun 2022 13:14:02 -0700 (PDT) Received: from [127.0.0.1] ([188.162.64.167]) by smtp.gmail.com with ESMTPSA id a15-20020a056512200f00b004811bf4999csm901113lfb.290.2022.06.28.13.14.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2022 13:14:01 -0700 (PDT) Date: Tue, 28 Jun 2022 23:13:56 +0300 From: Dmitry Baryshkov To: Kuogee Hsieh , robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@linux.ie, agross@kernel.org, bjorn.andersson@linaro.org CC: quic_abhinavk@quicinc.com, quic_aravindh@quicinc.com, quic_khsieh@quicinc.com, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH=5D_drm/msm/dp=3A_make_eDP_pa?= =?US-ASCII?Q?nel_as_the_first_connected_connector?= User-Agent: K-9 Mail for Android In-Reply-To: <1656429606-2765-1-git-send-email-quic_khsieh@quicinc.com> References: <1656429606-2765-1-git-send-email-quic_khsieh@quicinc.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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=unavailable 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 28 June 2022 18:20:06 GMT+03:00, Kuogee Hsieh wrote: >Some userspace presumes that the first connected connector is the main >display, where it's supposed to display e=2Eg=2E the login screen=2E For >laptops, this should be the main panel=2E > >This patch call drm_helper_move_panel_connectors_to_head() after >drm_bridge_connector_init() to make sure eDP stay at head of >connected connector list=2E This fixes unexpected corruption happen >at eDP panel if eDP is not placed at head of connected connector >list=2E The change itself is a good fix anyway=2E (And I'd ack it=2E) However I wo= uld like to understand why does it fix the corruption issue=2E What is we h= ave eDP and DSI, with DSI ending up before the eDP? Would we see the issue? Also could you please describe the mind of corruption you are observing? > >Signed-off-by: Kuogee Hsieh >--- > drivers/gpu/drm/msm/dp/dp_drm=2Ec | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/drivers/gpu/drm/msm/dp/dp_drm=2Ec b/drivers/gpu/drm/msm/dp/d= p_drm=2Ec >index ce0ec3a=2E=2E2d18884 100644 >--- a/drivers/gpu/drm/msm/dp/dp_drm=2Ec >+++ b/drivers/gpu/drm/msm/dp/dp_drm=2Ec >@@ -136,5 +136,7 @@ struct drm_connector *dp_drm_connector_init(struct ms= m_dp *dp_display) >=20 > drm_connector_attach_encoder(connector, dp_display->encoder); >=20 >+ drm_helper_move_panel_connectors_to_head(dp_display->drm_dev); >+ > return connector; > }