Skip to content

Commit 2132672

Browse files
Evan Quanalexdeucher
authored andcommitted
drm/amd/powerplay: drop unnecessary message support check
These messages are known to be supported by all ASICs. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 66c8682 commit 2132672

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "sienna_cichlid_ppt.h"
3535
#include "renoir_ppt.h"
3636
#include "amd_pcie.h"
37-
#include "smu_cmn.h"
3837

3938
/*
4039
* DO NOT use these for err/warn/info/debug messages.
@@ -1590,14 +1589,6 @@ int smu_set_mp1_state(struct smu_context *smu,
15901589
return 0;
15911590
}
15921591

1593-
/* some asics may not support those messages */
1594-
if (smu_cmn_to_asic_specific_index(smu,
1595-
CMN2ASIC_MAPPING_MSG,
1596-
msg) < 0) {
1597-
mutex_unlock(&smu->mutex);
1598-
return 0;
1599-
}
1600-
16011592
ret = smu_send_smc_msg(smu, msg, NULL);
16021593
if (ret)
16031594
dev_err(smu->adev->dev, "[PrepareMp1] Failed!\n");

0 commit comments

Comments
 (0)