- The previous patch only considered the case for baremetal
  and not applicable for SRIOV code path. We also need to
  init fw_share for SRIOV VF

Signed-off-by: Bokun Zhang <bokun.zh...@amd.com>
Change-Id: If26a377a2fe8f2aa09bfa21fc54bf26e80fd564c
---
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c 
b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
index eeade7366e82..ecdc027f8220 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
@@ -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;
-- 
2.34.1

Reply via email to