drm/amdgpu: fix and cleanup gmc_v9_0_flush_gpu_tlb_pasid
authorChristian König <christian.koenig@amd.com>
Mon, 4 Sep 2023 11:03:23 +0000 (13:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 20:55:09 +0000 (16:55 -0400)
commite7b90e99fa8fd65bc37628c0ba8a7363e8757f3e
treebcab8d8406b53c4acce5428973968c54deb3161b
parent0c525aa406490a779541025df83890fc54e78094
drm/amdgpu: fix and cleanup gmc_v9_0_flush_gpu_tlb_pasid

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

The same PASID can be used by more than one VMID, invalidate each of them.

Move the KIQ and all the workaround handling into common GMC code.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c