]> www.infradead.org Git - nvme.git/commit
drm/amdgpu: fix and cleanup gmc_v7_0_flush_gpu_tlb_pasid
authorChristian König <christian.koenig@amd.com>
Fri, 1 Sep 2023 12:44:38 +0000 (14:44 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 20:55:09 +0000 (16:55 -0400)
commitfb4c52db69746ee0429cedee562ce861f5392e73
tree32205b1e88cc3b8da50108ba5b7e24571b208b89
parenta54db42ff3a05e9eb1081093bfd91be56c94f6d5
drm/amdgpu: fix and cleanup gmc_v7_0_flush_gpu_tlb_pasid

Testing for reset is pointless since the reset can start right after the
test. Grab the reset semaphore instead.

The same PASID can be used by more than once VMID, build a mask of VMIDs
to invalidate instead of just restting the first one.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Shashank Sharma <shashank.sharma@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c