Skip to contentSkip to conversation

drm/amd/include: Add get_hive_id interface in kfd2kgd

PATCH In review shaoyunl 2 participants 2 messages Sep 5, 2018 – Sep 6, 2018 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

shaoyunl

author
#0 lore raw

PATCH 9/13 drm/amd/include: Add get_hive_id interface in kfd2kgd

From: Shaoyun Liu <[email protected]>

KFD need to get hive id from amdgpu to build up the XGMI topology

Change-Id If68ea8fd7fb17b7ffb581f45d8406925578d96b8
---
 drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/include/kgd_kfd_interface.h +5 -0
index 31c52c1..cb4deb2 100644
@@ -313,6 +313,8 @@ struct tile_config {
  * @set_compute_idle: Indicates that compute is idle on a device. This
  * can be used to change power profiles depending on compute activity.
  *
+ * @get_hive_id: Returns hive id of current  device,  0 if xgmi is not enabled
+ *
  * This structure contains function pointers to services that the kgd driver
  * provides to amdkfd driver.
  *
@@ -438,6 +440,9 @@ struct kfd2kgd_calls {
 	void (*gpu_recover)(struct kgd_dev *kgd);
 
 	void (*set_compute_idle)(struct kgd_dev *kgd, bool idle);
+
+	uint64_t (*get_hive_id)(struct kgd_dev *kgd);
+
 };
 
 /**
Signature · 6 lines
2.7.4

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

A message that is not in the archive (sent off-list or not yet received): 1536161490-4529-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 05.09.2018 um 17:31 schrieb shaoyunl:

Quoted 7 lines

From: Shaoyun Liu <[email protected]>

KFD need to get hive id from amdgpu to build up the XGMI topology

Change-Id If68ea8fd7fb17b7ffb581f45d8406925578d96b8
Quoted 18 lines
---
  drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 5 +++++
  1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/include/kgd_kfd_interface.h +2 -0
index 31c52c1..cb4deb2 100644
@@ -313,6 +313,8 @@ struct tile_config {
   * @set_compute_idle: Indicates that compute is idle on a device. This
   * can be used to change power profiles depending on compute activity.
   *
+ * @get_hive_id: Returns hive id of current  device,  0 if xgmi is not enabled
+ *
   * This structure contains function pointers to services that the kgd driver
   * provides to amdkfd driver.
   *

drivers/gpu/drm/amd/include/kgd_kfd_interface.h struct kfd2kgd_calls { · line 448

Quoted 9 lines
drivers/gpu/drm/amd/include/kgd_kfd_interface.h +3 -0
@@ -438,6 +440,9 @@ struct kfd2kgd_calls {
  	void (*gpu_recover)(struct kgd_dev *kgd);
 
  	void (*set_compute_idle)(struct kgd_dev *kgd, bool idle);
+
+	uint64_t (*get_hive_id)(struct kgd_dev *kgd);
+
  };
 
  /**

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