From: Monk Liu Date: Thu, 26 Jan 2017 07:31:15 +0000 (+0800) Subject: drm/amdgpu:RUNTIME flag should clr later X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2641e38b0269be73c8d495eba3df1c7f2a3c2224;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu:RUNTIME flag should clr later this flag will get cleared by request gpu access Signed-off-by: Monk Liu Reviewed-by: Xiangliang Yu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c index 5f156d37a9f0..98cbcd9217e2 100644 --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c @@ -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; }