drm/amdgpu: move WB_FREE to correct place
authorMonk Liu <Monk.Liu@amd.com>
Wed, 24 Jan 2018 04:20:32 +0000 (12:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Feb 2018 19:18:04 +0000 (14:18 -0500)
commitc12aba3acde52e2ae7807e4e263dfba34fcdbb0c
tree7edb624aca6608280f8bb4271f7ffe1844b41f54
parented9324afc0ec1ebe5dcef632eee6381f6ebf8fd5
drm/amdgpu: move WB_FREE to correct place

WB_FREE should be put after all engines's hw_fini
done, otherwise the invalid wptr/rptr_addr would still
be used by engines which trigger abnormal bugs.

This fixes couple DMAR reading error in host side for SRIOV
after guest kmd is unloaded.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c