]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu:flush ttm delayed work before cancel_sync
authorYuBiao Wang <YuBiao.Wang@amd.com>
Tue, 17 Aug 2021 09:36:33 +0000 (17:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Aug 2021 22:23:00 +0000 (18:23 -0400)
commitb21cd2b83a5b132e2ed21fde4f766d48a8906e90
tree97cc5a30fb2fe2e0ce25058b2e21e29b11340720
parentdf26f76c1fe40594e388e64fc75d60edea08d377
drm/amd/amdgpu:flush ttm delayed work before cancel_sync

[Why]
In some cases when we unload driver, warning call trace
will show up in vram_mgr_fini which claims that LRU is not empty, caused
by the ttm bo inside delay deleted queue.

[How]
We should flush delayed work to make sure the delay deleting is done.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c