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) | |
download | linux-stable-4456ef4ea67220d04406b1e0709f629f7733b3b5.tar.gz linux-stable-4456ef4ea67220d04406b1e0709f629f7733b3b5.tar.bz2 linux-stable-4456ef4ea67220d04406b1e0709f629f7733b3b5.zip |
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) return AMDGPU_FW_LOAD_DIRECT; else return AMDGPU_FW_LOAD_PSP; + case CHIP_RAVEN: +#if 0 + if (!load_type) + return AMDGPU_FW_LOAD_DIRECT; + else + return AMDGPU_FW_LOAD_PSP; +#else + return AMDGPU_FW_LOAD_DIRECT; +#endif default: DRM_ERROR("Unknow firmware load type\n"); } |