Skip to content

Commit 13b8929

Browse files
Retrieve Sysman engine property onSubdevice/subdeviceId field
Change-Id: Ifc26cbe1d6398d0c08a0e52c39936c517efca43e Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
1 parent 2a18177 commit 13b8929

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

level_zero/tools/source/sysman/engine/linux/os_engine_imp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ze_result_t LinuxEngineImp::getActivity(zes_engine_stats_t *pStats) {
6060

6161
ze_result_t LinuxEngineImp::getProperties(zes_engine_properties_t &properties) {
6262
properties.type = engineGroup;
63-
properties.onSubdevice = false;
63+
properties.onSubdevice = 0;
6464
properties.subdeviceId = 0;
6565
return ZE_RESULT_SUCCESS;
6666
}
@@ -73,6 +73,8 @@ void LinuxEngineImp::init() {
7373

7474
LinuxEngineImp::LinuxEngineImp(OsSysman *pOsSysman, zes_engine_group_t type, uint32_t engineInstance) : engineGroup(type), engineInstance(engineInstance) {
7575
LinuxSysmanImp *pLinuxSysmanImp = static_cast<LinuxSysmanImp *>(pOsSysman);
76+
pDrm = &pLinuxSysmanImp->getDrm();
77+
pDevice = pLinuxSysmanImp->getDeviceHandle();
7678
pPmuInterface = pLinuxSysmanImp->getPmuInterface();
7779
init();
7880
}

level_zero/tools/source/sysman/engine/linux/os_engine_imp.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "sysman/engine/os_engine.h"
1313
namespace L0 {
1414
class PmuInterface;
15+
struct Device;
1516
class LinuxEngineImp : public OsEngine, NEO::NonCopyableOrMovableClass {
1617
public:
1718
ze_result_t getActivity(zes_engine_stats_t *pStats) override;
@@ -29,6 +30,8 @@ class LinuxEngineImp : public OsEngine, NEO::NonCopyableOrMovableClass {
2930
zes_engine_group_t engineGroup = ZES_ENGINE_GROUP_ALL;
3031
uint32_t engineInstance = 0;
3132
PmuInterface *pPmuInterface = nullptr;
33+
NEO::Drm *pDrm = nullptr;
34+
Device *pDevice = nullptr;
3235

3336
private:
3437
void init();

0 commit comments

Comments
 (0)