diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3461-drm-amd-powerpay-Implement-mode2-reset-callback-for-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3461-drm-amd-powerpay-Implement-mode2-reset-callback-for-.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3461-drm-amd-powerpay-Implement-mode2-reset-callback-for-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3461-drm-amd-powerpay-Implement-mode2-reset-callback-for-.patch new file mode 100644 index 00000000..0f794cac --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3461-drm-amd-powerpay-Implement-mode2-reset-callback-for-.patch @@ -0,0 +1,43 @@ +From 75e54877124b4a594c868f0ca6f581b5489cc32f Mon Sep 17 00:00:00 2001 +From: Andrey Grodzovsky <andrey.grodzovsky@amd.com> +Date: Wed, 14 Aug 2019 16:21:44 -0400 +Subject: [PATCH 3461/4256] drm/amd/powerpay: Implement mode2 reset callback + for SMU10 + +Add implmenetion. + +Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Reviewed-by: Evan Quan <evan.quan@amd.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c +index 18e780f566fa..1115761982a7 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c +@@ -1311,6 +1311,12 @@ static int smu10_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, uin + return 0; + } + ++static int smu10_asic_reset(struct pp_hwmgr *hwmgr, enum SMU_ASIC_RESET_MODE mode) ++{ ++ return smum_send_msg_to_smc_with_parameter(hwmgr, ++ PPSMC_MSG_DeviceDriverReset, ++ mode); ++} + + static const struct pp_hwmgr_func smu10_hwmgr_funcs = { + .backend_init = smu10_hwmgr_backend_init, +@@ -1355,6 +1361,7 @@ static const struct pp_hwmgr_func smu10_hwmgr_funcs = { + .set_hard_min_fclk_by_freq = smu10_set_hard_min_fclk_by_freq, + .get_power_profile_mode = smu10_get_power_profile_mode, + .set_power_profile_mode = smu10_set_power_profile_mode, ++ .asic_reset = smu10_asic_reset, + }; + + int smu10_init_function_pointers(struct pp_hwmgr *hwmgr) +-- +2.17.1 + |