Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1542891pxb; Thu, 16 Sep 2021 09:34:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPdOziqly7qArNPGZNUqLZrYp2owGZ/m/vA6HoPIY/Ekc++csF454OpYxE1UEhFsvyHNpS X-Received: by 2002:a05:6602:20ce:: with SMTP id 14mr4957875ioz.204.1631810097225; Thu, 16 Sep 2021 09:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631810097; cv=none; d=google.com; s=arc-20160816; b=LoUgHyuMs6HMkRAmGqt4ycRAYKC29VkeJ/pxjubeCBTvi+JZZS9hKEZbxmseyfHuiq vPkUtCQeWWkeVQD8LOTr7n80GTtUylPKi25qhsc7yD19sRFh6yJ27PjDbjRtn0RLAMoU de3c6+HPejQG9ERmldx9VIsgD1CjaGZWPrxqqPm3S0EWiayVgKTBpHu3Bi4XabFDPLXo 2Q+AQUADXJ7HjoZlPa9Q543X0c1ompr/D/1e1Zz4YBiwuG6IyIk6ESKSsK4oWgyi61Ih uRZ9Y6qT4joJBS8G9lOcrCk7GnCDqyuUeAU9tViKPCI0LJLrAfUm90q+Od6W2tP6/yie vHeA== 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=ddalCA+oGovI7WFdSt2wsd+QYr106Tf/FJABvb0dXXo=; b=fgw2SgeEbvZrVyMIo3FrNXTJOToJmrXrnL7AxQponUXGGcOVe/gvkI3oGttawaBFlP SiIHynxVh2iAjXAHnmf1N4mLiVFPKTQUklTVmvEpi0JkOkGNGvAzZ8B7MnR4cThQueBS zqpc2bWUasnRYThzGzh3G4RS/ySrAqJgbgwGd9DaE2cHv8jbMuJbsS/Q7ctPWzPuuR9b dBM+I+q1T5nz+2LfZT8L4vqz9DKjvak9KTDcf/Yrf2qW2lCyeBaqblL+Fwx7stcTHZpw eXJvb5bIZsc18ikfb+O2XNGCJLkRPBpzUJVk63rvG3O1HOXSXZr6f5CIxv+DPia791/X 7NNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WrnJd206; 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 k7si3096840ior.112.2021.09.16.09.34.36; Thu, 16 Sep 2021 09:34:57 -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=WrnJd206; 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 S242238AbhIPQdt (ORCPT + 99 others); Thu, 16 Sep 2021 12:33:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:37900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241194AbhIPQZ3 (ORCPT ); Thu, 16 Sep 2021 12:25:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 56F1A6127A; Thu, 16 Sep 2021 16:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809002; bh=bzVyH0WygYFynfdGZJOFwl3JxrjxYE8Z4Ea6+S+LLT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WrnJd206PtO+r7B4tW10m5vSnS6UiPCITl3PHPopYj/qXvKgBWc2IBPA5fHyc8ybB GcU48oXZ629nzyKTeY7450wZicpGGuJEmWu8neQDXobWXJRmR8WlT52rTLafhYSHXL aOOLuNBYSh29Rxuak1JsKU9u1wYbf7FzzpA7hE3g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aurabindo Pillai , Alex Deucher Subject: [PATCH 5.10 301/306] drm/amd/display: Update number of DCN3 clock states Date: Thu, 16 Sep 2021 18:00:46 +0200 Message-Id: <20210916155804.347854380@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Aurabindo Pillai commit 0bbf06d888734041e813b916d7821acd4f72005a upstream. [Why & How] The DCN3 SoC parameter num_states was calculated but not saved into the object. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1403 Cc: stable@vger.kernel.org Signed-off-by: Aurabindo Pillai Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c @@ -2522,6 +2522,7 @@ void dcn30_update_bw_bounding_box(struct dram_speed_mts[num_states++] = bw_params->clk_table.entries[j++].memclk_mhz * 16; } + dcn3_0_soc.num_states = num_states; for (i = 0; i < dcn3_0_soc.num_states; i++) { dcn3_0_soc.clock_limits[i].state = i; dcn3_0_soc.clock_limits[i].dcfclk_mhz = dcfclk_mhz[i];