Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2767269imj; Mon, 11 Feb 2019 08:10:15 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaa3mEDxp6ThmVAX0PGvdkkUz+19JurFcQlqHCwQMxWGqzznu/bhutytooKrap0SeDlrSGk X-Received: by 2002:a17:902:6949:: with SMTP id k9mr14921838plt.188.1549901415128; Mon, 11 Feb 2019 08:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901415; cv=none; d=google.com; s=arc-20160816; b=QYY7uXGobhD95B0vW5zns7eKpLAN2KmQ+iv2h93cZ06WwgI7BnlpUT+18M/lSyfgRA vV5bp1dN7th/iZ6SKMyyfai9xo1FkH+fuNLUSS9/7XuQHJne10StO3HaJFffSNnqG89l zYkGv+Vi1IuiDUOu4yOrSaXdS4SUA51fh7DW1mrk114k8xL0eYMTfKPizb57QVeuChNh RxtlAzrF0Buuq+ZaTDb4P5Vjd2AFTN8RCsjPXUvO8IkY64qMPVNaUjaDnrIeruPI1lbL BDTv79uDuffCgPc8RpezCpnuehhdx3YY94wsPjbD00PBnJkzHU6QwT7Q9lGi96xCT4vp XTtQ== 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=yqTaSv099z4YUouKHZoBkvyGc/GCNiVNNygBt95lctw=; b=qEpCL6//9M5ojPrUFhM76yu0/d1PYaykRk3A3EYRzVUQFA6mflw09x+bnIFpCIpVPj VR7d+6mmzyPB2qW6Ff2g5SMkO6KBJ53Y3veYw1QpIvllpET6URj8XyI2ASbv0OBINw6h McIP617wWeqVyPEA/Ma1O+RjFnjLXftGqd2tTYCnJ1+OUqu8N3pt9opXD+Ak1Qf6xlZX 4oTt6OxGSj6RGiKYdMvQjqsG8ILbkDuvVRABOh/cNxAD8oSwCxddER9jgE1QuNaz6pEI gwwWH2u5RZgo2CXix9hgUFCwqCxCDLU6ZPfoQpOK++TWgQLJkCm6I9eVBChe8qpYhvR3 Tr9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PKYrlvu9; 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 a13si4805685pgj.133.2019.02.11.08.09.59; Mon, 11 Feb 2019 08:10:15 -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=PKYrlvu9; 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 S1729103AbfBKQHr (ORCPT + 99 others); Mon, 11 Feb 2019 11:07:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:60118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727442AbfBKO0S (ORCPT ); Mon, 11 Feb 2019 09:26:18 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 B0B8220844; Mon, 11 Feb 2019 14:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895178; bh=zbthlmLHn6UCmSmb/4OId1b+s8xeZslpmzE7xrOVZEo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PKYrlvu93aJtPKesn8oAUa6Nm+dIA0te9Dfr05mykImtmZv2oeLWSa939ABMZK0fm VBUEKawokGyILUaSQNtE5v3fKGoQMgsrzbb2snmU3eCUwvzEHAsw1zBrnDUHRQUVcL dbM6GY5aISaklHdv6lx8npvHCevcMOAjl50yTiTY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Junwei Zhang , Alex Deucher , Sasha Levin Subject: [PATCH 4.20 120/352] drm/amdgpu/powerplay: fix clock stretcher limits on polaris (v2) Date: Mon, 11 Feb 2019 15:15:47 +0100 Message-Id: <20190211141853.723157899@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit de4aaab5cc9770a8c4dc13d9bfb6a83b06bba57e ] Adjust limits for newer polaris variants. v2: fix polaris11 kicker (Jerry) Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c index a1e0ac9ae248..90c1215c6f5e 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c @@ -1529,8 +1529,21 @@ static int polaris10_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr) efuse = efuse >> 24; if (hwmgr->chip_id == CHIP_POLARIS10) { - min = 1000; - max = 2300; + if (hwmgr->is_kicker) { + min = 1200; + max = 2500; + } else { + min = 1000; + max = 2300; + } + } else if (hwmgr->chip_id == CHIP_POLARIS11) { + if (hwmgr->is_kicker) { + min = 900; + max = 2100; + } else { + min = 1100; + max = 2100; + } } else { min = 1100; max = 2100; -- 2.19.1