Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5769839imw; Wed, 20 Jul 2022 12:09:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vAgaLxdRDAWgg6Mno4sA14/GhD89J3jSwt+L8oKQDpNSsdYKMMxShFDZKE4qM+11NTusHL X-Received: by 2002:a17:907:67b0:b0:72b:972c:53df with SMTP id qu48-20020a17090767b000b0072b972c53dfmr38493959ejc.37.1658344151683; Wed, 20 Jul 2022 12:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658344151; cv=none; d=google.com; s=arc-20160816; b=TCdM85WaFEeNMRDYyehVWZEhIXnDOFt3FB7F9e4nh3JUum/EMkX3g8rorMGnBeS63y x0s+lg2ZELaAzy7SvPimQdneeVzxO9CrMo6vzqzKK2B1HuijzITefrqhAgK52ktCnxdA zvBWo8YC4oWfSWUVQI1MA5Wk56HcYOgWMiUGk+4TOTb5RDXx+urYI513OEdBDJKDCZUx RDE1HgtIuSXnFVgQMrGEaB373DbyjkFGmQ6Mvw8r+TthC165s6Q2MmMTPddkDJBanb0U s7nou0D2iDXeZe1EPYVz1D+PpH7cZ0obi8kzV71LLudiT/qd2MxS5qEdSNco2Cy04rmG 8koA== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=TOzvRVPqNoT1OqYi1zjIrLa3zYswQtJ3Ow/4dkchUlE=; b=RryE6JGHBlCs66zmSxsJvKMgzvI6b+dU+1dGSnrwxdg7uOPGvn7m3WmLVa3hrsQWW3 SwRCXEMarp1fJ7MW57Ju/Fp17sLmV74/pQEvgTHtHjx+k51NtXbIyL2TPF/3GtgKDVEZ 7a4x6dWrnNivIbdfH54duKPjcx58Dw67fJss13MDEVEEi5Jch2uOBM9oUzVZDzzEdaGT E7DBDqqF7SMfwiFvvq5vOEfVu/6ohPWVtMtmUBXEUWbYFIrn28Kdz1tKPoPkiyuzkuK/ atjOFViYsf7QqBmm/1gC+t/PFNasHSMux/afdb2VdKQioecqOOBtzQVWwC0frmgNQ9C7 hhTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=PZEhYzB9; 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 f20-20020a056402355400b0043a91617ae1si23687079edd.382.2022.07.20.12.08.45; Wed, 20 Jul 2022 12:09:11 -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=PZEhYzB9; 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 S231944AbiGTTBv (ORCPT + 99 others); Wed, 20 Jul 2022 15:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231805AbiGTTBj (ORCPT ); Wed, 20 Jul 2022 15:01:39 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9E0452E74; Wed, 20 Jul 2022 12:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1658343697; x=1689879697; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=TOzvRVPqNoT1OqYi1zjIrLa3zYswQtJ3Ow/4dkchUlE=; b=PZEhYzB9p43f4TRxtvNvOU64PDBiFzChrPQKPNcC9Z4qnPSM3e/KCQUP IDYD7Eal3yfkOo5dMnLFiUhUzAsM1XmR7qkBdQyXAGK2Tiy2FnC5kxvDK BK010gKgI2mawJXdtBO4EWCc+hHuPYqC+sQWjbCASHdbhGxAzv9kufZat 4=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 20 Jul 2022 12:01:36 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 12:01:36 -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, 20 Jul 2022 12:01:36 -0700 Received: from [10.38.240.17] (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, 20 Jul 2022 12:01:32 -0700 Message-ID: <2a33f6a4-2b23-5709-4b8a-6e4699989b85@quicinc.com> Date: Wed, 20 Jul 2022 12:01:30 -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 From: Abhinav Kumar To: Kuogee Hsieh , , , , , , , , , , CC: , , , , , References: <1657135928-31195-1-git-send-email-quic_khsieh@quicinc.com> <22d4abbf-db93-82e1-ecf1-e7804e72c21b@quicinc.com> In-Reply-To: <22d4abbf-db93-82e1-ecf1-e7804e72c21b@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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 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/20/2022 11:47 AM, Abhinav Kumar wrote: > > > 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 > Fixes: c8afe684c95c ("drm/msm: basic KMS driver for snapdragon") Lets drop the previous fixes tag and use this one as its more recent and appropriate as it added eDP support for sc7280. Fixes: ef7837ff091c ("drm/msm/dp: Add DP controllers for sc7280") >> --- >>   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;