Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp485477pxt; Fri, 6 Aug 2021 06:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC20SwIcOq1McxswQC5gWSdoO6h+WSaKbM+YOXeJjEaM8alqDD0goI5hqY7F6txyXmDK9m X-Received: by 2002:a5d:9e19:: with SMTP id h25mr50510ioh.25.1628257735090; Fri, 06 Aug 2021 06:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628257735; cv=none; d=google.com; s=arc-20160816; b=IxjekViRYWhzE1XkgfB9fuHKEG/uX18IuDmDDFIAbl48kKxYUl6Euf2MD5IkLMmU01 hAcW0bPdqzWK+t/VpvTVA9dUejy9spuGdhEWi73ft6uJi7l4PdhTZlOGLN0AP/qrHA5c 96weyVb/EX8XEvKJE3WXTF+KUXbP7ciUsRbOdGYBqcTpD+suqzAbwOyCiiOM7e0Cvmqf 0pnYpwj/bqxsiXkqcAnI4wIR0dnAWbw++aCMDDoKAoN8ooSCOPDCPiObL/gLg9o56BxB NOx2L/WEJh5E38zXbQoblbOIxowXyFj5inJnR49IPW0UBbbpZTUnPfjIZPpZSYMhOpxf H0lQ== 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=SdG2R8g0AJPywFQsVb6HKXtQqtPUSqeap1IntYHJvHY=; b=B606lWQhRgoF66moajWcVbcgXMFkrvtGHGzBNnaQrxbShaqQbi6LaAfgeoZ1NoEwsZ cusVP1OAOlsXkziOCUUeQuCrOuzYeioUv1XY2pLwhZ1bieaHaiRvrkjJr1a702H6FQbv hlJuOmJ0OEWGgfC4aBSXtUoY7gCdTUC6sAfxm+OfGUdMz7V2Shgc4cgzNyiYN5YCmvoK vnvMpUhSBxsCRvZRftPEGNEXZWxHxuW9Il/DX+L3xS+DCCrrwORdMWcRSwSlG1ijmW5o tUmF72tiCNmWERnwruBMtRYjveeGAkHTp7Wek/kTgVlJDWgS4Wyi9zGfwAX3WLHlRt5G MHgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J8TO9BAU; 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 z14si9907764ilu.89.2021.08.06.06.48.41; Fri, 06 Aug 2021 06:48:55 -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=J8TO9BAU; 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 S243480AbhHFIWE (ORCPT + 99 others); Fri, 6 Aug 2021 04:22:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:48692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244145AbhHFITS (ORCPT ); Fri, 6 Aug 2021 04:19:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CCD5611C6; Fri, 6 Aug 2021 08:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628237932; bh=MDcVSK2GDmf3O0O+rkmm2pczFRVhWr9fQajH+o6Cd1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J8TO9BAU/Z51u3GKq+3QKjBUrWoO3Rtraogbyw1M1UeZg3SMNhmQQG2S26rwG+x3K h2duvRo9B6YxirLHK2v3/jVou45Z4HigI6FUuQMY3tAL/BT3q/7749q+qtbxHRV6ty FQnPZOGsnkz/ET6lEDINFYJ5IoM4X2pwJ+iN6VoQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmytro Laktyushkin , Yongqiang Sun , Rodrigo Siqueira , Victor Lu , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 17/30] drm/amd/display: Fix comparison error in dcn21 DML Date: Fri, 6 Aug 2021 10:16:55 +0200 Message-Id: <20210806081113.717577254@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210806081113.126861800@linuxfoundation.org> References: <20210806081113.126861800@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: Victor Lu [ Upstream commit ec3102dc6b36c692104c4a0546d4119de59a3bc1 ] [why] A comparison error made it possible to not iterate through all the specified prefetch modes. [how] Correct "<" to "<=" Reviewed-by: Dmytro Laktyushkin Reviewed-by: Yongqiang Sun Acked-by: Rodrigo Siqueira Signed-off-by: Victor Lu Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c b/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c index 367c82b5ab4c..c09bca335068 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c @@ -4888,7 +4888,7 @@ void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } } while ((locals->PrefetchSupported[i][j] != true || locals->VRatioInPrefetchSupported[i][j] != true) && (mode_lib->vba.NextMaxVStartup != mode_lib->vba.MaxMaxVStartup[0][0] - || mode_lib->vba.NextPrefetchMode < mode_lib->vba.MaxPrefetchMode)); + || mode_lib->vba.NextPrefetchMode <= mode_lib->vba.MaxPrefetchMode)); if (locals->PrefetchSupported[i][j] == true && locals->VRatioInPrefetchSupported[i][j] == true) { mode_lib->vba.BandwidthAvailableForImmediateFlip = locals->ReturnBWPerState[i][0]; -- 2.30.2