Report domain with HsaNodeProperties

PCI domain has moved to 32-bits to accommodate virtualization,
so a 32-bit integer is exposed for domain to reflect this change.

Change-Id: I0d767acadcdc8e4277db203b5865dd67dd001cef
Signed-off-by: Ori Messinger <ori.messinger@amd.com>


[ROCm/ROCR-Runtime commit: f2173254e4]
Cette révision appartient à :
Ori Messinger
2019-08-22 11:21:30 -04:00
Parent c9cc529a4f
révision 9eb9ce78fa
2 fichiers modifiés avec 4 ajouts et 1 suppressions
+2 -1
Voir le fichier
@@ -302,7 +302,8 @@ typedef struct _HsaNodeProperties
HSAuint32 NumSdmaEngines; // number of PCIe optimized SDMA engines
HSAuint32 NumSdmaXgmiEngines;// number of XGMI optimized SDMA engines
HSAuint32 NumGws; // number of GWS barriers
HSAuint8 Reserved[32];
HSAuint32 Domain; // PCI domain of the GPU
HSAuint8 Reserved[28];
} HsaNodeProperties;
+2
Voir le fichier
@@ -1010,6 +1010,8 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
props->DeviceId = (uint32_t)prop_val;
else if (strcmp(prop_name, "location_id") == 0)
props->LocationId = (uint32_t)prop_val;
else if (strcmp(prop_name, "domain") == 0)
props->Domain = (uint32_t)prop_val;
else if (strcmp(prop_name, "max_engine_clk_fcompute") == 0)
props->MaxEngineClockMhzFCompute = (uint32_t)prop_val;
else if (strcmp(prop_name, "max_engine_clk_ccompute") == 0)