drm/amdgpu: move vram recover into sriov full access
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
[AMD Official Use Only - Internal Distribution Only]
Reviewed by: Monk.Liu <[email protected]>
------------------------------------------
Monk Liu | Cloud-GPU Core team
------------------------------------------
-----Original Message-----
From: Horace Chen <[email protected]>
Sent: Wednesday, March 24, 2021 12:18 PM
To: [email protected]
Cc: Grodzovsky, Andrey <[email protected]>; Quan, Evan <[email protected]>; Chen, Horace <[email protected]>; Tuikov, Luben <[email protected]>; Koenig, Christian <[email protected]>; Deucher, Alexander <[email protected]>; Xiao, Jack <[email protected]>; Zhang, Hawking <[email protected]>; Liu, Monk <[email protected]>; Xu, Feifei <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Xiaojie Yuan <[email protected]>
Subject: [PATCH] drm/amdgpu: move vram recover into sriov full access
[what]
currently driver recover vram after full access, which may hit a corner case that meanwhile another whole gpu reset may be triggered by another VF, which will cause vram recover fail then fail the whole device reset.
[how]
move the recover vram into full access. So another bad VF will not disturb the recover sequence for this vf.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -4103,11 +4103,11 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,amdgpu_amdkfd_post_reset (adev); error: -amdgpu_virt_release_full_gpu (adev, true);if (!r && adev->virt.gim_feature &AMDGIM_FEATURE_GIM_FLR_VRAMLOST ) {amdgpu_inc_vram_lost (adev); r =amdgpu_device_recover_vram (adev); } +amdgpu_virt_release_full_gpu (adev, true);return r; }
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx