]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu/psp: print out psp v11 ucode hdr in drm debug mode
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 23 Oct 2018 09:49:17 +0000 (17:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:46:49 +0000 (21:46 -0500)
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>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c

index 67a53467063aed764fafb77fe2e149426a14597c..78b4687e29de6211104d8586e018d9ab244aa17f 100644 (file)
@@ -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: