feature: Add XE driver support for sysman processGetStateAPI

This change adds support to get information about process via
fdInfo

Related-To: LOCI-4401

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2023-08-01 15:14:18 +00:00
committed by Compute-Runtime-Automation
parent 09af97d623
commit 68e1f81a83
9 changed files with 287 additions and 20 deletions

View File

@@ -88,6 +88,7 @@ class SysmanKmdInterface {
virtual int64_t getEngineActivityFd(zes_engine_group_t engineGroup, uint32_t engineInstance, uint32_t subDeviceId, PmuInterface *const &pmuInterface) = 0;
virtual std::string getHwmonName(uint32_t subDeviceId, bool isSubdevice) const = 0;
virtual bool isStandbyModeControlAvailable() const = 0;
virtual bool clientInfoAvailableInFdInfo() = 0;
};
class SysmanKmdInterfaceI915 : public SysmanKmdInterface {
@@ -101,6 +102,7 @@ class SysmanKmdInterfaceI915 : public SysmanKmdInterface {
int64_t getEngineActivityFd(zes_engine_group_t engineGroup, uint32_t engineInstance, uint32_t subDeviceId, PmuInterface *const &pmuInterface) override;
std::string getHwmonName(uint32_t subDeviceId, bool isSubdevice) const override;
bool isStandbyModeControlAvailable() const override { return true; }
bool clientInfoAvailableInFdInfo() override;
protected:
std::map<SysfsName, valuePair> sysfsNameToFileMap;
@@ -118,6 +120,7 @@ class SysmanKmdInterfaceXe : public SysmanKmdInterface {
int64_t getEngineActivityFd(zes_engine_group_t engineGroup, uint32_t engineInstance, uint32_t subDeviceId, PmuInterface *const &pmuInterface) override;
std::string getHwmonName(uint32_t subDeviceId, bool isSubdevice) const override;
bool isStandbyModeControlAvailable() const override { return false; }
bool clientInfoAvailableInFdInfo() override;
protected:
std::map<SysfsName, valuePair> sysfsNameToFileMap;