diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0210-drm-amd-powerplay-send-event-to-notify-powerplay-all.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0210-drm-amd-powerplay-send-event-to-notify-powerplay-all.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0210-drm-amd-powerplay-send-event-to-notify-powerplay-all.patch b/common/recipes-kernel/linux/files/0210-drm-amd-powerplay-send-event-to-notify-powerplay-all.patch new file mode 100644 index 00000000..ec603b4c --- /dev/null +++ b/common/recipes-kernel/linux/files/0210-drm-amd-powerplay-send-event-to-notify-powerplay-all.patch @@ -0,0 +1,33 @@ +From 42ade7639d6843929440e924008c0ce9d03802c4 Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Thu, 25 Feb 2016 17:32:45 +0800 +Subject: [PATCH 0210/1110] drm/amd/powerplay: send event to notify powerplay + all modules are initialized. + +with this event, powerplay can adjust current power state if needed. + +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +index b9d0d55..3cb6d6c 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +@@ -143,8 +143,10 @@ static int amdgpu_pp_late_init(void *handle) + adev->powerplay.pp_handle); + + #ifdef CONFIG_DRM_AMD_POWERPLAY +- if (adev->pp_enabled) ++ if (adev->pp_enabled) { + amdgpu_pm_sysfs_init(adev); ++ amdgpu_dpm_dispatch_task(adev, AMD_PP_EVENT_COMPLETE_INIT, NULL, NULL); ++ } + #endif + return ret; + } +-- +2.7.4 + |