Skip to content
Commit 3f218ed3 authored by Jingwen Chen's avatar Jingwen Chen Committed by Greg Kroah-Hartman
Browse files

drm/amd/amdgpu: add error handling to amdgpu_virt_read_pf2vf_data

[ 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>
parent aca95bfc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment