OSDN Git Service

drm/amdgpu: export function to flush TLB via pasid
authorAlex Sierra <alex.sierra@amd.com>
Fri, 20 Dec 2019 05:40:19 +0000 (23:40 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 18:34:27 +0000 (13:34 -0500)
commitea930000a6dcd161346c957545f7e67b3f77ec06
treeea8fab2ff16ba75dee40a4fb49ed5b9942a5dec6
parent4f01f1e58e073d35d49ca15460d00671c6244323
drm/amdgpu: export function to flush TLB via pasid

This can be used directly from amdgpu and amdkfd to invalidate
TLB through pasid.
It supports gmc v7, v8, v9 and v10.

Signed-off-by: Alex Sierra <alex.sierra@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.h
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c