diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3519-drm-amdgpu-add-mmhub-powergating-set-by-smu.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3519-drm-amdgpu-add-mmhub-powergating-set-by-smu.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3519-drm-amdgpu-add-mmhub-powergating-set-by-smu.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3519-drm-amdgpu-add-mmhub-powergating-set-by-smu.patch new file mode 100644 index 00000000..5bddd830 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3519-drm-amdgpu-add-mmhub-powergating-set-by-smu.patch @@ -0,0 +1,33 @@ +From de4ce25805d74cc18d3f0a6eaf3ef291b36e6d35 Mon Sep 17 00:00:00 2001 +From: Eric Huang <JinHuiEric.Huang@amd.com> +Date: Tue, 6 Feb 2018 16:21:05 -0500 +Subject: [PATCH 3519/4131] drm/amdgpu: add mmhub powergating set by smu + +PSP will disable legacy mmhub PG setting that is programming +registers, and drive will use SMC message to +set it up. + +Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c +index 82f8bc8..d0ade9f 100644 +--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c +@@ -471,6 +471,9 @@ void mmhub_v1_0_update_power_gating(struct amdgpu_device *adev, + RENG_EXECUTE_ON_REG_UPDATE, 1); + WREG32_SOC15(MMHUB, 0, mmPCTL1_RENG_EXECUTE, pctl1_reng_execute); + ++ if (adev->powerplay.pp_funcs->set_mmhub_powergating_by_smu) ++ amdgpu_dpm_set_mmhub_powergating_by_smu(adev); ++ + } else { + pctl0_reng_execute = REG_SET_FIELD(pctl0_reng_execute, + PCTL0_RENG_EXECUTE, +-- +2.7.4 + |