From: Tom St Denis Date: Tue, 9 Aug 2016 22:01:55 +0000 (-0400) Subject: drm/amd/amdgpu: Set VCE/UVD off during late init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d1aff8ec49c3ece05cee9b6e63d44e96a420b068;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amd/amdgpu: Set VCE/UVD off during late init Forces VCE/UVD off during late init to ensure they're powered off correctly during boot. Signed-off-by: Tom St Denis Reviewed-by: Alex Deucher Signed-off-by: Samuel Li Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index c0d12e83d5ed..7f996ac089b4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -51,6 +51,7 @@ #include "bif/bif_4_1_d.h" #include #include +#include "amdgpu_pm.h" static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev); static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev); @@ -1557,6 +1558,9 @@ static int amdgpu_late_init(struct amdgpu_device *adev) } } + amdgpu_dpm_enable_uvd(adev, false); + amdgpu_dpm_enable_vce(adev, false); + return 0; }