diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3628-drm-amd-powerplay-regards-the-APU-always-enable-the-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3628-drm-amd-powerplay-regards-the-APU-always-enable-the-.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3628-drm-amd-powerplay-regards-the-APU-always-enable-the-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3628-drm-amd-powerplay-regards-the-APU-always-enable-the-.patch new file mode 100644 index 00000000..134245c6 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3628-drm-amd-powerplay-regards-the-APU-always-enable-the-.patch @@ -0,0 +1,34 @@ +From 072dd3796b5a2413d725fb7722e0a2f00f32b28c Mon Sep 17 00:00:00 2001 +From: Prike Liang <Prike.Liang@amd.com> +Date: Thu, 15 Aug 2019 09:39:06 +0800 +Subject: [PATCH 3628/4256] drm/amd/powerplay: regards the APU always enable + the dpm feature mask + +There is no driver message to enable/disable feature mask for APU. +For the sake of APU reusing swSMU interface and assume APU supports all +the feature. + +Signed-off-by: Prike Liang <Prike.Liang@amd.com> +Reviewed-by: Evan Quan <evan.quan@amd.com> +Reviewed-by: Aaron Liu <aaron.liu@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +index 6f435d60fe86..b4f89c3c2b43 100644 +--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c ++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +@@ -636,7 +636,7 @@ int smu_feature_is_enabled(struct smu_context *smu, enum smu_feature_mask mask) + int ret = 0; + + if (adev->flags & AMD_IS_APU) +- return 0; ++ return 1; + + feature_id = smu_feature_get_index(smu, mask); + if (feature_id < 0) +-- +2.17.1 + |