summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2018-10-23 11:49:17 +0200
committerAlex Deucher <alexander.deucher@amd.com>2019-06-21 04:46:49 +0200
commit37e919180c378c1fa3aca55c4052c650963f0bd1 (patch)
treee78660b475bf84d710e0a6795022396027644c06 /drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
parentdrm/amdgpu: add helper function to print psp hdr (diff)
downloadlinux-37e919180c378c1fa3aca55c4052c650963f0bd1.tar.xz
linux-37e919180c378c1fa3aca55c4052c650963f0bd1.zip
drm/amdgpu/psp: print out psp v11 ucode hdr in drm debug mode
Print the psp header data if requested. 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/psp_v11_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/psp_v11_0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
index 67a53467063a..78b4687e29de 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
@@ -83,6 +83,7 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)
goto out;
sos_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data;
+ amdgpu_ucode_print_psp_hdr(&sos_hdr->header);
switch (sos_hdr->header.header_version_major) {
case 1: