aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2017-09-04 05:48:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-12 14:30:30 -0400
commit50811c71fa1b7c2f8b422ad532d75a6860f15a8b (patch)
treebc2d6bf23767810cc7c62fb473923a972065f94e /drivers/gpu/drm/amd
parentbcd6eab837fc9db67292c1d071ce2d96bb9689be (diff)
drm/amdgpu: enable raven to load firmwares by psp at default (v2)
- 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>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c2
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 0d530524ab21..84bd6ed7a641 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -64,9 +64,7 @@ static int psp_sw_init(void *handle)
64 psp->smu_reload_quirk = psp_v3_1_smu_reload_quirk; 64 psp->smu_reload_quirk = psp_v3_1_smu_reload_quirk;
65 break; 65 break;
66 case CHIP_RAVEN: 66 case CHIP_RAVEN:
67#if 0
68 psp->init_microcode = psp_v10_0_init_microcode; 67 psp->init_microcode = psp_v10_0_init_microcode;
69#endif
70 psp->prep_cmd_buf = psp_v10_0_prep_cmd_buf; 68 psp->prep_cmd_buf = psp_v10_0_prep_cmd_buf;
71 psp->ring_init = psp_v10_0_ring_init; 69 psp->ring_init = psp_v10_0_ring_init;
72 psp->ring_create = psp_v10_0_ring_create; 70 psp->ring_create = psp_v10_0_ring_create;
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
index 36c763310df5..f306374ff654 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
@@ -270,12 +270,8 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
270 else 270 else
271 return AMDGPU_FW_LOAD_SMU; 271 return AMDGPU_FW_LOAD_SMU;
272 case CHIP_VEGA10: 272 case CHIP_VEGA10:
273 if (!load_type)
274 return AMDGPU_FW_LOAD_DIRECT;
275 else
276 return AMDGPU_FW_LOAD_PSP;
277 case CHIP_RAVEN: 273 case CHIP_RAVEN:
278 if (load_type != 2) 274 if (!load_type)
279 return AMDGPU_FW_LOAD_DIRECT; 275 return AMDGPU_FW_LOAD_DIRECT;
280 else 276 else
281 return AMDGPU_FW_LOAD_PSP; 277 return AMDGPU_FW_LOAD_PSP;