Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp849548pxb; Wed, 6 Apr 2022 01:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTxVFqCA6rht9OhNMhIPUtuIEEexy6AX6ifp82dt+9pDgvf0G3hxoh8hBut/jTMN2QTZS9 X-Received: by 2002:a63:9dc6:0:b0:398:6e02:c105 with SMTP id i189-20020a639dc6000000b003986e02c105mr6343422pgd.495.1649235174867; Wed, 06 Apr 2022 01:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649235174; cv=none; d=google.com; s=arc-20160816; b=v8ieimAbFQyK03J+jLdxPoBz91/g4wFnZPPEvp0IgupIF+mn2UlREH4gUZrQ8czyef 0GGM46g89xFSMsLqCzoSGG8EXCrrDmlo19cNQEQaGuAqnlTYW1H+Oho1ahoOJDSmq7Dr 5Cboz8QIus4D8etZ/eDPwdMb0DAYN5DvhKvFjk4BqsnWhp2gy9noH7HDp4f4E4OU7ljS VXK0VKA7El/XbTIBzhpSXmxkYogeSPMqQ5c6PqnA0YiW/JND2AZk6jo4kSiKLgOu9FSI MQoER15plpe2OviGzN/znJjdaRME+Iqh+KsybLQ3/mtQ2YK6XjQNCry+MpOn5wCm7uTI 1cyw== 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=5E5d6jBb3lQlG5rY6+AeixdAfapVdubYakihWjABlME=; b=cdUY/e3QxBelSXSESl06BJtN0QiUTzKNcSkLR3qqTEYp2rpl6EVsI6ECTw54UN2Nxd idbnj4fcNWHlH5L/kw699AbohWR58mYG/fNeFHjqGg+/rQLqsZ+jvCmD2a6c2RPiJrr/ IlQjfbuQ+W7w6cDraLTsFP1QYpAK9xSb4+mK0OXPH3GtGh+bShyz+FQ11rtsJp/nB6X1 Qj46Tp1nj6tNcpqOJDZG3e9GSAKBjhmDrACbdxb8LL4pYevvfaXQBc4D7hV6jlwMfv6w KweEcExZOpDXRomTGwOkiofMsFrpYOTxmaQDvddt0SLUD9pi4Rw1JBwn8unnnPKpvcHp +GMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SEhuthKp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f8-20020a656288000000b003816043ef06si15254882pgv.251.2022.04.06.01.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 01:52:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SEhuthKp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E644C59A149; Wed, 6 Apr 2022 01:38:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587730AbiDFAKP (ORCPT + 99 others); Tue, 5 Apr 2022 20:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349070AbiDEJtD (ORCPT ); Tue, 5 Apr 2022 05:49:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30215A94FA; Tue, 5 Apr 2022 02:39:53 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2D61861368; Tue, 5 Apr 2022 09:39:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 346C3C385A1; Tue, 5 Apr 2022 09:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151592; bh=l4IdRfuBU/jifWwzrlZ9OiCywlkW9pdNNjQ52KqA8KE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SEhuthKpjkUyjE2dtxAMpBCtR73RxditLKivjSS6Evy7Hygo6NbP9AWHGk/+VVK9Y UtHnT4X9GP8TnXzSrAOI3XT54MH6pp99F9+0/w/toLTlLwOInxRYddnJfZ5sIkzshY R+anXigEVosAK/h1h4S8pkECSue5/zwpLeO61ot8= 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.15 471/913] drm/msm/dp: always add fail-safe mode into connector mode list Date: Tue, 5 Apr 2022 09:25:33 +0200 Message-Id: <20220405070353.973716824@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 d4aca422539c441a7f3fec749287b36de37d9b6b ] Some of DP link compliant test expects to return fail-safe mode if prefer detailed timing mode can not be supported by mainlink's lane and rate after link training. Therefore add fail-safe mode into connector mode list as backup mode. This patch fixes test case 4.2.2.1. Changes in v2: -- add Fixes text string Fixes: 4b85d405cfe9 ( "drm/msm/dp: reduce link rate if failed at link training 1") Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Link: https://lore.kernel.org/r/1643066274-25814-1-git-send-email-quic_khsieh@quicinc.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/dp/dp_panel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c index 2181b60e1d1d..5f23e6f09199 100644 --- a/drivers/gpu/drm/msm/dp/dp_panel.c +++ b/drivers/gpu/drm/msm/dp/dp_panel.c @@ -212,6 +212,11 @@ int dp_panel_read_sink_caps(struct dp_panel *dp_panel, if (drm_add_modes_noedid(connector, 640, 480)) drm_set_preferred_mode(connector, 640, 480); mutex_unlock(&connector->dev->mode_config.mutex); + } else { + /* always add fail-safe mode as backup mode */ + mutex_lock(&connector->dev->mode_config.mutex); + drm_add_modes_noedid(connector, 640, 480); + mutex_unlock(&connector->dev->mode_config.mutex); } if (panel->aux_cfg_update_done) { -- 2.34.1