Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3862654pxb; Tue, 17 Nov 2020 05:39:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjc7Z3wBmNOUcCDswUkFrUaJrouiRgJneYgr3Se7r4hMXbbHqKtoUDIWIXNCz1WnLt9upD X-Received: by 2002:a50:dac7:: with SMTP id s7mr20070712edj.106.1605620390754; Tue, 17 Nov 2020 05:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620390; cv=none; d=google.com; s=arc-20160816; b=I2V9Lh3jg29kiFFs5EIQSjy9wLHt1hCLKHyib+KqttxM0rFt4STdwsP0NQ2OZs5X/8 lKTGo9HZiz3AvKGI82iyxSY2pmHA0ce6Ianvd/vlC1L4pBl99xBBP3Id0sRtu6TkUkQo gCYDo5z+pIA+/9lNfQkFF3YZOUKjgi4I9pMAbtXPY5gbNgMn8oSWhayig4X7BgnI95x3 JnlHOANEqbpK3t78pZy0065JKXpbLGhKF04BL+q2AFxSzsqAZIQv80fvKo3PZlCTqfa0 9Su59UFGC01LZoXMlQzwxk4uFZegm29wJZzz2qGhxgUrfQqXPIYKUHxbiyex9uRpMZqX OaTg== 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=StIH4c39vPx+UlQXQxvrMx0LsHnwesO8XZWNyTWI3q0=; b=u2vQBHfBlHWfZ6eJBNM/sV8w5XeXKaFqihdpfL9d4KEC2QlXtydS0tYwMy/FLO+dle 8wvkP0/U5uvbks3mbDVvhCZQ7gBPMtLzvvba2sb2tc5c26tsv52fc7uEEspktVdDc1SU Wg8dykYe7fsW17psjdbt7O4VhxpfwwGXXPCSBM6EZSiABUpxa3DfPp78UGgzmec3FhaL u+WgH9Htbwq3bd2kRh4U/QDV8lGMys5ssZ30MPnY+xbcLzCw+bVvi8o0epNXxW/MC+E/ ZG41Z+Xzjiy38mMA59MC6uMTTE5PDcf+svpx+kJrTA0axZExLVd8vyY8IZlkNyWJ4Ehs rjGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dP098O8J; 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=fail (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 pv12si13084308ejb.613.2020.11.17.05.39.27; Tue, 17 Nov 2020 05:39:50 -0800 (PST) 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=@kernel.org header.s=default header.b=dP098O8J; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732544AbgKQNgG (ORCPT + 99 others); Tue, 17 Nov 2020 08:36:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:46750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732532AbgKQNgA (ORCPT ); Tue, 17 Nov 2020 08:36:00 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 963732078E; Tue, 17 Nov 2020 13:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605620160; bh=dFjJZM8SnqGXo0mF5mJIV6e/Qj27oqzMleHCFTdxsl8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dP098O8JJwo/mW3AbM4/0wSKCL+NWIUlZcAPwrjGjad9SMPKuhrItZOSENkgOF42y eRSooSoMAXtzoA62h0hoHiXqgCOWY4JCpjakeVL+/3HoM8Y1AFJ0y90Jo32jc0Cp+P HZUs/sELu1PQii2TqjwmlaFQoyqiOB69D5aPUB2g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evan Quan , Sandeep Raghuraman , Alex Deucher , Sasha Levin Subject: [PATCH 5.9 096/255] drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running Date: Tue, 17 Nov 2020 14:03:56 +0100 Message-Id: <20201117122143.630090222@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@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: Evan Quan [ Upstream commit 786436b453001dafe81025389f96bf9dac1e9690 ] This reverts commit f87812284172a9809820d10143b573d833cd3f75 ("drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resume"). It was intended to fix Hawaii S4(hibernation) issue but break S3. As ixFEATURE_STATUS is filled with garbage data on resume which can be only cleared by reloading smc firmware(but that will involve many changes). So, we will revert this S4 fix and seek a new way. Signed-off-by: Evan Quan Tested-by: Sandeep Raghuraman Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c index 09128122b4932..329bf4d44bbce 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c @@ -2726,10 +2726,7 @@ static int ci_initialize_mc_reg_table(struct pp_hwmgr *hwmgr) static bool ci_is_dpm_running(struct pp_hwmgr *hwmgr) { - return (1 == PHM_READ_INDIRECT_FIELD(hwmgr->device, - CGS_IND_REG__SMC, FEATURE_STATUS, - VOLTAGE_CONTROLLER_ON)) - ? true : false; + return ci_is_smc_ram_running(hwmgr); } static int ci_smu_init(struct pp_hwmgr *hwmgr) -- 2.27.0