diff options
| author | Hawking Zhang <Hawking.Zhang@amd.com> | 2018-10-23 05:55:38 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-20 22:46:49 -0400 |
| commit | 434dbb2a4abc5ed6484c9e17f535c27d941aa2fc (patch) | |
| tree | d0837555dca67631646eb3ea6f3bf55b6e59c412 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | 37e919180c378c1fa3aca55c4052c650963f0bd1 (diff) | |
drm/amdgpu/psp: support print out psp firmware header v1_1 info
Support version 1.1.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <Le.Ma@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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index 04d007db06f7..ee54d9e0ce1f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |||
| @@ -245,6 +245,16 @@ void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr) | |||
| 245 | le32_to_cpu(psp_hdr->sos_offset_bytes)); | 245 | le32_to_cpu(psp_hdr->sos_offset_bytes)); |
| 246 | DRM_DEBUG("sos_size_bytes: %u\n", | 246 | DRM_DEBUG("sos_size_bytes: %u\n", |
| 247 | le32_to_cpu(psp_hdr->sos_size_bytes)); | 247 | le32_to_cpu(psp_hdr->sos_size_bytes)); |
| 248 | if (version_minor == 1) { | ||
| 249 | const struct psp_firmware_header_v1_1 *psp_hdr_v1_1 = | ||
| 250 | container_of(psp_hdr, struct psp_firmware_header_v1_1, v1_0); | ||
| 251 | DRM_DEBUG("toc_header_version: %u\n", | ||
| 252 | le32_to_cpu(psp_hdr_v1_1->toc_header_version)); | ||
| 253 | DRM_DEBUG("toc_offset_bytes: %u\n", | ||
| 254 | le32_to_cpu(psp_hdr_v1_1->toc_offset_bytes)); | ||
| 255 | DRM_DEBUG("toc_size_bytes: %u\n", | ||
| 256 | le32_to_cpu(psp_hdr_v1_1->toc_size_bytes)); | ||
| 257 | } | ||
| 248 | } else { | 258 | } else { |
| 249 | DRM_ERROR("Unknown PSP ucode version: %u.%u\n", | 259 | DRM_ERROR("Unknown PSP ucode version: %u.%u\n", |
| 250 | version_major, version_minor); | 260 | version_major, version_minor); |
