Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/powerplay: drop unnecessary message support check(v2)

Take back patch:drop unnecessary message support check
Because the gpu reset fail problem on renoir can be fixed by:
drm/amd/powerplay: skip invalid msg when smu set mp1 state
It needs to remove SWSMU_CODE_LAYER_L1 in smu_cmn.h to guard a clear
code layer.

Signed-off-by: changfeng <Changfeng.Zhu@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Changfeng and committed by
Alex Deucher
de273b73 bbf16f53

+1 -10
-9
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
··· 34 34 #include "sienna_cichlid_ppt.h" 35 35 #include "renoir_ppt.h" 36 36 #include "amd_pcie.h" 37 - #include "smu_cmn.h" 38 37 39 38 /* 40 39 * DO NOT use these for err/warn/info/debug messages. ··· 1585 1586 break; 1586 1587 case PP_MP1_STATE_NONE: 1587 1588 default: 1588 - mutex_unlock(&smu->mutex); 1589 - return 0; 1590 - } 1591 - 1592 - /* some asics may not support those messages */ 1593 - if (smu_cmn_to_asic_specific_index(smu, 1594 - CMN2ASIC_MAPPING_MSG, 1595 - msg) < 0) { 1596 1589 mutex_unlock(&smu->mutex); 1597 1590 return 0; 1598 1591 }
+1 -1
drivers/gpu/drm/amd/powerplay/smu_cmn.h
··· 25 25 26 26 #include "amdgpu_smu.h" 27 27 28 - #if defined(SWSMU_CODE_LAYER_L1) || defined(SWSMU_CODE_LAYER_L2) || defined(SWSMU_CODE_LAYER_L3) || defined(SWSMU_CODE_LAYER_L4) 28 + #if defined(SWSMU_CODE_LAYER_L2) || defined(SWSMU_CODE_LAYER_L3) || defined(SWSMU_CODE_LAYER_L4) 29 29 int smu_cmn_send_smc_msg_with_param(struct smu_context *smu, 30 30 enum smu_message_type msg, 31 31 uint32_t param,