Commit 5e1fc281 authored by Jingwen Chen's avatar Jingwen Chen Committed by Zheng Zengkai
Browse files

drm/amd/amdgpu: add error handling to amdgpu_virt_read_pf2vf_data



stable inclusion
from stable-5.10.21
commit 4b73f01d5ebde3409df1206727fb2fd20fefe7cf
bugzilla: 50609

--------------------------------

[ Upstream commit 64dcf2f0 ]

[Why]
when vram lost happened in guest, try to write vram can lead to
kernel stuck.

[How]
When the readback data is invalid, don't do write work, directly
reschedule a new work.

Signed-off-by: default avatarJingwen Chen <Jingwen.Chen2@amd.com>
Reviewed-by: default avatarMonk <Liu&lt;monk.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 0f2f3999
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment