drm/amd/pp: Remove dead function in smu7_smumgr.c
Subsystems (2)
PATCH 1/2 drm/amd/pp: Remove dead function in smu7_smumgr.c
--- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 10 ---------- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h | 1 - 2 files changed, 11 deletions(-)
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +0 -10
@@ -235,16 +235,6 @@ int smu7_send_msg_to_smc_offset(struct pp_hwmgr *hwmgr)return 0 ; } -int smu7_wait_for_smc_inactive (struct pp_hwmgr *hwmgr) -{ -if (!smu7_is_smc_ram_running (hwmgr)) -return -EINVAL ; - -PHM_WAIT_VFPF_INDIRECT_FIELD (hwmgr,SMC_IND ,SMC_SYSCON_CLOCK_CNTL_0 , cken,0 ); -return 0 ; -} - -enum cgs_ucode_id smu7_convert_fw_type_to_cgs (uint32_t fw_type) {enum cgs_ucode_id result =CGS_UCODE_ID_MAXIMUM ;
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h +0 -1
@@ -67,7 +67,6 @@ int smu7_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, uint16_t msg,int smu7_send_msg_to_smc_with_parameter_without_waiting (struct pp_hwmgr *hwmgr,uint16_t msg,uint32_t parameter);int smu7_send_msg_to_smc_offset (struct pp_hwmgr *hwmgr); -int smu7_wait_for_smc_inactive (struct pp_hwmgr *hwmgr);enum cgs_ucode_id smu7_convert_fw_type_to_cgs (uint32_t fw_type); int smu7_read_smc_sram_dword(struct pp_hwmgr *hwmgr, uint32_t smc_addr,
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1522838672-25827-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amd/pp: Remove useless smu7 running state check
Only check smc running state before start smu.
--- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +0 -8
@@ -167,10 +167,6 @@ int smu7_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) {int ret; -if (!smu7_is_smc_ram_running (hwmgr)) -return -EINVAL ; - -PHM_WAIT_FIELD_UNEQUAL (hwmgr,SMC_RESP_0 ,SMC_RESP ,0 ); ret =PHM_READ_FIELD (hwmgr->device,SMC_RESP_0 ,SMC_RESP );
@@ -203,10 +199,6 @@ int smu7_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg)int smu7_send_msg_to_smc_with_parameter (struct pp_hwmgr *hwmgr,uint16_t msg,uint32_t parameter) { -if (!smu7_is_smc_ram_running (hwmgr)) { -return -EINVAL ; - } -PHM_WAIT_FIELD_UNEQUAL (hwmgr,SMC_RESP_0 ,SMC_RESP ,0 );cgs_write_register (hwmgr->device, mmSMC_MSG_ARG_0, parameter);
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1522838672-25827-2-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byRe: [PATCH 2/2] drm/amd/pp: Remove useless smu7 running state check
Quoted 3 lines · Rex Zhu
Only check smc running state before start smu.
Signed-off-by Rex Zhu <[email protected]>
Series is:
Quoted 33 lines
--- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 8 -------- 1 file changed, 8 deletions(-)drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +0
-9@@ -167,10 +167,6 @@ int smu7_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) {int ret; -if (!smu7_is_smc_ram_running (hwmgr)) -return -EINVAL ; - -PHM_WAIT_FIELD_UNEQUAL (hwmgr,SMC_RESP_0 ,SMC_RESP ,0 ); ret =PHM_READ_FIELD (hwmgr->device,SMC_RESP_0 ,SMC_RESP );@@ -203,10 +199,6 @@ int smu7_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg)int smu7_send_msg_to_smc_with_parameter (struct pp_hwmgr *hwmgr,uint16_t msg,uint32_t parameter) { -if (!smu7_is_smc_ram_running (hwmgr)) { -return -EINVAL ; - } -PHM_WAIT_FIELD_UNEQUAL (hwmgr,SMC_RESP_0 ,SMC_RESP ,0 );cgs_write_register (hwmgr->device, mmSMC_MSG_ARG_0, parameter); --1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx