diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-07-29 07:19:26 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-08 11:33:04 -0400 |
commit | 5765a36d4c88d7ea2ff53e35cccca751c74716d8 (patch) | |
tree | 2135b6bd1e31e46630258e4d99c9c579790dde34 /drivers/gpu | |
parent | 93bdacd1bd7b81921c165e94bbe3dcefd6f88dc1 (diff) |
drm/amdgpu: AMD SW workaround for certain partner boards
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index ce0929bbf2e7..7e8cddb6d512 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -699,7 +699,10 @@ static void gfx_v8_0_init_golden_registers(struct amdgpu_device *adev) | |||
699 | polaris10_golden_common_all, | 699 | polaris10_golden_common_all, |
700 | (const u32)ARRAY_SIZE(polaris10_golden_common_all)); | 700 | (const u32)ARRAY_SIZE(polaris10_golden_common_all)); |
701 | WREG32_SMC(ixCG_ACLK_CNTL, 0x0000001C); | 701 | WREG32_SMC(ixCG_ACLK_CNTL, 0x0000001C); |
702 | if (adev->pdev->revision == 0xc7) { | 702 | if (adev->pdev->revision == 0xc7 && |
703 | ((adev->pdev->subsystem_device == 0xb37 && adev->pdev->subsystem_vendor == 0x1002) || | ||
704 | (adev->pdev->subsystem_device == 0x4a8 && adev->pdev->subsystem_vendor == 0x1043) || | ||
705 | (adev->pdev->subsystem_device == 0x9480 && adev->pdev->subsystem_vendor == 0x1682))) { | ||
703 | amdgpu_atombios_i2c_channel_trans(adev, 0x10, 0x96, 0x1E, 0xDD); | 706 | amdgpu_atombios_i2c_channel_trans(adev, 0x10, 0x96, 0x1E, 0xDD); |
704 | amdgpu_atombios_i2c_channel_trans(adev, 0x10, 0x96, 0x1F, 0xD0); | 707 | amdgpu_atombios_i2c_channel_trans(adev, 0x10, 0x96, 0x1F, 0xD0); |
705 | } | 708 | } |