Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3782526pxb; Mon, 4 Oct 2021 09:28:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSTs9WK855sQHiat6cNJ8rEcT6zaXfeIOw5eNszpOZlU23VQhnbnqBLOj11BFksrk+Hx5f X-Received: by 2002:a05:6402:35cf:: with SMTP id z15mr3817957edc.220.1633364938963; Mon, 04 Oct 2021 09:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633364938; cv=none; d=google.com; s=arc-20160816; b=QAZESG5sBv2Gw1K7mcVVUGQgOjyEiJJcjJ0JpV/iaVbs9C0L7/IrCnwfB2v43A8SS3 eZfX6IwHZCptWF2yqXQd6nVu4fIPXuU7Iw/g7BXHfYnTmdzglEXyIG1d25z+17Zmhuvd 7WOhPDMLDSJY2/d2WNI9kYSJry5z2WPmHupDohpjCgAL8KOneL///ZKS6wch6vGwIfPm 5TVfRKqZrPMHIembhbkLMiymAHsMwJRNCmpbxh3XPp0y9AgJHww20CXSgbw4TxltZIu0 344rqjSMhUVA+JAmllNHiokM2asV8q9XdUoV2l89QP1kfVcCJdwD8zdTa+TRH7whZPm1 7v0g== 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=QELAOrmDS2CfQFdxXpmJdMqK33bPpcmx9NL1IV0hBeE=; b=GP7PQfIbHbzSn6JU4I8u35dMpGHAM+2FYId2yxyZfB3XDKbPF1ts1mgLQ30X9fG/aT vej1XScUCRnXQTGiysaxO+xt4YwivXSixpuwpdfNCt27pjCNPrAMvRDEbB1+BM/gJ/1B fI6khNEVSFZALRHAZx+UXEZvU6OzxO/K2z5pibWV9GxvcMhPyqYPGE/O9iZ52lNu1jGr 0pnvWS7/01Q8mGfdoo/RxbmVRfeBVPo1cdAuuSvkOGk3MjdOQpEZprUKpKLvrSAiTusT YO+mPJbZGq1bG8P9qewpNm7Oc7wPApMnncON8fTQmAPv8cE+UesiAyWpoz4L5p2tj2QM XMkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mk6cGiby; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si19827134ejn.615.2021.10.04.09.28.24; Mon, 04 Oct 2021 09:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mk6cGiby; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237617AbhJDNel (ORCPT + 99 others); Mon, 4 Oct 2021 09:34:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:43788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237717AbhJDNca (ORCPT ); Mon, 4 Oct 2021 09:32:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EBC2163222; Mon, 4 Oct 2021 13:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353286; bh=6+VYVM9nwwbfjsk9g6tXGkz1O3WybeWbbzqwmQ4uYfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mk6cGibyS35YOT0jfew4Ht7EMSOB9bpzbgwK0Qpb5H+XN1YToNJ5onZxCskKa9+0E xyFhwAIAgPss7xFOeOxyiF11NVBlVyJ1xXrJzWyHNxpmKQNWwChnbKopgMfvmIA0kY 4m83e/8Ti0L0vwTcdfT3m0tIxX72azTBoWCHGK44= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Praful Swarnakar , Harry Wentland , Alex Deucher Subject: [PATCH 5.14 069/172] drm/amd/display: Fix Display Flicker on embedded panels Date: Mon, 4 Oct 2021 14:51:59 +0200 Message-Id: <20211004125047.216834835@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Praful Swarnakar commit 083fa05bbaf65a01866b5440031c822e32ad7510 upstream. [Why] ASSR is dependent on Signed PSP Verstage to enable Content Protection for eDP panels. Unsigned PSP verstage is used during development phase causing ASSR to FAIL. As a result, link training is performed with DP_PANEL_MODE_DEFAULT instead of DP_PANEL_MODE_EDP for eDP panels that causes display flicker on some panels. [How] - Do not change panel mode, if ASSR is disabled - Just report and continue to perform eDP link training with right settings further. Signed-off-by: Praful Swarnakar Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -1813,14 +1813,13 @@ bool perform_link_training_with_retries( if (panel_mode == DP_PANEL_MODE_EDP) { struct cp_psp *cp_psp = &stream->ctx->cp_psp; - if (cp_psp && cp_psp->funcs.enable_assr) { - if (!cp_psp->funcs.enable_assr(cp_psp->handle, link)) { - /* since eDP implies ASSR on, change panel - * mode to disable ASSR - */ - panel_mode = DP_PANEL_MODE_DEFAULT; - } - } + if (cp_psp && cp_psp->funcs.enable_assr) + /* ASSR is bound to fail with unsigned PSP + * verstage used during devlopment phase. + * Report and continue with eDP panel mode to + * perform eDP link training with right settings + */ + cp_psp->funcs.enable_assr(cp_psp->handle, link); } #endif