Message ID | 20210211150154.924286991@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DBD7C433E6 for <stable@archiver.kernel.org>; Thu, 11 Feb 2021 15:19:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 487C464F0C for <stable@archiver.kernel.org>; Thu, 11 Feb 2021 15:19:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbhBKPTQ (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 11 Feb 2021 10:19:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:51714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230047AbhBKPNT (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 11 Feb 2021 10:13:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C1BF864EF4; Thu, 11 Feb 2021 15:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613055887; bh=KWkwalSkb27ZGozz9AZ+d3puMXgUXrgcd9/nR7P7UaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c1HkDfCnTDIXTWIa+e/zCqG/p8dy4YMSy+kl6vhRN02K3wgs043gBbUKTE/bXKSnY rmMLl52vlhn+CcIEIXCf4XO3jI3hO3KkxK1Y5Uucf9ZOS17V2U/r8dqdOb1AibCoSg MfE9oLoJ5+xDKQeOkqfBzMI1J8dbEWTJsGcz8c9o= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, =?utf-8?q?Jos=C3=A9_Roberto_de_Souza?= <jose.souza@intel.com>, Clinton Taylor <clinton.a.taylor@intel.com>, =?utf-8?q?Ville_Syrj?= =?utf-8?b?w6Rsw6Q=?= <ville.syrjala@linux.intel.com>, Imre Deak <imre.deak@intel.com>, Jani Nikula <jani.nikula@intel.com> Subject: [PATCH 5.10 47/54] drm/i915: Fix ICL MG PHY vswing handling Date: Thu, 11 Feb 2021 16:02:31 +0100 Message-Id: <20210211150154.924286991@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210211150152.885701259@linuxfoundation.org> References: <20210211150152.885701259@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/gpu/drm/i915/display/intel_ddi.c +++ b/drivers/gpu/drm/i915/display/intel_ddi.c @@ -2605,12 +2605,11 @@ static void icl_mg_phy_ddi_vswing_sequen ddi_translations = icl_get_mg_buf_trans(encoder, type, rate, &n_entries); - /* The table does not have values for level 3 and level 9. */ - if (level >= n_entries || level == 3 || level == 9) { + if (level >= n_entries) { drm_dbg_kms(&dev_priv->drm, "DDI translation not found for level %d. Using %d instead.", - level, n_entries - 2); - level = n_entries - 2; + level, n_entries - 1); + level = n_entries - 1; } /* Set MG_TX_LINK_PARAMS cri_use_fs32 to 0. */