drm/amdgpu:RUNTIME flag should clr later
authorMonk Liu <Monk.Liu@amd.com>
Thu, 26 Jan 2017 07:31:15 +0000 (15:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:12 +0000 (23:53 -0400)
this flag will get cleared by request gpu access

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c

index 5f156d37a9f06aee4ccdb2a610af1039339bdc5a..98cbcd9217e2d2a24f587577536391735f920b8a 100644 (file)
@@ -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);
 
        /* wait until RCV_MSG become 3 */
-       if (!xgpu_vi_poll_msg(adev, IDH_FLR_NOTIFICATION_CMPL))
-               adev->virt.caps &= ~AMDGPU_SRIOV_CAPS_RUNTIME;
-       else {
+       if (xgpu_vi_poll_msg(adev, IDH_FLR_NOTIFICATION_CMPL)) {
                pr_err("failed to recieve FLR_CMPL\n");
                return;
        }