drm/amdgpu/virt: don't check VALID bit for FLR completion message
authorPixel Ding <Pixel.Ding@amd.com>
Thu, 23 Feb 2017 03:10:33 +0000 (11:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:40 +0000 (17:32 -0400)
commit8758df620d02c9b41f57f664ffef0f90fe5d882a
tree9ada31e6635856fb950465546a6f1dee44e25f63
parentdf766752b3b4f29db1d834a9a4c65ccd6458c998
drm/amdgpu/virt: don't check VALID bit for FLR completion message

The interrupt after FLR is missed sometimes due to hardware reason, so
guest driver get the notification of FLR completion via polling
message. Then host doesn't write VALID bit to avoid sending interrupt,
otherwise the completion will be handled twice.

So there's a valid message without VALID bit for FLR completion,
driver should handle it without checking.

Signed-off-by: Pixel Ding <Pixel.Ding@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