From 06d1b1c2bb29bb688b0f8a86b5ce7cdfd116bd99 Mon Sep 17 00:00:00 2001 From: avimn Date: Fri, 3 Mar 2017 09:07:48 +0530 Subject: [PATCH 4128/4131] drm/amdgpu: Disable CG clockgating on stoney Coarse grain clockgating is causing IOMMU errors and filesystem corruption on stoney embedded boards. Disabling CGCG is a temporary workaround until the issue is fixed properly. Signed-off-by: Raveendra Talabattula --- drivers/gpu/drm/amd/amdgpu/vi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index 789ffd2..eab5d1e 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c @@ -1130,7 +1130,11 @@ static int vi_common_early_init(void *handle) AMD_CG_SUPPORT_GFX_CP_LS | AMD_CG_SUPPORT_GFX_CGTS | AMD_CG_SUPPORT_GFX_CGTS_LS | - AMD_CG_SUPPORT_GFX_CGCG | + /* Enabling CGCG on 4.9 kernel results in + * IOMMU errors and filesystem corruption + * Disable CGCG until the issue is fixed properly + */ + //AMD_CG_SUPPORT_GFX_CGCG | AMD_CG_SUPPORT_GFX_CGLS | AMD_CG_SUPPORT_BIF_LS | AMD_CG_SUPPORT_HDP_MGCG | -- 2.7.4