]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb327e4dbb70c29c253094546eea468b28e71f986
tree7edb624aca6608280f8bb4271f7ffe1844b41f54
parent161fd08a790becd6fe384b3d3fa72ac99ea82028
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