diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2017-05-04 14:54:46 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 17:40:54 -0400 |
commit | 4456ef4ea67220d04406b1e0709f629f7733b3b5 (patch) | |
tree | ec04db85de88857e8ccb2172efb796a381cce6f1 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 5c5928a238e5649fa5f06d237c21ee6c66664096 (diff) |
drm/amdgpu: add Raven chip id case for ucode
Set the appropriate ucode loading mechanism. Set to
direct for now.
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index 38e3ba6e6467..cd6d3d091152 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |||
@@ -274,6 +274,15 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type) | |||
274 | return AMDGPU_FW_LOAD_DIRECT; | 274 | return AMDGPU_FW_LOAD_DIRECT; |
275 | else | 275 | else |
276 | return AMDGPU_FW_LOAD_PSP; | 276 | return AMDGPU_FW_LOAD_PSP; |
277 | case CHIP_RAVEN: | ||
278 | #if 0 | ||
279 | if (!load_type) | ||
280 | return AMDGPU_FW_LOAD_DIRECT; | ||
281 | else | ||
282 | return AMDGPU_FW_LOAD_PSP; | ||
283 | #else | ||
284 | return AMDGPU_FW_LOAD_DIRECT; | ||
285 | #endif | ||
277 | default: | 286 | default: |
278 | DRM_ERROR("Unknow firmware load type\n"); | 287 | DRM_ERROR("Unknow firmware load type\n"); |
279 | } | 288 | } |