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

drm/amd/amdgpu: implement mode2 reset on smu_v13_0_10

implement mode2 reset on smu_v13_0_10

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Kenneth Feng and committed by
Alex Deucher
230dd6bb 677033b5

+413 -2
+1 -1
drivers/gpu/drm/amd/amdgpu/Makefile
··· 77 77 vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o \ 78 78 vega20_reg_init.o nbio_v7_4.o nbio_v2_3.o nv.o arct_reg_init.o mxgpu_nv.o \ 79 79 nbio_v7_2.o hdp_v4_0.o hdp_v5_0.o aldebaran_reg_init.o aldebaran.o soc21.o \ 80 - sienna_cichlid.o nbio_v4_3.o hdp_v6_0.o nbio_v7_7.o hdp_v5_2.o lsdma_v6_0.o 80 + sienna_cichlid.o smu_v13_0_10.o nbio_v4_3.o hdp_v6_0.o nbio_v7_7.o hdp_v5_2.o lsdma_v6_0.o 81 81 82 82 # add DF block 83 83 amdgpu-y += \
+7
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
··· 24 24 #include "amdgpu_reset.h" 25 25 #include "aldebaran.h" 26 26 #include "sienna_cichlid.h" 27 + #include "smu_v13_0_10.h" 27 28 28 29 int amdgpu_reset_add_handler(struct amdgpu_reset_control *reset_ctl, 29 30 struct amdgpu_reset_handler *handler) ··· 45 44 case IP_VERSION(11, 0, 7): 46 45 ret = sienna_cichlid_reset_init(adev); 47 46 break; 47 + case IP_VERSION(13, 0, 10): 48 + ret = smu_v13_0_10_reset_init(adev); 49 + break; 48 50 default: 49 51 break; 50 52 } ··· 65 61 break; 66 62 case IP_VERSION(11, 0, 7): 67 63 ret = sienna_cichlid_reset_fini(adev); 64 + break; 65 + case IP_VERSION(13, 0, 10): 66 + ret = smu_v13_0_10_reset_fini(adev); 68 67 break; 69 68 default: 70 69 break;
+303
drivers/gpu/drm/amd/amdgpu/smu_v13_0_10.c
··· 1 + /* 2 + * Copyright 2023 Advanced Micro Devices, Inc. 3 + * 4 + * Permission is hereby granted, free of charge, to any person obtaining a 5 + * copy of this software and associated documentation files (the "Software"), 6 + * to deal in the Software without restriction, including without limitation 7 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 + * and/or sell copies of the Software, and to permit persons to whom the 9 + * Software is furnished to do so, subject to the following conditions: 10 + * 11 + * The above copyright notice and this permission notice shall be included in 12 + * all copies or substantial portions of the Software. 13 + * 14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 + * OTHER DEALINGS IN THE SOFTWARE. 21 + * 22 + */ 23 + 24 + #include "smu_v13_0_10.h" 25 + #include "amdgpu_reset.h" 26 + #include "amdgpu_dpm.h" 27 + #include "amdgpu_job.h" 28 + #include "amdgpu_ring.h" 29 + #include "amdgpu_ras.h" 30 + #include "amdgpu_psp.h" 31 + 32 + static bool smu_v13_0_10_is_mode2_default(struct amdgpu_reset_control *reset_ctl) 33 + { 34 + struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; 35 + if (adev->pm.fw_version >= 0x00502005 && !amdgpu_sriov_vf(adev)) 36 + return true; 37 + 38 + return false; 39 + } 40 + 41 + static struct amdgpu_reset_handler * 42 + smu_v13_0_10_get_reset_handler(struct amdgpu_reset_control *reset_ctl, 43 + struct amdgpu_reset_context *reset_context) 44 + { 45 + struct amdgpu_reset_handler *handler; 46 + struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; 47 + 48 + if (reset_context->method != AMD_RESET_METHOD_NONE) { 49 + list_for_each_entry(handler, &reset_ctl->reset_handlers, 50 + handler_list) { 51 + if (handler->reset_method == reset_context->method) 52 + return handler; 53 + } 54 + } 55 + 56 + if (smu_v13_0_10_is_mode2_default(reset_ctl) && 57 + amdgpu_asic_reset_method(adev) == AMD_RESET_METHOD_MODE2) { 58 + list_for_each_entry (handler, &reset_ctl->reset_handlers, 59 + handler_list) { 60 + if (handler->reset_method == AMD_RESET_METHOD_MODE2) 61 + return handler; 62 + } 63 + } 64 + 65 + return NULL; 66 + } 67 + 68 + static int smu_v13_0_10_mode2_suspend_ip(struct amdgpu_device *adev) 69 + { 70 + int r, i; 71 + 72 + amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE); 73 + amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE); 74 + 75 + for (i = adev->num_ip_blocks - 1; i >= 0; i--) { 76 + if (!(adev->ip_blocks[i].version->type == 77 + AMD_IP_BLOCK_TYPE_GFX || 78 + adev->ip_blocks[i].version->type == 79 + AMD_IP_BLOCK_TYPE_SDMA || 80 + adev->ip_blocks[i].version->type == 81 + AMD_IP_BLOCK_TYPE_MES)) 82 + continue; 83 + 84 + r = adev->ip_blocks[i].version->funcs->suspend(adev); 85 + 86 + if (r) { 87 + dev_err(adev->dev, 88 + "suspend of IP block <%s> failed %d\n", 89 + adev->ip_blocks[i].version->funcs->name, r); 90 + return r; 91 + } 92 + adev->ip_blocks[i].status.hw = false; 93 + } 94 + 95 + return r; 96 + } 97 + 98 + static int 99 + smu_v13_0_10_mode2_prepare_hwcontext(struct amdgpu_reset_control *reset_ctl, 100 + struct amdgpu_reset_context *reset_context) 101 + { 102 + int r = 0; 103 + struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; 104 + 105 + if (!amdgpu_sriov_vf(adev)) 106 + r = smu_v13_0_10_mode2_suspend_ip(adev); 107 + 108 + return r; 109 + } 110 + 111 + static int smu_v13_0_10_mode2_reset(struct amdgpu_device *adev) 112 + { 113 + return amdgpu_dpm_mode2_reset(adev); 114 + } 115 + 116 + static void smu_v13_0_10_async_reset(struct work_struct *work) 117 + { 118 + struct amdgpu_reset_handler *handler; 119 + struct amdgpu_reset_control *reset_ctl = 120 + container_of(work, struct amdgpu_reset_control, reset_work); 121 + struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; 122 + 123 + list_for_each_entry(handler, &reset_ctl->reset_handlers, 124 + handler_list) { 125 + if (handler->reset_method == reset_ctl->active_reset) { 126 + dev_dbg(adev->dev, "Resetting device\n"); 127 + handler->do_reset(adev); 128 + break; 129 + } 130 + } 131 + } 132 + static int 133 + smu_v13_0_10_mode2_perform_reset(struct amdgpu_reset_control *reset_ctl, 134 + struct amdgpu_reset_context *reset_context) 135 + { 136 + struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; 137 + int r; 138 + 139 + r = smu_v13_0_10_mode2_reset(adev); 140 + if (r) { 141 + dev_err(adev->dev, 142 + "ASIC reset failed with error, %d ", r); 143 + } 144 + return r; 145 + } 146 + 147 + static int smu_v13_0_10_mode2_restore_ip(struct amdgpu_device *adev) 148 + { 149 + int i, r; 150 + struct psp_context *psp = &adev->psp; 151 + struct amdgpu_firmware_info *ucode; 152 + struct amdgpu_firmware_info *ucode_list[2]; 153 + int ucode_count = 0; 154 + 155 + for (i = 0; i < adev->firmware.max_ucodes; i++) { 156 + ucode = &adev->firmware.ucode[i]; 157 + 158 + switch (ucode->ucode_id) { 159 + case AMDGPU_UCODE_ID_IMU_I: 160 + case AMDGPU_UCODE_ID_IMU_D: 161 + ucode_list[ucode_count++] = ucode; 162 + break; 163 + default: 164 + break; 165 + } 166 + } 167 + 168 + r = psp_load_fw_list(psp, ucode_list, ucode_count); 169 + if (r) { 170 + dev_err(adev->dev, "IMU ucode load failed after mode2 reset\n"); 171 + return r; 172 + } 173 + 174 + r = psp_rlc_autoload_start(psp); 175 + if (r) { 176 + DRM_ERROR("Failed to start rlc autoload after mode2 reset\n"); 177 + return r; 178 + } 179 + 180 + amdgpu_dpm_enable_gfx_features(adev); 181 + 182 + for (i = 0; i < adev->num_ip_blocks; i++) { 183 + if (!(adev->ip_blocks[i].version->type == 184 + AMD_IP_BLOCK_TYPE_GFX || 185 + adev->ip_blocks[i].version->type == 186 + AMD_IP_BLOCK_TYPE_MES || 187 + adev->ip_blocks[i].version->type == 188 + AMD_IP_BLOCK_TYPE_SDMA)) 189 + continue; 190 + r = adev->ip_blocks[i].version->funcs->resume(adev); 191 + if (r) { 192 + dev_err(adev->dev, 193 + "resume of IP block <%s> failed %d\n", 194 + adev->ip_blocks[i].version->funcs->name, r); 195 + return r; 196 + } 197 + 198 + adev->ip_blocks[i].status.hw = true; 199 + } 200 + 201 + for (i = 0; i < adev->num_ip_blocks; i++) { 202 + if (!(adev->ip_blocks[i].version->type == 203 + AMD_IP_BLOCK_TYPE_GFX || 204 + adev->ip_blocks[i].version->type == 205 + AMD_IP_BLOCK_TYPE_MES || 206 + adev->ip_blocks[i].version->type == 207 + AMD_IP_BLOCK_TYPE_SDMA)) 208 + continue; 209 + 210 + if (adev->ip_blocks[i].version->funcs->late_init) { 211 + r = adev->ip_blocks[i].version->funcs->late_init( 212 + (void *)adev); 213 + if (r) { 214 + dev_err(adev->dev, 215 + "late_init of IP block <%s> failed %d after reset\n", 216 + adev->ip_blocks[i].version->funcs->name, 217 + r); 218 + return r; 219 + } 220 + } 221 + adev->ip_blocks[i].status.late_initialized = true; 222 + } 223 + 224 + amdgpu_device_set_cg_state(adev, AMD_CG_STATE_GATE); 225 + amdgpu_device_set_pg_state(adev, AMD_PG_STATE_GATE); 226 + 227 + return r; 228 + } 229 + 230 + static int 231 + smu_v13_0_10_mode2_restore_hwcontext(struct amdgpu_reset_control *reset_ctl, 232 + struct amdgpu_reset_context *reset_context) 233 + { 234 + int r; 235 + struct amdgpu_device *tmp_adev = (struct amdgpu_device *)reset_ctl->handle; 236 + 237 + dev_info(tmp_adev->dev, 238 + "GPU reset succeeded, trying to resume\n"); 239 + r = smu_v13_0_10_mode2_restore_ip(tmp_adev); 240 + if (r) 241 + goto end; 242 + 243 + amdgpu_register_gpu_instance(tmp_adev); 244 + 245 + /* Resume RAS */ 246 + amdgpu_ras_resume(tmp_adev); 247 + 248 + amdgpu_irq_gpu_reset_resume_helper(tmp_adev); 249 + 250 + r = amdgpu_ib_ring_tests(tmp_adev); 251 + if (r) { 252 + dev_err(tmp_adev->dev, 253 + "ib ring test failed (%d).\n", r); 254 + r = -EAGAIN; 255 + goto end; 256 + } 257 + 258 + end: 259 + if (r) 260 + return -EAGAIN; 261 + else 262 + return r; 263 + } 264 + 265 + static struct amdgpu_reset_handler smu_v13_0_10_mode2_handler = { 266 + .reset_method = AMD_RESET_METHOD_MODE2, 267 + .prepare_env = NULL, 268 + .prepare_hwcontext = smu_v13_0_10_mode2_prepare_hwcontext, 269 + .perform_reset = smu_v13_0_10_mode2_perform_reset, 270 + .restore_hwcontext = smu_v13_0_10_mode2_restore_hwcontext, 271 + .restore_env = NULL, 272 + .do_reset = smu_v13_0_10_mode2_reset, 273 + }; 274 + 275 + int smu_v13_0_10_reset_init(struct amdgpu_device *adev) 276 + { 277 + struct amdgpu_reset_control *reset_ctl; 278 + 279 + reset_ctl = kzalloc(sizeof(*reset_ctl), GFP_KERNEL); 280 + if (!reset_ctl) 281 + return -ENOMEM; 282 + 283 + reset_ctl->handle = adev; 284 + reset_ctl->async_reset = smu_v13_0_10_async_reset; 285 + reset_ctl->active_reset = AMD_RESET_METHOD_NONE; 286 + reset_ctl->get_reset_handler = smu_v13_0_10_get_reset_handler; 287 + 288 + INIT_LIST_HEAD(&reset_ctl->reset_handlers); 289 + INIT_WORK(&reset_ctl->reset_work, reset_ctl->async_reset); 290 + /* Only mode2 is handled through reset control now */ 291 + amdgpu_reset_add_handler(reset_ctl, &smu_v13_0_10_mode2_handler); 292 + 293 + adev->reset_cntl = reset_ctl; 294 + 295 + return 0; 296 + } 297 + 298 + int smu_v13_0_10_reset_fini(struct amdgpu_device *adev) 299 + { 300 + kfree(adev->reset_cntl); 301 + adev->reset_cntl = NULL; 302 + return 0; 303 + }
+32
drivers/gpu/drm/amd/amdgpu/smu_v13_0_10.h
··· 1 + /* 2 + * Copyright 2023 Advanced Micro Devices, Inc. 3 + * 4 + * Permission is hereby granted, free of charge, to any person obtaining a 5 + * copy of this software and associated documentation files (the "Software"), 6 + * to deal in the Software without restriction, including without limitation 7 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 + * and/or sell copies of the Software, and to permit persons to whom the 9 + * Software is furnished to do so, subject to the following conditions: 10 + * 11 + * The above copyright notice and this permission notice shall be included in 12 + * all copies or substantial portions of the Software. 13 + * 14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 + * OTHER DEALINGS IN THE SOFTWARE. 21 + * 22 + */ 23 + 24 + #ifndef __SMU_V13_0_10_H__ 25 + #define __SMU_V13_0_10_H__ 26 + 27 + #include "amdgpu.h" 28 + 29 + int smu_v13_0_10_reset_init(struct amdgpu_device *adev); 30 + int smu_v13_0_10_reset_fini(struct amdgpu_device *adev); 31 + 32 + #endif
+1
drivers/gpu/drm/amd/include/kgd_pp_interface.h
··· 397 397 int (*get_ppfeature_status)(void *handle, char *buf); 398 398 int (*set_ppfeature_status)(void *handle, uint64_t ppfeature_masks); 399 399 int (*asic_reset_mode_2)(void *handle); 400 + int (*asic_reset_enable_gfx_features)(void *handle); 400 401 int (*set_df_cstate)(void *handle, enum pp_df_cstate state); 401 402 int (*set_xgmi_pstate)(void *handle, uint32_t pstate); 402 403 ssize_t (*get_gpu_metrics)(void *handle, void **table);
+18
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
··· 227 227 return ret; 228 228 } 229 229 230 + int amdgpu_dpm_enable_gfx_features(struct amdgpu_device *adev) 231 + { 232 + const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; 233 + void *pp_handle = adev->powerplay.pp_handle; 234 + int ret = 0; 235 + 236 + if (!pp_funcs || !pp_funcs->asic_reset_enable_gfx_features) 237 + return -ENOENT; 238 + 239 + mutex_lock(&adev->pm.mutex); 240 + 241 + ret = pp_funcs->asic_reset_enable_gfx_features(pp_handle); 242 + 243 + mutex_unlock(&adev->pm.mutex); 244 + 245 + return ret; 246 + } 247 + 230 248 int amdgpu_dpm_baco_reset(struct amdgpu_device *adev) 231 249 { 232 250 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs;
+1
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
··· 386 386 int amdgpu_dpm_baco_reset(struct amdgpu_device *adev); 387 387 388 388 int amdgpu_dpm_mode2_reset(struct amdgpu_device *adev); 389 + int amdgpu_dpm_enable_gfx_features(struct amdgpu_device *adev); 389 390 390 391 bool amdgpu_dpm_is_baco_supported(struct amdgpu_device *adev); 391 392
+18
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
··· 2859 2859 return ret; 2860 2860 } 2861 2861 2862 + static int smu_enable_gfx_features(void *handle) 2863 + { 2864 + struct smu_context *smu = handle; 2865 + int ret = 0; 2866 + 2867 + if (!smu->pm_enabled) 2868 + return -EOPNOTSUPP; 2869 + 2870 + if (smu->ppt_funcs->enable_gfx_features) 2871 + ret = smu->ppt_funcs->enable_gfx_features(smu); 2872 + 2873 + if (ret) 2874 + dev_err(smu->adev->dev, "enable gfx features failed!\n"); 2875 + 2876 + return ret; 2877 + } 2878 + 2862 2879 static int smu_get_max_sustainable_clocks_by_dc(void *handle, 2863 2880 struct pp_smu_nv_clock_table *max_clocks) 2864 2881 { ··· 3060 3043 .get_ppfeature_status = smu_sys_get_pp_feature_mask, 3061 3044 .set_ppfeature_status = smu_sys_set_pp_feature_mask, 3062 3045 .asic_reset_mode_2 = smu_mode2_reset, 3046 + .asic_reset_enable_gfx_features = smu_enable_gfx_features, 3063 3047 .set_df_cstate = smu_set_df_cstate, 3064 3048 .set_xgmi_pstate = smu_set_xgmi_pstate, 3065 3049 .get_gpu_metrics = smu_sys_get_gpu_metrics,
+2
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
··· 1201 1201 * IPs reset varies by asic. 1202 1202 */ 1203 1203 int (*mode2_reset)(struct smu_context *smu); 1204 + /* for gfx feature enablement after mode2 reset */ 1205 + int (*enable_gfx_features)(struct smu_context *smu); 1204 1206 1205 1207 /** 1206 1208 * @get_dpm_ultimate_freq: Get the hard frequency range of a clock
+1
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_0_ppsmc.h
··· 94 94 //Resets 95 95 #define PPSMC_MSG_PrepareMp1ForUnload 0x2E 96 96 #define PPSMC_MSG_Mode1Reset 0x2F 97 + #define PPSMC_MSG_Mode2Reset 0x4F 97 98 98 99 //Set SystemVirtual DramAddrHigh 99 100 #define PPSMC_MSG_SetSystemVirtualDramAddrHigh 0x30
+2 -1
drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h
··· 242 242 __SMU_DUMMY_MAP(LogGfxOffResidency), \ 243 243 __SMU_DUMMY_MAP(SetNumBadMemoryPagesRetired), \ 244 244 __SMU_DUMMY_MAP(SetBadMemoryPagesRetiredFlagsPerChannel), \ 245 - __SMU_DUMMY_MAP(AllowGpo), 245 + __SMU_DUMMY_MAP(AllowGpo), \ 246 + __SMU_DUMMY_MAP(Mode2Reset), 246 247 247 248 #undef __SMU_DUMMY_MAP 248 249 #define __SMU_DUMMY_MAP(type) SMU_MSG_##type
+27
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
··· 138 138 MSG_MAP(GetPptLimit, PPSMC_MSG_GetPptLimit, 0), 139 139 MSG_MAP(NotifyPowerSource, PPSMC_MSG_NotifyPowerSource, 0), 140 140 MSG_MAP(Mode1Reset, PPSMC_MSG_Mode1Reset, 0), 141 + MSG_MAP(Mode2Reset, PPSMC_MSG_Mode2Reset, 0), 141 142 MSG_MAP(PrepareMp1ForUnload, PPSMC_MSG_PrepareMp1ForUnload, 0), 142 143 MSG_MAP(DFCstateControl, PPSMC_MSG_SetExternalClientDfCstateAllow, 0), 143 144 MSG_MAP(ArmD3, PPSMC_MSG_ArmD3, 0), ··· 1964 1963 return ret; 1965 1964 } 1966 1965 1966 + static int smu_v13_0_0_mode2_reset(struct smu_context *smu) 1967 + { 1968 + int ret; 1969 + struct amdgpu_device *adev = smu->adev; 1970 + 1971 + if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 10)) 1972 + ret = smu_cmn_send_smc_msg(smu, SMU_MSG_Mode2Reset, NULL); 1973 + else 1974 + return -EOPNOTSUPP; 1975 + 1976 + return ret; 1977 + } 1978 + 1979 + static int smu_v13_0_0_enable_gfx_features(struct smu_context *smu) 1980 + { 1981 + struct amdgpu_device *adev = smu->adev; 1982 + 1983 + if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 10)) 1984 + return smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_EnableAllSmuFeatures, 1985 + FEATURE_PWR_GFX, NULL); 1986 + else 1987 + return -EOPNOTSUPP; 1988 + } 1989 + 1967 1990 static void smu_v13_0_0_set_smu_mailbox_registers(struct smu_context *smu) 1968 1991 { 1969 1992 struct amdgpu_device *adev = smu->adev; ··· 2103 2078 .baco_exit = smu_v13_0_0_baco_exit, 2104 2079 .mode1_reset_is_support = smu_v13_0_0_is_mode1_reset_supported, 2105 2080 .mode1_reset = smu_v13_0_0_mode1_reset, 2081 + .mode2_reset = smu_v13_0_0_mode2_reset, 2082 + .enable_gfx_features = smu_v13_0_0_enable_gfx_features, 2106 2083 .set_mp1_state = smu_v13_0_0_set_mp1_state, 2107 2084 .set_df_cstate = smu_v13_0_0_set_df_cstate, 2108 2085 .send_hbm_bad_pages_num = smu_v13_0_0_smu_send_bad_mem_page_num,