Skip to contentSkip to conversation

drm/amdkfd: Add gpu reset interface and place holder

PATCH In review Shaoyun Liu 1 participant 1 message Jan 26, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 drm/amdkfd: Add gpu reset interface and place holder

Change-Id If0babeaeb5237da6ce4d5c400e7df649cba5a8ac
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 10 ++++++++++
 drivers/gpu/drm/amd/amdkfd/kfd_module.c |  2 ++
 2 files changed, 12 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +10 -0
index 73f2b9f..5c85d3a 100644
@@ -656,6 +656,16 @@ void kgd2kfd_device_exit(struct kfd_dev *kfd)
 	kfree(kfd);
 }
 
+void kgd2kfd_pre_reset(struct kfd_dev *kfd)
+{
+	return;
+}
+
+void kgd2kfd_post_reset(struct kfd_dev *kfd)
+{
+	return;
+}
+
 void kgd2kfd_suspend(struct kfd_dev *kfd)
 {
 	if (!kfd->init_complete)
drivers/gpu/drm/amd/amdkfd/kfd_module.c +2 -0
index 4eddf1e..2d284ef 100644
@@ -47,6 +47,8 @@
 	.resume_mm	= kgd2kfd_resume_mm,
 	.schedule_evict_and_restore_process =
 			  kgd2kfd_schedule_evict_and_restore_process,
+	.pre_reset	= kgd2kfd_pre_reset,
+	.post_reset	= kgd2kfd_post_reset,
 };
 
 int sched_policy = KFD_SCHED_POLICY_HWS;
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx