]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: workaround for TLB seq race
authorChristian König <christian.koenig@amd.com>
Wed, 2 Nov 2022 13:55:13 +0000 (14:55 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Nov 2022 22:58:17 +0000 (17:58 -0500)
commitf40bed48467ce35e6a9b0aaf2011b4a66ef2d428
tree16371094df3c5af8285e0fcf3f67f5b8232d47d7
parent2976ed43bcefba7e667aab8d440c9109207c81e3
drm/amdgpu: workaround for TLB seq race

It can happen that we query the sequence value before the callback
had a chance to run.

Workaround that by grabbing the fence lock and releasing it again.
Should be replaced by hw handling soon.

Signed-off-by: Christian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org # 5.19+
Fixes: f9ec039932c0a ("drm/amdgpu: rework TLB flushing")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2113
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Philip Yang <Philip.Yang@amd.com>
Tested-by: Stefan Springer <stefanspr94@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h