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)
commitee73164a0d8d2fd98f666a5dd35da1d9a19ec009
tree9ada31e6635856fb950465546a6f1dee44e25f63
parentad2fed9ad5907c35e132e43420a0e47ab22350f0
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