Am 05.09.2018 um 17:31 schrieb shaoyunl: > From: Shaoyun Liu <Shaoyun.Liu at amd.com> > > KFD need to get hive id from amdgpu to build up the XGMI topology > > Change-Id: If68ea8fd7fb17b7ffb581f45d8406925578d96b8 > Signed-off-by: Shaoyun Liu <Shaoyun.Liu at amd.com> > Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com> Acked-by: Christian König <christian.koenig at amd.com> > --- > drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h > index 31c52c1..cb4deb2 100644 > --- a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h > +++ b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h > @@ -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); > + > }; > > /**