Received: by 10.213.65.68 with SMTP id h4csp425468imn; Tue, 13 Mar 2018 08:40:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELuNxAJFr84mMNPNMp6llk/ZIsG3Z5R+T/14DlfvzDGxyaJbF0CCmTW7Nt9aJo2WkSWqzGVJ X-Received: by 10.99.173.7 with SMTP id g7mr857929pgf.160.1520955615204; Tue, 13 Mar 2018 08:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955615; cv=none; d=google.com; s=arc-20160816; b=aQmg0gDZaaZMkhTgpPIOn6QobU1QZpo4Z4pXnRFCj/jZGL3pVmPQ1WRSCgkvINkRix 1Z0eflOeXP5pyep2jjvQvQJsrgtLQqbGsjcZaCN0DEzRFkgJONVcNIdthKZYB5Tx8gjS K4HwwZ+9ZhHro78c7CrFFXypPE1ASABOwU4cnLQ/eHwQaIo8rxAa4fpf+87bZ1EhaqB2 3yJzBEC9Nc5N2AvBca69d5ZwyHkPYXXOHFh11B8kiHKQiKLK6Y2QMjk7H9fXRmNoaHzU qhig3lEByRfE28Sogl72qoF0TOn7Mu4a2oMiDD7ozuxCXI2xeOkgoWRLKDdZysf0RR4F 6nMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=HUj8MIt9eQJD8qKP9d39uQTANjBDqvBwG2SGUcT/UOU=; b=NAs7LbhhvnLCV75g3GOQ1fE7gsIIEOkv+WXrG5dwGrMkAl64lhfaqTCsTILqoFRnbn /JZT7++TvZZrqJ1AT7csBMy7WvSAjN5uIgMEV2W7rquaPJ+sqKJTIatPwkfvtxKMjHno 936YwGxnAuB08aOLbpd+SK0BrZH2KTkNkgslIvwT/vy2cNgWCeIcBMreErf5nwqV3hjM tdnK11B2N/xXNOda+wqFizKcKrOGj3XrNn38G0J0PdrUY28LhVOBRHfwWWcs/c+YtLyE 36HgzJyoo0uFqtElGe4CseVIUJwDiN9LARKOmp0i65RzvIN5yZLqEjK/DogWznjqtHUh 2TXw== ARC-Authentication-Results: i=1; mx.google.com; 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 e127si276855pgc.170.2018.03.13.08.39.59; Tue, 13 Mar 2018 08:40:15 -0700 (PDT) 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; 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 S934555AbeCMPiX (ORCPT + 99 others); Tue, 13 Mar 2018 11:38:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34300 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933485AbeCMPiV (ORCPT ); Tue, 13 Mar 2018 11:38:21 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6E2581269; Tue, 13 Mar 2018 15:38:20 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Huang , Felix Kuehling , Alex Deucher Subject: [PATCH 4.14 071/140] drm/amd/powerplay: fix power over limit on Fiji Date: Tue, 13 Mar 2018 16:24:34 +0100 Message-Id: <20180313152502.949428907@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Huang commit a0aaa03062be252aacad60a776f3374dd53e3f98 upstream. power containment disabled only on Fiji and compute power profile. It violates PCIe spec and may cause power supply failed. Enabling it will fix the issue, even the fix will drop performance of some compute tests. Signed-off-by: Eric Huang Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 7 ------- 1 file changed, 7 deletions(-) --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c @@ -4579,13 +4579,6 @@ static int smu7_set_power_profile_state( int tmp_result, result = 0; uint32_t sclk_mask = 0, mclk_mask = 0; - if (hwmgr->chip_id == CHIP_FIJI) { - if (request->type == AMD_PP_GFX_PROFILE) - smu7_enable_power_containment(hwmgr); - else if (request->type == AMD_PP_COMPUTE_PROFILE) - smu7_disable_power_containment(hwmgr); - } - if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO) return -EINVAL;