Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp678957pxb; Tue, 5 Apr 2022 18:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrVPpx7N/KblgDeNSYnEjtnIrfgYYV9zD9+fnObfz9p7QMT6d/2sCe9N6y5DjRW0qrrvvS X-Received: by 2002:a17:906:1e94:b0:6cc:4382:f12e with SMTP id e20-20020a1709061e9400b006cc4382f12emr5988090ejj.482.1649208398002; Tue, 05 Apr 2022 18:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649208397; cv=none; d=google.com; s=arc-20160816; b=Lpl05AUv1qipnTKpIjRBmJpZx6QeC8OJ1C/ZQnUYzV0ro+Qirv0/Y6WnQCDxedoifJ v7ItVUfQpnfbQ7QM7FCaQWOC18Y1mydsu3QLYcpHxmPucWNP5gAlzuIDYEWi9ax6ix7r CdZhoKuZSD9lrWDuVezCpBeifLjtjFOFjVsLcR5JEzaO6BItv8b0aZXoAMOfzdKJ3dU3 +ykSCE/enzhOYJfOg5ZPwhuDRhtipQ+WS7CHcDaBEP9lM/xlcKB8cDWvkLv3+0N0RlY2 4/tUJajeOthXxDNnk21qYyJvvracMX5vt8s9q/+vhso5f7cSUIeF5mo7qtmw2xqApDAb iFnQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Mmx5RCxDInj6hEfNnfHA/dviIeIyhlOCqtdWMK4EQ5k=; b=Ff8otaiDbeJXOM1CzjJe63SEfWc17dsDYFE3vP05UcZ/Ay0QHQMEW3w6+Mxu/tJv9t hA97QZlYFOS/vfr0a98JhsRpcb1hjfjTGcFXjjgj6mDq1qMu3mVSBgWzMRuTaoF+R5vG HuMyvCbP5FlWX6XkadZehMZ6i2GR1sQEcC3YjnHGyxXM2e0RpvQ/t7x8i0m9UU460dDi IMq23/XMyW0401TSziF81lH5v+L6V0TR8jP6h5MahyA7LH8vcB34hU+PBvOd2sHFiTGg gzDCL0N7QNpvLV7qD+3odrO8vSn+AujgTaIqdwD7ExeXDgiJtKCjyyYxAi8LT0T6Wr0J ob9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sXpK6TYN; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a0564021e8a00b004192be40d9dsi11096763edf.63.2022.04.05.18.26.08; Tue, 05 Apr 2022 18:26:37 -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=@linuxfoundation.org header.s=korg header.b=sXpK6TYN; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382017AbiDEMA0 (ORCPT + 99 others); Tue, 5 Apr 2022 08:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236953AbiDEIRK (ORCPT ); Tue, 5 Apr 2022 04:17:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 233C5AFAEB; Tue, 5 Apr 2022 01:04:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B6363B81BB6; Tue, 5 Apr 2022 08:04:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F13FC385A1; Tue, 5 Apr 2022 08:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145894; bh=Fo2VUN7idF8pzKr+Cx20drHaaXF7A7bvOqOOrv8RvPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sXpK6TYNwwxubvMs235Jcp5gcYFdyf1vtatE0nE4jCTPgN/RMGaIeurCCsGpB/p5R hoeE/7Y58ictZY+d8c7CKmrPyZw8Y/9T+7otw17Mu3Umeo7FLCvlfIrCaxw4ZKzVyh NAc5NlcNbiyNi7yZA40aJ2LzaUgOdviSi0RNyqn8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuogee Hsieh , Stephen Boyd , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 5.17 0568/1126] drm/msm/dp: stop link training after link training 2 failed Date: Tue, 5 Apr 2022 09:21:55 +0200 Message-Id: <20220405070424.306388258@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Kuogee Hsieh [ Upstream commit 9051d629dbf7a998a40f7eac65a9512b01bc3bb8 ] Each DP link training contains link training 1 followed by link training 2. There is maximum of 5 retries of DP link training before declared link training failed. It is required to stop link training at end of link training 2 if it is failed so that next link training 1 can start freshly. This patch fixes link compliance test case 4.3.1.13 (Source Device Link Training EQ Fallback Test). Changes in v10: -- group into one series Changes in v11: -- drop drm/msm/dp: dp_link_parse_sink_count() return immediately if aux read Fixes: 2e0adc765d88 ("drm/msm/dp: do not end dp link training until video is ready") Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Link: https://lore.kernel.org/r/1642531648-8448-5-git-send-email-quic_khsieh@quicinc.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c index 9c80b493f974..8d1ea694d06c 100644 --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c @@ -1748,6 +1748,9 @@ int dp_ctrl_on_link(struct dp_ctrl *dp_ctrl) /* end with failure */ break; /* lane == 1 already */ } + + /* stop link training before start re training */ + dp_ctrl_clear_training_pattern(ctrl); } } -- 2.34.1