summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-01-26 15:31:15 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:53:12 -0400
commit2641e38b0269be73c8d495eba3df1c7f2a3c2224 (patch)
tree67948ba3e943725964f54a3f7c63d9931ae47a71 /drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
parent480da2626028fb789aaddfe197daac1ab4f1e822 (diff)
downloadop-kernel-dev-2641e38b0269be73c8d495eba3df1c7f2a3c2224.zip
op-kernel-dev-2641e38b0269be73c8d495eba3df1c7f2a3c2224.tar.gz
drm/amdgpu:RUNTIME flag should clr later
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
index 5f156d3..98cbcd9 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;
}
OpenPOWER on IntegriCloud