]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: fix locking scope when flushing tlb
authorYunxiang Li <Yunxiang.Li@amd.com>
Thu, 23 May 2024 11:48:19 +0000 (07:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 18:17:25 +0000 (14:17 -0400)
commit84801d4f1e4fbd2c44dddecaec9099bdff100a42
treeed3bf4e353e5f6fc7a747a357cfc6be2c125dddb
parente2654a4453ba3dac9baacf9980d841d84e15b869
drm/amdgpu: fix locking scope when flushing tlb

Which method is used to flush tlb does not depend on whether a reset is
in progress or not. We should skip flush altogether if the GPU will get
reset. So put both path under reset_domain read lock.

Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
CC: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c