Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2281141ybl; Thu, 19 Dec 2019 10:57:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyl52m484w4YnpM9GRceTsvoGpc7JJ7oo0yP4GepZwvLiIwBM7tpTDuKenWln/wpdR2+S2Z X-Received: by 2002:a9d:6f0a:: with SMTP id n10mr10748848otq.54.1576781847645; Thu, 19 Dec 2019 10:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576781847; cv=none; d=google.com; s=arc-20160816; b=IzhRJq5C+q11HW6BQuz1304xXAD2uuN3c7yuY1BdVW1n8fFAsV7WLpF1dsxq+EqI3j bUwwvlNYtt2XhBG29cKkU1RS+vHJprcx+OYvzKtU2ixlT/+XkanimG6MihSDWcw6s8YN KwX4IAPfty2UvzmZq0t4ZPNew3SZVrOO0IRg20hcB+HkljrZnqPp12yn/IPbBXZUGpdD gW8whMinYAaSgs5kLLHGkm1H2/wKGR9n1+OEgPmh7Jkf7Bs4kr+K/VJ7T1ZEQktrLAA4 E3v+2kQRN/2QEfqJWN2POHGoikdj4P5uGTjPEr8qgpznXwKbzz/zU6/ChlYSh4mBFDk6 uldg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L/P1aJV6dxqNw9kVQfKViTPUm09DHSIdYSPqvVDl4ro=; b=rdchwMwkryNOM72hZQAjmqn4olmlL2PYMU+FR/4wDyN24gxfnCn1c9AMallvm08pMB PYY4apAcXAxaW1HCnQiKUX7+GICMgsi8TGK/I/D5Am0ePHW+OW8/qdBr7sLgAxNiiM4c XwvIvxMJ+40m9mefDIL7lDF8KDzljmvdKiN9xAYdP2g9prvkfe2MiADocvHO8nvWi+Dt oppqAyf9v4q++F6urrZgrYIci31twnpJpMqhkrBvs3QARufVp9R+/Z0d+ZoDOr9tLpmB dCKBC/MkrpW8S5VBQv2A2fXkMb0YPNuRjMSBO8q4ujtpdZyslMX+c2Hs7uN/I26dWTz6 p/7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hXcdTeOC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si3589984oib.173.2019.12.19.10.57.16; Thu, 19 Dec 2019 10:57:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hXcdTeOC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727916AbfLSS4S (ORCPT + 99 others); Thu, 19 Dec 2019 13:56:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:52716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730788AbfLSS4O (ORCPT ); Thu, 19 Dec 2019 13:56:14 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 99658222C2; Thu, 19 Dec 2019 18:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576781774; bh=ZbF9qzPSlqMpc1jdHpqItSS2h2jKECcFT8NG6HGE4zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hXcdTeOCa26tqRBFMf8UsIwkSjIg6ilPbRwtTUCBwpD4dL02d3c3zkERLiHGeI/oV z7PAgUt9WTMiTx3Ul1//07ph3sij9plYTlShpD4aFvBT+8FaFup1Ei4AClget9fUM5 SJnAKPWEUc+U4MRhJJxC7FXnqv2m1SdWo5Z8srLE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Kazlauskas , Alex Deucher Subject: [PATCH 5.4 73/80] drm/amd/display: add default clocks if not able to fetch them Date: Thu, 19 Dec 2019 19:35:05 +0100 Message-Id: <20191219183143.575586568@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183031.278083125@linuxfoundation.org> References: <20191219183031.278083125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Deucher commit 946621691f9919c263b4679b77f81f06019d3636 upstream. dm_pp_get_clock_levels_by_type needs to add the default clocks to the powerplay case as well. This was accidently dropped. Fixes: b3ea88fef321de ("drm/amd/powerplay: add get_clock_by_type interface for display") Bug: https://gitlab.freedesktop.org/drm/amd/issues/906 Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c @@ -342,7 +342,8 @@ bool dm_pp_get_clock_levels_by_type( if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_clock_by_type) { if (adev->powerplay.pp_funcs->get_clock_by_type(pp_handle, dc_to_pp_clock_type(clk_type), &pp_clks)) { - /* Error in pplib. Provide default values. */ + /* Error in pplib. Provide default values. */ + get_default_clock_levels(clk_type, dc_clks); return true; } } else if (adev->smu.funcs && adev->smu.funcs->get_clock_by_type) {