Patch "drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running

to the 4.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-pm-do-not-use-ixfeature_status-for-checking-.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5fb2fa63568c362ec407d758b98a242c7cf19f31
Author: Evan Quan <evan.quan@xxxxxxx>
Date:   Tue Oct 27 10:24:18 2020 +0800

    drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running
    
    [ 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 <evan.quan@xxxxxxx>
    Tested-by: Sandeep Raghuraman <sandy.8925@xxxxxxxxx>
    Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux