drm/amdgpu: add Raven chip id case for ucode
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 4 May 2017 18:54:46 +0000 (14:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:54 +0000 (17:40 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

index 38e3ba6e646701470d92c01f3b16517c8045c1b5..cd6d3d091152e740e0a0b493e080a00938cf8f41 100644 (file)
@@ -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");
        }