drm/amdgpu: support memory training for sienna_cichlid
authorLikun Gao <Likun.Gao@amd.com>
Thu, 21 May 2020 07:35:46 +0000 (15:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:14 +0000 (01:59 -0400)
Add memory training support for sienna_cichlid.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c

index a9adccfda4c0f4edfb3862689e97885dbf8521ee..2b55ccd5cb44d8920ff9b4d2e3697a042ebf89e1 100644 (file)
@@ -532,6 +532,7 @@ static int gddr6_mem_train_support(struct amdgpu_device *adev)
                switch (hw_v) {
                case HW_REV(11, 0, 0):
                case HW_REV(11, 0, 5):
+               case HW_REV(11, 0, 7):
                        ret = 1;
                        break;
                default:
@@ -561,7 +562,8 @@ int amdgpu_atomfirmware_get_mem_train_info(struct amdgpu_device *adev)
        adev->fw_vram_usage.mem_train_support = false;
 
        if (adev->asic_type != CHIP_NAVI10 &&
-           adev->asic_type != CHIP_NAVI14)
+           adev->asic_type != CHIP_NAVI14 &&
+           adev->asic_type != CHIP_SIENNA_CICHLID)
                return 0;
 
        if (amdgpu_sriov_vf(adev))