]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: enable raven to load firmwares by psp at default (v2)
authorEvan Quan <evan.quan@amd.com>
Mon, 4 Sep 2017 09:48:27 +0000 (17:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:30:30 +0000 (14:30 -0400)
- v2: share code with CHIP_VEGA10 case

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

index 0d530524ab21586029e67d717f0935ff2ac53879..84bd6ed7a641c97ba7864a6107d4d7d7505f892e 100644 (file)
@@ -64,9 +64,7 @@ static int psp_sw_init(void *handle)
                psp->smu_reload_quirk = psp_v3_1_smu_reload_quirk;
                break;
        case CHIP_RAVEN:
-#if 0
                psp->init_microcode = psp_v10_0_init_microcode;
-#endif
                psp->prep_cmd_buf = psp_v10_0_prep_cmd_buf;
                psp->ring_init = psp_v10_0_ring_init;
                psp->ring_create = psp_v10_0_ring_create;
index 36c763310df5f6402fc3d28be2f2ab5b85245f9f..f306374ff654784128f0ac104f8eb0c09f5a0e14 100644 (file)
@@ -270,12 +270,8 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
                else
                        return AMDGPU_FW_LOAD_SMU;
        case CHIP_VEGA10:
-               if (!load_type)
-                       return AMDGPU_FW_LOAD_DIRECT;
-               else
-                       return AMDGPU_FW_LOAD_PSP;
        case CHIP_RAVEN:
-               if (load_type != 2)
+               if (!load_type)
                        return AMDGPU_FW_LOAD_DIRECT;
                else
                        return AMDGPU_FW_LOAD_PSP;