drm/amdgpu: change gfx8 ib test to use WB
authorShirish S <shirish.s@amd.com>
Fri, 8 Jun 2018 04:45:42 +0000 (10:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:20:40 +0000 (12:20 -0500)
commit8f4039fefd94a0ca2c61507975f6d47f9fc9943a
tree843b494aadc6845762a023590816e0afc4b81631
parent11528640c77891363bc7dea749ced64607aa1b22
drm/amdgpu: change gfx8 ib test to use WB

This patch is extends the usage of WB in
gfx8's ib test which was originally
implemented in the below upstream patch
"ed9324a drm/amdgpu: change gfx9 ib test to use WB"

For reference below are the reasons for switching
to WB:

1)Because when doing IB test we don't want to involve KIQ health
status affect, and since SCRATCH register access is go through
KIQ that way GFX IB test would failed due to KIQ fail.

2)acccessing SCRATCH register cost much more time than WB method
because SCRATCH register access runs through KIQ which at least could
begin after GPU world switch back to current Guest VF

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c