Add getSupportedThreadArbitrationPolicies

Related-To: LOCI-2319
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
Young Jin Yoon
2021-09-09 08:32:45 +00:00
committed by Compute-Runtime-Automation
parent 6061b61aea
commit 415e6c4aa5
9 changed files with 68 additions and 1 deletions

View File

@@ -83,5 +83,13 @@ size_t PreambleHelper<SKLFamily>::getThreadArbitrationCommandsSize() {
return sizeof(MI_LOAD_REGISTER_IMM) + sizeof(PIPE_CONTROL);
}
template <>
std::vector<uint32_t> PreambleHelper<SKLFamily>::getSupportedThreadArbitrationPolicies() {
std::vector<uint32_t> retVal;
for (const uint32_t &p : DebugControlReg2::supportedArbitrationPolicy) {
retVal.push_back(p);
}
return retVal;
}
template struct PreambleHelper<SKLFamily>;
} // namespace NEO

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -33,6 +33,9 @@ constexpr uint32_t address = 0xE404;
constexpr uint32_t getRegData(const uint32_t &policy) {
return policy == ThreadArbitrationPolicy::RoundRobin ? 0x100 : 0x0;
};
static const uint32_t supportedArbitrationPolicy[] = {
ThreadArbitrationPolicy::AgeBased,
ThreadArbitrationPolicy::RoundRobin};
} // namespace DebugControlReg2
} // namespace NEO