Debug flag to force stateless mocs encryption bit

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2022-09-23 14:13:06 +00:00
committed by Compute-Runtime-Automation
parent 878d646772
commit 6175a3e785
8 changed files with 44 additions and 6 deletions

View File

@@ -38,6 +38,12 @@ uint32_t GmmHelper::getMOCS(uint32_t type) const {
return static_cast<uint32_t>(mocs.DwordValue);
}
void GmmHelper::applyMocsEncryptionBit(uint32_t &index) {
if (DebugManager.flags.ForceStatelessMocsEncryptionBit.get() == 1) {
index |= 1;
}
}
GmmHelper::GmmHelper(OSInterface *osInterface, const HardwareInfo *pHwInfo) : hwInfo(pHwInfo) {
auto hwInfoAddressWidth = Math::log2(hwInfo->capabilityTable.gpuAddressSpace + 1);
addressWidth = std::max(hwInfoAddressWidth, 48u);

View File

@@ -22,6 +22,7 @@ class GmmHelper {
const HardwareInfo *getHardwareInfo();
uint32_t getMOCS(uint32_t type) const;
static void applyMocsEncryptionBit(uint32_t &index);
void forceAllResourcesUncached() { allResourcesUncached = true; };
static constexpr uint64_t maxPossiblePitch = (1ull << 31);