drm/amdgpu: Remove some useless code
Signed-off-by: Emily.Deng <Emily.Deng@amd.com> Reviewed-by: Frank Min <Frank.Min@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -61,9 +61,6 @@ static uint32_t smu9_wait_for_response(struct pp_hwmgr *hwmgr)
|
||||
uint32_t reg;
|
||||
uint32_t ret;
|
||||
|
||||
/* Due to the L1 policy problem under SRIOV, we have to use
|
||||
* mmMP1_SMN_C2PMSG_103 as the driver response register
|
||||
*/
|
||||
if (hwmgr->pp_one_vf) {
|
||||
reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_103);
|
||||
|
||||
@@ -148,10 +145,6 @@ int smu9_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,
|
||||
|
||||
smu9_wait_for_response(hwmgr);
|
||||
|
||||
/* Due to the L1 policy problem under SRIOV, we have to use
|
||||
* mmMP1_SMN_C2PMSG_101 as the driver message register and
|
||||
* mmMP1_SMN_C2PMSG_102 as the driver parameter register.
|
||||
*/
|
||||
if (hwmgr->pp_one_vf) {
|
||||
WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_103, 0);
|
||||
WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_102, parameter);
|
||||
|
Reference in New Issue
Block a user