]> 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>
Fri, 14 Jun 2024 20:15:59 +0000 (16:15 -0400)
commit9c33e5fd4fb63b793d9a92bf35d190630d9bada4
treeeface12edd133a21db9e1be01895143657e5c026
parentba531117a87d55f607f865b89eb83665e8e99b83
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