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

drm/amd/pm: new SMC message for 2nd usb2.0 port workaround

The workaround is needed by sienna cichlid.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Evan Quan and committed by
Alex Deucher
88dfd5d5 ad26bd11

+4
+1
drivers/gpu/drm/amd/pm/inc/smu_types.h
··· 210 210 __SMU_DUMMY_MAP(SetSoftMaxCclk), \ 211 211 __SMU_DUMMY_MAP(SetGpoFeaturePMask), \ 212 212 __SMU_DUMMY_MAP(DisallowGpo), \ 213 + __SMU_DUMMY_MAP(Enable2ndUSB20Port), \ 213 214 214 215 #undef __SMU_DUMMY_MAP 215 216 #define __SMU_DUMMY_MAP(type) SMU_MSG_##type
+2
drivers/gpu/drm/amd/pm/inc/smu_v11_0_7_ppsmc.h
··· 136 136 137 137 #define PPSMC_MSG_DisallowGpo 0x56 138 138 139 + #define PPSMC_MSG_Enable2ndUSB20Port 0x57 140 + 139 141 #define PPSMC_Message_Count 0x58 140 142 141 143 #endif
+1
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
··· 129 129 MSG_MAP(SetMGpuFanBoostLimitRpm, PPSMC_MSG_SetMGpuFanBoostLimitRpm, 0), 130 130 MSG_MAP(SetGpoFeaturePMask, PPSMC_MSG_SetGpoFeaturePMask, 0), 131 131 MSG_MAP(DisallowGpo, PPSMC_MSG_DisallowGpo, 0), 132 + MSG_MAP(Enable2ndUSB20Port, PPSMC_MSG_Enable2ndUSB20Port, 0), 132 133 }; 133 134 134 135 static struct cmn2asic_mapping sienna_cichlid_clk_map[SMU_CLK_COUNT] = {