Update Fabric Latency to Edge Properties (2)

- Only initialize vertexes when queried.
- Return also bandwidth when calling PRELIM_DRM_I915_QUERY_FABRIC_INFO.

Related-To: LOCI-3464

Signed-off-by: Jaime A Arteaga Molina <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime A Arteaga Molina
2022-10-25 07:21:48 +00:00
committed by Compute-Runtime-Automation
parent 638aba45a0
commit 5446b9ca0d
16 changed files with 251 additions and 48 deletions

View File

@@ -224,7 +224,8 @@ bool FabricSubDeviceIaf::getEdgeProperty(FabricSubDeviceIaf *pNeighbourInterface
edgeProperty.latency = std::numeric_limits<uint32_t>::max();
edgeProperty.latencyUnit = ZE_LATENCY_UNIT_UNKNOWN;
if (pDrm->getIoctlHelper()->getFabricLatency(neighbourFabricId, edgeProperty.latency) == true) {
uint32_t bandwidth = 0;
if (pDrm->getIoctlHelper()->getFabricLatency(neighbourFabricId, edgeProperty.latency, bandwidth) == true) {
edgeProperty.latencyUnit = ZE_LATENCY_UNIT_HOP;
}