drm/amdgpu/vcn: reset fw_shared under SRIOV
[ Upstream commit3676f37a88] - 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:928cd772e1("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
26862f0223
commit
753c018fce
@@ -896,6 +896,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;
|
||||
|
||||
Reference in New Issue
Block a user