summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
diff options
context:
space:
mode:
authorRuijing Dong <ruijing.dong@amd.com>2022-03-02 15:19:22 -0500
committerAlex Deucher <alexander.deucher@amd.com>2022-03-04 13:03:30 -0500
commit11eb648d014eb9e80bf553004551dd6694dfb5a0 (patch)
tree40787b905ef43213e3f76628f5c10dfe7a54761d /drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
parentb6065ebf55ff2fe3dae98e7cedb6ec4aa3c33f91 (diff)
downloadlinux-stable-11eb648d014eb9e80bf553004551dd6694dfb5a0.tar.gz
linux-stable-11eb648d014eb9e80bf553004551dd6694dfb5a0.tar.bz2
linux-stable-11eb648d014eb9e80bf553004551dd6694dfb5a0.zip
drm/amdgpu/vcn: Add vcn firmware log
vcn fwlog is for debugging purpose only, by default, it is disabled. Signed-off-by: Ruijing Dong <ruijing.dong@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
index ae9dfb29621f..530e4deae9c8 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
@@ -218,6 +218,9 @@ static int vcn_v3_0_sw_init(void *handle)
cpu_to_le32(AMDGPU_VCN_MULTI_QUEUE_FLAG) |
cpu_to_le32(AMDGPU_VCN_FW_SHARED_FLAG_0_RB);
fw_shared->sw_ring.is_enabled = cpu_to_le32(DEC_SW_RING_ENABLED);
+
+ if (amdgpu_vcnfw_log)
+ amdgpu_vcn_fwlog_init(&adev->vcn.inst[i]);
}
if (amdgpu_sriov_vf(adev)) {