Received: by 10.213.65.68 with SMTP id h4csp470841imn; Tue, 13 Mar 2018 10:04:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELuqH42jFS5TX8qpztzjdBReBCLXbWbpT0b5spQc45YJ8BIewiFG9R7hEWrdiNEsNxafs1a5 X-Received: by 10.98.23.73 with SMTP id 70mr1255405pfx.169.1520960675009; Tue, 13 Mar 2018 10:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960674; cv=none; d=google.com; s=arc-20160816; b=XxkEAGwZXxLrZYCj6DS1cd7ohI+prKfbeP7xB3MgIgDMOD6xzT82GepyV6E2PEnAsV 1DSYt3r7zp4SwdiKQPTFqRhStgDZEzFbW0Z7JXwEZhRtCdyfrl1NH+1R+HF3Eco5pRhu NhoxjRjxRnI68L4oj3oTXMqEETaDP4EhcyzXDv/gX3nI2RJ/kz0u0fvk8w2X6AT71ch1 KN618TuyRHfjhuexRP8/z3J/slnsPKKh7v522lld0sYXwhQD1FfFI+ob04NjT15QW6OS E1/1YvJsgR8gI674VVIme1S1cTc1aBOSy2YUOAZNsq3B/RVBG1+FMRALo4Nf8BZEMrTH gz3Q== 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=8f6cEdSE+UJOL3IXap5+MXQMull7ajfKp5kM/T4Lqo0=; b=FDlvbaqfJ+H6OnuCox/U8lI34ZKlClaIgZzTtsFS9X+Su/MSzHRwGhAK1bLOnOT4SX vIoij3nZeQZ+cRCRxw2TWSi2jbm/sQVSEKvFwHz8FJWzvTal9+uqs2+Vv0oxxd/nsOEx F7uHujpdluBexv9DAOPmNnR7OSjbUmLuWOwUJnKLEaCZdbUMGtHggZ+ox8DVY3/mITvU Ta0t56xhl7IvpJG1PG7NdkwzKg+5n9lvO5qBbEqMyirf+JnHG5e3lqJbnjrMcp+vlhtR XiwqowV+XvfgYoTDsUl3B7i5lYc0YCShG5bERR4Z4CzeK2SJvkcGXJV571qGJ/Txx1Gx otRQ== 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 e2-v6si147521pli.438.2018.03.13.10.04.20; Tue, 13 Mar 2018 10:04:34 -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 S932896AbeCMRCN (ORCPT + 99 others); Tue, 13 Mar 2018 13:02:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58166 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752284AbeCMP2s (ORCPT ); Tue, 13 Mar 2018 11:28:48 -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 B7231F02; Tue, 13 Mar 2018 15:28:47 +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.15 031/146] drm/amd/powerplay: fix power over limit on Fiji Date: Tue, 13 Mar 2018 16:23:18 +0100 Message-Id: <20180313152322.932778684@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-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 @@ -4572,13 +4572,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;