You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature(sysman): Aggregate Pf and Vf Engine Stats for XeKmd
For XeKmd, if VFs are enabled, the engine Stats for the engine
handle has the aggregated value from the pf and the vfs.
Related-To: NEO-16494
Signed-off-by: Pratik Bari <pratik.bari@intel.com>
for (uint32_t vfId = 1; vfId <= numberOfVfs; vfId++) {
203
+
uint64_t vfActiveTicksConfig = activeTicksConfig;
204
+
uint64_t vfTotalTicksConfig = totalTicksConfig;
205
+
206
+
auto vfRet = pPmuInterface->getPmuConfigsForVf(sysmanDeviceDir, vfId,
207
+
vfActiveTicksConfig, vfTotalTicksConfig);
208
+
if (vfRet < 0) {
209
+
result = ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
210
+
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr, "Error@ %s(): Failed to get configs for VF and returning error:0x%x\n", __FUNCTION__, result);
auto result = pSysFsAccess->read(pathForNumberOfVfs.data(), numberOfVfs);
226
+
if (result != ZE_RESULT_SUCCESS) {
227
+
numberOfVfs = 0;
228
+
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr, "Error@ %s(): Failed to read Number Of Vfs with error 0x%x \n", __FUNCTION__, result);
0 commit comments