summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
diff options
context:
space:
mode:
authorshaoyunl <Shaoyun.Liu@amd.com>2018-07-11 22:32:49 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2018-07-11 22:32:49 -0400
commitb97dfa27ef3ad3eddd2cb97a3b6a140d7037827a (patch)
treea8df9ac8dfc2d082435a6252792f01760412ebb5 /drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
parent101fee63cbb0a3df9e54aaafbfad0ab5821a34e6 (diff)
downloadtalos-obmc-linux-b97dfa27ef3ad3eddd2cb97a3b6a140d7037827a.tar.gz
talos-obmc-linux-b97dfa27ef3ad3eddd2cb97a3b6a140d7037827a.zip
drm/amdgpu: save vm fault information for amdkfd
amdgpu save the vm fault related information for KFD usage and keep the copy until KFD read it. Signed-off-by: shaoyun liu <shaoyun.liu@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
index 6cb4948233cb..bb5a47a45790 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
@@ -105,6 +105,8 @@ struct amdgpu_gmc {
/* protects concurrent invalidation */
spinlock_t invalidate_lock;
bool translate_further;
+ struct kfd_vm_fault_info *vm_fault_info;
+ atomic_t vm_fault_info_updated;
const struct amdgpu_gmc_funcs *gmc_funcs;
};
OpenPOWER on IntegriCloud