]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Query vmid pasid mapping through stored info for non HWS
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 25 Sep 2019 21:06:12 +0000 (17:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:03 +0000 (09:11 -0500)
commit48096d9adbe389dd839da0e0bb4e542420ea0503
treeccb24804431d6cd433aa47c75960f99338c8af4e
parentfd77adad94b80cead92e1e2badb1ea0e237b9fa9
drm/amdkfd: Query vmid pasid mapping through stored info for non HWS

Because we record the mapping under non HWS mode in the software,
we can query pasid through vmid using the stored mapping instead of
reading from ATC registers.

This also prepares for the defeatured ATC block in future ASICs.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c