fix: initialize max capability values for ARL

setup max values when overriding hw info with debug key

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-11-15 10:05:30 +00:00
committed by Compute-Runtime-Automation
parent 02ef252b7d
commit a0f8e8accc
4 changed files with 34 additions and 6 deletions

View File

@@ -68,6 +68,19 @@ void setHwInfoValuesFromConfig(const uint64_t hwInfoConfig, HardwareInfo &hwInfo
for (uint32_t slice = 0; slice < hwInfoIn.gtSystemInfo.SliceCount; slice++) {
hwInfoIn.gtSystemInfo.SliceInfo[slice].Enabled = true;
}
if (hwInfoIn.gtSystemInfo.MaxSlicesSupported == 0) {
hwInfoIn.gtSystemInfo.MaxSlicesSupported = sliceCount;
}
if (hwInfoIn.gtSystemInfo.MaxSubSlicesSupported == 0) {
hwInfoIn.gtSystemInfo.MaxSubSlicesSupported = hwInfoIn.gtSystemInfo.SubSliceCount;
}
if (hwInfoIn.gtSystemInfo.MaxDualSubSlicesSupported == 0) {
hwInfoIn.gtSystemInfo.MaxDualSubSlicesSupported = hwInfoIn.gtSystemInfo.SubSliceCount;
}
if (hwInfoIn.gtSystemInfo.MaxEuPerSubSlice == 0) {
hwInfoIn.gtSystemInfo.MaxEuPerSubSlice = euPerSubSliceCount;
}
}
bool parseHwInfoConfigString(const std::string &hwInfoConfigStr, uint64_t &hwInfoConfig) {