diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0180-drm-amdgpu-add-a-message-to-indicate-when-powerplay-.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0180-drm-amdgpu-add-a-message-to-indicate-when-powerplay-.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0180-drm-amdgpu-add-a-message-to-indicate-when-powerplay-.patch b/common/recipes-kernel/linux/files/0180-drm-amdgpu-add-a-message-to-indicate-when-powerplay-.patch new file mode 100644 index 00000000..c2674645 --- /dev/null +++ b/common/recipes-kernel/linux/files/0180-drm-amdgpu-add-a-message-to-indicate-when-powerplay-.patch @@ -0,0 +1,37 @@ +From f5f134195c48e30a727e0cfc0a75dc157dabfcdb Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Wed, 20 Jan 2016 12:15:09 -0500 +Subject: [PATCH 0180/1110] drm/amdgpu: add a message to indicate when + powerplay is enabled (v2) + +Makes it clear to the user which power management path is in +use. + +v2: make consistent with dpm + +Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> +Reviewed-by: Tom St Denis <tom.stdenis@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +index 8f5d5ed..aa67244 100644 +--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c ++++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +@@ -64,6 +64,11 @@ static int pp_sw_init(void *handle) + if (ret == 0) + ret = hwmgr->hwmgr_func->backend_init(hwmgr); + ++ if (ret) ++ printk("amdgpu: powerplay initialization failed\n"); ++ else ++ printk("amdgpu: powerplay initialized\n"); ++ + return ret; + } + +-- +2.7.4 + |