Commit 2641e38b authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu:RUNTIME flag should clr later

this flag will get cleared by request gpu access
Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarXiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 480da262
...@@ -505,9 +505,7 @@ static void xgpu_vi_mailbox_flr_work(struct work_struct *work) ...@@ -505,9 +505,7 @@ static void xgpu_vi_mailbox_flr_work(struct work_struct *work)
struct amdgpu_device *adev = container_of(virt, struct amdgpu_device, virt); struct amdgpu_device *adev = container_of(virt, struct amdgpu_device, virt);
/* wait until RCV_MSG become 3 */ /* wait until RCV_MSG become 3 */
if (!xgpu_vi_poll_msg(adev, IDH_FLR_NOTIFICATION_CMPL)) if (xgpu_vi_poll_msg(adev, IDH_FLR_NOTIFICATION_CMPL)) {
adev->virt.caps &= ~AMDGPU_SRIOV_CAPS_RUNTIME;
else {
pr_err("failed to recieve FLR_CMPL\n"); pr_err("failed to recieve FLR_CMPL\n");
return; return;
} }
......
Markdown is supported
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