diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4043-drm-amd-powerplay-enable-disable-gfxoff-through-smu.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4043-drm-amd-powerplay-enable-disable-gfxoff-through-smu.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4043-drm-amd-powerplay-enable-disable-gfxoff-through-smu.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4043-drm-amd-powerplay-enable-disable-gfxoff-through-smu.patch new file mode 100644 index 00000000..20256bd6 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4043-drm-amd-powerplay-enable-disable-gfxoff-through-smu.patch @@ -0,0 +1,44 @@ +From 064d9810afc54c7b41e3bc084f95a0e2bbce3d9e Mon Sep 17 00:00:00 2001 +From: Huang Rui <ray.huang@amd.com> +Date: Fri, 2 Mar 2018 15:18:54 +0800 +Subject: [PATCH 4043/4131] drm/amd/powerplay: enable/disable gfxoff through + smu +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Huang Rui <ray.huang@amd.com> +Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Acked-by: Christian König <christian.koenig@amd.com> +--- + drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +index 7172ad7..2588d02 100644 +--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c ++++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +@@ -187,10 +187,19 @@ static int pp_set_powergating_state(void *handle, + { + struct amdgpu_device *adev = handle; + struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; ++ int ret; + + if (!hwmgr || !hwmgr->pm_en) + return 0; + ++ if (hwmgr->hwmgr_func->gfx_off_control) { ++ /* Enable/disable GFX off through SMU */ ++ ret = hwmgr->hwmgr_func->gfx_off_control(hwmgr, ++ state == AMD_PG_STATE_GATE); ++ if (ret) ++ pr_err("gfx off control failed!\n"); ++ } ++ + if (hwmgr->hwmgr_func->enable_per_cu_power_gating == NULL) { + pr_info("%s was not implemented.\n", __func__); + return 0; +-- +2.7.4 + |