]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc020d1ad141232257431eefb5d4682dd5b316c6
tree9ada31e6635856fb950465546a6f1dee44e25f63
parent9c126fc7744f89462d3dacfe947f3792a7fb383d
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