Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2884515imw; Wed, 6 Jul 2022 13:26:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uwTSbvVMyp/qRggwN+Q+jXAO/h4nNfK7hhYVDvfcT6Pev83gqsJ+01PEIoKdXPPl+rTrpP X-Received: by 2002:a17:90b:1b10:b0:1ed:44:d00d with SMTP id nu16-20020a17090b1b1000b001ed0044d00dmr548377pjb.234.1657139161774; Wed, 06 Jul 2022 13:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657139161; cv=none; d=google.com; s=arc-20160816; b=03fvI8RLwbsjiWDdqWFGBlTI8IAZSzZM/Q5OGdAiRaGQE7qXVlNVxVzY/RsFByFlWs kVyAi9wdZXUNgR49DWXYnmMUuK1n7A+xK6V+ZcQSMnbXPuKW34O4rsdqJNwsvWKOc1+B Ro1NkjGEu3EKBYSg59aDPBOQqTxyoJgTJgXhW/C94aMzJU7OlOI+qipgNUGg6W5qB15J /HCM8q1ntv0Tn9+0IrWq8DPr898NnOqKmvn9OJ/fsUXEWvo8liByEm9+kog6/pXY2N3w 3rrnelHzQgExE8nrZ+7Q2TpkmCwzPNh2ZbjEVPFY6xurZCP/m7D7Gl0pCzSyAVm2K+8Y F3Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tPWWnePfc8YQp5eG4NppHnGj6l0FIqt5BvrfXlZDYpU=; b=jZfY9o0PI+SMpGlTxCua8My3o3UhHhzgxVUjmKpbc/rkVxpf2j6xHZcxbyqLfHgqyM fTsYyMTA3Q0Aby5zvso0ROYFL2kcmD27jeZELPPV4JdP6kRDsXVP+gsI52L3g/rYd2Jg o18T4E9NkLbmsDCe6Ljj1Crweao/DHMrOmUzunPJOY7eTO5Qhg6JBgqoev+Ygis4NKNV 4eR5kIxLZ9rSh+sbcFkHgzwrxektvIvWWjqNTNy4dDNCfVzShoNJd4wbpj6qdVMkGxn8 ypwEjoLJ9bkNvOXBeuPBCYHr68BRBIa6jOnHlbmkhBlpC1a18tu4SfekKUjHIgzG0vaV Fp+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=FR9Ld1hG; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a654c41000000b0041216889b79si17194826pgr.700.2022.07.06.13.25.46; Wed, 06 Jul 2022 13:26:01 -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=@quicinc.com header.s=qcdkim header.b=FR9Ld1hG; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233289AbiGFTsU (ORCPT + 99 others); Wed, 6 Jul 2022 15:48:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbiGFTsS (ORCPT ); Wed, 6 Jul 2022 15:48:18 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66670D113; Wed, 6 Jul 2022 12:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657136897; x=1688672897; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=tPWWnePfc8YQp5eG4NppHnGj6l0FIqt5BvrfXlZDYpU=; b=FR9Ld1hGO1dr5RIlVfql9H4jaXpW6tVeoH5SVJ7foGOVyXEqri5usbyO vGXYL4Y1a8XX3qXgJHC73D2o/r30a6rIc/pWhKxEQZfMIKc9FLEL8OKRA q1nC6GR5MdrKsdboTRUvw5c8hrMLl30AfVL4vazw5TyKwNR9YzH0YK61h E=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 06 Jul 2022 12:48:17 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 12:48:16 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 6 Jul 2022 12:48:15 -0700 Received: from [10.111.163.64] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 6 Jul 2022 12:48:12 -0700 Message-ID: Date: Wed, 6 Jul 2022 12:48:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v4] drm/msm/dp: make eDP panel as the first connected connector Content-Language: en-US To: Kuogee Hsieh , , , , , , , , , , CC: , , , , , References: <1657135928-31195-1-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: <1657135928-31195-1-git-send-email-quic_khsieh@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 7/6/2022 12:32 PM, Kuogee Hsieh wrote: > Some userspace presumes that the first connected connector is the main > display, where it's supposed to display e.g. the login screen. For > laptops, this should be the main panel. > > 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. This fixes unexpected corruption happen > at eDP panel if eDP is not placed at head of connected connector > list. > > Changes in v2: > -- move drm_helper_move_panel_connectors_to_head() to > dpu_kms_drm_obj_init() > > Changes in v4: > -- move drm_helper_move_panel_connectors_to_head() to msm_drm_init() > > Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/msm_drv.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c > index 4a3dda2..4d518c2 100644 > --- a/drivers/gpu/drm/msm/msm_drv.c > +++ b/drivers/gpu/drm/msm/msm_drv.c > @@ -419,6 +419,8 @@ static int msm_drm_init(struct device *dev, const struct drm_driver *drv) > } > } > > + drm_helper_move_panel_connectors_to_head(ddev); > + > ddev->mode_config.funcs = &mode_config_funcs; > ddev->mode_config.helper_private = &mode_config_helper_funcs; >