diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0065-drm-amdgpu-enable-powerplay-module-by-default-for-to.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0065-drm-amdgpu-enable-powerplay-module-by-default-for-to.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0065-drm-amdgpu-enable-powerplay-module-by-default-for-to.patch b/common/recipes-kernel/linux/files/0065-drm-amdgpu-enable-powerplay-module-by-default-for-to.patch new file mode 100644 index 00000000..97126033 --- /dev/null +++ b/common/recipes-kernel/linux/files/0065-drm-amdgpu-enable-powerplay-module-by-default-for-to.patch @@ -0,0 +1,35 @@ +From b18cc36a16c393854c4cea0eb2e752fe78b540fa Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Sat, 17 Oct 2015 17:57:58 +0800 +Subject: [PATCH 0065/1110] drm/amdgpu: enable powerplay module by default for + tonga. + +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +index 1a824f0..cbb00e2 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +@@ -96,6 +96,14 @@ static int amdgpu_pp_early_init(void *handle) + struct amdgpu_device *adev = (struct amdgpu_device *)handle; + int ret = 0; + ++ switch (adev->asic_type) { ++ case CHIP_TONGA: ++ amdgpu_powerplay = 1; ++ break; ++ default: ++ break; ++ } ++ + ret = amdgpu_powerplay_init(adev); + if (ret) + return ret; +-- +2.7.4 + |