aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2199-drm-amdgpu-psp-support-print-out-psp-firmware-header.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2199-drm-amdgpu-psp-support-print-out-psp-firmware-header.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2199-drm-amdgpu-psp-support-print-out-psp-firmware-header.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2199-drm-amdgpu-psp-support-print-out-psp-firmware-header.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2199-drm-amdgpu-psp-support-print-out-psp-firmware-header.patch
new file mode 100644
index 00000000..88f49c9e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2199-drm-amdgpu-psp-support-print-out-psp-firmware-header.patch
@@ -0,0 +1,37 @@
+From 82f69e16b93cdb3608fa1f64bbec54aba60c7361 Mon Sep 17 00:00:00 2001
+From: Hawking Zhang <Hawking.Zhang@amd.com>
+Date: Tue, 23 Oct 2018 17:55:38 +0800
+Subject: [PATCH 2199/2940] drm/amdgpu/psp: support print out psp firmware
+ header v1_1 info
+
+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>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+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)
+ le32_to_cpu(psp_hdr->sos_offset_bytes));
+ DRM_DEBUG("sos_size_bytes: %u\n",
+ le32_to_cpu(psp_hdr->sos_size_bytes));
++ if (version_minor == 1) {
++ const struct psp_firmware_header_v1_1 *psp_hdr_v1_1 =
++ container_of(psp_hdr, struct psp_firmware_header_v1_1, v1_0);
++ DRM_DEBUG("toc_header_version: %u\n",
++ le32_to_cpu(psp_hdr_v1_1->toc_header_version));
++ DRM_DEBUG("toc_offset_bytes: %u\n",
++ le32_to_cpu(psp_hdr_v1_1->toc_offset_bytes));
++ DRM_DEBUG("toc_size_bytes: %u\n",
++ le32_to_cpu(psp_hdr_v1_1->toc_size_bytes));
++ }
+ } else {
+ DRM_ERROR("Unknown PSP ucode version: %u.%u\n",
+ version_major, version_minor);
+--
+2.17.1
+