drm/amdgpu: Implement get_vmid_pasid_mapping for gfx11
authorGraham Sider <Graham.Sider@amd.com>
Thu, 21 Apr 2022 14:32:02 +0000 (10:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 May 2022 21:53:11 +0000 (17:53 -0400)
commit3cc69021e5d4e4fe5322d425f4abf8128f0599b7
tree83e3742f26f0dde22016c5e74aad04ca4fae87bf
parent3055e5d155b246dd87766655a8a89af4ba8369af
drm/amdgpu: Implement get_vmid_pasid_mapping for gfx11

Implement gmc_v11_0_get_vmid_pasid_mapping_info to fix
gmc_v11_0_flush_gpu_tlb_pasid logic. Change from gfx10 to use
IH_VMID_*_LUT registers for VMID -> PASID mapping.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c