Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/vcn: reset fw_shared under SRIOV

- 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>

authored by

Bokun Zhang and committed by
Alex Deucher
3676f37a b7a287fa

+2
+2
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
··· 957 957 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { 958 958 vcn_inst = GET_INST(VCN, i); 959 959 960 + vcn_v4_0_3_fw_shared_init(adev, vcn_inst); 961 + 960 962 memset(&header, 0, sizeof(struct mmsch_v4_0_3_init_header)); 961 963 header.version = MMSCH_VERSION; 962 964 header.total_size = sizeof(struct mmsch_v4_0_3_init_header) >> 2;