drm/amdgpu: avoid reading vf2pf info size from FB
authorZhigang Luo <Zhigang.Luo@amd.com>
Tue, 16 Apr 2024 20:35:14 +0000 (16:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 19:40:32 +0000 (15:40 -0400)
commit3bcc0ee14768d886cedff65da72d83d375a31a56
tree6e6f0fb95ea6909ec8245761c323ceae37e1d01b
parent45ebfaa44c2b5471e5c2bcb2d80350469808b12b
drm/amdgpu: avoid reading vf2pf info size from FB

VF can't access FB when host is doing mode1 reset. Using sizeof to get
vf2pf info size, instead of reading it from vf2pf header stored in FB.

Signed-off-by: Zhigang Luo <Zhigang.Luo@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c