diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index 09f384ce8cd7..7081ad9f93e3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |||
@@ -77,6 +77,14 @@ void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr) | |||
77 | container_of(hdr, struct smc_firmware_header_v1_0, header); | 77 | container_of(hdr, struct smc_firmware_header_v1_0, header); |
78 | 78 | ||
79 | DRM_DEBUG("ucode_start_addr: %u\n", le32_to_cpu(smc_hdr->ucode_start_addr)); | 79 | DRM_DEBUG("ucode_start_addr: %u\n", le32_to_cpu(smc_hdr->ucode_start_addr)); |
80 | } else if (version_major == 2) { | ||
81 | const struct smc_firmware_header_v1_0 *v1_hdr = | ||
82 | container_of(hdr, struct smc_firmware_header_v1_0, header); | ||
83 | const struct smc_firmware_header_v2_0 *v2_hdr = | ||
84 | container_of(v1_hdr, struct smc_firmware_header_v2_0, v1_0); | ||
85 | |||
86 | DRM_INFO("ppt_offset_bytes: %u\n", le32_to_cpu(v2_hdr->ppt_offset_bytes)); | ||
87 | DRM_INFO("ppt_size_bytes: %u\n", le32_to_cpu(v2_hdr->ppt_size_bytes)); | ||
80 | } else { | 88 | } else { |
81 | DRM_ERROR("Unknown SMC ucode version: %u.%u\n", version_major, version_minor); | 89 | DRM_ERROR("Unknown SMC ucode version: %u.%u\n", version_major, version_minor); |
82 | } | 90 | } |