drm/amd/include: Add get_hive_id interface in kfd2kgd
Subsystems (3)
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
Signed-off-by Shaoyun Liu <[email protected]>
Reviewed-by Felix Kuehling <[email protected]>
--- 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
@@ -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
Christian König
Acked-byAm 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 If68ea8fd7fb17b7ffb581f45d8406925578d96b8Signed-off-by Shaoyun Liu <[email protected]>Reviewed-by Felix Kuehling <[email protected]>
Acked-by Christian König <[email protected]>
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@@ -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