OSDN Git Service

drm/amdgpu: add fwlog support on vcn_v4_0_3
authorJames Zhu <James.Zhu@amd.com>
Mon, 12 Dec 2022 17:31:23 +0000 (12:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:51:24 +0000 (09:51 -0400)
Add fwlog support on vcn_v4_0_3.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c

index 8db50a5..40de285 100644 (file)
@@ -118,6 +118,9 @@ static int vcn_v4_0_3_sw_init(void *handle)
                fw_shared = adev->vcn.inst[i].fw_shared.cpu_addr;
                fw_shared->present_flag_0 = 0;
                fw_shared->sq.is_enabled = cpu_to_le32(true);
+
+               if (amdgpu_vcnfw_log)
+                       amdgpu_vcn_fwlog_init(&adev->vcn.inst[i]);
        }
 
        if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)