Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3877392pxb; Tue, 17 Nov 2020 06:02:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLoa+MQGtXKyS4Sm1rpEf2zG8MaIDU8mIKa50+ZkE9lmxhgTsZfLq97UIRrSGlzNslE6SX X-Received: by 2002:a50:f40a:: with SMTP id r10mr20873446edm.229.1605621753944; Tue, 17 Nov 2020 06:02:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605621753; cv=none; d=google.com; s=arc-20160816; b=wvm01rAlV5JhPNOKEFA79jDMG6tf6k8uYZNCWU4xDzy64Tusdbhx0TB/XAFwgPnH26 1Q3bkVaqlFTFFxgzxIt0gwTh7dXGcih5EhX//c6PvnFDpbyEPif7jlQ8cce1+edhF7C5 BPYuogjAWWr+61B88P8C/ycD4vmz2pyD0TcTixVzf3UIZLd8u3AaJZz2HW7q/hImRhpQ RFXuNyKjxj71o5bdMKemJgvbQcpnIVpIAXnxDS2tTUHXYURaDSA3XpTpHJ8ma9y/sQH8 E0Ob3igK7rDGOq1Vf32vGnwTq5LqT3YuCHD2iUPFjCVpvr9pfVfUQEYbFF7q2ZnlNZNI /u/A== 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=D0ax4KIuZ6YTZ96eR7/MGZNRLYvTwuwKeHNyNlOOGC8=; b=O/8nA3zl9kBNdcIrh1Nhhl5anR932pStqjA4TRSHgO7GJj1c3xs72qLtT6S/OhR4l5 gEtzwpfdOHUwRoZKKrTttHarw/9Vqz2gMrevl4CoZFY0R1p9KdsqYaeCLDtPwy23gXem aN/e+/06f/LXOuvGq/d/2ZWbaZIt/Yp0FUfG3wWKwZE1xIilzwqhxeVmgHPeu+cKTsAf 10WrExWkjCkUWQe8ueh2BIEjJUKRes1F7IBkmVN4Qg89ePYw+x0+F+Cr7LcoNJTgLxSx BYtFTG5DRa8uor8fEqsxw6VQ+eCfIHnT6C/xtskzB0IYZNRBfC3My94ypEG2NyjzVEyc PDDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rpjh2UuH; 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 cf25si14377974edb.205.2020.11.17.06.02.09; Tue, 17 Nov 2020 06:02:33 -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=Rpjh2UuH; 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 S1731696AbgKQN6T (ORCPT + 99 others); Tue, 17 Nov 2020 08:58:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:51574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729399AbgKQNS4 (ORCPT ); Tue, 17 Nov 2020 08:18:56 -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 44760206D5; Tue, 17 Nov 2020 13:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619134; bh=WvWDUe7Efs3/UaLV6ZcsfA0N93uLYypki29yXvVf2ec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rpjh2UuH7FOwLcqjz/yOOLZvRnoopUfichfIqZPLqJ5ODrJjMNqFPa6Dyom+0/o8p t7gTZ+xa7YvJZ0JGNnk0Wpdhs4cOhpPI0Sd/NgSiV2uMPsv56E3Ii+UBj3IT+yjHcn rJAdykEvTZMMucPps+BaR8XY7C8RDBjv3P338pw8= 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 4.19 038/101] drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running Date: Tue, 17 Nov 2020 14:05:05 +0100 Message-Id: <20201117122114.950471960@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@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 0d4dd607e85c8..c05bec5effb2e 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c @@ -2723,10 +2723,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