]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/vcn: reset fw_shared under SRIOV
authorBokun Zhang <bokun.zhang@amd.com>
Wed, 11 Dec 2024 21:42:56 +0000 (15:42 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2024 17:14:16 +0000 (12:14 -0500)
- The previous patch only considered the case for baremetal
  and is not applicable for SRIOV code path. We also need to
  init fw_share for SRIOV VF

Fixes: 928cd772e18f ("drm/amdgpu/vcn: reset fw_shared when VCPU buffers corrupted on vcn v4.0.3")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Bokun Zhang <bokun.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c

index eeade7366e82996f06926e5da201d50ad2ca98a6..ecdc027f822037ec150aa1d9d57841b67b9fc951 100644 (file)
@@ -957,6 +957,8 @@ static int vcn_v4_0_3_start_sriov(struct amdgpu_device *adev)
        for (i = 0; i < adev->vcn.num_vcn_inst; i++) {
                vcn_inst = GET_INST(VCN, i);
 
+               vcn_v4_0_3_fw_shared_init(adev, vcn_inst);
+
                memset(&header, 0, sizeof(struct mmsch_v4_0_3_init_header));
                header.version = MMSCH_VERSION;
                header.total_size = sizeof(struct mmsch_v4_0_3_init_header) >> 2;