drm/amdgpu:add VCN support in PSP driver
authorLikun Gao <Likun.Gao@amd.com>
Thu, 9 Aug 2018 16:31:41 +0000 (00:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Aug 2018 22:19:27 +0000 (17:19 -0500)
Add VCN support in PSP driver

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c

index 0ff136d02d9b36af1b9a88693c25e95c5e906d03..02be34e72ed906d1e2caea46e31976f4a4a75ea3 100644 (file)
@@ -88,6 +88,9 @@ psp_v10_0_get_fw_type(struct amdgpu_firmware_info *ucode, enum psp_gfx_fw_type *
        case AMDGPU_UCODE_ID_VCE:
                *type = GFX_FW_TYPE_VCE;
                break;
+       case AMDGPU_UCODE_ID_VCN:
+               *type = GFX_FW_TYPE_VCN;
+               break;
        case AMDGPU_UCODE_ID_MAXIMUM:
        default:
                return -EINVAL;