Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2179104imn; Mon, 1 Aug 2022 14:14:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ed05tObxUMl29EAJU4/PaqN7CPdk784DAl7FqEptLPbm296DbkXYnuIuWnjOU8Mcndhsc X-Received: by 2002:a17:902:9a4c:b0:16c:e9b7:35c4 with SMTP id x12-20020a1709029a4c00b0016ce9b735c4mr19136692plv.114.1659388484009; Mon, 01 Aug 2022 14:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659388484; cv=none; d=google.com; s=arc-20160816; b=nt2W4Qk5s7dfOZ2cmnARcjXzk7lVyl/9wy2+i/Z7kop6lt2ziDOC7DSBQYSGt44QAK dVVP2BGimQIK0IpTCFW5QBbS4uxpolUs/IqG8pQ+Enpxgt2d3WHez9kfP/GqzBBm9ayb UqAngDnNZ8rdi9ijKc4NW8b6QAILzQJzBnndQgExnMYxYG1VToNRSWqHXgm83iywlYFg jR79LG6uKQ9n0KQU16XH8WusoaV2F5HJ/8kE2PV7ABlOYIRM3kFNlnaIYHELjFM+4PnY 7dNN0ZNuGJVdLbSOkmtjXKK2WTuGjBYcU+n4zcDm2/yGkcWV3SgrcfygebIfX8GHrXrs UgRg== 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=3q4LLeG/W8kgmZyTfF/ii6+XJjoOenvpsCafYt2ua74=; b=iDoiBYinhcatqWIizu/t2wpMSyz3a78yDipOQivHQX8P6ERLgPgOZRnavxKdTz5+NQ H3f1RbvzQMDNr5+GAWE1vLlLoU9XPvHiZNCam1iv3BbopaqvBWW7UNlyv0bWVSYTwMIN gFAeLwjT6rtPwFKgKF4aJARzxtBncr4K18b6QKmpMvKtr6IihsEpiuy5rmJsTQMz3RNl KK4plTxybHRW1dcOME0rsjSuLdyfVr70cwh+MEfccSWTSuvTMPB9MsKVJ+MOQ8fe11VZ Mh5CjBkbz8+yQ4sfIoKTkjh+qfzHc2K5jyFyJIi9Q65JXcKkTiX6Ty23OsmH0HEWvOQe 9VmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=nFPmbiGe; 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 q7-20020a63e207000000b00415ee541f21si12720025pgh.304.2022.08.01.14.14.28; Mon, 01 Aug 2022 14:14:43 -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=nFPmbiGe; 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 S234038AbiHAUSr (ORCPT + 99 others); Mon, 1 Aug 2022 16:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232733AbiHAUSp (ORCPT ); Mon, 1 Aug 2022 16:18:45 -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 7A8AE2BC8; Mon, 1 Aug 2022 13:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659385123; x=1690921123; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=3q4LLeG/W8kgmZyTfF/ii6+XJjoOenvpsCafYt2ua74=; b=nFPmbiGeH6/twR/qmxp8u5vD3RTFA2aPxmVi8decj5b2U5VzH9GdUUv5 kz/DT+DCL68Dj8mNMIiI/Ju+6tXgyREKC6WXKqqGAlQYd3Tuyfy9ILVX2 +8SYKEbX6mhVE2Q/52yojWU9CtaY88j+I769wnUvkGjtijb1a7Fl0xaO0 c=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 01 Aug 2022 13:18:43 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 13:18:42 -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; Mon, 1 Aug 2022 13:18:42 -0700 Received: from [10.111.174.48] (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; Mon, 1 Aug 2022 13:18:38 -0700 Message-ID: <488f0db0-6fa9-8a66-f055-f2cc57470a47@quicinc.com> Date: Mon, 1 Aug 2022 13:18:35 -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: [Freedreno] [PATCH v2] drm/msm/dp: delete DP_RECOVERED_CLOCK_OUT_EN to fix tps4 Content-Language: en-US To: Kuogee Hsieh , , , , , , , , , , CC: , , , , , References: <1659384830-9909-1-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: <1659384830-9909-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 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 8/1/2022 1:13 PM, Kuogee Hsieh wrote: > Data Symbols scrambled is required for tps4 at link training 2. > Therefore SCRAMBLING_DISABLE bit should not be set for tps4 to > work. > RECOVERED_CLOCK_OUT_EN is for enable simple EYE test for jitter > measurement with minimal equipment for embedded applications purpose > and is not required to be set during normal operation. > Current implementation always have RECOVERED_CLOCK_OUT_EN bit set > which cause SCRAMBLING_DISABLE bit wrongly set at tps4 which prevent > tps4 from working. > This patch delete setting RECOVERED_CLOCK_OUT_EN to fix SCRAMBLING_DISABLE > be wrongly set at tps4. > > Changes in v2: > -- fix Fixes tag > > Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") > Signed-off-by: Kuogee Hsieh This is a good catch ! Reviewed-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c > index ab6aa13..013ca02 100644 > --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c > +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c > @@ -1214,7 +1214,7 @@ static int dp_ctrl_link_train_2(struct dp_ctrl_private *ctrl, > if (ret) > return ret; > > - dp_ctrl_train_pattern_set(ctrl, pattern | DP_RECOVERED_CLOCK_OUT_EN); > + dp_ctrl_train_pattern_set(ctrl, pattern); > > for (tries = 0; tries <= maximum_retries; tries++) { > drm_dp_link_train_channel_eq_delay(ctrl->aux, ctrl->panel->dpcd);