fix: Init wait utils after hwInfo init for both OS

Resolves: HSD-18041922513

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-03-27 14:00:16 +00:00
committed by Compute-Runtime-Automation
parent ead0842763
commit b43b23b6ed
5 changed files with 43 additions and 3 deletions

View File

@@ -68,6 +68,10 @@ void RootDeviceEnvironment::initDebuggerL0(Device *neoDevice) {
this->debugger = DebuggerL0::create(neoDevice);
}
void RootDeviceEnvironment::initWaitUtils() {
WaitUtils::init(WaitUtils::WaitpkgUse::tpause, *hwInfo);
}
const HardwareInfo *RootDeviceEnvironment::getHardwareInfo() const {
return hwInfo.get();
}
@@ -86,8 +90,6 @@ void RootDeviceEnvironment::setHwInfo(const HardwareInfo *hwInfo) {
if (debugManager.flags.DisableSupportForL0Debugger.get() == 1) {
this->hwInfo->capabilityTable.l0DebuggerSupported = false;
}
WaitUtils::init(WaitUtils::WaitpkgUse::tpause, *hwInfo);
}
bool RootDeviceEnvironment::isFullRangeSvm() const {
@@ -178,6 +180,7 @@ void RootDeviceEnvironment::initHelpers() {
initCompilerProductHelper();
initReleaseHelper();
initAilConfigurationHelper();
initWaitUtils();
}
void RootDeviceEnvironment::initializeGfxCoreHelperFromHwInfo() {

View File

@@ -67,6 +67,7 @@ struct RootDeviceEnvironment : NonCopyableClass {
void initOsTime();
void initGmm();
void initDebuggerL0(Device *neoDevice);
void initWaitUtils();
MOCKABLE_VIRTUAL void initDummyAllocation();
void setDummyBlitProperties(uint32_t rootDeviceIndex);